Bug 509037

Summary: If base channel with rhncfg packages exists, activation key config deploy adds base channel to key
Product: Red Hat Satellite 5 Reporter: Justin Sherrill <jsherril>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Milan Zázrivec <mzazrivec>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry, ssalevan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 20:38:28 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:    
Bug Blocks: 456985    

Description Justin Sherrill 2009-06-30 23:31:01 UTC
So the Channel_queries query channels_with_packages is supposed to list all the child channels with a particular package (the manager layer call is ChannelManager.findChildChannelsWithPackage()).  

The problem is that it doesn't restrict channels to child channels.  Two ways to reproduce (both requiring you to create a base channel with rhncfg* packages in it):

1.  Create base channel 
2.  Push rhncfg* packages to the base channel
3.  Create new activation key (leave base channel to "satellite default")
4.  Check "enable config deploy" and hit submit

Results: the custom base channel will be selected

Second way to reproduce

1.  Create base channel same as above
2.  Create package profile
3.  Create kickstart profile
4.  Within kickstart profile details, set the package  profile to the one created above
5.  Try to re-provision a machine with this profile

Results:  System registration will fail with:

Error Message:
    Token `Kickstart re-activation key for 4u6 dhcp231-208.' has more than one base channel assigned
Error Class Code: 62
Error Class Info: Token contains invalid, obsoleted or insufficient settings

Comment 1 Justin Sherrill 2009-07-01 00:02:07 UTC
0fa36ec 

fixed

Comment 2 Milan Zázrivec 2009-07-07 12:07:17 UTC
Verified, spacewalk-java-0.5.44-27

Comment 3 Steve Salevan 2009-08-21 17:12:33 UTC
RELEASE_PENDING from 8/21 Stage build.

Comment 4 Brandon Perkins 2009-09-10 20:38:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html