Bug 599775

Summary: rhn_check fails to update package from noarch to x86_64
Product: [Community] Spacewalk Reporter: Joshua Roys <roysjosh>
Component: ClientsAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 1.0CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-client-tools-1.2.6-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-26 15:26:57 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: 623772    

Description Joshua Roys 2010-06-03 20:25:37 UTC
Description of problem:
tzdata recently went from a noarch to a x86_64 package, and after applying the errata (via the API call scheduleApplyErrata) and running rhn_check by hand, the rpm was not updated.  The yum cache contained the data for the tzdata-2010i x86_64 rpm.
(a `yum update tzdata` and `yum install tzdata` both update the rpm correctly)

Version-Release number of selected component (if applicable):
rhn-check-0.4.20-33
spacewalk server is at 1.0

Steps to Reproduce:
1. install tzdata-2010e.noarch on $system
2. put tzdata-2010i.x86_64 in a channel $system is subscribed to, and (optionally?) make an errata for the tzdata update
3. schedule the update
4. rhn_check -vv
  
Actual results:
# rhn_check -vv
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>errata.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><int>5588</int></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 19675}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1275592079.35  with expiration of  1275595679.35  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1000010499, 'X-RHN-Auth-Server-Time': '1275592079.35', 'X-RHN-Auth': '...', 'X-RHN-Auth-Channels': [['rhel-x86_64-approved-5', '20100603121356', '1', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>errata.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><int>5588</int></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 19675}
D: handle_action actionid = 19675, version = 2
D: do_call errata.update ([5588],)
Loaded plugins: rhnplugin
D: Called update [['tzdata-java', '2010f', '10.el5', '', 'x86_64']]
Package matching tzdata-java-2010f-10.el5.x86_64 already installed. Checking for update.
D: Dependencies Resolved
D: Downloading Packages:
D: Running Transaction Test
D: Finished Transaction Test
D: Transaction Test Succeeded
D: Running Transaction
Updating package profile
D: Sending back response (0, 'Update Succeeded', {})
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>errata.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><int>5796</int></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 19676}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1275592090.68  with expiration of  1275595690.68  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1000010499, 'X-RHN-Auth-Server-Time': '1275592090.67', 'X-RHN-Auth': '...', 'X-RHN-Auth-Channels': [['rhel-x86_64-approved-5', '20100603121356', '1', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>errata.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><int>5796</int></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 19676}
D: handle_action actionid = 19676, version = 2
D: do_call errata.update ([5796],)
D: Called update [['tzdata-java', '2010i', '1.el5', '', 'x86_64']]
Package tzdata-java-2010i-1.el5.x86_64 already installed and latest version
D: Dependencies Resolved
D: Downloading Packages:
D: Running Transaction Test
D: Finished Transaction Test
D: Transaction Test Succeeded
D: Running Transaction
Updating package profile
D: Sending back response (0, 'Update Succeeded', {})
D: do_call packages.checkNeedUpdate ('rhnsd=1',)
D: local action status:  (0, 'rpm database not modified since last update (or package list recently updated)', {})

# rpm -q tzdata
tzdata-2010e-1.el5

Comment 1 Jan Pazdziora (Red Hat) 2010-11-19 16:03:44 UTC
Mass-moving to space13.

Comment 2 Jan Pazdziora (Red Hat) 2010-11-26 15:26:29 UTC
Fix committed to Spacewalk master, 4da050d299f45cfdaaad643eff8be750eb9a8555 (we did the fix for bug 603028).

Fixed package is rhn-client-tools-1.2.6-1.

Comment 3 Jan Pazdziora (Red Hat) 2010-11-26 15:26:57 UTC
Spacewalk 1.2 was released, marked as CURRENTRELEASE.