Bug 1899378

Summary: rhel-7-server-rhvh-4.3-eus-rpms repo is unavailable
Product: Red Hat Enterprise Virtualization Manager Reporter: peyu
Component: redhat-release-virtualization-hostAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: peyu
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.10CC: arachman, aromito, asrodrig, cshao, dfediuck, ftan, lsvaty, mavital, mkalinin, nlevy, peyu, qiyuan, sbonazzo, sgoodman, shlei, weiwang, yaniwang, yturgema
Target Milestone: ovirt-4.3.13Keywords: TestBlocker, ZStream
Target Release: 4.3.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-release-virtualization-host-4.3.13-2.el7ev , redhat-virtualization-host-4.3.13-20210127.0.el7_9 Doc Type: Known Issue
Doc Text:
When performing an upgrade of the Red Hat Virtualization Host using the command `yum update`, the yum repository for RHV 4.3 EUS is unreachable As a workaround, run the following command: `# yum update --releasever=7Server`
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-03 10:37:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description peyu 2020-11-19 02:57:50 UTC
Description of problem:
Failed to get rhel-7-server-rhvh-4.3-eus-rpms repo for RHVH 4.3.10

Version-Release number of selected component (if applicable):
RHVH 4.3.12 GA

How reproducible:
100%

Steps to Reproduce:
1. Inatall redhat-virtualization-host-4.3.10-20200615.0.el7_8
2. Register and subscribe
   # subscription-manager register --auto-attach
3. Enable the repo
   # subscription-manager repos --disable=* --enable=rhel-7-server-rhvh-4.3-eus-rpms
4. # yum repolist all


Actual results:
~~~~~~
# yum repolist all
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager,
              : vdsmupgrade, versionlock
https://cdn.redhat.com/content/eus/rhel/server/7/7RedHatVirtualizationHost/x86_64/rhvh/4.3/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

https://cdn.redhat.com/content/eus/rhel/server/7/7RedHatVirtualizationHost/x86_64/rhvh/4.3/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
repo id                                                                 repo name                                        status
jb-coreservices-textonly-1-for-middleware-rpms/x86_64                   Red Hat JBoss Core Services Text-Only Advisories disabled
jb-eap-textonly-1-for-middleware-rpms/x86_64                            Red Hat JBoss Enterprise Application Platform Te disabled
rhel-7-server-rhvh-4-beta-debug-rpms/x86_64                             Red Hat Virtualization Host 7 Beta (Debug RPMs)  disabled
rhel-7-server-rhvh-4-beta-rpms/x86_64                                   Red Hat Virtualization Host 7 Beta (RPMs)        disabled
rhel-7-server-rhvh-4-beta-source-rpms/x86_64                            Red Hat Virtualization Host 7 Beta (Source RPMs) disabled
rhel-7-server-rhvh-4-debug-rpms/x86_64                                  Red Hat Virtualization Host 7 (Debug RPMs)       disabled
rhel-7-server-rhvh-4-rpms/x86_64                                        Red Hat Virtualization Host 7 (RPMs)             disabled
rhel-7-server-rhvh-4-source-rpms/x86_64                                 Red Hat Virtualization Host 7 (Source RPMs)      disabled
rhel-7-server-rhvh-4.2-eus-debug-rpms/7RedHatVirtualizationHost/x86_64  Red Hat Virtualization Host 4.2 EUS (Debug RPMs) disabled
rhel-7-server-rhvh-4.2-eus-rpms/7RedHatVirtualizationHost/x86_64        Red Hat Virtualization Host 4.2 EUS (RPMs)       disabled
rhel-7-server-rhvh-4.2-eus-source-rpms/7RedHatVirtualizationHost/x86_64 Red Hat Virtualization Host 4.2 EUS (Source RPMs disabled
rhel-7-server-rhvh-4.3-eus-debug-rpms/7RedHatVirtualizationHost/x86_64  Red Hat Virtualization Host 4.3 EUS (Debug RPMs) disabled
rhel-7-server-rhvh-4.3-eus-rpms/7RedHatVirtualizationHost/x86_64        Red Hat Virtualization Host 4.3 EUS (RPMs)       enabled: 0
rhel-7-server-rhvh-4.3-eus-source-rpms/7RedHatVirtualizationHost/x86_64 Red Hat Virtualization Host 4.3 EUS (Source RPMs disabled
repolist: 0
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
~~~~~~

Expected results:
rhel-7-server-rhvh-4.3-eus-rpms is availble

Additional info:

Comment 1 Fengshuang Tan 2020-11-24 05:09:40 UTC
There was one similar bug for RHVH 4.2, you can refer to that one for the resolution:

Bug 1729425 - Failed to repoquery RHVH 4.2 EUS repos rhel-7-server-rhvh-4.2-eus-*
The code fix for package redhat-release-virtualization-host is in errata 44250.

Comment 4 Assaf 2020-11-26 08:52:00 UTC
Since rhel-7.9 is the latest rhel release (7server) this is the correct path:

That's the correct path https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/rhvh-build/4.3/os/repodata/

Comment 7 Fengshuang Tan 2020-11-27 03:53:17 UTC
Assaf and Nir,

I have one concern. I noticed all rhvh repos under 7Server now, if we use 7Server instead of 7.9 in the code, I have one question - what should the RHVH 4.3 EUS repos work after 7.10 released? I think 7Server will be for the latest 7.10 then, how about those rhvh repos, still under 7Server?

Comment 8 peyu 2020-11-27 05:16:50 UTC
QE will verify this bug after the new build(contains "redhat-virtualization-host-image-update-placeholder-4.3.13-1.el7ev.noarch.rpm") GA.

Comment 11 Sandro Bonazzola 2020-11-30 12:35:46 UTC
Workaround for RHV-H 4.3:

# yum update --releasever=7Server

Comment 19 Sandro Bonazzola 2021-01-08 17:13:59 UTC
Moving back to assigned since we will need to rebuild the image consuming a few updates.

Comment 24 peyu 2021-01-29 04:56:11 UTC
QE verified this issue on the stage CDN.
1) "redhat-virtualization-host-4.3.12-20201108.0.el7_9" is in the "rhel-7-server-rhvh-4.3-eus-rpms" repository.
2) "redhat-virtualization-host-4.3.13-20210127.0.el7_9" is in the "rhel-7-server-rhvh-4-rpms" repository.

Test Steps:
1. Install RHVH-4.3-20200616.0-RHVH-x86_64-dvd1.iso
2. Create user in Ethel and add SKU entitlement for employee: ES0113909
3. Register and subscribe
   # subscription-manager config --rhsm.baseurl=https://cdn.stage.redhat.com
   # subscription-manager config --server.hostname=subscription.rhsm.stage.redhat.com
   # subscription-manager register
   # subscription-manager attach --auto

4. # yum repolist
~~~~~~
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager,
              : vdsmupgrade, versionlock
rhel-7-server-rhvh-4.3-eus-rpms                                                                           | 4.0 kB  00:00:00     
(1/3): rhel-7-server-rhvh-4.3-eus-rpms/x86_64/group                                                       |  124 B  00:00:01     
(2/3): rhel-7-server-rhvh-4.3-eus-rpms/x86_64/updateinfo                                                  | 1.2 kB  00:00:01     
(3/3): rhel-7-server-rhvh-4.3-eus-rpms/x86_64/primary_db                                                  | 2.1 kB  00:00:01     
repo id                                                    repo name                                                       status
rhel-7-server-rhvh-4.3-eus-rpms/x86_64                     Red Hat Virtualization Host 4.3 EUS (RPMs)                      1
repolist: 1
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
~~~~~~

5. # yum update
~~~~~~
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager,
              : vdsmupgrade, versionlock
Resolving Dependencies
--> Running transaction check
---> Package redhat-virtualization-host-image-update.noarch 0:4.3.12-20201108.0.el7_9 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.3.10-2.el7ev will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                                     Arch       Version                        Repository                           Size
=================================================================================================================================
Installing:
 redhat-virtualization-host-image-update     noarch     4.3.12-20201108.0.el7_9        rhel-7-server-rhvh-4.3-eus-rpms     758 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.3.10-2.el7ev

Transaction Summary
=================================================================================================================================
Install  1 Package

Total download size: 758 M
Is this ok [y/d/N]: n
Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2021-01-29.04-34.y95J_3.yumtx
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
~~~~~~


6. # subscription-manager repos --disable=* --enable=rhel-7-server-rhvh-4-rpms
7. # yum repolist
~~~~~~
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager,
              : vdsmupgrade, versionlock
Excluding 10 updates due to versionlock (use "yum versionlock status" to show them)
repo id                                                    repo name                                                       status
rhel-7-server-rhvh-4-rpms/x86_64                           Red Hat Virtualization Host 7 (RPMs)                            560
repolist: 560
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
~~~~~~

8. # yum update
~~~~~~
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager,
              : vdsmupgrade, versionlock
Excluding 10 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package redhat-virtualization-host-image-update.noarch 0:4.3.13-20210127.0.el7_9 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.3.10-2.el7ev will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                                       Arch         Version                        Repository                       Size
=================================================================================================================================
Installing:
 redhat-virtualization-host-image-update       noarch       4.3.13-20210127.0.el7_9        rhel-7-server-rhvh-4-rpms       761 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.3.10-2.el7ev

Transaction Summary
=================================================================================================================================
Install  1 Package

Total download size: 761 M
Is this ok [y/d/N]: 
~~~~~~

I’m not sure if the channel is populated. 
Is this the result we expect?

Comment 25 peyu 2021-02-01 08:11:01 UTC
The result in Comment24 is expected, thanks to Sandro for this message in google chat.
Will move the bug status to "VERIFIED".

Comment 27 errata-xmlrpc 2021-02-03 10:37:39 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 (Important: RHV-H security, bug fix, enhancement update (redhat-virtualization-host) 4.3.13), 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:0395