]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Security groups: prevent race for default security group creation
authorGary Kotton <gkotton@vmware.com>
Mon, 22 Sep 2014 17:03:37 +0000 (10:03 -0700)
committerGary Kotton <gkotton@vmware.com>
Tue, 23 Sep 2014 08:55:54 +0000 (01:55 -0700)
commit32ea2e349decd750e25cb00a8c907b8f73f795f3
treef56097ffd1a2dbff76c9a639f8b89b233d1ec810
parent9d5bd529cd21a73a6697992e708d712801c78e39
Security groups: prevent race for default security group creation

When a VM is booted via the Nova the client connection is created
with an admin user. This causes problems when creating the neutron
port. That is, there may be a race for the creation of the default
security group for the tenant.
The problem was introduced by commit acf44dba26ca8dca47bfb5fb2916807f9f4e2060

Change-Id: Ie0199c71231a322704f1f49995facde09c92da25
Closes-bug: #1372570
neutron/db/securitygroups_db.py
neutron/tests/unit/test_extension_security_group.py