Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 563859

Summary: 'Add Red Hat Errata' on x86_64 cloned channel not adding 64 bit packages
Product: Red Hat Satellite 5 Reporter: Issue Tracker <tao>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: high Docs Contact:
Priority: urgent    
Version: 530CC: aparsons, cperry, psklenar, stanislav.polasek, tao, vgaikwad, xdmoon
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-22 14:03:38 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: 518256    

Comment 5 Vishal Gaikwad 2010-02-11 13:01:07 UTC
Public Summary:

State whether Satellite or RHN hosted 
- Satellite v5.3

Indicate the platform(s) (architectures) the problem is being reported against.
- RHEL 5 U3 i386 platform.

Provide clear and concise problem description as it is understood at the time
of escalation
- On a cloned 64bit channel when we try to add an errata which is having both
32bit and 64bit packages via "Add Red Hat Errata" option then it just adds
32bit packages under the channel. 64bit packages from that errata aren't added.

On checking the Errata -> "Sync" tab under the cloned channel we can see the
errata added prevously. It mentions that 64bit packages from that errata were
ommitted during the previous add/clone process.

Attached screenshot for better understanding.


How Reproducible
- Always

Steps to Reproduce
- Clone RHEL 5 65bit channel w/o any errata
- Channels -> Manage Channels -> [Cloned Channel] -> Errata -> Add -> Add Red
Hat Errata
- Select an errata having i386 and x86_64 packages. Example xen which has
xen-libs for both archs.
- Confirm 

Observed Behavior
- - Here x86_64 section is blank. x86_64 arch package is not selected for
addition in that channel


Expected Behavior
- Ideally x86_64 also should have had 1 as the count for packages to be added.

Action Required from SEG 
- Looks like a bug. Details on the invesigation in the next comment

Comment 8 Xixi 2010-04-27 22:36:16 UTC
Another possible workaround is to use the API call errata.clone(), which confirms the bug is more likely to be in the UI code.

Comment 11 Justin Sherrill 2010-05-17 17:48:55 UTC
Fixed in master.  As Vishal had mentioned there was some validation happening when "association" was checked that shouldn't have been.

349fe7e5f5d2d5d3dbdc4dfc414be0943429b344

Comment 16 Petr Sklenar 2010-06-03 11:38:09 UTC
test procedure:

- Clone RHEL 5 64bit channel w/o any errata
- Channels -> Manage Channels -> [Cloned Channel] -> Errata -> Add -> Add Red
Hat Errata
- Select an errata having i386 and x86_64 packages. Example xen which has
xen-libs for both archs.
- Confirm 

OLD,
- - Here x86_64 section is blank. x86_64 arch package is not selected for
addition in that channel
x8664 packages was in 'Sync'

NEW: 
cobbler-1.6.6-8.el5sat.x86_64
spacewalk-java-0.5.44-77.el5sat.noarch
spacewalk-base-0.5.23-35.el5sat.noarch

x86_64 section=1, i386 section=1; x8664 is selected with cloned errata
no package is in 'Sync'
---
tested on sat530+ RHEL55@x8664arch, Verified

Comment 19 errata-xmlrpc 2010-06-22 14:03:38 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/RHBA-2010-0498.html