Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1684422 - [machines]There should be a warning when https://*.iso is used as the installation resource
Summary: [machines]There should be a warning when https://*.iso is used as the install...
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: 8.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Katerina Koukiou
QA Contact: YunmingYang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-01 08:58 UTC by YunmingYang
Modified: 2019-04-11 08:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description YunmingYang 2019-03-01 08:58:41 UTC
Description of problem:
Currently,when https://*.iso is used as the installation resource, vm will be created, but installation will fail with the following error:


"Error validating install location: Could not find an installable distribution at 'https://download.fedoraproject.org/pub/fedora/linux/releases/28/Server/x86_64/os/images/boot.iso'.The location must be the root directory of an install tree. See virt-install man page for various distro examples."


As https://*.iso is not supported, in order to be more user friendly, it's better to show a warning message when https://*.iso is used, and disable the create button to terminate vm creation process until correct parameters are setted.

Version-Release number of selected component (if applicable):
cockpit-machines-184.1-1.el8.noarch
libvirt-dbus-1.2.0-2.module+el8+2704+d2eddeb5.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Login to cockpit and open Virtual Machines page.
2.Click 'Create VM' button to open the vm creation dialogue window
3.Choose the url as the installation source type
4.Input a https url of iso for the installation source,such as https://download.fedoraproject.org/pub/fedora/linux/releases/28/Server/x86_64/os/images/boot.iso
5.Check 'Immediately Start' checkbox,then click 'Create' button

Actual results:
1. the VM was created,but installation failed with the error above

Expected results:
1.There is a warning saying "https://*.iso is not supported" when https://*.iso is used as the installation source,and the create button should be disabled.

Additional info:

Comment 1 Martin Pitt 2019-03-04 09:47:53 UTC
Katerina, I thought that creating a VM from an iso was supported? We do have the --cdrom install method in the code at least.

This doesn't seem to be an RFE, but an actual bug, so adjusting the title.

Comment 2 Andreas Nilsson 2019-03-08 13:36:19 UTC
Martin, we support installing from local ISO and installing from http OS tree, but not installing a remote ISO served over http.
The UI is probably a bit vague here. Currently it does say URL as the Installation Source Type. Maybe "Installation Tree" or something similar would be clearer. It would also help if the error was inline instead of telling you only after it started creating the VM.

Comment 3 Katerina Koukiou 2019-04-11 08:54:30 UTC
https://github.com/cockpit-project/cockpit/pull/11516

This PR allows using ISOs on URLs.


Note You need to log in before you can comment on or make changes to this bug.