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/382024 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ed994bb4d72 b5f93cfb76a5f72 6264e4896ad4ed
Committed: https:/
Submitter: Jenkins
Branch: master
commit ed994bb4d72b5f9 3cfb76a5f726264 e4896ad4ed
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
Closes-bug: 1587802
Change-Id: Ie424d172ac9d6a