Bug #37831
closedPackage profile is not updated when overriding reposet to enabled
Description
Package profile is not updated when overriding reposet to enabled
Cloned from 16164596
Description of problem:
When you register a host to the Foreman with the activation key that has some repository assigned to it which has Status set to disabled and then you try to override the reposet to enabled it seems that the Package profile on Foreman is not being updated because I am not able to install packages on the host via new All host page feature "Manage packages".
The Install package job fails with the error:
Failed to initialize: RuntimeError - Failed rendering template: error during rendering: No available packages found for search term 'name ^ (panda)'. Check the host's content view environments and already-installed packages.
It can be fixed by either selecting `Refresh applicability` option in the host details kebab menu or just running `dnf list` command on the host so the problem is not in the search term as stated in the error message.
How reproducible:
Every time
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
1. Register host to Sat with AK that has some repo assigned to it with Status `Disabled`
2. In the Foreman UI try to override that reposet to enabled on that host
3. Try to install some package via "Manage packages" option via the new All host page (Setting needs to be enabled for the new All host page to show)
Actual behavior:
Installing packages on host from the newly enabled reposet is not working.
Expected behavior:
Installing packages on host from the newly enabled reposet should work. The satellite should refresh Package profile while overriding reposet to enabled.
Additional info:
foreman-3.12.0-0.1.develop.20240712061714gite78bd15.el9sat.noarch
katello-4.13.0-0.1.master.el9sat.noarch
Updated by The Foreman Bot 3 months ago
- Status changed from New to Ready For Testing
- Assignee set to Ian Ballou
- Pull request https://github.com/Katello/katello/pull/11150 added
Updated by Ian Ballou 3 months ago
- Category set to Hosts
- Triaged changed from No to Yes
Updated by Anonymous 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|ec14209530cc385397bc1dfaa845603676482f37.
Updated by The Foreman Bot about 2 months ago
- Pull request https://github.com/Katello/katello/pull/11203 added
Updated by Chris Roberts about 2 months ago
- Pull request deleted (
https://github.com/Katello/katello/pull/11203)