No applicable errata/updates on content host
Description of problem: We registered content host to satellite 6.4 snap 9, but not able to see errata/updates for content host in satellite.Version-Release number of selected component (if applicable): Satellite 6.4 snap 9
- rpm -q satellite
How reproducible: always
Steps to Reproduce:
1. Created activation key with rhel7 server synced
2. Registered rhel 74/75 content host
#rpm -Uvh http://satellite/pub/katello-ca-consumer-latest.noarch.rpm
#subscription-manager register --org="Default_Organization" --activationkey="ak-rhel-7"
#yum -y install katello-agent
3. Navigate Host -> Content host
No applicable errata seen on content host. No errors in production.log and Package Profile Update task completed successfully.
Also note that content host has updates. Updates can pull from satellite using #yum update.
Expected results: Errata/updates on content host should display in satellite.
Fixes #24214 - fill in vars on repo URLs
Previously, repo baseurls were sent as-is from redhat.repo to
Satellite. This resulted in the client reporting it was subscribed to
repos that don't exist, since the URLs would have the literal string
`$releasever/$basearch` in it.
This commit adds dnf and yum code to populate `$releasever` and
`$basearch`. It will attempt to use DNF libraries first, and if that
raises an `ImportError`, it will try yum.
#3 Updated by Chris Duryee about 3 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset katello-host-tools|1ffbd8afe9dfce6cf69f9b3bfed840a8e340256b.