yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60285
[Bug 1654504] [NEW] Resize instance which is booted from volume failed
Public bug reported:
Description
===========
When instance was booted from volume, but the driver will consider it booted from image in resize
scenario. This bug is introduced by the bug path: bug #1587802.
Steps to reproduce
==================
1. Booting an instance from volume with flavor m1.small。
2. Resize the instance to m1.tiny。
Expected result
===============
Resize the instance succefully.
Actual result
=============
Exception was raised as follows.
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3964, in _finish_resize
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] block_device_info, power_on)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7417, in finish_migration
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] fallback_from_host=migration.source_compute)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3180, in _create_image
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] backend.create_snap(libvirt_utils.RESIZE_SNAPSHOT_NAME)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 944, in create_snap
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] return self.driver.create_snap(self.rbd_name, name)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 381, in create_snap
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] with RBDVolumeProxy(self, str(volume), pool=pool) as vol:
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 65, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] driver._disconnect_from_rados(client, ioctx)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] self.force_reraise()
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] six.reraise(self.type_, self.value, self.tb)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 61, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] read_only=read_only)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/rbd.py", line 374, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] raise make_ex(ret, 'error opening image %s at snapshot %s' % (name, snapshot))
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] ImageNotFound: error opening image 496d2d53-5a57-44bf-93c4-26baec9a9bbc_disk at snapshot None
** Affects: nova
Importance: Undecided
Status: New
--
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/1654504
Title:
Resize instance which is booted from volume failed
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
When instance was booted from volume, but the driver will consider it booted from image in resize
scenario. This bug is introduced by the bug path: bug #1587802.
Steps to reproduce
==================
1. Booting an instance from volume with flavor m1.small。
2. Resize the instance to m1.tiny。
Expected result
===============
Resize the instance succefully.
Actual result
=============
Exception was raised as follows.
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3964, in _finish_resize
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] block_device_info, power_on)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7417, in finish_migration
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] fallback_from_host=migration.source_compute)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3180, in _create_image
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] backend.create_snap(libvirt_utils.RESIZE_SNAPSHOT_NAME)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 944, in create_snap
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] return self.driver.create_snap(self.rbd_name, name)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 381, in create_snap
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] with RBDVolumeProxy(self, str(volume), pool=pool) as vol:
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 65, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] driver._disconnect_from_rados(client, ioctx)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] self.force_reraise()
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] six.reraise(self.type_, self.value, self.tb)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 61, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] read_only=read_only)
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] File "/usr/lib/python2.7/site-packages/rbd.py", line 374, in __init__
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] raise make_ex(ret, 'error opening image %s at snapshot %s' % (name, snapshot))
2017-01-06 15:30:44.200 7947 ERROR nova.compute.manager [instance: 496d2d53-5a57-44bf-93c4-26baec9a9bbc] ImageNotFound: error opening image 496d2d53-5a57-44bf-93c4-26baec9a9bbc_disk at snapshot None
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1654504/+subscriptions
Follow ups