Hide Forgot
Description of problem: When a user tries to disable a repo that has been promoted, this fails - but the fail message is incomplete, it is missing the context/reason. Version-Release number of selected component (if applicable): Satellite-6.0.2-RHEL-6-20131030.0 How reproducible: Steps to Reproduce: 1. Sync AND promote RHEL content in org "Katello Infrastructure" 2. katello --user admin --password admin product repository_set_disable --org "Katello Infrastructure" --name "Red Hat Enterprise Linux Server" --set_name "Red Hat Enterprise Linux 6 Server (RPMs)" 3. view results. Actual results: Repository disable [ Red Hat Enterprise Linux 6 Server (RPMs) ] failed.: Expected results: Repository disable [ Red Hat Enterprise Linux 6 Server (RPMs) ] failed.: Cannot disable promoted content. Please perform a content deletion changeset before disabling this repo. (or something similar) Additional info:
Although much has changed in both API/CLI since this bug was introduced, need to confirm it is an issue in the current implementation.
I am no longer seeing the behavior described on Satellite 6.2 beta snap 7; therefore, moving the bug to ON_QA for verification. hammer> repository-set available-repositories --organization "Default Organization" --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 7 Server (Kickstart)" ----------------------------------------------|--------|---------|---------------|-------- NAME | ARCH | RELEASE | REGISTRY NAME | ENABLED ----------------------------------------------|--------|---------|---------------|-------- Red Hat Enterprise Linux 7 Server (Kickstart) | x86_64 | 7.0 | | no Red Hat Enterprise Linux 7 Server (Kickstart) | x86_64 | 7.1 | | no Red Hat Enterprise Linux 7 Server (Kickstart) | x86_64 | 7.2 | | yes ----------------------------------------------|--------|---------|---------------|-------- hammer> repository-set disable --organization "Default Organization" --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 7 Server (Kickstart)" --name "Red Hat Enterprise Linux 7 Server (Kickstart)" --releasever "7.2" --basearch x86_64 Could not disable repository: Repository cannot be deleted since it has already been included in a published Content View. Please delete all Content View versions containing this repository before attempting to delete it. hammer>
Verified as per Comment 4.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501