Bug 2318461
| Summary: | packaged virt-install permits --unattended and --cloud-init whereas upstream fails | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Emanuel Buholzer <emanuel0xb> |
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | berrange, crobinso, nixuser, philip.wyett |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | virt-manager-5.0.0-1.fc41 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-12-15 02:27:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
FEDORA-2024-eb0b085f84 (virt-manager-5.0.0-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-eb0b085f84 FEDORA-2024-eb0b085f84 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-eb0b085f84` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-eb0b085f84 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-eb0b085f84 (virt-manager-5.0.0-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. |
Mixing --unattended and --cloud-init should fail, as they cannot be used at the same time. For example, defining an admin password file with the unattended option always overrides the generated root password with the cloud-init option root-password-generate=on. With some OS the admin password needs to be set, when --unattended is set, hence the cloud-init option root-password-generate=on can never work Locally installed package virt-install-4.1.0-5.fc40.noarch Tested against upstream commit 31eab9b46a8c5787c45665b1fa651accf3e9110e Reproducible: Always Steps to Reproduce: 1. echo "root" > admin-pass 2. virt-install --debug --name domtest --install rocky9 --unattended profile=jeos,admin-password-file=admin-pass --cloud-init disable=on,root-password-generate=on Actual Results: Regular installation proceeds, but root password is not generated. Expected Results: [Mon, 14 Oct 2024 01:09:45 virt-install 8105] DEBUG (cli:256) File "/home/emanuel/code/virt-manager/./virt-install", line 9, in <module> virtinstall.runcli() File "/home/emanuel/code/virt-manager/./virtinst/virtinstall.py", line 1236, in runcli sys.exit(main()) File "/home/emanuel/code/virt-manager/./virtinst/virtinstall.py", line 1223, in main guest, installer = build_guest_instance(conn, options) File "/home/emanuel/code/virt-manager/./virtinst/virtinstall.py", line 652, in build_guest_instance installer = build_installer(options, guest, installdata) File "/home/emanuel/code/virt-manager/./virtinst/virtinstall.py", line 415, in build_installer cli.fail_conflicting("--unattended", "--cloud-init") File "/home/emanuel/code/virt-manager/./virtinst/cli.py", line 487, in fail_conflicting fail(msg) File "/home/emanuel/code/virt-manager/./virtinst/cli.py", line 256, in fail log.debug("".join(traceback.format_stack())) [Mon, 14 Oct 2024 01:09:45 virt-install 8105] ERROR (cli:257) Cannot use --unattended and --cloud-init at the same time