Bug 1995470

Summary: Activation key can be deleted, but still shows up in hostgroup configuration
Product: Red Hat Satellite Reporter: Karnvir Singh <karnsing>
Component: Activation KeysAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Lucy Fu <lufu>
Severity: high Docs Contact:
Priority: high    
Version: 6.8.0CC: ahumbe, jbhatia, lufu, mfalz, saydas
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:21:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karnvir Singh 2021-08-19 08:39:36 UTC
Description of problem:

Activation key can be deleted if it is part of a hostgroup, after successful deletion it still shows up in hostgroup configuration

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

Satellite 6.8

How reproducible:

100%

Steps to Reproduce:
1. Create an Activation Key
2. Create a hostgroup and that activation key to hostgroup.
3. Now delete the activation key created in Step1
4. Check under Activation Key of hostgroup, deleted activation key is still listed.

Actual results:

After deleting the activation key, it is still listed under hostgroup.

Expected results:

As activation key is part of hostgroup so Satellite should not allow to delete this key.
Secondly if activation key is deleted then it should be automatically removed from hostgroup as well, because it does not exist on Satellite server.

Comment 3 Partha Aji 2022-08-18 18:42:30 UTC
Connecting redmine issue https://projects.theforeman.org/issues/35386 from this bug

Comment 4 Bryan Kearney 2022-08-18 20:03:53 UTC
Upstream bug assigned to paji

Comment 5 Bryan Kearney 2022-08-18 20:03:55 UTC
Upstream bug assigned to paji

Comment 6 Bryan Kearney 2022-08-22 16:03:58 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35386 has been resolved.

Comment 9 Lucy Fu 2023-01-11 13:18:10 UTC
A warning was displayed when deleting a AK with HG connected.

Comment 12 errata-xmlrpc 2023-05-03 13:21:03 UTC
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 (Important: Satellite 6.13 Release), 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/RHSA-2023:2097