Bug 2120378
| Summary: | dnf debuginfo-install does not work in ubi-8 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Petr Menšík <pemensik> |
| Component: | ubi8-container | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | unspecified | Docs Contact: | Gabriela Nečasová <gnecasov> |
| Priority: | unspecified | ||
| Version: | 8.6 | CC: | dornelas, gnecasov, jwboyer, kwalker, oliver, tsweeney |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
.DNF and YUM no longer fail because of non-matching repository IDs
Previously, DNF and YUM repository IDs did not match the format that DNF or YUM expected. For example, if you ran the following example, the error occurred:
----
# podman run -ti ubi8-ubi
# dnf debuginfo-install dnsmasq
...
This system is not registered with an entitlement server. You can use subscription-manager to register.
----
With this update, the problem has been fixed.
Suffix `--debug-rpms` was added to all debug repository names (for example `ubi-8-appstream-debug-rpms`), and also the suffix `-rpms` was added to all UBI repository names (for example `ubi-8-appstream-rpms`).
For more information, see link:https://access.redhat.com/articles/4238681[Universal Base Images (UBI): Images, repositories, packages, and source code].
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-23 11:31:00 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: | |||
|
Description
Petr Menšík
2022-08-22 17:37:45 UTC
Looking at RHEL 8 for example, I see rhel-8-for-x86_64-baseos-debug-rpms and rhel-8-for-x86_64-appstream-debug-rpms. How does debuginfo-install know these are the debuginfo repos? Can we use that same mechanism for the UBI repos instead of changing the repo names and possibly disrupting users? It's upstream source, but the reason why DNF can enable the debuginfo repos is because of:
<snip>
def configure(self):
demands = self.cli.demands
demands.resolving = True
demands.root_user = True
demands.sack_activation = True
demands.available_repos = True
self.base.repos.enable_debug_repos()
<snip>
https://github.com/rpm-software-management/dnf-plugins-core/blob/master/plugins/debuginfo-install.py#L76
Which relies on:
<snip>
def enable_debug_repos(self):
# :api
"""enable debug repos corresponding to already enabled binary repos"""
def debug_name(name):
return ("{}-debug-rpms".format(name[:-5]) if name.endswith("-rpms")
else "{}-debuginfo".format(name))
self._enable_sub_repos(debug_name)
<snip>
https://github.com/rpm-software-management/dnf/blob/395541fbf8f87f81cdca7567f22be1182e55bea7/dnf/repodict.py#L97
So, the lack of "-rpms" causes the end enable operation to be ubi-8-appstream-debuginfo instead of the current repo name of ubi-8-appstream-debug.
|