libvirt: improve the specification of network disks
Allow zero or more hosts, and make the name optional, since only a
host is needed to use nbd. This allows cinder to fully specify the
location of a sheepdog or rbd volume without depending on extra
configuration files, and lays the groundwork for supporting nbd.
Rename the internal attribute source_host to source_name to reflect
its usage in the libvirt xml, and add source_hosts and source_ports
attributes to store the new information.
Reviewed: https:/ /review. openstack. org/30790 github. com/openstack/ nova/commit/ 4d99a3486911bad c39be4e089bd410 6c03a8a671
Committed: http://
Submitter: Jenkins
Branch: master
commit 4d99a3486911bad c39be4e089bd410 6c03a8a671
Author: Josh Durgin <email address hidden>
Date: Fri May 24 17:31:17 2013 -0700
libvirt: improve the specification of network disks
Allow zero or more hosts, and make the name optional, since only a
host is needed to use nbd. This allows cinder to fully specify the
location of a sheepdog or rbd volume without depending on extra
configuration files, and lays the groundwork for supporting nbd.
Rename the internal attribute source_host to source_name to reflect
its usage in the libvirt xml, and add source_hosts and source_ports
attributes to store the new information.
Fixes: bug 1077817 libvirt- network- volume- support
blueprint better-
Signed-off-by: Josh Durgin <email address hidden>
Change-Id: I8ac431751692e5 2ba0786768cea99 6388962922d