missing groups or modules: mariadb:10.5 , virt:rhel, , virt:av and redis:5 on RHEL-9 container build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
While running container build on RHEL-9, we hit the following errors by building base containers
```
time="2021-
time="2021-
time="2021-
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-
Last metadata expiration check: 0:00:04 ago on Fri Dec 24 10:37:22 2021.
Unable to resolve argument virt:rhel
Error: Problems in request:
missing groups or modules: virt:rhel
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-
Last metadata expiration check: 0:00:05 ago on Fri Dec 24 10:37:22 2021.
Error: Problems in request:
missing groups or modules: virt:av
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-
Last metadata expiration check: 0:00:05 ago on Fri Dec 24 10:37:22 2021.
Error: Problems in request:
missing groups or modules: redis:5
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-
Last metadata expiration check: 0:00:06 ago on Fri Dec 24 10:37:22 2021.
Error: Problems in request:
missing groups or modules: mariadb:10.5
time="2021-
time="2021-
time="2021-
time="2021-
time="2021-
time="2021-
```
On RHEL-9, these modules streams are no longer shipped.
In order to fix this issue, we need to modify this part to handle exception for RHEL-9
https:/
```
if [ '{{ tcib_distro }}' == 'rhel' ]; then
{%- if "el" ~ tcib_release in tcib_packages.
{% for item in tcib_packages.
{%- else %}
echo "WARNING: No modules defined for el{{ tcib_release}}";
{%- endif %}
fi
```
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- common/ +/823820
Review: https:/