Fixes bug 990118
When using with_lockmode, it's necessary to use the same session for both
the select and the subsequent update/delete. Since a new session was
being used for each part, the lock was becoming an effective noop and
two requests could race with each other. Make sure we use one session
to prevent this from happening.
Change-Id: I6765c97266d13b795f1153b440cfc556df065787
971504
New flag allows deleting IPs soon on deallocation. This removes the
need to run external script manually or via cron. Get old beaviour by
setting the falg to True.
Added test case for this beahviour.
Change-Id: Ife04dd85ed311e806b790f6d1487a963dd3a05af
* Calls the delete method on the ip generator to clear the block of any
allocatable_ips so the FK doesn't fail the constraint on block delete
* Fixes LP963396
Change-Id: Iaa1915e79adde23970ad7405477e8d82467a8a58
The last commit broke the initial migration(which is worse, because it was the
only substantial migration). This commit keeps from setting up the DB before
running migrations. If any future migrations need to read from the DB they
will need to do the same dance that's in 002.
Change-Id: Icedf99d95b538cb24cccccc4d47ef68bdf225b4c
Adding a migration to turn improper device IDs into device UUIDs. Also
fixing the migrations so the work.
Change-Id: I8f92e9f54bf0454c15531991c9d1050323f13349
For Nova to filter instances by ip address we need
a way for melange to return an address without
being scoped by tenant.
Change-Id: I9a9cddd4b86a562ac6610179776d0cdf41f1c044
Simply by running:
$> cd openstack-common
$> python update.py ../melange
We should do this more often.
Change-Id: I07ac084a14283c38ed39ecb9535436b96365bda8
* Mark v0.1 as deprecated
* Add v1.0 to version list
* Use subclasses for wsgi Routers
* Add melange-manage route command to print routes
* Fixes certain routes not being exposed in the v1.0 api (LP947327)
Change-Id: Iac8294f2534decbbddf53230386fdbe8c622ff84
This does not appear to change the functionality
of the file, just keeps it from angering pep8.
update: Kolker's suggestion
Change-Id: I6197e934e537746c9baa6a30c74c9e2df1d49836
Addresses blueprint scalability by extracting out ip/mac addresss generation
into separate pluggable components. Allows the address generator plugins to
create their own models and database tables.
Change-Id: If85b6c73d1e30c92f0e2ea80fea028813d612cb8
The biggest change here is that now by default SQLAlchemy will
not echo every query. This can still be turned on, but it is very
verbose. More specific log lines should be added for debugging after
this change.
Change-Id: Ia51933d268412ae61cf2df8c355c0fa1b365d57f
Without this, I was getting:
ERROR: Failure: ImportError (No module named lxml)
...
ImportError: No module named lxml
...
ERROR: test_versions_index (melange.tests.unit.test_versions.TestVersionsController)
...
Got: ImportError('No module named lxml',)
...
ERROR: test_versions_index_for_xml (melange.tests.unit.test_versions.TestVersionsController)
Got: ImportError('No module named lxml',)
Change-Id: I73eac14526d4ea5991b5d7186d42208a4c230569
The APIs melange is using are "incubating" in openstack-common. See:
http://wiki.openstack.org/CommonLibrary#Incubation
A config file is included for openstack-common's copy-and-paste script
to make it easy to update the code e.g.
$> git clone .../melange
$> git clone .../openstack-common
$> cd openstack-common
$> python update.py ../melange/
Note: the copies of the openstack.common modules should never be directly
modified, instead you should always make the modifications in openstack-common
and copy them across using the script.
Change-Id: I0245e30e4b4a9a2214c4f8a291b7f2caa54ab97e
In the interface create API, uses an additional tenant_id parameter in the
network params for specifying the network owner tenant separately from the
instance owning tenant.
Change-Id: I57c2bf412b855eeb5f79dab8b3c5c46942819648
This allows the client module to share the melange.* namespace
Rename bin/melange to bin/melange-server
Change-Id: I0ae94fbad7912b2642a6f53217fbd16c700e0dad