This change ensures that we're updating the instance device metadata
when attaching or detaching instance volumes or NICs.
Unlike the other Nova drivers, we're including all Cinder volumes
in the device metadata, not just the tagged ones. The reason is that
this allows Hyper-V guests to properly identify attached disk paths.
Note that the disk mountpoints (e.g. /dev/sdc) are ignored by the
Hyper-V driver. Also, we cannot override SCSI identifiers, unlike
the Libvirt driver, which will use volume IDs as SCSI IDs.
Reviewed: https:/ /review. openstack. org/511904 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=8326d2c43c3 e464f0c2e3b58bf 57b4ffb9a344e7
Committed: https:/
Submitter: Zuul
Branch: master
commit 8326d2c43c3e464 f0c2e3b58bf57b4 ffb9a344e7
Author: Lucian Petrut <email address hidden>
Date: Mon Oct 9 17:12:56 2017 +0300
Update device metadata when attaching disks/NICs
This change ensures that we're updating the instance device metadata
when attaching or detaching instance volumes or NICs.
Unlike the other Nova drivers, we're including all Cinder volumes
in the device metadata, not just the tagged ones. The reason is that
this allows Hyper-V guests to properly identify attached disk paths.
Note that the disk mountpoints (e.g. /dev/sdc) are ignored by the
Hyper-V driver. Also, we cannot override SCSI identifiers, unlike
the Libvirt driver, which will use volume IDs as SCSI IDs.
Closes-Bug: #1723431
Depends-On: I7a4c242c80b5b3 562bf9513deb890 71b5bb5bf28 4d64bc24574619c 18184d3d055
Depends-On: I6f2c6ecf71d325
Change-Id: I6853b1d167fe67 5435f3fb8f1fdb0 cf0b63bed65