Bug 603063 - Configuration file cannot be imported, error; call an unsupported action
Summary: Configuration file cannot be imported, error; call an unsupported action
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: unspecified
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat540-blockers 582655
TreeView+ depends on / blocked
 
Reported: 2010-06-11 13:03 UTC by Petr Sklenar
Modified: 2010-07-20 11:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-20 11:44:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-06-11 13:03:29 UTC
Description of problem:
Configuration file cannot be imported

Version-Release number of selected component (if applicable):
rhn-setup-1.0.0-21.el6.noarch
rhn-check-1.0.0-21.el6.noarch
rhn-client-tools-1.0.0-21.el6.noarch
redhat-release-client-5.90Client-6.0.0.29.el6.x86_64

Linux dhcp71-118.rhts.eng.bos.redhat.com 2.6.32-33.el6.x86_64 #1 SMP Thu Jun 3 13:00:03 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. register rhel6 to http://xmlrpc.rhn.errata.stage.redhat.com/XMLRPC 
2. add provisioning entitlement
3. your machine > Configuration > Import configuration File
4. Lets import /etc/yum.conf
5. client machine: rhn_check -vv
  
Actual results:
no config file is imported

# rhn_check -vv
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180041602</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180041602}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1276260982.05  with expiration of  1276264582.05  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1016551751, 'X-RHN-Auth-Server-Time': '1276260981.96', 'X-RHN-Auth': '+/G+nX67+MXgLl0cnjgm0Q==', 'X-RHN-Auth-Channels': [['rhel-x86_64-server-6-beta', '20100420181221', '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>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180041602</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180041602}
D: handle_action actionid = 180041602, version = 2
D: do_call configfiles.upload (180041602, ['/etc/yum.conf'])
D: Attempt to call an unsupported action configfiles.upload (180041602, ['/etc/yum.conf'])
D: Sending back response (6, 'Invalid function call attempted', {})
D: do_call packages.checkNeedUpdate ('rhnsd=1',)
Loaded plugins: refresh-packagekit, rhnplugin
D: rpcServer: Calling XMLRPC up2date.listChannels
D: local action status:  (0, 'rpm database not modified since last update (or package list recently updated)', {})


Expected results:
I can import config file 

Additional info:

Comment 1 Petr Sklenar 2010-06-11 13:06:18 UTC
/var/log/up2date:

[Fri Jun 11 08:56:21 2010] up2date D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180041602</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180041602}
[Fri Jun 11 08:56:21 2010] up2date updateLoginInfo() login info
[Fri Jun 11 08:56:21 2010] up2date D: login(forceUpdate=True) invoked
[Fri Jun 11 08:56:21 2010] up2date logging into up2date server
[Fri Jun 11 08:56:21 2010] up2date D: rpcServer: Calling XMLRPC up2date.login
[Fri Jun 11 08:56:22 2010] up2date D: writeCachedLogin() invoked
[Fri Jun 11 08:56:22 2010] up2date D: Wrote pickled loginInfo at  1276260982.05  with expiration of  1276264582.05  seconds.
[Fri Jun 11 08:56:22 2010] up2date successfully retrieved authentication token from up2date server
[Fri Jun 11 08:56:22 2010] up2date D: logininfo: {'X-RHN-Server-Id': 1016551751, 'X-RHN-Auth-Server-Time': '1276260981.96', 'X-RHN-Auth': '+/G+nX67+MXgLl0cnjgm0Q==', 'X-RHN-Auth-Channels': [['rhel-x86_64-server-6-beta', '20100420181221', '1', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
[Fri Jun 11 08:56:22 2010] up2date D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180041602</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180041602}
[Fri Jun 11 08:56:22 2010] up2date D: handle_action actionid = 180041602, version = 2
[Fri Jun 11 08:56:22 2010] up2date D: do_call configfiles.upload (180041602, ['/etc/yum.conf'])
[Fri Jun 11 08:56:22 2010] up2date D: Attempt to call an unsupported action configfiles.upload (180041602, ['/etc/yum.conf'])
[Fri Jun 11 08:56:22 2010] up2date D: Sending back response (6, 'Invalid function call attempted', {})
[Fri Jun 11 08:56:22 2010] up2date D: do_call packages.checkNeedUpdate ('rhnsd=1',)
[Fri Jun 11 08:56:23 2010] up2date D: rpcServer: Calling XMLRPC up2date.listChannels
[Fri Jun 11 08:56:23 2010] up2date D: local action status:  (0, 'rpm database not modified since last update (or package list recently updated)', {})

Comment 3 Milan Zázrivec 2010-06-14 18:49:24 UTC
The problem described above is caused by the fact that your rhel-6
system does not have rhncfg* packages installed (i.e. the problem
has nothing to do with RHEL-6/rhn-client-tools as the currently chosen
component may suggest).

Ordinarily, rhncfg* packages would be installed on your system automatically,
though this is not possible at the moment, since noone has built these
packages for RHEL-6 yet.

Comment 6 Clifford Perry 2010-07-19 22:00:07 UTC
moving to sat540-blockers under the anticipation that it will be closed out as not a bug once correct packages are tested with.

Cliff

Comment 7 Michael Mráka 2010-07-20 11:44:26 UTC
RHEL6-beta RHN Tools has been pushed:

# yum instal rhncfg*
---> Package rhncfg-actions.noarch 0:5.9.5-6.el6 set to be updated
---> Package rhncfg-client.noarch 0:5.9.5-6.el6 set to be updated
---> Package rhncfg-management.noarch 0:5.9.5-6.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================
 Package             Arch     Version         Repository                           Size
========================================================================================
Installing:
 rhncfg              noarch   5.9.5-6.el6     rhn-tools-rhel-i386-server-6-beta    55 k
 rhncfg-actions      noarch   5.9.5-6.el6     rhn-tools-rhel-i386-server-6-beta    28 k
 rhncfg-client       noarch   5.9.5-6.el6     rhn-tools-rhel-i386-server-6-beta    26 k
 rhncfg-management   noarch   5.9.5-6.el6     rhn-tools-rhel-i386-server-6-beta    34 k

Transaction Summary
========================================================================================
Install       4 Package(s)
Upgrade       0 Package(s)

Total size: 143 k
Installed size: 0  
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing     : rhncfg-5.9.5-6.el6.noarch                                        1/4 
  Installing     : rhncfg-client-5.9.5-6.el6.noarch                                 2/4 
  Installing     : rhncfg-actions-5.9.5-6.el6.noarch                                3/4 
  Installing     : rhncfg-management-5.9.5-6.el6.noarch                             4/4 

Installed:
  rhncfg.noarch 0:5.9.5-6.el6              rhncfg-actions.noarch 0:5.9.5-6.el6         
  rhncfg-client.noarch 0:5.9.5-6.el6       rhncfg-management.noarch 0:5.9.5-6.el6      

Complete!
# rhn-actions-control --enable-upload
# rhn_check -vv 2>&1 | tee /tmp/rhn_check.log
/usr/share/rhn/config_common/utils.py:17: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180129529</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180129529}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1279625939.61  with expiration of  1279629539.61  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1016552618, 'X-RHN-Auth-Server-Time': '1279625939.52', 'X-RHN-Auth': 'wou4aiaszS0/PZAeknVfPQ==', 'X-RHN-Auth-Channels': [['rhel-i386-server-6-beta', '20100720065830', '1', '1'], ['rhn-tools-rhel-i386-server-6-beta', '20100720011836', '0', '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>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>180129529</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/yum.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 180129529}
D: handle_action actionid = 180129529, version = 2
D: do_call configfiles.upload (180129529, ['/etc/yum.conf'])
D: Sending back response (0, 'All files successfully uploaded', {'attempted_paths': ['/etc/yum.conf']})
D: do_call packages.checkNeedUpdate ('rhnsd=1',)
Loaded plugins: rhnplugin
D: rpcServer: Calling XMLRPC up2date.listChannels
D: local action status:  (0, 'rpm database not modified since last update (or package list recently updated)', {})


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