Bug 953526

Summary: [RFE] Inactive kickstarts should not appear in the cobbler PXE menu
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: chorn, cperry, cww, ekuric, pep, tao, tkasparek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-java-1.10.61-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 601860 Environment:
Last Closed: 2013-08-02 13:04:23 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: 601860    
Bug Blocks: 991452    

Description Grant Gainey 2013-04-18 11:26:53 UTC
+++ This bug was initially created as a clone of Bug #601860 +++

--- Additional comment from Issue Tracker on 2010-06-08 15:00:27 EDT ---

Event posted on 05-18-2010 07:58am EDT by RFE-tool

2) Nature Of Problem:
Inactive kickstarts should not appear in the cobbler PXE menu

3) Business Requirements Satisfied By Request:
Spacewalk PXE menu should not offer kickstart
profiles that have been deactivated in the WebUI.  Old kickstarts are
confusing, and the PXE boot menu is polluted with obsolete kickstart
profiles.

4) Functional Requirements That Are Not Presently Possible:
Deactivating kickstarts in WebUI should remove them from the menu

5) What Will Success Look Like:
Cobbler PXE menu containing only active kickstarts.

--- Additional comment on 2010-06-21 09:29:24 EDT ---

This RFE looks like a dup of bug 556510.  Can you review and let us know?

--- Additional comment on 2010-06-21 09:29:25 EDT ---

the BZ is similar, but refers to kickstart profiles that are actually
removed. This RFE is about kickstart profiles that are marked as inactive.

Currently, spacewalk keeps inactive kickstarts in the PXE menu by design,
as indicated in the WebUI with a short blurb next to the "Active"
checkbox: 

"You cannot kickstart a system registered to RHN Satellite using an
inactive kickstart profile. However, the kickstart files for inactive
kickstart profiles are still available for manual download and may be used
for bare metal kickstarts."

We would like to change this behavior.

--- Additional comment on 2011-05-31 07:37:01 EDT ---

This is already implemented in cobbler:

  cobbler profile edit --name=<profile> --enable-menu=0

So setting/removing the option "active" could just result in this cobbler command beeing executed. No 'cobbler sync' required.

Comment 1 Grant Gainey 2013-04-18 12:38:11 UTC
Test case:
=========

1) Create a KS profile in spacewalk, "TEST101"
2) From cobbler, look at that profile's "Enable PXE Menu?" value:
   $> cobbler profile report name=TEST101:1::RedHatInternalUseOnly
   ...
   Enable PXE Menu?               : True
   ...
3) From the Kickstart Details page for TEST101 in the WebUI, uncheck Active
4) Choose Update
5) From cobbler, look at that profile's "Enable PXE Menu?" value

EXPECTED:
   Enable PXE Menu?               : False

6) From the Kickstart Details page for TEST101 in the WebUI, check Active
4) Choose Update
5) From cobbler, look at that profile's "Enable PXE Menu?" value

EXPECTED:
   Enable PXE Menu?               : True

Comment 2 Grant Gainey 2013-04-18 12:43:39 UTC
spacewalk commit a9989ee159aa2e8707cc113bebc861681055544f

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