ec2-api/ec2api/api
Andrey Pavlov 38b882d97d synchronize default vpc creation across threads
when two clients come for functions where check_default_vpc
is present then one goes to create default vpc and other fails.
it fails because vpc with is_default flag is already in DB
but children objects (like subnets) are not yet created.
For we will lock check_default_vpc function.

Another way is to rework _create_vpc. It can create VPC
without is_default flag. And at the end it can set the flag.
First thread will pass this. And second thread will fail at flag set
operation and will revert all created object. Then second thread
can check presence of default VPC again.
This way is better cause it can work across several controllers.

Change-Id: I5586fa234257b72721e328a9fa2375a56d1553c2
2018-03-24 00:49:01 +03:00
..
__init__.py remove deprecated options 2018-01-18 14:45:37 +03:00
address.py minor fix to https://review.openstack.org/#/c/466115/ 2017-06-05 16:10:17 +03:00
apirequest.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
auth.py remove unused configuration options 2017-10-20 13:48:00 +03:00
availability_zone.py fix ec2-api after deprecation of nova-network functions in novaclient 2017-05-24 20:00:19 +03:00
cloud.py py34: fix using of internal types vriables in cloud.py 2015-09-09 17:07:49 +03:00
common.py Merge "Remove log translations" 2017-05-25 14:41:17 +00:00
customer_gateway.py Add missed module docstring 2015-05-28 19:48:11 +03:00
dhcp_options.py rework certs stuff 2015-11-12 11:19:06 +03:00
ec2utils.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
faults.py fix encoding of request_id 2016-02-06 08:10:38 +03:00
image.py Merge "Use botocore in API instead of boto" 2017-08-11 11:31:02 +00:00
instance.py handle new volume's status "reserved" 2017-12-23 15:53:29 +00:00
internet_gateway.py Create internet gateway for default VPC 2017-01-10 14:47:12 +03:00
key_pair.py rework certs stuff 2015-11-12 11:19:06 +03:00
network_interface.py Graduate to oslo.utils.timeutils 2016-03-18 14:11:42 -04:00
opts.py rework certs stuff 2015-11-12 11:19:06 +03:00
route_table.py Create default VPC during describe route tables 2017-01-10 14:12:49 +03:00
security_group.py fix comparision of security group rules 2017-08-03 09:50:31 +00:00
snapshot.py switch to using new versions of cinder service 2016-09-13 12:01:57 +03:00
subnet.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
tag.py Add tag support for vpn-related objects 2015-06-29 17:52:50 +03:00
validator.py py34: fix basestring usage in validator 2015-09-10 20:14:27 +03:00
volume.py handle new volume's status "reserved" 2017-12-23 15:53:29 +00:00
vpc.py synchronize default vpc creation across threads 2018-03-24 00:49:01 +03:00
vpn_connection.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
vpn_gateway.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00