<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1354261832;
        mso-list-type:hybrid;
        mso-list-template-ids:-327648256 748323176 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">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!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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:
<a href="http://wiki.centos.org/HowTos/PackageManagement/Spacewalk">http://wiki.centos.org/HowTos/PackageManagement/Spacewalk</a>.   <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Base channel configuration:<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]>Name: RHEL 5 (core server)<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]>Label: rhel-x86_64-server-5<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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?<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">Here’s the logs from /var/log/rhn/ rhn_server_xmlrpc.log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">(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)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2012/11/16 17:33:37 -04:00 19655 10.10.10.18: xmlrpc/registration.update_packages(1000010003, 'packages: 427')<o:p></o:p></p>
<p class="MsoNormal">2012/11/16 17:33:38 -04:00 21758 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/16 17:33:38 -04:00 21759 10.10.10.18: xmlrpc/queue.get(1000010003, 2, 'checkins enabled')<o:p></o:p></p>
<p class="MsoNormal">2012/11/16 17:33:38 -04:00 19661 10.10.10.18: xmlrpc/up2date.listChannels(1000010003,)<o:p></o:p></p>
<p class="MsoNormal">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)<o:p></o:p></p>
<p class="MsoNormal">2012/11/16 17:33:38 -04:00 21756 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:30 -04:00 17806 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">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')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart._get_ks_virt_type('KS_TYPE: none',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('VIRTUALIZATION_TYPE: 5',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart._get_ks_virt_type('KS_TYPE: none',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('VIRTUALZIATION_TYPE_LABEL: none',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_kickstart.schedule_virt_pkg_install('NOT A VIRT KICKSTART',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17814 10.10.10.18: rhnServer/server_token.process_token(1000010004, 'enterprise_entitled,provisioning_entitled')<o:p></o:p></p>
<p class="MsoNormal">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'}])<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 27541 10.10.10.18: xmlrpc/registration.__add_hw_profile_no_auth(1000010004, 'items: 51')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:31 -04:00 17810 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:32 -04:00 17807 10.10.10.18: xmlrpc/registration.add_packages(1000010004, 'packages: 427')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:33 -04:00 17809 10.10.10.18: xmlrpc/queue.get(1000010004, 2, 'checkins enabled')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:33 -04:00 27373 10.10.10.18: xmlrpc/up2date.login(1000010004,)<o:p></o:p></p>
<p class="MsoNormal">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)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:33 -04:00 17817 10.10.10.18: xmlrpc/up2date.listChannels(1000010004,)<o:p></o:p></p>
<p class="MsoNormal">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)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:33 -04:00 17811 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:33 -04:00 27542 10.10.10.18: xmlrpc/registration.update_packages(1000010004, 'packages: 427')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:34 -04:00 17805 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:34 -04:00 17806 10.10.10.18: xmlrpc/queue.get(1000010004, 2, 'checkins enabled')<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:34 -04:00 27539 10.10.10.18: xmlrpc/up2date.listChannels(1000010004,)<o:p></o:p></p>
<p class="MsoNormal">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)<o:p></o:p></p>
<p class="MsoNormal">2012/11/18 10:40:34 -04:00 17814 10.10.10.18: xmlrpc/registration.welcome_message('lang: None',)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
<p class="MsoNormal">Chris.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--<o:p></o:p></p>
<p class="MsoNormal">Chris Snyder<o:p></o:p></p>
<p class="MsoNormal">SRA Senior Linux Geek<br>
Energystar Network O+M Team<br>
ESTAR Issues: <a href="https://estar18.energystar.gov/"><span style="color:blue">https://estar18.energystar.gov/</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>