Bug 1822089 - Task "ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages" fail during hosted engine deployment via cockpit
Summary: Task "ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages" fail ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.1
: ---
Assignee: Nir Levy
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-08 08:40 UTC by Wei Wang
Modified: 2020-08-04 16:22 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 16:22:45 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
issue picture (41.87 KB, image/png)
2020-04-08 08:40 UTC, Wei Wang
no flags Details
log files (9.67 MB, application/gzip)
2020-04-08 08:43 UTC, Wei Wang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:3316 0 None None None 2020-08-04 16:22:58 UTC

Description Wei Wang 2020-04-08 08:40:07 UTC
Created attachment 1677176 [details]
issue picture

Description of problem:
Deploy hosted engine via cockpit, after subscription-manager and insights-client registered. Task "ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages" displays error message.
[ INFO ] TASK [ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages]
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 10, "changed": false, "msg": "Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}

Version-Release number of selected component (if applicable):
rhvh-4.4.0.16-0.20200401.0
cockpit-bridge-211.3-1.el8.x86_64
cockpit-ws-211.3-1.el8.x86_64
cockpit-dashboard-211.3-1.el8.noarch
subscription-manager-cockpit-1.26.15-1.el8.noarch
cockpit-storaged-211.3-1.el8.noarch
cockpit-211.3-1.el8.x86_64
cockpit-ovirt-dashboard-0.14.3-1.el8ev.noarch
cockpit-system-211.3-1.el8.noarch
ovirt-hosted-engine-setup-2.4.3-2.el8ev.noarch
ovirt-hosted-engine-ha-2.4.2-1.el8ev.noarch
rhvm-appliance-4.4-20200403.0.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Clean install rhvh-4.4.0.16-0.20200401.0
2. subscription-manager register successful
3. insights-client --register successful
4. Deploy hosted engine via cockpit

Actual results:
Task "ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages" fail during hosted engine deployment via cockpit

Expected results:
Hosted engine deploy successful without error

Additional info:

Comment 1 Wei Wang 2020-04-08 08:43:50 UTC
Created attachment 1677181 [details]
log files

Comment 2 Sandro Bonazzola 2020-04-09 07:31:53 UTC
This seems to be a temporary glitch in rhel-8-for-x86_64-appstream-rpms channel. But why was this repo enabled on rhvh-4.4.0.16-0.20200401.0 ?
Moving to downstream.

Comment 3 Wei Wang 2020-04-09 09:16:56 UTC
(In reply to Sandro Bonazzola from comment #2)
> This seems to be a temporary glitch in rhel-8-for-x86_64-appstream-rpms
> channel. But why was this repo enabled on rhvh-4.4.0.16-0.20200401.0 ?
> Moving to downstream.

Only register to RHSM, not executing any enable operation. It will has pre-enabled some repos.
[root@hp-dlxxxx-xxxx var]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1

there is no rhvh 4.4 of rhel 8 repo can be enabled in the repos list.

Comment 4 Sandro Bonazzola 2020-04-14 07:41:47 UTC
channels mentioned in comment #3 shouldn't be auto enabled, seems like a configuration issue for the product detected.
Moving to RHV-H.

Comment 9 Martin Tessun 2020-04-21 07:47:34 UTC
Looking at c#3 I believe the reason is that RHVH 4.4 for RHEL 8 is not yet released. As such subscription manager attaches the "next available" sensible SKU - which is a RHEL 8 SKU.

I would retest once we have official RHVH 4.4 repos available somewhere.

Cheers,
Martin

Comment 10 Martin Tessun 2020-04-21 07:54:30 UTC
What does "subscription-manager list" show? I expect this is showing a RHEL 8 host instead of RHVH 4.4 - RHVH 4.3 does show it correctly (see below), so RHVH 4.4 should also be a RHV Host - but there are no repos for RHEL8, so I expect it shows as a RHEL 8 system.

# subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Virtualization Host
Product ID:     328
Version:        4.3
Arch:           x86_64
Status:         Subscribed

@Wei: Please also see my previous comment.

Comment 11 Wei Wang 2020-04-21 10:01:06 UTC
(In reply to Martin Tessun from comment #10)
> What does "subscription-manager list" show? I expect this is showing a RHEL
> 8 host instead of RHVH 4.4 - RHVH 4.3 does show it correctly (see below), so
> RHVH 4.4 should also be a RHV Host - but there are no repos for RHEL8, so I
> expect it shows as a RHEL 8 system.
> 
> # subscription-manager list
> +-------------------------------------------+
>     Installed Product Status
> +-------------------------------------------+
> Product Name:   Red Hat Virtualization Host
> Product ID:     328
> Version:        4.3
> Arch:           x86_64
> Status:         Subscribed
> 
> @Wei: Please also see my previous comment.

It show two products.
[root@hp-dlxxxgx-xx ~]# subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Virtualization Host
Product ID:     328
Version:        4.4
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/03/2014
Ends:           01/01/2022

Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.2
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/03/2014
Ends:           01/01/2022

Comment 12 Sandro Bonazzola 2020-06-09 07:37:25 UTC
Please retest with latest build, should be already fixed  by changing the pem files shipped in the build

Comment 13 Wei Wang 2020-06-09 13:30:05 UTC
Test with rhvh-4.4.1.1-0.20200603.0,
[root@hp-dl388g9-04 ~]# subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Virtualization Host
Product ID:     328
Version:        4
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/03/2014
Ends:           01/01/2022

Hosted engine deploy successfully.

Bug is fixed, move it to "VERIFIED"

Comment 16 errata-xmlrpc 2020-08-04 16:22:45 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 (RHV Host (redhat-virtualization-host) 4.4), 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/RHEA-2020:3316


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