Public bug reported:
If an instance is booted from a volume backed snapshot with
ephemeral(s), it cannot be resized down to a flawor with disk size is
lesser than original flavor disk size.
Steps to reproduce:
1 Prepare flavors
$ nova flavor-create t1.nano-2-e auto 64 2 1 --ephemeral 1
$ nova flavor-create t1.nano-1-e auto 64 1 1 --ephemeral 1
2 Prepare a volume backed snapshot
$ cinder create 2 --image-id cirros-0.3.4-x86_64-disk --name boot-vol
$ nova boot --boot-volume <boot-vol-id> --flavor t1.nano-2-e inst-1
$ nova image-create inst-1 snap-1
3 Boot an instace from the snapshot
$ nova boot --image snap-1 --flavor t1.nano-2-e inst-2
4 Resize the instance
$ nova resize inst-2 t1.nano-1-e
5 Check status of the instance
$ nova list
Expected status: VERIFY_RESIZE
Actual status: ACITVE
Environment:
DevStack on current (the last Nova commit
a7efa47ec91479c6cc77087cd5b86d2bbf5a0654) Newton OpenStack.
n-cpu.log fragment:
------------
[req-4de3bbd2-a717-4f76-bca0-607573ae46b9 admin admin] Exception during message
handling
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line
133, in _process_incoming
res = self.dispatcher.dispatch(message)
...
File "/opt/stack/nova/nova/compute/manager.py", line 6464, in
_error_out_instance_on_exception
raise error.inner_exception
ResizeError: Resize error: Unable to resize disk down.
** 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/1596957
Title:
Cannot resize down instance booted from volume backed snapshot with
ephemeral
Status in OpenStack Compute (nova):
New
Bug description:
If an instance is booted from a volume backed snapshot with
ephemeral(s), it cannot be resized down to a flawor with disk size is
lesser than original flavor disk size.
Steps to reproduce:
1 Prepare flavors
$ nova flavor-create t1.nano-2-e auto 64 2 1 --ephemeral 1
$ nova flavor-create t1.nano-1-e auto 64 1 1 --ephemeral 1
2 Prepare a volume backed snapshot
$ cinder create 2 --image-id cirros-0.3.4-x86_64-disk --name boot-vol
$ nova boot --boot-volume <boot-vol-id> --flavor t1.nano-2-e inst-1
$ nova image-create inst-1 snap-1
3 Boot an instace from the snapshot
$ nova boot --image snap-1 --flavor t1.nano-2-e inst-2
4 Resize the instance
$ nova resize inst-2 t1.nano-1-e
5 Check status of the instance
$ nova list
Expected status: VERIFY_RESIZE
Actual status: ACITVE
Environment:
DevStack on current (the last Nova commit
a7efa47ec91479c6cc77087cd5b86d2bbf5a0654) Newton OpenStack.
n-cpu.log fragment:
------------
[req-4de3bbd2-a717-4f76-bca0-607573ae46b9 admin admin] Exception during
message handling
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line
133, in _process_incoming
res = self.dispatcher.dispatch(message)
...
File "/opt/stack/nova/nova/compute/manager.py", line 6464, in
_error_out_instance_on_exception
raise error.inner_exception
ResizeError: Resize error: Unable to resize disk down.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1596957/+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