← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1836781] Re: Unable to rebuild instance from snapshot after changing flavor

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

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

Title:
  Unable to rebuild instance from snapshot after changing flavor

Status in OpenStack Compute (nova):
  Expired

Bug description:
  Unable to rebuild instance from snapshot after changing flavor when
  running against Nova 14.1.0.

  Steps to recreate:
  1.	Create m1.tiny instance “545751ins_snap_orig”
  2.	Create snapshot “545751ins_snap_orig”
  3.	Change flavour to m1.small
  a.	Attempt rebuild before accepting new size change – Fails 409
  b.	Attempt rebuild after accepting new size change – Fails 400
  4.	Revert size to m1.tiny
  a.	Attempt rebuild after accepting new size – Fails 400

  
  Image 545751ins-snap-orig created as snap of instance 545751ins

  stack@irco1sd9vm20:~/devstack$ openstack image list
  +--------------------------------------+--------------------------+--------+
  | ID                                   | Name                     | Status |
  +--------------------------------------+--------------------------+--------+
  | 4a595064-0414-4aa0-99ab-253bd5567615 | 545751ins-snap-orig      | active |
  | 3999dd3c-8e06-4cc0-b520-6467dd829ef2 | cirros-0.4.0-x86_64-disk | active |
  +--------------------------------------+--------------------------+--------+

  
  stack@irco1sd9vm20:~/devstack$ openstack server list
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+
  | ID                                   | Name      | Status | Networks                           | Image | Flavor  |
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+
  | dd4374e5-9b88-46f4-9fc6-e2c613d59aa0 | 545751ins | ACTIVE | public=172.24.4.129, 2001:db8::33a |       | m1.tiny |
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+

  
  stack@irco1sd9vm20:~/devstack$ openstack server resize --flavor m1.small 545751ins

  
  stack@irco1sd9vm20:~/devstack$ openstack server list
  +--------------------------------------+-----------+---------------+------------------------------------+-------+----------+
  | ID                                   | Name      | Status        | Networks                           | Image | Flavor   |
  +--------------------------------------+-----------+---------------+------------------------------------+-------+----------+
  | dd4374e5-9b88-46f4-9fc6-e2c613d59aa0 | 545751ins | VERIFY_RESIZE | public=172.24.4.129, 2001:db8::33a |       | m1.small |
  +--------------------------------------+-----------+---------------+------------------------------------+-------+----------+

  Attempt rebuild before verifying size change

  stack@irco1sd9vm20:~/devstack$ nova rebuild 545751ins 545751ins-snap-orig
  ERROR (Conflict): Cannot 'rebuild' instance dd4374e5-9b88-46f4-9fc6-e2c613d59aa0 while it is in vm_state resized (HTTP 409) (Request-ID: req-efb9bbfe-4a65-42e8-958b-f0b82b094e8f)

  
  Confirm the size change and try rebuild again

  stack@irco1sd9vm20:~/devstack$ openstack server list
  +--------------------------------------+-----------+--------+------------------------------------+-------+----------+
  | ID                                   | Name      | Status | Networks                           | Image | Flavor   |
  +--------------------------------------+-----------+--------+------------------------------------+-------+----------+
  | dd4374e5-9b88-46f4-9fc6-e2c613d59aa0 | 545751ins | ACTIVE | public=172.24.4.129, 2001:db8::33a |       | m1.small |
  +--------------------------------------+-----------+--------+------------------------------------+-------+----------+

  
  stack@irco1sd9vm20:~/devstack$ nova rebuild 545751ins 545751ins-snap-orig
  ERROR (BadRequest): Image 4a595064-0414-4aa0-99ab-253bd5567615 is unacceptable: Unable to rebuild with a different image for a volume-backed server. (HTTP 400) (Request-ID: req-73d46dff-dffd-4331-9cdf-f6166439f4ac)

  
  Revert to previous size and try rebuild again

  stack@irco1sd9vm20:~/devstack$ openstack server resize --flavor
  m1.tiny 545751ins

  stack@irco1sd9vm20:~/devstack$ openstack server list
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+
  | ID                                   | Name      | Status | Networks                           | Image | Flavor  |
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+
  | dd4374e5-9b88-46f4-9fc6-e2c613d59aa0 | 545751ins | ACTIVE | public=172.24.4.129, 2001:db8::33a |       | m1.tiny |
  +--------------------------------------+-----------+--------+------------------------------------+-------+---------+

  
  stack@irco1sd9vm20:~/devstack$ nova rebuild 545751ins 545751ins-snap-orig
  ERROR (BadRequest): Image 4a595064-0414-4aa0-99ab-253bd5567615 is unacceptable: Unable to rebuild with a different image for a volume-backed server. (HTTP 400) (Request-ID: req-9f4cc208-9a8b-43b5-8d70-d2044ab47d7d)

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


References