Bug 1368438 - "Relevant Packages" count not accurate for errata on channels cloned from another clone channel
Summary: "Relevant Packages" count not accurate for errata on channels cloned from ano...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat5-cfu
TreeView+ depends on / blocked
 
Reported: 2016-08-19 11:50 UTC by Fabien Malfoy
Modified: 2018-06-01 13:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-01 13:13:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabien Malfoy 2016-08-19 11:50:54 UTC
Description of problem:
After cloning an errata, the resulting advisory is supposed to show the number of relevant packages in each channel from its "Channels" sub-tab. This works fine when the channel is either a Red Hat Inc. channel or a direct clone of a Red Hat Inc. channel.

However, for every channel that is cloned from another clone channel, the web interface still shows a count of zero even though relevant packages exist in the channel.

Clones of clones are very common when implementing Red Hat best practices for Life Cycle and Patching Management.

Version-Release number of selected component (if applicable):
spacewalk-java-2.3.8-147.el6sat.noarch

How reproducible:
Create a clone of a Red Hat channel cloneA then a clone cloneB from cloneA. Next, clone an errata from the Red Hat channel and publish it to cloneA. Now, the error can be seen on the "Channels" sub-tab of the cloned errata.


Steps to Reproduce:
1. Create the necessary elements using spacecmd
---------------------- snip --------------------------
spacecmd {SSM:0}> softwarechannel_clonetree -s rhel-x86_64-server-6 -o -p dev-
spacecmd {SSM:0}> softwarechannel_clonetree -s dev-rhel-x86_64-server-6 -o -x 's/^dev/prod'
spacecmd {SSM:0}> softwarechannel_adderrata rhel-x86_64-server-6 dev-rhel-x86_64-server-6 RHBA-2012:0004
Bug Fix Errata
--------------
RHBA-2012:0004  ksh bug fix update                                  2012-01-06

Packages
--------
ksh-20100621-12.el6_2.1.x86_64

Total Errata:     1
Total Packages:   1

Add these errata [y/N]: y
---------------------- snip --------------------------

2. WebUI --> Errata --> Manage Errata --> CL-BA-2012:0004 --> Channels


Actual results:
The channel "prod-Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)" shows "Relevant Packages" == 0


Expected results:
The channel "prod-Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)" should show "Relevant Packages" == 1 (same count as for the dev- channel)


Additional info:

Additionnally, the Packages --> List/Remove sub-sub-tab of the cloned errata shows "(None)" for the Channels column of the package where it should show the dev- channel

Comment 2 Grant Gainey 2017-05-23 19:52:25 UTC
The bulk of the issue raised here is not a bug. You have a dev-channel cloned from rhel, and a prod- cloned from dev-, but you've only cloned the specific errata to dev-. There is no automatic-update to the 'next clone in line', the channel-admin is responsible for updating the content.

The very last line of #c0 *does* look like a bug, however. When managing cloned errata, the Errata\Manage Errata\<choose one erratum>\Packages\List/Remove 'Channels' column should show the channel(s) that the particular erratum has been cloned into, and it appears not to do so.

Comment 3 Grant Gainey 2017-05-23 20:38:47 UTC
spacewalk.github:
4f86ff7a02c67dacfca5fe8c42f754b2a308ec88


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