Description of problem:
When rhnreg_ks is run with latest rhn-client-tools against Spacewalk 1.0, the profile get created but when sending package info, it fails.
Version-Release number of selected component (if applicable):
Spacewalk 1.0 on server.
rhn-client-tools-1.0.0-1.el5 on client.
Steps to Reproduce:
1. Have Spacewalk 1.0 and RHEL 5 client.
2. Upgrade rhn-client-tools from Spacewalk 1.0 client repo.
3. Run rhnreg_ks.
# rhnreg_ks --activationkey=1-test-1 --force
An error has occurred:
Error Class Code: 21
Error Class Info: Invalid arguments passed to function.
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.
See /var/log/up2date for more information
and on the server in /var/log/rhn/rhn_server_xmlrpc.log
2010/05/05 13:49:48 +02:00 12662 10.34.34.140: rhnSQL/driver_cx_Oracle.connect('Connecting to database', 'xe')
2010/05/05 13:49:48 +02:00 12662 10.34.34.140: xmlrpc/registration.welcome_message('lang: None',)
2010/05/05 13:49:48 +02:00 12655 10.34.34.140: xmlrpc/registration.create_system("token = '1-test-1'", '5Server', 'i686-redhat-linux')
2010/05/05 13:49:48 +02:00 12655 10.34.34.140: rhnServer/server_token.process_token(1000010022, 'enterprise_entitled')
2010/05/05 13:49:48 +02:00 12386 10.34.34.140: xmlrpc/registration.add_hw_profile(1000010022, 'items: 19')
2010/05/05 13:49:49 +02:00 12656 10.34.34.140: xmlrpc/registration._normalize_packages('ERROR', 'Invalid package spec for extended_profile >= 2', <type 'list'>, 'len = 5')
The thread on spacewalk-list is
The quick fix would be to revert 015c750daa164e80cca51bd683270fa1f91352ad.
That however brings back the duplicate registration.welcome_message, to retrieve the capabilities.
Revert done in Spacewalk master, db3f1bd553304d4589d54d9d6ce6e45ef9d3915a.
Tagged as rhn-client-tools-1.1.3-1.
Cherry picked to SPACEWALK-1.0 as df55d4df46ecdb4ab34b474dcf81afab97ad6fb2, tagged as rhn-client-tools-1.0.2-1.
Spacewalk 1.1 has been released.