Bug 1755156 - [RFE] Cockpit: RHV deployment missing local appliance installation
Summary: [RFE] Cockpit: RHV deployment missing local appliance installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: cockpit-ovirt
Version: 4.3.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.5
: 4.4.5
Assignee: Aviv Turgeman
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-24 21:54 UTC by schandle
Modified: 2021-04-14 11:39 UTC (History)
13 users (show)

Fixed In Version: cockpit-ovirt-0.14.20
Doc Type: Enhancement
Doc Text:
In this release, it is now possible to enter a path to the OVA archive for local appliance installation using the cockpit-ovirt UI.
Clone Of:
Environment:
Last Closed: 2021-04-14 11:38:43 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
aturgema: needinfo-
weiwang: testing_plan_complete+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:1184 0 None None None 2021-04-14 11:39:25 UTC
oVirt gerrit 113593 0 master MERGED RFE - Cockpit: deployment missing local appliance installation 2021-02-24 08:10:21 UTC

Description schandle 2019-09-24 21:54:34 UTC
Description of problem:
Downloaded rhvm-appliance to local host, tried to install manger via Cockpit.  There is not an option to set the path for the appliance. 

Version-Release number of selected component (if applicable):
cockpit-195-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Login to cockpit host1:9090
2. Virtualization 
3. Hosted Engine 
4. Start Hosted Engine or Hyperconverged

Actual results:


Expected results:
The equivalent option to step 7 in Deploying the Self-Hosted Engine Using the Command Line.  

Additional info:
If you want to use a custom appliance for the virtual machine installation, enter the path to the OVA archive. Otherwise, leave this field empty to use the RHV-M Appliance.

Comment 1 Sandro Bonazzola 2020-03-11 08:41:36 UTC
Let's verify this issue is reproducible. Wei can you please try to reproduce?

Comment 2 Sandro Bonazzola 2020-03-11 08:43:46 UTC
In theory installing the rpm should make cockpit happy.

Comment 3 Martin Tessun 2020-03-11 09:08:31 UTC
Afaik since RHV 4.0 you need to point to the rhvm-image with a config file that is installed using rhvm-appliance - there is no way to set the path manually during SHE installation neither on CLI nor on cockpit (as it is running the CLI script):

[root@inf4 ~]# cat /etc/ovirt-hosted-engine/10-appliance.conf
description=The RHV-M Appliance image (OVA)
version=4.3-20200128.0.el7
path=/usr/share/ovirt-engine-appliance/rhvm-appliance-4.3-20200128.0.el7.ova
sha1sum=2e3ae8a273913e60674611f2d8363de59a4f7273
[root@inf4 ~]# 

Also rhvm-appliance rpm does install this file:
[root@inf4 ~]# rpm -q -l rhvm-appliance
/etc/ovirt-hosted-engine/10-appliance.conf
/usr/share/ovirt-engine-appliance
/usr/share/ovirt-engine-appliance/rhvm-appliance-4.3-20200128.0.el7.ova
[root@inf4 ~]# 

I will doublecheck that the manual entering of the path hasn't been re-added, but I believe this behaviour is expected.

Comment 4 Martin Tessun 2020-03-11 10:00:29 UTC
Looks like hosted-engine-delploy does ask for the path again (so this seem to have been re-added):


          please specify the path to the OVA archive you would like to use
          (leave it empty to skip, the setup will use rhvm-appliance rpm installing it if missing): 

Checking cockpit for the same steps there is no way to add a path to the VM appliance. No options are presented until Prepare VM.
Clicking Prepare VM does run the ansible script for setting up SHE - ending with downloading the appliance image:
[ INFO ] ok: [localhost]
[ INFO ] TASK [ovirt.hosted_engine_setup : Install ovirt-engine-appliance rpm]

So the workaround would be to install rhvm-appliance rpm and not just download it. Anyways we should have the options to specify an image in cockpit as well, as it is present in the CLI. I would expect that option within the "Advanced" section.

Doing the same installation (disconnected) with rhevm-appliance installed using cockpit:
The flow looks pretty much the same - no option for setting the rhvm-appliance. Prepare VM though uses the installed rhvm-appliance for installation.

That said, as the CLI flow has again the option to manually specify the image, we should add this option to cockpit as well.

Comment 5 Wei Wang 2020-03-11 11:09:27 UTC
This is a RFE bug. I can reproduce this bug.

For cockpit:
No option displays in cockpit UI for Hosted engine to specify the path of ovirt-engine-appliance.

For CLI:
There is an option to specify the path of ovirt-engine-appliance
          If you want to deploy with a custom engine appliance image,
          please specify the path to the OVA archive you would like to use
          (leave it empty to skip, the setup will use rhvm-appliance rpm installing it if missing): Shared connection to 10.73.73.105 closed.
[weiwang@192 ~]$ 

No matter install rhvm-appliance or download it.

Comment 9 Wei Wang 2021-03-03 01:30:59 UTC
The latest build rhvh-4.4.5.3-0.20210215.0 contains cockpit-ovirt-dashboard-0.14.19-1.el8ev.noarch, so QE will verify this bug after the new build which includes cockpit-ovirt-0.14.20 is coming.

Comment 13 Eli Marcus 2021-03-25 17:29:38 UTC
Hi Aviv, please review this updated doc text: 

In this release, it is now possible to enter a path to the OVA archive for local appliance installation using the cockpit-ovirt UI

Comment 14 Aviv Turgeman 2021-03-29 09:36:11 UTC
Hi Eli

sorry for late response, and yes this looks good to me

Comment 15 Wei Wang 2021-04-01 11:00:07 UTC
Test Version:
RHVH-4.4-20210331.0-RHVH-x86_64-dvd1.iso
cockpit-ws-224.2-1.el8.x86_64
subscription-manager-cockpit-1.27.18-1.el8_3.noarch
cockpit-storaged-224.2-1.el8.noarch
cockpit-bridge-224.2-1.el8.x86_64
cockpit-224.2-1.el8.x86_64
cockpit-system-224.2-1.el8.noarch
cockpit-ovirt-dashboard-0.14.20-1.el8ev.noarch
ovirt-hosted-engine-setup-2.4.9-4.el8ev.noarch
ovirt-hosted-engine-ha-2.4.6-1.el8ev.noarch

Test Steps:
1. Clean install RHVH
2. Install rhvm-appliance-4.4-20210310.0.el8ev.rpm to the host
3. Move the rhvm-appliance-4.4-20210310.0.el8ev.ova to /root/
4. Remove the rhvm-appliance package from this host
5. Fill the OVA Archive Path in Advance of VM setting window within cockpit hosted engine wizard.  e.g: /root/rhvm-appliance-4.4-20210310.0.el8ev.ova
6. Fill other right parameters and begin to deploy hosted engine

Test Result
The rhvm-appliance can be extracted successfully, and hosted engine deploy successful.

Bug is fixed, move it to "VERIFIED"

Comment 20 errata-xmlrpc 2021-04-14 11:38:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV RHEL Host (ovirt-host) 4.4.z [ovirt-4.4.5] security, bug fix, enhancement), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1184


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