lp:~markmc/nova/sqlalchemy-0.7-migration-fixes
- Get this branch:
- bzr branch lp:~markmc/nova/sqlalchemy-0.7-migration-fixes
Branch merges
- Joshua McKenty (community): Approve
- Brian Lamar (community): Approve
-
Diff: 92 lines (+25/-10)3 files modifiedAuthors (+1/-0)
nova/db/sqlalchemy/migrate_repo/versions/016_make_quotas_key_and_value.py (+14/-4)
nova/db/sqlalchemy/migrate_repo/versions/036_change_flavor_id_in_migrations.py (+10/-6)
Branch information
Recent revisions
- 1485. By Mark McLoughlin
-
Fix quotas migration failure
With sqlalchemy 0.7.2 and migrate 0.7.1, I was seeing:
Traceback (most recent call last):
File "/usr/lib/python2. 7/site- packages/ nova/db/ migration. py", line 37, in db_sync
ret = IMPL.db_sync(version= version)
[..]
File "/usr/lib/python2. 7/site- packages/ nova/db/ sqlalchemy/ migrate_ repo/versions/ 016_make_ quotas_ key_and_ value.py" , line 189, in upgrade
new_quotas. rename( 'quotas' )
[..]
File "/usr/lib/python2. 7/site- packages/ migrate/ changeset/ schema. py", line 479, in deregister
del meta.tables[key]
File "/usr/lib64/python2. 7/site- packages/ sqlalchemy/ util/_collectio ns.py", line 38, in _immutable
raise TypeError("%s object is immutable" % self.__class__ .__name_ _)
TypeError: immutabledict object is immutableThis is actually a bug in sqlalchemy-migrate:
http://
code.google. com/p/sqlalchem y-migrate/ issues/ detail? id=128 But it can be worked around by ensuring there isn't a 'quotas' table in
the metadata's table hash before renaming. - 1484. By Mark McLoughlin
-
Fix flavorid migration failure
With sqlalchemy 0.7.2 and migrate 0.7.1, I was seeing:
Traceback (most recent call last):
File "/usr/lib/python2. 7/site- packages/ nova/db/ migration. py", line 37, in db_sync
ret = IMPL.db_sync(version= version)
[...]
File "/usr/lib/python2. 7/site- packages/ nova/db/ sqlalchemy/ migrate_ repo/versions/ 036_change_ flavor_ id_in_migration s.py", line 46, in upgrade
.values( old_instance_ type_id= instance_ type.id) )
[...]
File "/usr/lib64/python2. 7/site- packages/ sqlalchemy/ engine/ default. py", line 301, in do_commit
connection. commit( )
OperationalError: (OperationalError) database is locked None None It looks like the database is being held open as we iterate over the
rows in the instance_types table. - 1483. By Vish Ishaya
-
Adds a use_deprecated_auth flag to make sure creds generated using nova-manage commands will work with noauth.
- 1482. By Nachi Ueno
-
I added notifications decorator for each API call using monkey_patching.
By this merge, users can get API call notification from any modules. - 1481. By Brian Waldon
-
Fixes bug that causes 400 status code when an instance wasn't attached to a network.
- 1480. By Dan Prince
-
Move use_ipv6 into flags. Its used in multiple places (network manager and the OSAPI) and should be defined at the top level.
- 1478. By Vish Ishaya
-
This branch does the final tear out of AuthManager from the main code. The NoAuth middlewares (active by default) allow a user to specify any user and project id through headers (os_api) or access key (ec2_api).
The plan is to leave the auth manager code in but mention that it is deprecated. There is a sample paste config in ini to still allow old auth. Immediately after the diablo release we can tear out all of the Auth related code and not support the deprecated auth anymore.
- 1477. By Christopher MacGown <email address hidden>
-
Implements first-pass of config-drive that adds a vfat format drive to a vm when config_drive is True (or an image id).
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~hudson-openstack/nova/trunk