Booting from image in ceph is considered to booting from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Medium
|
Bing Li |
Bug Description
Openstack Mitaka
glance backend: ceph
nova backend: kvm+ceph
cinder backend: ceph
Steps to reproduce
==================
1.create an instance booting from image with flavor m1.small;
2.nova resize $instance_id m1.tiny;
Actual result
=============
instance resize successfully, but instance's root disk does not change
Expected result
===============
nova-api should raise a ResizeError exception.
booted_from_volume = self._is_
if (root_down and not booted_from_volume) or ephemeral_down:
reason = _("Unable to resize disk down.")
raise exception.
exception.
I think the function "_is_booted_
@staticmethod
def _is_booted_
return ((not bool(instance.
or 'disk' not in disk_mapping)
Changed in nova: | |
assignee: | nobody → Bing Li (libing863) |
I think this judge is not consistent in spawning. In spawning phase, driver consider it as not boot from volume because of the different parameters for _is_booted_ from_volume function. so we should modify the same input same to the spawning'w judge.