Make libvirt use device aliases for detach

Registered by Dan Smith

Currently we identify devices in Libvirt guest XML by a variety of methods, which differs based on the device type (at least). Libvirt now provides a device alias mechanism by which we can tie virtual guest devices to an identifier we can use to look them up in a stable and generic way. Nova should move to using that, which will increase consistency, decrease some complexity, and also work around some issues with our current strategy.

Blueprint information

Status:
Complete
Approver:
Sylvain Bauza
Priority:
Undefined
Drafter:
Dan Smith
Direction:
Approved
Assignee:
Dan Smith
Definition:
Approved
Series goal:
Accepted for 2024.1
Implementation:
Implemented
Milestone target:
None
Started by
Sylvain Bauza
Completed by
Sylvain Bauza

Related branches

Sprints

Whiteboard

[20231114 bauzas] Spec got approved for Caracal

Series can be found in https://review.opendev.org/q/topic:bp%252Flibvirt-dev-alias

Gerrit topic: https://review.opendev.org/#/q/topic:bp/libvirt-dev-alias

Addressed by: https://review.opendev.org/c/openstack/nova/+/893068
    Detach disks using alias when possible

Addressed by: https://review.opendev.org/c/openstack/nova/+/900935
    DNM: Debug some volumes not setting alias

Addressed by: https://review.opendev.org/c/openstack/nova/+/892800
    Support setting alias on libvirt disks

Addressed by: https://review.opendev.org/c/openstack/nova/+/892801
    Set libvirt device alias for volumes

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.