Bug 2103995
| Summary: | Running subscription-manager during update fails with "subscription-manager is disabled when running inside a container" | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Sofer Athlan-Guyot <sathlang> |
| Component: | tripleo-ansible | Assignee: | Sofer Athlan-Guyot <sathlang> |
| Status: | CLOSED ERRATA | QA Contact: | Khomesh Thakre <kthakre> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 17.0 (Wallaby) | CC: | jschluet, kthakre |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 17.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tripleo-ansible-3.3.1-0.20220706140824.fa5422f.el9ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-21 12:23:40 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 Bug is verified on tripleo-ansible-3.3.1-0.20220720020859.fa5422f.el9ost.noarch 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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-2022:6543 |
Description of problem: When SkipRhelEnforcement: false and running the update on osp17 we have this failure: 2022-07-05 11:40:26.427831 | 525400f1-4263-59d7-1127-00000000019e | TASK | unknown failure during call to subscription-manager host: undercloud-0, task: TASK: tripleo_redhat_enforce : fails if the release is not correct undercloud-0 still blocked host: undercloud-0, task: TASK: tripleo_redhat_enforce : fails if the release is not correct undercloud-0 still blocked host: undercloud-0, task: TASK: tripleo_redhat_enforce : fails if the release is not correct undercloud-0 still blocked 2022-07-05 11:40:26.469637 | 525400f1-4263-59d7-1127-00000000019e | FATAL | unknown failure during call to subscription-manager | undercloud-0 | error={ "changed": false, "msg": "Unknow failure during 'subscription-manager release --show': subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management." } This is because the file /run/.containerenv is present on the host. The final fix is https://bugzilla.redhat.com/show_bug.cgi?id=2097694, but until merged we might want to have a workaround around in the code. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: