vdi_attached_here retrieves a "guess" of the device name from XAPI. When using HVM guests, XAPI assumes that the guest is Windows and therefore returns "hdb". This is clearly wrong.
We need to change the _wait_for_dev function to iterate over sysfs to find the correct disk.
e.g. assuming the UUID of the disk plugged was 8bf0e9c2-b636-4e43-a1a4-e02a339d7d82:
{quote}
root@DevStackOSDomU:~# xenstore-read domid
35
root@DevStackOSDomU:~# ls -d /sys/devices/vbd-*
/sys/devices/vbd-51712 /sys/devices/vbd-51728
Identified + confirmed this issue.
vdi_attached_here retrieves a "guess" of the device name from XAPI. When using HVM guests, XAPI assumes that the guest is Windows and therefore returns "hdb". This is clearly wrong.
We need to change the _wait_for_dev function to iterate over sysfs to find the correct disk. b636-4e43- a1a4-e02a339d7d 82: DomU:~# xenstore-read domid DomU:~# ls -d /sys/devices/vbd-* vbd-51712 /sys/devices/ vbd-51728
e.g. assuming the UUID of the disk plugged was 8bf0e9c2-
{quote}
root@DevStackOS
35
root@DevStackOS
/sys/devices/
root@DevStackOS DomU:~# xenstore-read /local/ domain/ 0/backend/ vbd/35/ 51712/vdi c13f-c7dd- b0af-cfb7e8de51 8c\\/9dcb54df- 71f0-46eb- 8db5-400f62e686 29"]
["VDI", "1a6bad09-
root@DevStackOS DomU:~# xenstore-read /local/ domain/ 0/backend/ vbd/35/ 51728/vdi c13f-c7dd- b0af-cfb7e8de51 8c\\/8bf0e9c2- b636-4e43- a1a4-e02a339d7d 82"]
["VDI", "1a6bad09-
root@DevStackOS DomU:~# ls /sys/devices/ vbd-51728/ block
xvdb
{/quote}