[Yahoo-eng-team] [Bug 1805132] [NEW] bulk creation of security group rules fails StaleDataError

2018-11-26 Thread Jesper M
Public bug reported:

Concurrently creating (many) security group rules in a security group,
either posting concurrently directly to the api, or by using heat fails
(on queens) with:

Retry wrapper got retriable exception: UPDATE statement on table 
'standardattributes' expected to update 1 row(s); 0 were matched. wrapped 
/usr/lib/python2.7/site-packages/neutron/db/api.py:126
2018-11-26 12:01:51.917 4605 ERROR oslo_db.api 
[req-459cb962-2cc8-403a-af68-411efb7eb39c 2fe7c01cdd724059bb17e4cf38bc44b5 
d45bb2772ddd4eda8f9bec432238eda1 - default default] DB exceeded retry limit.: 
StaleDataError: UPDATE statement on table 'standardattributes' expected to 
update 1 row(s); 0 were matched.


StaleDataError: UPDATE statement on table 'standardattributes' expected to 
update 1 row(s); 0 were matched.

I've written a small script to reproduce this.

https://gist.github.com/jsm222/2b7db15eaebe69111793359c9a585823

Example usages:
python secruletest.py concurrent --auth-url http://127.0.0.1:5000/v3 --username 
demo --project-name demo --domain-id default --rules-amount 200
or
python secruletest.py heat --rules-amount 200 --file-out /tmp/heat.yaml

The heat template is just written not applied, the first example makes a
security group named NeutronSecurityGroupRuleTest (can be set with
--security-group-name ) and begins posting rules concurrently.

It is reproducible on rdo packstack queens, and also fails on production
environment (Ubuntu based queens)

** Affects: neutron
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1805132

Title:
  bulk creation of security group rules fails StaleDataError

Status in neutron:
  New

Bug description:
  Concurrently creating (many) security group rules in a security group,
  either posting concurrently directly to the api, or by using heat
  fails (on queens) with:

  Retry wrapper got retriable exception: UPDATE statement on table 
'standardattributes' expected to update 1 row(s); 0 were matched. wrapped 
/usr/lib/python2.7/site-packages/neutron/db/api.py:126
  2018-11-26 12:01:51.917 4605 ERROR oslo_db.api 
[req-459cb962-2cc8-403a-af68-411efb7eb39c 2fe7c01cdd724059bb17e4cf38bc44b5 
d45bb2772ddd4eda8f9bec432238eda1 - default default] DB exceeded retry limit.: 
StaleDataError: UPDATE statement on table 'standardattributes' expected to 
update 1 row(s); 0 were matched.

  
  StaleDataError: UPDATE statement on table 'standardattributes' expected to 
update 1 row(s); 0 were matched.

  I've written a small script to reproduce this.

  https://gist.github.com/jsm222/2b7db15eaebe69111793359c9a585823

  Example usages:
  python secruletest.py concurrent --auth-url http://127.0.0.1:5000/v3 
--username demo --project-name demo --domain-id default --rules-amount 200
  or
  python secruletest.py heat --rules-amount 200 --file-out /tmp/heat.yaml

  The heat template is just written not applied, the first example makes
  a security group named NeutronSecurityGroupRuleTest (can be set with
  --security-group-name ) and begins posting rules concurrently.

  It is reproducible on rdo packstack queens, and also fails on
  production environment (Ubuntu based queens)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1805132/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1804227] [NEW] "common" administrative security group is removed by user

2018-11-20 Thread Jesper M
Public bug reported:

If an administrator is adding a security group to a server and the
security group is not in the servers project,horizon deletes it again
when the user edits the instances security group.

Steps:

admin create security group common
server add security group common server-in-another-project
 
horizon login as user of another-project edit security groups on 
server-in-another-project 
Result the not visible "common" sec group is removed from 
server-in-another-project

** Affects: horizon
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1804227

Title:
  "common" administrative security group is removed by user

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  If an administrator is adding a security group to a server and the
  security group is not in the servers project,horizon deletes it again
  when the user edits the instances security group.

  Steps:

  admin create security group common
  server add security group common server-in-another-project
   
  horizon login as user of another-project edit security groups on 
server-in-another-project 
  Result the not visible "common" sec group is removed from 
server-in-another-project

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1804227/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1603267] [NEW] Possible typo in templates/stacks/_preview_details.htm

2016-07-14 Thread Jesper M
Public bug reported:

This commit seems to miss a s in stacks..

https://github.com/openstack/horizon/commit/453ac5254c0d00e6bbb172ea5f1302dd82fe0af8#commitcomment-18254965

otherwise this happends:https://ask.openstack.org/en/question/94643
/mitaka-horizon-preview-stack-throws-python-error/#94695

I'm just commenting here to make aware in case  it really is a typo, and
not a misconfiguration on my part.

I followed the mitaka guide.

** Affects: horizon
 Importance: Undecided
 Status: New


** Tags: horizon stacks

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1603267

Title:
  Possible typo in templates/stacks/_preview_details.htm

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  This commit seems to miss a s in stacks..

  
https://github.com/openstack/horizon/commit/453ac5254c0d00e6bbb172ea5f1302dd82fe0af8#commitcomment-18254965

  otherwise this happends:https://ask.openstack.org/en/question/94643
  /mitaka-horizon-preview-stack-throws-python-error/#94695

  I'm just commenting here to make aware in case  it really is a typo,
  and not a misconfiguration on my part.

  I followed the mitaka guide.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1603267/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp