[enhacement] Create and pass serial or wwn to VM block devices created via virsh pods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Newell Jensen |
Bug Description
When curtin gets support for maas-devicename -> serial/wwn-based symlinks it will become important to actually pass persistent identifiers to the hypervisor via MAAS, see
https:/
https:/
For virtio-blk devices this would mean using <serial> element in a domain xml file:
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<
<target dev='sda' bus='scsi'/>
<
<alias name='scsi0-
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
# QEMU CLI arg
-drive file=/var/
cat /sys/class/
a76f8801-
A UUID will be truncated as a serial number has a limited length.
For virtio-scsi devices
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<
<target dev='sda' bus='scsi'/>
<
<alias name='scsi0-
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='scsi' index='0' model='
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
</controller>
# QEMU CLI arg
-device scsi-hd,
by-id symlinks:
├── wwn-0x5000c5001
├── wwn-0x5000c5001
└── wwn-0x5000c5001
Relevant QEMU and libvirt commits:
https:/
https:/
https:/
https:/
Related branches
- MAAS Lander: Approve
- Blake Rouse (community): Approve
-
Diff: 57 lines (+9/-3)2 files modifiedsrc/provisioningserver/drivers/pod/tests/test_virsh.py (+5/-2)
src/provisioningserver/drivers/pod/virsh.py (+4/-1)
tags: | added: pods track |
Changed in maas: | |
milestone: | none → 2.5.0alpha2 |
importance: | Undecided → Medium |
status: | New → Triaged |
summary: |
- Create and pass serial or wwn to VM block devices created via virsh pods + [enhacement] Create and pass serial or wwn to VM block devices created + via virsh pods |
tags: | added: wishlist |
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |