Public bug reported:

After this change: https://review.openstack.org/#/c/584504, where we
changed the default value of queued_for_delete column from False to NULL
in the sqla code for the instance_mappings object (to do the data
migration for queued_for_delete), we forgot to set the default value as
False upon creation of the new instance_mappings in the create() method.
Hence new instance_mappings always ended up with NULL values in the db
meaning the data migration "populate_queued_for_delete" would never
finish.

So in the InstanceMapping.create() function queued_for_delete should
always be set to False() explicitly so that new mappings get False as
the default value.

** Affects: nova
     Importance: Undecided
     Assignee: Dan Smith (dansmith)
         Status: New


** Tags: cells

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1814913

Title:
  A new instance_mapping record will have queued_for_delete set to NULL

Status in OpenStack Compute (nova):
  New

Bug description:
  After this change: https://review.openstack.org/#/c/584504, where we
  changed the default value of queued_for_delete column from False to
  NULL in the sqla code for the instance_mappings object (to do the data
  migration for queued_for_delete), we forgot to set the default value
  as False upon creation of the new instance_mappings in the create()
  method. Hence new instance_mappings always ended up with NULL values
  in the db meaning the data migration "populate_queued_for_delete"
  would never finish.

  So in the InstanceMapping.create() function queued_for_delete should
  always be set to False() explicitly so that new mappings get False as
  the default value.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1814913/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to