tripleo-repos on ubi9 generates wrong dlrn repos

Bug #1979178 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

While running tripleo-repos on ubi9, it generates following errors:
```
(testing_repos) [root@dc18ffdd1a6b tripleo-repos]# tripleo-repos --stream -b master current-tripleo ceph
WARNING: Centos9 Base and AppStream will be installed for this UBI distro
Traceback (most recent call last):
  File "/tmp/tripleo-repos/testing_repos/bin/tripleo-repos", line 10, in <module>
    sys.exit(main())
  File "/tmp/tripleo-repos/testing_repos/lib64/python3.9/site-packages/tripleo_repos/main.py", line 622, in main
    _install_repos(args, base_path)
  File "/tmp/tripleo-repos/testing_repos/lib64/python3.9/site-packages/tripleo_repos/main.py", line 488, in _install_repos
    content = _get_repo(base_path + 'current-tripleo/delorean.repo',
  File "/tmp/tripleo-repos/testing_repos/lib64/python3.9/site-packages/tripleo_repos/main.py", line 257, in _get_repo
    r.raise_for_status()
  File "/tmp/tripleo-repos/testing_repos/lib64/python3.9/site-packages/requests/models.py", line 1022, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://trunk.rdoproject.org/ubi9-master/current-tripleo/delorean.repo
```
Below is the steps to reproduce it.
1. podman pull ubi9
2. git clone https://opendev.org/openstack/tripleo-repos
3. podman run --privileged -v <full path to tripleo-repos>:/tmp/tripleo-repos -it 46720ac964ac bash
4. cd /tmp/tripleo-repos
5. python3 -m venv testing_repos
6. source testing_repos
7. pip install requests
8. PBR_VERSION=1.2.3 python3 setup.py install
9. tripleo-repos --stream -b master current-tripleo ceph

above error comes.

The current tripleo-repos lacks the support for the same.

Tags: alert ci
Revision history for this message
chandan kumar (chkumar246) wrote :

After applying this patch: https://review.opendev.org/c/openstack/tripleo-repos/+/844361 it fixes the issue

```
[root@84147bec40a7 tripleo-repos]# tripleo-repos --stream -b master current-tripleo ceph
WARNING: Centos9 Base and AppStream will be installed for this UBI distro
Installed repo delorean to /etc/yum.repos.d/delorean.repo
Installed repo delorean-master-testing to /etc/yum.repos.d/delorean-master-testing.repo
Installed repo tripleo-centos-ceph-pacific to /etc/yum.repos.d/tripleo-centos-ceph-pacific.repo
WARNING: For UBI it is recommended to create /etc/distro.repos.d and rerun!
Installed repo tripleo-centos-appstream to /etc/yum.repos.d/tripleo-centos-appstream.repo
Installed repo tripleo-centos-baseos to /etc/yum.repos.d/tripleo-centos-baseos.repo
Installed repo tripleo-centos-highavailability to /etc/yum.repos.d/tripleo-centos-highavailability.repo
Installed repo tripleo-centos-powertools to /etc/yum.repos.d/tripleo-centos-powertools.repo
Installed repo tripleo-centos-appstream to /etc/yum.repos.d/tripleo-centos-appstream.repo
Installed repo tripleo-centos-baseos to /etc/yum.repos.d/tripleo-centos-baseos.repo
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-manager to register.

Cache was expired
0 files removed

```

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-repos (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-repos/+/844361
Committed: https://opendev.org/openstack/tripleo-repos/commit/8321b3fb5cacad22f8c756ce16858fbf3d420a1b
Submitter: "Zuul (22348)"
Branch: master

commit 8321b3fb5cacad22f8c756ce16858fbf3d420a1b
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Thu Jun 2 10:16:27 2022 +0530

    Fixed the repo generation code for ubi9

    It fixes:
    - Mirror map for ubi9, rhel9
    - fallback to centos(8,9) if ubi(8,9) distros are used.
    - Look for both ubi8 and ubi9 where ubi8 is previously defined.

    Closes-Bug: #1979178

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I530b4671154e975d527cb380eda8304fec0a7f82

Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.