yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56884
[Bug 1625557] Re: Concurrent security groups creation fails with DBDuplicateEntry
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 <obondarev@xxxxxxxxxxxx>
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
References