[Spacewalk-list] Can't register RHEL5 host with 'spacewalk default' key

Snyder, Chris Chris_Snyder at sra.com
Mon Nov 19 15:57:43 UTC 2012


I'm using Spacewalk 1.7 (1.8 is too new to try yet, going to let the bugs shake out a bit first) and I want to be able to kickstart a RHEL 5 x86_64 host and have it automatically registered to the appropriate base channel ( and spacewalk client child channel) using the 'Spacewalk Default' key. However, rhnreg_ks always fails to register my new host to ANY channels when I try this.    As far as I can tell I'm doing everything right, but obviously I've missed something. I've been arguing with SW for over two weeks trying to solve this and my head is going in circles now.  Somebody please save me!

If I understand correctly, any Kickstart Profile that uses the Spacewalk Default key will automatically be registered with the appropriate base channel based upon OS + architecture for a given Organization.  Am I wrong in what this does?  (BTW, where are the official docs that explain precisely what a Spacewalk Default key does?  All my information has been built from various sources on the 'net.)

I have yet to find an explicit recipe for adding RHEL 5 channels to Spacewalk for PXE/Kickstart, so all my configuration has been built using lots of Googling and primarily this page: http://wiki.centos.org/HowTos/PackageManagement/Spacewalk.

I have created a base channel for RHEL5, loaded all packages in to SW, created a child channel which contains the appropriate Spacewalk-client tools and made sure that this child channel is included with my Spacewalk Default key, and I've got my kickstart distro + profile set up as well.   My Kickstart profile is related to my Spacewalk Default Key and has specified the correct base channel.  My Kickstart profile does NOT explicitly list the child channel for spacewalk-client because my understanding is that those channels related to the any Activation Key will supersede those defined in the Kickstart Profile.

Other than rhnreg_ks, everything works as I expect it to: host is built via PXE + Kickstart, SW client tools are installed, but registration fails.

Base channel configuration:

*         Name: RHEL 5 (core server)

*         Label: rhel-x86_64-server-5

>From the errors I'm seeing on the server, I really feel that Spacewalk has no idea what a Red Hat 5 x86_64 host is.  Specifically, the error ''Server has invalid release and token contains no base channels'.  Is there someplace I need to go into Spacewalk and say 'RHEL5 x86_64' uses 'release: '5server'?  If that's built off of the channel label, what piece of documentation did I miss that explains that?
Here's the logs from /var/log/rhn/ rhn_server_xmlrpc.log:

(BTW,    1-f52123e8c5c9bb2bb4cda7a4ffe5068b, is my default Activation Key. I have no idea what 1-32fb9007d8fb9dafb5f4d62b888843ba is or where it came from.  My Kickstart profile is using all defaults except for Operating System and Activation Keys)

2012/11/16 17:33:37 -04:00 19655 10.10.10.18: xmlrpc/registration.update_packages(1000010003, 'packages: 427')
2012/11/16 17:33:38 -04:00 21758 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/16 17:33:38 -04:00 21759 10.10.10.18: xmlrpc/queue.get(1000010003, 2, 'checkins enabled')
2012/11/16 17:33:38 -04:00 19661 10.10.10.18: xmlrpc/up2date.listChannels(1000010003,)
2012/11/16 17:33:38 -04:00 19661 10.10.10.18: server/rhnChannel.channels_for_server('ERROR', 'Server not subscribed to any channels', 1000010003)
2012/11/16 17:33:38 -04:00 21756 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/18 10:40:30 -04:00 17806 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: xmlrpc/registration.create_system("token = '1-32fb9007d8fb9dafb5f4d62b888843ba,1-f52123e8c5c9bb2bb4cda7a4ffe5068b'", '5Server', 'x86_64-redhat-linux')
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart._get_ks_virt_type('KS_TYPE: none',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('VIRTUALIZATION_TYPE: 5',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart._get_ks_virt_type('KS_TYPE: none',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('VIRTUALZIATION_TYPE_LABEL: none',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('NOT A VIRT KICKSTART',)
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_token.process_token(1000010004, 'enterprise_entitled,provisioning_entitled')
2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_token.token_channels('ERROR', 'Server has invalid release and token contains no base channels', 1000010004, [{'note': 'Default session activation key for profile rhel-x86_64-server-5.', 'usage_limit': None, 'user_id': 1, 'org_id': 1, 'server_id': None, 'token_desc': 'Spacewalk Management Entitled Servers', 'token_type': 'enterprise_entitled', 'token': '1-32fb9007d8fb9dafb5f4d62b888843ba', 'token_id': 3, 'deploy_configs': 'N', 'kickstart_session_id': 2, 'is_base': 'Y'}, {'note': 'Default Key', 'usage_limit': None, 'user_id': 1, 'org_id': 1, 'server_id': None, 'token_desc': 'Spacewalk Management Entitled Servers', 'token_type': 'enterprise_entitled', 'token': '1-f52123e8c5c9bb2bb4cda7a4ffe5068b', 'token_id': 2, 'deploy_configs': 'N', 'kickstart_session_id': None, 'is_base': 'Y'}])
2012/11/18 10:40:31 -04:00 27541 10.10.10.18: xmlrpc/registration.__add_hw_profile_no_auth(1000010004, 'items: 51')
2012/11/18 10:40:31 -04:00 17810 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/18 10:40:32 -04:00 17807 10.10.10.18: xmlrpc/registration.add_packages(1000010004, 'packages: 427')
2012/11/18 10:40:33 -04:00 17809 10.10.10.18: xmlrpc/queue.get(1000010004, 2, 'checkins enabled')
2012/11/18 10:40:33 -04:00 27373 10.10.10.18: xmlrpc/up2date.login(1000010004,)
2012/11/18 10:40:33 -04:00 27373 10.10.10.18: server/rhnChannel.channels_for_server('ERROR', 'Server not subscribed to any channels', 1000010004)
2012/11/18 10:40:33 -04:00 17817 10.10.10.18: xmlrpc/up2date.listChannels(1000010004,)
2012/11/18 10:40:33 -04:00 17817 10.10.10.18: server/rhnChannel.channels_for_server('ERROR', 'Server not subscribed to any channels', 1000010004)
2012/11/18 10:40:33 -04:00 17811 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/18 10:40:33 -04:00 27542 10.10.10.18: xmlrpc/registration.update_packages(1000010004, 'packages: 427')
2012/11/18 10:40:34 -04:00 17805 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)
2012/11/18 10:40:34 -04:00 17806 10.10.10.18: xmlrpc/queue.get(1000010004, 2, 'checkins enabled')
2012/11/18 10:40:34 -04:00 27539 10.10.10.18: xmlrpc/up2date.listChannels(1000010004,)
2012/11/18 10:40:34 -04:00 27539 10.10.10.18: server/rhnChannel.channels_for_server('ERROR', 'Server not subscribed to any channels', 1000010004)
2012/11/18 10:40:34 -04:00 17814 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)

Thanks,
Chris.

--
Chris Snyder
SRA Senior Linux Geek
Energystar Network O+M Team
ESTAR Issues: https://estar18.energystar.gov/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121119/706251f0/attachment.htm>


More information about the Spacewalk-list mailing list