Currently this method cannot be used widely due to its parameters. It
requires device_info - the dict which can not be easily obtained in many
cases. Since it is often needed to figure out if an instance is booted
from volume, and the method name is "appropriate", this sometimes leads
to errors (when string result of get_instance_disk_info is passed as an
argument to _is_booted_from_volume; see also Id5901254).
This patch makes _is_booted_from_volume to use standard
block_device_info structure, which is accessible in almost any driver
method.
Reviewed: https:/ /review. openstack. org/416558 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c9ea2e179e7 408f8b8f41579c6 915be519c0b04e
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit c9ea2e179e7408f 8b8f41579c6915b e519c0b04e
Author: Feodor Tersin <email address hidden>
Date: Tue Oct 4 20:17:17 2016 +0300
libvirt: Improve _is_booted_ from_volume implementation
Currently this method cannot be used widely due to its parameters. It disk_info is passed as an from_volume; see also Id5901254).
requires device_info - the dict which can not be easily obtained in many
cases. Since it is often needed to figure out if an instance is booted
from volume, and the method name is "appropriate", this sometimes leads
to errors (when string result of get_instance_
argument to _is_booted_
This patch makes _is_booted_ from_volume to use standard device_ info structure, which is accessible in almost any driver
block_
method.
Closes-bug: 1596957 eb42d83e512f2a1 8713134be3b 3cfb76a5f726264 e4896ad4ed)
Closes-bug: 1587802
Change-Id: Ie424d172ac9d6a
(cherry picked from commit ed994bb4d72b5f9