Bug 953276

Summary: [RFE] Add a warning to the confirmation page when user is about to delete an activation key
Product: [Community] Spacewalk Reporter: Grant Gainey <ggainey>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.10CC: cperry, cww, ggainey, mmello, rrivera, tkasparek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-java-1.10.59-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 732823 Environment:
Last Closed: 2013-08-02 13:02:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 732823    
Bug Blocks: 991452    

Description Grant Gainey 2013-04-17 19:56:57 UTC
+++ This bug was initially created as a clone of Bug #732823 +++

When an activation key is removed from WebUI, cobbler-cmd-line-created systems are still linked to it:

[
1- create an activation key '1-testkey' on the WebUI
2- run "cobbler system add --name=testsys --profile=<a-ks-profile> --redhat-management-key=1-testkey"
3- run "cobbler system report --name=testsys", it shows '1-testkey'
4- remove the activation key '1-testkey' from the WebUI
5- run "cobbler system report --name=testsys", it still shows '1-testkey'
]

Kickstarting a system associated with a deleted activation-key will FAIL.

Since there is no way for spacewalk to know about cobbler-created system-profiles, add a warning when user is about to delete an activation key - in order to prevent deletion of keys from unknowingly causing problems for kickstarts.

Comment 1 Grant Gainey 2013-04-17 19:58:03 UTC
After chasing my tail a couple of times, resorting to adding some verbiage to the activation-key delete-confirm page:

"NOTE: Only systems and profiles known to Satellite will be updated. Kickstarting other entities (e.g., system profiles created using the cobbler command-line tools) which use this key will FAIL if the key is deleted."

Comment 2 Grant Gainey 2013-04-17 20:06:46 UTC
Spacewalk commit 8f7223bc521d2f487e9e54e1749240e055478e6e

Comment 3 Tomáš Kašpárek 2013-08-02 13:02:43 UTC
Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE.