Bug 1652979
Summary: | [machines] When creating a VM with cockpit the install button never appears after the first attempt | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Sterling Alexander <stalexan> |
Component: | cockpit-appstream | Assignee: | Katerina Koukiou <kkoukiou> |
Status: | CLOSED WONTFIX | QA Contact: | YunmingYang <yunyang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | knoel, mpitt, qiyuan, skobyda, usurse |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-30 14:07:38 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sterling Alexander
2018-11-23 19:54:31 UTC
This is a hard problem to solve. In order to give user option to re-try the installation, we need to know if the installation finished successfully or not. As far as I know, there is no way to know if the installation finished successfully from outside (e.g. by asking libvirt). There are few option how to figure it out from inside the guest: guestfs could help a bit, it could tell in some cases that the installation went wrong, but it doesn't cover all cases so it would give us a lot of false positives about successful installation. So the prediction would be inaccurate. Anaconda probably has some way to determine successful installation. But that approach would work only for distros supported by anaconda, and we would have to come up with a lot of different approaches for different distros. But I personally think this goes beyond cockpit's responsibility. > guestfs could help a bit, it could tell in some cases that the installation went wrong
I disagree. The notion of "successful installation" is impossible to pin down on arbitrary images, it would need assumptions about particular installers (anaconda, ubiquity, debian-installer, cloud-init, ignition, and a gazillion others) -- this is the path to the dark side. Even within one installer, it's not clearly defined what "successful" means, other than perhaps "the VM boots without the installer medium up until a point where it responds to ping" (but even that might not always be true).
So this "successful?" decision is best left to the user. Right now it should be possible to reattempt the install by just switching the boot device to the ISO or PXE again, or by just deleting the VM and recreating it.
Adding a "reinstall" button in the UI for this corner case may do more harm than good at first sight: Aside from being clutter in most cases, the XML would also need to store the installation source indefinitely, URLs/local files change, etc.
So IMHO we should leave this alone, there are enough buttons in the UI already to redo a failed install.
|