Public bug reported:

When resizing an instance, the migration task calls 
"replace_allocation_with_migration()', which checks to verify that the instance 
has allocations against the source compute node [0]. It then replaces the 
instance's allocation with the migration, using it's UUID as the consumer 
instead of the instance's. However, if the first attempt at migrating fails and 
the resize is rescheduled, when "replace_allocation_with_migration()" is called 
again, the allocations now have the migration UUID as the consumer, and so the 
check that the instance has allocations on the source compute node will fail, 
and the migration is put in an ERROR state.
 
[0] 
https://github.com/openstack/nova/blob/f95f165b49fbc0efe29450b0e858a3ccadecedea/nova/conductor/tasks/migrate.py#L47-L48

** Affects: nova
     Importance: High
     Assignee: Ed Leafe (ed-leafe)
         Status: Confirmed


** Tags: migration placement queens-rc-potential resize

-- 
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/1741125

Title:
  Instance resize always fails when rescheduling

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  When resizing an instance, the migration task calls 
"replace_allocation_with_migration()', which checks to verify that the instance 
has allocations against the source compute node [0]. It then replaces the 
instance's allocation with the migration, using it's UUID as the consumer 
instead of the instance's. However, if the first attempt at migrating fails and 
the resize is rescheduled, when "replace_allocation_with_migration()" is called 
again, the allocations now have the migration UUID as the consumer, and so the 
check that the instance has allocations on the source compute node will fail, 
and the migration is put in an ERROR state.
   
  [0] 
https://github.com/openstack/nova/blob/f95f165b49fbc0efe29450b0e858a3ccadecedea/nova/conductor/tasks/migrate.py#L47-L48

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to