Project

General

Profile

Actions

Bug #36908

closed

Creating an override with hammer for one repository overrides all repositories

Added by Lucy Fu 7 months ago. Updated 6 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2245237

Description of problem:
- When using hammer to set a repository to enabled will enable all repositories

Version-Release number of selected component (if applicable):
- Satellite 6.13

How reproducible:
- Everytime

Steps to Reproduce:

1. List enabled repositories for the client # hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------
8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes |
381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no |
397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes |
468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no |
394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes |
5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no |
5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no |
385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no |
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------

2. Change the satellite-client-6-for-rhel-9-x86_64-rpms repo to enabled # hammer host subscription content-override --host fluffy.example.com --content-label satellite-client-6-for-rhel-9-x86_64-rpms --enabled=true --value=true
Updated content override.

3. List enabled repositories for the client again
[root@satellite6:/root]# hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------
8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes | enabled:1
381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no | enabled:1
397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes | enabled:1
468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no | enabled:1
394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes | enabled:1
5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no | enabled:1
5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no | enabled:1
385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no | enabled:1
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------

Actual results:
- All repositories are now enabled

Expected results:
- Only satellite-client-6-for-rhel-9-x86_64-rpms should be enabled

Additional info:

Actions #1

Updated by Lucy Fu 7 months ago

  • Subject changed from Creating an override with hammer for one repository overrides all repositories to Creating an override with hammer for one repository overrides all repositories
  • Category changed from Repositories to Hosts

Issue is with katello 4.7 / Satellite 6.13 only. It has been fixed in Katello 4.8 via https://github.com/Katello/katello/pull/10387.

Actions #2

Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lucy Fu
  • Pull request https://github.com/Katello/katello/pull/10793 added
Actions #3

Updated by Quinn James 7 months ago

  • Target version set to Katello 4.11.0
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot 7 months ago

  • Pull request deleted (https://github.com/Katello/katello/pull/10793)
Actions #5

Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/Katello/katello/pull/10793 added
Actions #6

Updated by Ian Ballou 6 months ago

  • Status changed from Ready For Testing to Closed
  • Target version changed from Katello 4.11.0 to Katello 4.7 No Release
Actions

Also available in: Atom PDF