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