Bug 1906162
| Summary: | Disk Image Builder uses hardcoded non-eus repos | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Lukasz Pelczyk <lpelczyk> | |
| Component: | diskimage-builder | Assignee: | Steve Baker <sbaker> | |
| Status: | CLOSED ERRATA | QA Contact: | ||
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 16.1 (Train) | CC: | apevec, broose, dhill, gregraka, jkreger, jslagle, lhh, mgarciac, rurena, sbaker, smerrow | |
| Target Milestone: | z7 | Keywords: | Documentation, Triaged | |
| Target Release: | 16.1 (Train on RHEL 8.2) | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | diskimage-builder-3.1.0-1.20210528071816.6822090.el8ost | Doc Type: | Bug Fix | |
| Doc Text: |
Before this update, the `appstream` and `baseos` repositories were always added to the repositories enabled by Red Hat Subscription Manager, with no way to override them. With this update, when you define the `$REG_REPOS` variable no base repositories are added. With this fix, you can fully control which repositories are added, but you must now include all repositories including the equivalent repository for `baseos` (and `appstream` when required).
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1945448 (view as bug list) | Environment: | ||
| Last Closed: | 2021-12-09 20:17:29 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: | ||||
| Bug Depends On: | 1954627 | |||
| Bug Blocks: | ||||
|
Description
Lukasz Pelczyk
2020-12-09 19:28:50 UTC
It does look like upstream needs a change where this conditional[1] is only true if REG_REPOS is not set. We can document that if REG_REPOS is used it must be a complete list, since no base repos will be added. [1] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration#L16 We're using a complete list but it still appends the non eus repositories ... export REG_REPOS=" ansible-2.9-for-rhel-8-x86_64-rpms fast-datapath-for-rhel-8-x86_64-rpms rhel-8-for-x86_64-highavailability-eus-rpms openstack-16.1-for-rhel-8-x86_64-rpms rhceph-4-tools-for-rhel-8-x86_64-rpms advanced-virt-for-rhel-8-x86_64-rpms rhel-8-for-x86_64-appstream-eus-rpms rhel-8-for-x86_64-baseos-eus-rpms ansible-2.9-for-rhel-8-x86_64-rpms fast-datapath-for-rhel-8-x86_64-rpms rhv-4-mgmt-agent-for-rhel-8-x86_64-rpms rhv-4.4-manager-for-rhel-8-x86_64-rpms advanced-virt-for-rhel-8-x86_64-rpms jb-eap-7.3-for-rhel-8-x86_64-rpms" and it does this: 2021-03-10 20:58:25.206 | Enabling repos: repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms --enable ansible-2.9-for-rhel-8-x86_64-rpms --enable fast-datapath-for-rhel-8-x86_64-rpms --enable rhel-8-fo r-x86_64-highavailability-eus-rpms --enable openstack-16.1-for-rhel-8-x86_64-rpms --enable rhceph-4-tools-for-rhel-8-x86_64-rpms --enable advanced-virt-for-rhel-8-x86_64-rpms --enable rhel-8-for-x86_64-appstream-eus-rpms --enable rhel-8- for-x86_64-baseos-eus-rpms --enable ansible-2.9-for-rhel-8-x86_64-rpms --enable fast-datapath-for-rhel-8-x86_64-rpms --enable rhv-4-mgmt-agent-for-rhel-8-x86_64-rpms --enable rhv-4.4-manager-for-rhel-8-x86_64-rpms --enable advanced-virt- for-rhel-8-x86_64-rpms --enable jb-eap-7.3-for-rhel-8-x86_64-rpms Looks like it is now in /usr/lib/python3.6/site-packages/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration instead... we were updating the wrong file. I've proposed a fix for this upstream Looks good, thanks 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 (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement 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-2021:3762 |