Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1838231

Summary: RHV 4.4 beta Failed to deploy host on RHV Manager
Product: Red Hat Enterprise Virtualization Manager Reporter: Chetan Nagarkar <cnagarka>
Component: redhat-virtualization-hostAssignee: Nir Levy <nlevy>
Status: CLOSED ERRATA QA Contact: cshao <cshao>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4.0CC: cshao, lsvaty, mavital, mwest, nlevy, pelauter, peyu, qiyuan, sbonazzo, weiwang, yaniwang
Target Milestone: ovirt-4.4.1   
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: 2020-08-04 16:22:46 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 Chetan Nagarkar 2020-05-20 17:04:25 UTC
Description of problem:

Failed to deploy host on RHV Manager

The task failing on the Manager while deploying the host is mentioned below,
~~~
2020-05-20 11:02:17 CEST - TASK [ovirt-host-deploy-facts : Install Python3 for CentOS/RHEL8 hosts] ********
2020-05-20 11:02:23 CEST - fatal: [rhv.example.com]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}
2020-05-20 11:02:23 CEST - {
  "status" : "OK",
  "msg" : "",
  "data" : {
    "uuid" : "165cb89d-d907-4364-a792-7fe6d24194c3",
    "counter" : 26,
    "stdout" : "fatal: [rhv.example.com]: FAILED! => {\"changed\": false, \"msg\": \"Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried\", \"rc\": 1, \"results\": []}",
...
...
"task" : "Install Python3 for CentOS/RHEL8 hosts",
      "task_uuid" : "005056ad-93c2-805f-d9a8-000000000022",
      "task_action" : "yum",
      "task_args" : "",
      "task_path" : "/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml:37",
      "role" : "ovirt-host-deploy-facts",
      "host" : "rhv.example.com",
      "remote_addr" : "rhv.example.com",
      "res" : {
        "msg" : "Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried",
~~~

=> Failed task in playbook /usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml
~~~
- name: Install Python3 for CentOS/RHEL8 hosts
  yum:
    name: python3
    state: present
  when: el_ver|int >= 8
~~~

We have verified that the package is present on the system. 

~~~
$ grep python36 installed-rpms 
python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64        Tue May 19 20:57:18 2020

$ yum whatprovides python36

...
...
python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 : Interpreter of the Python programming language
Repo        : @System
Matched from:
Provide    : python3 = 3.6.8-2.module+el8.1.0+3334+5cb623d7
 
python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 : Interpreter of the Python programming language
Repo        : rhel-8-for-x86_64-appstream-rpms
Matched from:
Provide    : python3 = 3.6.8-2.module+el8.1.0+3334+5cb623d7
~~~

Version-Release number of selected component (if applicable):
rhvm-4.4.0-0.34.master.el8ev.noarch

How reproducible:
Install RHV host and add it to RHV Manager 4.4 beta


Actual results:
The RHV Host failed to deploy with ERROR:
020-05-20 11:02:23 IST - fatal: [rhvh.example.com]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}

Expected results:
RHV Host installed successfully.

Additional info:
-

Comment 8 errata-xmlrpc 2020-08-04 16:22:46 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