libvirt: per-instance sysinfo serial number

Registered by Matt Riedemann on 2018-10-17

A libvirt guest's serial number in the machine BIOS comes from the https://docs.openstack.org/nova/latest/configuration/config.html#libvirt.sysinfo_serial configuration, which defaults to reading it from the compute hosts' /etc/machine-id file or if that doesn't exist, reading it from the libvirt host capabilities. Either way, all VMs on the same host have the same serial number in the guest BIOS.

Details on sysinfo in libvirt can be found here: https://libvirt.org/formatdomain.html#elementsSysinfo

This blueprint is for adding the ability to have a per-instance serial number, which would likely just be the instance.uuid.

The use case is a VM is running licensed software which reads the serial number from the BIOS. In a disaster recovery situation where the guest is evacuated/rebuilt on another compute host, the serial number within the guest will change which will incur a new licensing fee for the guest running that licensed software. If the guest has a specific serial unique to itself, then the license essentially travels with the guest.

Blueprint information

Status:
Complete
Approver:
Alex Xu
Priority:
Low
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
Zhenyu Zheng
Definition:
Approved
Series goal:
Accepted for stein
Implementation:
Implemented
Milestone target:
milestone icon stein-3
Started by
Matt Riedemann on 2018-11-26
Completed by
Matt Riedemann on 2019-02-04

Related branches

Sprints

Whiteboard

We discussed this in the Oct 18 nova meeting [1] and there was agreement this is useful but we'd like to control the behavior per instance rather than per host, so we'll use flavor extra spec/image property to do that. I'll propose a short spec.

[1] http://eavesdrop.openstack.org/meetings/nova/2018/nova.2018-10-18-14.00.log.html#l-199

-- mriedem 20181018

Gerrit topic: https://review.openstack.org/#q,topic:bp/per-instance-libvirt-sysinfo-serial,n,z

Addressed by: https://review.openstack.org/612531
    Per-instance serial number (spec)

Addressed by: https://review.openstack.org/619953
    Per-instance serial number

Spec merged on 2019-01-09, approved for Stein. -- melwitt 20190110

Addressed by: https://review.openstack.org/634743
    Follow up for per-instance serial number change

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.