Bug 492588 - child shared channels of private parent channels are not available for activation key child channels.
Summary: child shared channels of private parent channels are not available for activa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 530
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On: 498075
Blocks: 456998
TreeView+ depends on / blocked
 
Reported: 2009-03-27 15:20 UTC by Preethi Thomas
Modified: 2009-09-10 19:48 UTC (History)
5 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:48:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2009-03-27 15:20:24 UTC
Description of problem:

child shared channels of private parent channels are not available for activation key child channels.
Version-Release number of selected component (if applicable):
Satellite-5.3.0-RHEL5-re20090323.0-i386-embedded-oracle.iso

How reproducible:


Steps to Reproduce:
1.create 2 orgs org1 & org2 with trust.
2.create a shared child channel as the child of Rhel channel (rhel4 or rhel5) in org1
3.in org2 create an activation key.
4.naviagate to the child channel tab for the activation key.
5. browse to see the shares child channel from above.
  
Actual results:

the shared channels that are child channel of private parent channels are not available for selection in child channel list.

Expected results:

should be able to child shared channels of redhat channels from activation keys.
Additional info:

Comment 1 wes hayutin 2009-04-03 14:37:24 UTC

*** This bug has been marked as a duplicate of bug 480674 ***

Comment 2 Preethi Thomas 2009-04-22 16:47:18 UTC
I am reopening this one, as this is still an issue with
Satellite-5.3.0-RHEL5-re20090420.0-i386-embedded-oracle.iso

Comment 3 Shannon Hughes 2009-04-30 14:48:24 UTC
looks like the java stack was fixed but perl stack was not

Comment 4 Shannon Hughes 2009-04-30 21:21:50 UTC
modified perl query to use rhnSharedChannelView vs rhnChannel. 

keep in mind you will need to make sure you choose a base channel that has the shared channel in it.

Comment 5 Shannon Hughes 2009-05-04 20:45:57 UTC
i need to look at this again, moving back to assigned.

Comment 6 Brad Buckingham 2009-05-07 14:10:19 UTC
when verifying this bugzilla, we need to ensure that the following scenario is still functioning properly:

1. clone an x86_64 base channel
2. clone an i386 channel as a child of the channel in 1
3. create an activation key that uses the channel in 1 as the base channel
4. update the activation key to include the child channel included in 2

with the initial fix, for step 4 the child channel wasn't listed as a channel for selection; however, it should be and it should be selectable.

Comment 7 Shannon Hughes 2009-05-07 19:41:18 UTC
query needed an left outer join between rhnChannel and rhnSharedChannelView

Comment 8 Shannon Hughes 2009-05-20 16:02:40 UTC
mass move to onqa

Comment 9 Preethi Thomas 2009-06-01 18:07:02 UTC
fails_qa
Satellite-5.3.0-RHEL5-re20090529.0-i386-embedded-oracle.iso


Steps to Reproduce:
1.create 2 orgs org1 & org2 with trust.
2.create a shared child channel as the child of Rhel channel (rhel4 or rhel5)
in org1
3.in org2 create an activation key.
4.naviagate to the child channel tab for the activation key.
5. browse to see the shares child channel from above.

Comment 11 Preethi Thomas 2009-06-08 17:31:23 UTC
rlx-3-24 satellite.
I have a channel named child-channel-rhel-pub as a public channel and is a child of the rhel-4 channel in pt-org1.

Now login as pt-org2
if you navigate to channel-> My shared channel
the you expand the no access to parent channel entry you can see that child-channel-rhel-pub is a shred channel from org pt-org1.
Now navigate to systems->activation key.
click on key-492588 that is created with the redhat rhel4 channel as the base channel.

Navigate to the child channel tab.

see that only the rhel4 tools channel is available for selection.

child-channel-rhel-pub is not available.

Comment 12 Jeff Ortel 2009-06-09 20:31:12 UTC
The problem is in the rhnSharedChannelTreeView.  This view only shows the tree of shared channels.  In this case, the parent channel is a non-shared Red Hat channel so It was omitted from the tree.   The fix is to change the join in the 2nd part of the union so that the parent channel information comes from the rhnChannel table instead of joining rhnSharedChannelView to itself.

f91358408ef1528f8298544188eabf3bff649509

Comment 13 Milan Zázrivec 2009-06-10 16:21:02 UTC
(In reply to comment #12)
> The problem is in the rhnSharedChannelTreeView.  This view only shows the tree
> of shared channels.  In this case, the parent channel is a non-shared Red Hat
> channel so It was omitted from the tree.   The fix is to change the join in the
> 2nd part of the union so that the parent channel information comes from the
> rhnChannel table instead of joining rhnSharedChannelView to itself.
> 
> f91358408ef1528f8298544188eabf3bff649509  

Schema upgrade script 190-rhnSharedChannelTreeView.sql from the commit above
should have gone into spacewalk-schema-0.5-to-spacewalk-schema-0.6
directory, not spacewalk-0.4-spacewalk-0.5.

Comment 14 Jeff Ortel 2009-06-10 18:29:32 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > The problem is in the rhnSharedChannelTreeView.  This view only shows the tree
> > of shared channels.  In this case, the parent channel is a non-shared Red Hat
> > channel so It was omitted from the tree.   The fix is to change the join in the
> > 2nd part of the union so that the parent channel information comes from the
> > rhnChannel table instead of joining rhnSharedChannelView to itself.
> > 
> > f91358408ef1528f8298544188eabf3bff649509  
> 
> Schema upgrade script 190-rhnSharedChannelTreeView.sql from the commit above
> should have gone into spacewalk-schema-0.5-to-spacewalk-schema-0.6
> directory, not spacewalk-0.4-spacewalk-0.5.  

Moved upgrade script to spacewalk-schema-0.5-to-spacewalk-schema-0.6/.
15ef0361b300e8b8e30aa54ce03caa67cfe5271d

Milan, good catch!  Thanks!

Comment 15 wes hayutin 2009-06-17 13:40:52 UTC
verified 6/12.1

Comment 16 Miroslav Suchý 2009-08-05 09:00:28 UTC
verified in stage.

Comment 17 Brandon Perkins 2009-09-10 19:48:45 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


Note You need to log in before you can comment on or make changes to this bug.