Bug 626822 - [maint_window] exception during rhn_check - Action 11 does not belong to server <sid>
Summary: [maint_window] exception during rhn_check - Action 11 does not belong to serv...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.2
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space12
TreeView+ depends on / blocked
 
Reported: 2010-08-24 14:07 UTC by Garik Khachikyan
Modified: 2015-01-04 21:57 UTC (History)
4 users (show)

Fixed In Version: yum-rhn-plugin-1.2.3-1 rhn-client-tools-1.2.3-1
Clone Of:
Environment:
Last Closed: 2010-11-19 16:17:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Garik Khachikyan 2010-08-24 14:07:01 UTC
Description of problem:
There is thrown an exception: "Action 11 does not belong to server <sid>" (detailed error log follows) when client requests rhn_check -vvv to the satellite where it's registered and on both sides the staging content is switched on.

Version-Release number of selected component (if applicable):
rhn-client-tools-1.2.1-1.el5
yum-rhn-plugin-1.2.2-1.el5

How reproducible:
always

Steps to Reproduce:
1. on client side insure you have the packages versions stated above.
2. switch on the values: stagingContent=1;stagingContentWindow=120
3. on Satellite side: Admin-><Your Org>->Configuaration->Enable Staging Contents
4. make the client registered to the Satellite with some packages need to be updated.
5. run rhn_check -vvv
  
Actual results:
there is an error like:
---
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>rhncfg</string></value>\n<value><string>5.9.27</string></value>\n<value><string>1.el5</string></value>\n<value><string></string></value>\n<value><string>noarch</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 11}
D: handle_action actionid = 11, version = 2
D: do_call packages.update ([['rhncfg', '5.9.27', '1.el5', '', 'noarch']],) {'cache_only': 1}
D: Sending back response (0, 'no-ops for caching', {})
Could not submit results to server <RetryServer for smqe-sat11.lab.eng.brq.redhat.com/XMLRPC>
Error code: -22
Error Message:
    Action 11 does not belong to server 1000010001
Error Class Code: 22
Error Class Info: Unable to retrieve requested entry.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))
---

Expected results:
No such tracebacks. The required package(s) for caching should be retrieved (but not installed) to the yum cache directory.

Additional info:

Comment 1 Garik Khachikyan 2010-08-24 14:07:49 UTC
# COMMENT

the bug actually blocks all the testing process.

Comment 2 Garik Khachikyan 2010-08-25 09:16:47 UTC
the same history with package installation action:
---
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>rhncfg-client</string></value>\n<value><string>5.9.27</string></value>\n<value><string>1.el5</string></value>\n<value><string></string></value>\n<value><string>noarch</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 46}
D: handle_action actionid = 46, version = 2
D: do_call packages.update ([['rhncfg-client', '5.9.27', '1.el5', '', 'noarch']],) {'cache_only': 1}
D: Sending back response (0, 'no-ops for caching', {})
Could not submit results to server <RetryServer for smqe-sat11.lab.eng.brq.redhat.com/XMLRPC>
Error code: -22
Error Message:
    Action 46 does not belong to server 1000010001
Error Class Code: 22
Error Class Info: Unable to retrieve requested entry.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))

Comment 3 Michael Mráka 2010-08-25 11:26:50 UTC
There were 2 independent errors:

* "Action <id> does not belong to server <sid>" caused by client trying to update action status while pre-caching is not supposed to modify action status on the server side.
Fixed in master by
commit 8c5f18ad900818e637369985ac3704c9edcc0e4a
    626822 - don't submit action result in cache only mode

* Packages can't be downloaded caused by functionality been switched off for package updates in the client code.
Fixed in master by 
commit 95702f6afae9e791badd3bef48f34a5fb937ce4d
    626822 - packages for update should be cached

Comment 5 Jan Pazdziora (Red Hat) 2010-11-19 16:17:13 UTC
With Spacewalk 1.2 released, marking as CLOSED CURRENTRELEASE.

https://www.redhat.com/archives/spacewalk-list/2010-November/msg00111.html


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