Project

General

Profile

Actions

Bug #37831

closed

Package profile is not updated when overriding reposet to enabled

Added by Ian Ballou 9 days ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot 9 days ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ian Ballou
  • Pull request https://github.com/Katello/katello/pull/11150 added
Actions #2

Updated by Ian Ballou 8 days ago

  • Category set to Hosts
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot 6 days ago

  • Fixed in Releases Katello 4.15.0 added
Actions #4

Updated by Anonymous 6 days ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF