[Yahoo-eng-team] [Bug 1625557] Re: Concurrent security groups creation fails with DBDuplicateEntry

2016-09-21 Thread OpenStack Infra
Reviewed:  https://review.openstack.org/373841
Committed: 
https://git.openstack.org/cgit/openstack/neutron/commit/?id=09d1185d24c30690358a9314c14fabaead2f4c78
Submitter: Jenkins
Branch:master

commit 09d1185d24c30690358a9314c14fabaead2f4c78
Author: Oleg Bondarev 
Date:   Wed Sep 21 10:36:05 2016 +0300

Do not retry default security group creation

No need to retry creation of a default security group - it will
always fail with DBDuplicate.
The patch opens a transaction before calling to create_security_group()
when creating default security group, thus avoiding db retries.

Closes-Bug: #1625557
Change-Id: Id15b55b097641325ac68275fe4bb3ebe93718cdd


** Changed in: neutron
   Status: In Progress => Fix Released

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

Title:
  Concurrent security groups creation fails with DBDuplicateEntry

Status in neutron:
  Fix Released

Bug description:
   - create_security_group() is wrapped with a db retry decorator
   - it calls _ensure_default_security_group() to create a default security 
group for a tenant if one does not exist 
   - _ensure_default_security_group() in turn calls back to 
create_security_group() to create a default security group
   - due to concurrency the creation of default security group my fail with 
DBDuplicateEntry
   - this is retried for max attempts and the request eventually fails

  Traceback: http://paste.openstack.org/show/581903/
  Example of failed job in rally: 
http://logs.openstack.org/04/371604/1/check/gate-rally-dsvm-neutron-rally/b1c384d/

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1625557/+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 1625557] Re: Concurrent security groups creation fails with DBDuplicateEntry

2016-09-20 Thread Armando Migliaccio
Patch is being reverted.

** Changed in: neutron
   Status: Fix Released => Confirmed

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

Title:
  Concurrent security groups creation fails with DBDuplicateEntry

Status in neutron:
  Confirmed

Bug description:
   - create_security_group() is wrapped with a db retry decorator
   - it calls _ensure_default_security_group() to create a default security 
group for a tenant if one does not exist 
   - _ensure_default_security_group() in turn calls back to 
create_security_group() to create a default security group
   - due to concurrency the creation of default security group my fail with 
DBDuplicateEntry
   - this is retried for max attempts and the request eventually fails

  Traceback: http://paste.openstack.org/show/581903/
  Example of failed job in rally: 
http://logs.openstack.org/04/371604/1/check/gate-rally-dsvm-neutron-rally/b1c384d/

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1625557/+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 1625557] Re: Concurrent security groups creation fails with DBDuplicateEntry

2016-09-20 Thread OpenStack Infra
Reviewed:  https://review.openstack.org/373108
Committed: 
https://git.openstack.org/cgit/openstack/neutron/commit/?id=5ad5d103ad02e2787a539c82b0efcbe51cfe857c
Submitter: Jenkins
Branch:master

commit 5ad5d103ad02e2787a539c82b0efcbe51cfe857c
Author: Oleg Bondarev 
Date:   Tue Sep 20 12:54:50 2016 +0300

Do not retry default security group creation

No need to retry creation of a default security group - it will
always fail with DBDuplicate

Closes-Bug: #1625557
Change-Id: I8af479ff9631851e7d78c4fc28e8363eda848775


** Changed in: neutron
   Status: In Progress => Fix Released

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

Title:
  Concurrent security groups creation fails with DBDuplicateEntry

Status in neutron:
  Fix Released

Bug description:
   - create_security_group() is wrapped with a db retry decorator
   - it calls _ensure_default_security_group() to create a default security 
group for a tenant if one does not exist 
   - _ensure_default_security_group() in turn calls back to 
create_security_group() to create a default security group
   - due to concurrency the creation of default security group my fail with 
DBDuplicateEntry
   - this is retried for max attempts and the request eventually fails

  Traceback: http://paste.openstack.org/show/581903/
  Example of failed job in rally: 
http://logs.openstack.org/04/371604/1/check/gate-rally-dsvm-neutron-rally/b1c384d/

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1625557/+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