ec2-api/devstack
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
..
README.rst add link to download devstack in README.rst 2016-09-12 12:17:05 +03:00
create_config fix for awscli in create_config 2017-10-11 12:57:04 +03:00
override-defaults switch on vpnaas for ec2-api 2017-03-06 12:12:31 +03:00
plugin.sh synchronize default vpc creation across threads 2018-03-24 00:49:01 +03:00
settings Remove code that used nova-cert 2017-07-07 11:35:22 +03:00

README.rst

Enabling in Devstack

  1. Download DevStack

    git clone https://git.openstack.org/openstack-dev/devstack cd devstack

  2. Add this repo as an external repository:

    > cat local.conf
    [[local|localrc]]
    enable_plugin ec2-api https://git.openstack.org/openstack/ec2-api
  3. run stack.sh