Merge lp:~rackspace-titan/nova/postgres-instance-type-id into lp:~hudson-openstack/nova/trunk
Proposed by
Mark Washenberger
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Dan Prince | ||||
Approved revision: | 1045 | ||||
Merged at revision: | 1080 | ||||
Proposed branch: | lp:~rackspace-titan/nova/postgres-instance-type-id | ||||
Merge into: | lp:~hudson-openstack/nova/trunk | ||||
Diff against target: |
84 lines (+69/-1) 2 files modified
nova/db/sqlalchemy/migrate_repo/versions/017_make_instance_type_id_an_integer.py (+68/-0) nova/db/sqlalchemy/models.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~rackspace-titan/nova/postgres-instance-type-id | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dan Prince (community) | Approve | ||
Rick Harris (community) | Approve | ||
Review via email: mp+60859@code.launchpad.net |
Description of the change
Convert instance_type_ids in the instances table from strings to integers to enable joins with instance_types. This in particular fixes a problem when using postgresql.
To post a comment you must log in.
Looks great.
Tested upgrade and downgrade paths with good and bad data. All worked as expected.
Just a thought:
Would it be useful to log at the error-level any instances that weren't properly converted over, e.g.
LOG.error( "Instance %s did not have instance_type_id converted to an int because its value is" % (instance.id, instance. instance_ type_id) )