Public bug reported: when using ceph as backend, instance can resize to a smaller flavor, and vm_state become error in the end.
nova/virt/libvirt/driver.py: @staticmethod def _is_booted_from_volume(instance, disk_mapping): """Determines whether the VM is booting from volume Determines whether the disk mapping indicates that the VM is booting from a volume. """ return ((not bool(instance.get('image_ref'))) or 'disk' not in disk_mapping) when using rbd as backend, the function cannot find 'disk' in disk_mapping, and treat it as booted_from_volume ** Affects: nova Importance: Undecided Assignee: Yang Shengming (yang-shengming) Status: New ** Changed in: nova Assignee: (unassigned) => Yang Shengming (yang-shengming) -- 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/1587802 Title: libvirt resize down prevention is invalid when using rbd as backend Status in OpenStack Compute (nova): New Bug description: when using ceph as backend, instance can resize to a smaller flavor, and vm_state become error in the end. nova/virt/libvirt/driver.py: @staticmethod def _is_booted_from_volume(instance, disk_mapping): """Determines whether the VM is booting from volume Determines whether the disk mapping indicates that the VM is booting from a volume. """ return ((not bool(instance.get('image_ref'))) or 'disk' not in disk_mapping) when using rbd as backend, the function cannot find 'disk' in disk_mapping, and treat it as booted_from_volume To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1587802/+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