Bug 1643397
Summary: | Satellite registration fails for OCP 3.10 and OCP 3.11 installation with openshift-ansible | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | broskos |
Component: | Installer | Assignee: | Russell Teague <rteague> |
Installer sub component: | openshift-ansible | QA Contact: | Johnny Liu <jialiu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | aos-bugs, jokerman, mgugino, mmccomas, mtaru |
Version: | 3.11.0 | Keywords: | Reopened |
Target Milestone: | --- | ||
Target Release: | 3.11.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Required packages are not installed for Satellite registration to complete successfully.
Consequence: Satellite registration fails and openshift packages are not available.
Fix: Moves the install of required packages earlier in the subscription process to ensure satellite subscription succeeds.
Result: Openshift packages are available from Satellite.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-18 14:52:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
broskos
2018-10-26 07:48:54 UTC
This can probably be fixed in 3.11 and be backported to various releases. Thanks for the code reference however there appear to be no active cases related to this bug. As such we're closing this bug in order to focus on bugs that are still tied to active customer cases. Please re-open this bug if you feel it was closed in error or a new active case is attached. We'd also be willing to accept a pull request too. Verified this bug with openshift-ansible-3.11.154-1.git.0.7a11cbe.el7.noarch, and PASS. $ ansible-playbook -i /tmp/qe-inventory-host-file /usr/share/ansible/openshift-ansible/playbooks/byo/rhel_subscribe.yml -vv <--snip--> PLAY [Subscribe hosts, update repos and update OS packages] ********************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************** task path: /usr/share/ansible/openshift-ansible/playbooks/byo/rhel_subscribe.yml:4 ok: [ci-vm-10-0-151-156.hosted.upshift.rdu2.redhat.com] META: ran handlers TASK [rhel_subscribe : fail] ***************************************************************************************************************************************** task path: /usr/share/ansible/openshift-ansible/roles/rhel_subscribe/tasks/main.yml:2 skipping: [ci-vm-10-0-151-156.hosted.upshift.rdu2.redhat.com] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [rhel_subscribe : Install Red Hat Subscription manager] ********************************************************************************************************* task path: /usr/share/ansible/openshift-ansible/roles/rhel_subscribe/tasks/main.yml:6 ok: [ci-vm-10-0-151-156.hosted.upshift.rdu2.redhat.com] => {"attempts": 1, "changed": false, "msg": "", "rc": 0, "results": ["subscription-manager-1.24.13-3.el7_7.x86_64 providing subscription-manager is already installed"]} TASK [rhel_subscribe : Is host already registered?] ****************************************************************************************************************** task path: /usr/share/ansible/openshift-ansible/roles/rhel_subscribe/tasks/main.yml:13 ok: [ci-vm-10-0-151-156.hosted.upshift.rdu2.redhat.com] => {"changed": false, "cmd": ["subscription-manager", "version"], "delta": "0:00:01.155877", "end": "2019-11-05 06:32:09.011204", "rc": 0, "start": "2019-11-05 06:32:07.855327", "stderr": "", "stderr_lines": [], "stdout": "server type: This system is currently not registered.\nsubscription management server: 2.9.17-1\nsubscription management rules: 5.37\nsubscription-manager: 1.24.13-3.el7_7", "stdout_lines": ["server type: This system is currently not registered.", "subscription management server: 2.9.17-1", "subscription management rules: 5.37", "subscription-manager: 1.24.13-3.el7_7"]} TASK [rhel_subscribe : Satellite preparation] ************************************************************************************************************************ task path: /usr/share/ansible/openshift-ansible/roles/rhel_subscribe/tasks/satellite.yml:2 [WARNING]: Consider using the yum, dnf or zypper module rather than running rpm. If you need to use command because yum, dnf or zypper is insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message. fatal: [ci-vm-10-0-151-156.hosted.upshift.rdu2.redhat.com]: FAILED! => {"changed": true, "cmd": ["rpm", "-Uvh", "http://satellite6.home.brentandkrysti.com/pub/katello-ca-consumer-latest.noarch.rpm"], "delta": "0:00:00.184275", "end": "2019-11-05 06:32:09.616389", "msg": "non-zero return code", "rc": 1, "start": "2019-11-05 06:32:09.432114", "stderr": "curl: (6) Could not resolve host: satellite6.home.brentandkrysti.com; Unknown error\nerror: skipping http://satellite6.home.brentandkrysti.com/pub/katello-ca-consumer-latest.noarch.rpm - transfer failed", "stderr_lines": ["curl: (6) Could not resolve host: satellite6.home.brentandkrysti.com; Unknown error", "error: skipping http://satellite6.home.brentandkrysti.com/pub/katello-ca-consumer-latest.noarch.rpm - transfer failed"], "stdout": "Retrieving http://satellite6.home.brentandkrysti.com/pub/katello-ca-consumer-latest.noarch.rpm", "stdout_lines": ["Retrieving http://satellite6.home.brentandkrysti.com/pub/katello-ca-consumer-latest.noarch.rpm"]} <--snip--> The katello-ca rpm package is installed prior to satellite registration (the failure is because no existing Satellite server in my testing env) 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, 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/RHBA-2019:3817 |