[SRU] virt-install ignores --cloud-init when --location is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager (Debian) |
New
|
Unknown
|
|||
virt-manager (Ubuntu) |
Fix Released
|
Medium
|
Olivier Gayot | ||
Noble |
New
|
Undecided
|
Olivier Gayot |
Bug Description
[Impact]
* To run a fully automated Ubuntu server installation (autoinstall) using virt-install, we want to use a combination of:
* --cloud-init user-data=
* --extra-args autoinstall
* Unfortunately, when --location is used, the --cloud-init option gets silently ignored. This makes the installer start interactively ; instead of performing the installation automatically using the autoinstall configuration from the cloud-init user-data file.
* In certain scenarios, the --location option can be replaced by --cdrom (and then the --cloud-init option is honored). However, the --cdrom option is mutually exclusive with --extra-args ; so we can only get a partially automated installation (it requires confirmation from the user).
[Test plan]
* Ensuring that the following commands result in a fully automated (and successful) installation:
$ wget https:/
$ cat > autoinstall.yaml
#cloud-config
autoinstall:
version: 1
source:
id: ubuntu-
identity:
hostname: ubuntu
realname: ubuntu
username: ubuntu
password: $6$VDuw.
$ virt-install --noreboot --connect qemu:///session --disk size=10 --memory 1024 --virt-type kvm --location ubuntu-
[Where problems could occur]
It seems unlikely, but if someone relies on virt-install's current behavior (i.e., silently ignoring the --cloud-config option in the presence of --location), they might be surprised to witness a different behavior after virt-manager gets upgraded.
[Additional information]
* There is an upstream bug report [1] with a merged PR [2]
* As of time of writing, virt-manager FTBFS on noble because python-argcomplete regressed (see bug 2075315). Therefore, python-argcomplete needs to be accepted in noble-proposed before virt-install. Alternatively, we will need to request rebuilds of virt-install once python-argcomplete makes it to noble-proposed.
[1] https:/
[2] https:/
Related branches
- Ubuntu Sponsors: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 422 lines (+364/-2)7 files modifieddebian/changelog (+19/-0)
debian/control (+2/-2)
debian/patches/series (+4/-0)
debian/patches/upstream_build-use-setuptools.command.build-when-available.patch (+51/-0)
debian/patches/upstream_build-use-super.patch (+51/-0)
debian/patches/upstream_tests-cli-Adjust-hotplug-test-for-latest-libvirt.patch (+28/-0)
debian/patches/virtinstall-Fix-location-and-cloud-init-conflict.patch (+209/-0)
Changed in virt-manager (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in virt-manager (Debian): | |
status: | Unknown → New |
description: | updated |
description: | updated |
description: | updated |
summary: |
- virt-install ignores --cloud-init when --location is present + [SRU] virt-install ignores --cloud-init when --location is present |
Changed in virt-manager (Ubuntu Noble): | |
assignee: | nobody → Olivier Gayot (ogayot) |
description: | updated |
description: | updated |
Adding .debdiff, already forwarded to Debian.
PPA build: https:/ /launchpad. net/~ogayot/ +archive/ ubuntu/ oracular- proposed/ +build/ 28667379