Bug 1855170
| Summary: | rhsm_release flag does not work with RHOSP 16.0 | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Punit Kundal <pkundal> |
| Component: | ansible-role-redhat-subscription | Assignee: | Emilien Macchi <emilien> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Rosenfeld <drosenfe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.0 (Train) | CC: | aschultz, emacchi, ramishra, sathlang |
| Target Milestone: | --- | Keywords: | Triaged |
| 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-07-29 15:24:41 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: | |||
This was fixed by https://review.opendev.org/#/c/721692/10/tripleo_ansible/roles/tripleo-redhat-enforce/tasks/enforce_release.yml *** This bug has been marked as a duplicate of bug 1823835 *** Hi, the enfore_release.yml mentioned previously only *check* that the release is correctly set during update. It doesn't set the release. If the parameter doesn't work on deployment the above code won't help. If you have to set thing manually we have a nice "how-to" that show how to make it happen using a few ansible-playbook command there[1] [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html-single/keeping_red_hat_openstack_platform_updated/index#locking-the-environment-to-a-red-hat-enterprise-linux-release Can you please look at Sofer's comment and see if it helps? I don't think there is anything we can do code-wise. Let us know how manuals worked. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |
Description of problem: while deploying the overcloud (RHOSP 16) using ansible based overcloud registration [1]; it is seen that the rhsm_release flag does not seem to work Here's the deployment command from my lab: (undercloud) [stack@undercloud16 ~]$ openstack overcloud deploy --templates /usr/share/openstack-tripleo-heat-templates/ -r ~/templates/roles_data.yaml -n ~/templates/network_data.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e ~/templates/network-environment.yaml -e ~/templates/rhsm.yaml -e ~/templates/node-info.yaml -e ~/templates/scheduler_hints_env.yaml -e ~/containers-prepare-parameter.yaml Deployment fails with: +++ TASK [tuned : include_tasks] *************************************************** Thursday 09 July 2020 11:40:59 +0530 (0:00:00.230) 0:07:42.258 ********* included: /usr/share/ansible/roles/tuned/tasks/tuned_install.yml for overcloud-ctrl-0 TASK [tuned : Install tuned] *************************************************** Thursday 09 July 2020 11:40:59 +0530 (0:00:00.296) 0:07:42.554 ********* fatal: [overcloud-ctrl-0]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-eus-rpms'", "rc": 1, "results": []} NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* overcloud-cmpt-0 : ok=60 changed=14 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 overcloud-cmpt-1 : ok=57 changed=14 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 overcloud-ctrl-0 : ok=143 changed=74 unreachable=0 failed=1 skipped=57 rescued=0 ignored=0 undercloud : ok=7 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 09 July 2020 11:41:12 +0530 (0:00:13.142) 0:07:55.697 ********* =============================================================================== +++ Here's the rhsm.yaml file: +++ (undercloud) [stack@undercloud16 ~]$ cat ~/templates/rhsm.yaml resource_registry: OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/deployment/rhsm/rhsm-baremetal-ansible.yaml parameter_defaults: RhsmVars: rhsm_repos: - rhel-8-for-x86_64-baseos-eus-rpms - rhel-8-for-x86_64-appstream-rpms - rhel-8-for-x86_64-highavailability-eus-rpms - ansible-2.8-for-rhel-8-x86_64-rpms - advanced-virt-for-rhel-8-x86_64-rpms - openstack-16-for-rhel-8-x86_64-rpms - rhceph-4-osd-for-rhel-8-x86_64-rpms - rhceph-4-mon-for-rhel-8-x86_64-rpms - rhceph-4-tools-for-rhel-8-x86_64-rpms - fast-datapath-for-rhel-8-x86_64-rpms rhsm_username: "redacted" rhsm_password: "redacted" rhsm_org_id: "XXXXXXX" rhsm_pool_ids: "XXXXXXXXXXXXXXXXX" rhsm_method: "portal" rhsm_release: 8.1 +++ When look at the controller node I can see that it's been registered but the release is not set: +++ [root@overcloud-ctrl-0 ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current System Purpose Status: Not Specified [root@overcloud-ctrl-0 ~]# subscription-manager release --show Release not set [root@overcloud-ctrl-0 ~]# yum repolist Updating Subscription Management repositories. /usr/lib/python3.6/site-packages/dateutil/parser/_parser.py:70: UnicodeWarning: decode() called on unicode string, see https://bugzilla.redhat.com/show_bug.cgi?id=1693751 instream = instream.decode() Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (RPMs) 4.4 B/s | 10 B 00:02 Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-eus-rpms' Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-eus-rpms' [root@overcloud-ctrl-0 ~]# +++ [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/advanced_overcloud_customization/ansible-based-registration Version-Release number of selected component (if applicable): How reproducible: [stack@undercloud16 ~]$ rpm -qa | grep -i ansible-role-redhat-su ansible-role-redhat-subscription-1.0.5-0.20200326151139.fbfb090.el8ost.noarch [stack@undercloud16 ~]$ Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: