<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Times New Roman",serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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"><span style="color:#1F497D">I solved this with a bit of a hack. They key was installing the rhncfg-actions, my servers already have an internal yum repo configured to the media installation.  The other key was to touch & chmod 660 the /var/log/rhncfg-actions
 prior to the registration.  Previously the file had perms of 600, although root was the owner and group it still failed. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#!/bin/bash -x<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># This script performs the following tasks:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#   1. wget's the spacewalk client repo file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#   2. Installs the spacewalk client<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#   3. Moves all *.repo files to /etc/yum.repos.d/old_repo/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#   5. Enables the rhn-actions-control --enable-all so config files can be pushed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#   6. Touch and Modify /var/log/rhncfg-actions so configuration channel pushes will occur. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#wget the spacewalk client file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">wget -O /etc/yum.repos.d/spacewalk20-client.repo
<a href="http://URL_OF_YOUR_CHOICE">http://URL_OF_YOUR_CHOICE</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#install spacewalk client<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin rhncfg-actions -y<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#move all repo files to diff directory<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">mkdir -p /etc/yum.repos.d/old_repo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">for i in `find /etc/yum.repos.d/*.repo` ; do mv $i /etc/yum.repos.d/old_repo/; done<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#enabled actions<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/bin/rhn-actions-control --enable-all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#solve for the python error when pushing config files<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">touch /var/log/rhncfg-actions<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">chmod 660 /var/log/rhncfg-actions<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#Register with spacewalk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rhnreg_ks --serverUrl=http://FQDN_OF_SWALK/XMLRPC --activationkey=1-KEY_NAME<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>Reneau, Wes W [HDS]<br>
<b>Sent:</b> Tuesday, January 20, 2015 12:16 PM<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> [Spacewalk-list] configuration channel challenges<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Hello all, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Experimenting with configuration channels and having difficulty with RHEL 6 clients.  I am unable to push a config file due to the following error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div align="center">
<table class="MsoNormalTable" border="0" cellpadding="0" style="background:white">
<tbody>
<tr>
<td valign="top" style="background:#EEEEEE;padding:6.0pt 6.0pt 6.0pt 12.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><b><span style="font-family:"Trebuchet MS",sans-serif;color:#444444">Summary:<o:p></o:p></span></b></p>
</td>
<td valign="top" style="border:none;border-bottom:solid #DDDDDD 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt">
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">Deploy config files to system scheduled by (none)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="background:#EEEEEE;padding:6.0pt 6.0pt 6.0pt 12.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><b><span style="font-family:"Trebuchet MS",sans-serif;color:#444444">Details:<o:p></o:p></span></b></p>
</td>
<td valign="top" style="border:none;border-bottom:solid #DDDDDD 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt">
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">This action will be executed after 01/20/15 11:37:53 AM EST.<br>
<br>
This action's status is: Failed.<br>
The client picked up this action on 01/20/15 11:37:53 AM EST.<br>
The client completed this action on 01/20/15 11:37:53 AM EST.<br>
Client execution returned "Local permission not set for action type configfiles.deploy" (code 42)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">Config Files:<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal">FILENAME REMOVED (rev. 2)<o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I can solve this problem by running rhn-actions-control –enable-all and reschedule the job.  Is there a way to eliminate that manual step?  I’m adding several hundred server to my swalk server and doing that
 step manually is time consuming.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Also, once I enable all the actions and reschedule the job it will complete however I get another error as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div align="center">
<table class="MsoNormalTable" border="0" cellpadding="0" style="background:white">
<tbody>
<tr>
<td valign="top" style="background:#EEEEEE;padding:6.0pt 6.0pt 6.0pt 12.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><b><span style="font-family:"Trebuchet MS",sans-serif;color:#444444">Summary:<o:p></o:p></span></b></p>
</td>
<td valign="top" style="border:none;border-bottom:solid #DDDDDD 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt">
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">Deploy config files to system scheduled by (none)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="background:#EEEEEE;padding:6.0pt 6.0pt 6.0pt 12.0pt">
<p class="MsoNormal" align="right" style="text-align:right"><b><span style="font-family:"Trebuchet MS",sans-serif;color:#444444">Details:<o:p></o:p></span></b></p>
</td>
<td valign="top" style="border:none;border-bottom:solid #DDDDDD 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt">
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">This action will be executed after 01/20/15 11:37:53 AM EST.<br>
<br>
This action's status is: Failed.<br>
The client picked up this action on 01/20/15 11:43:27 AM EST.<br>
The client completed this action on 01/20/15 11:43:27 AM EST.<br>
Client execution returned "Fatal error in Python code occurred [[6]]" (code -1)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#333333">Config Files:<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal">FILENAME REMOVED(rev. 2)<o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Despite the failed status the config file is getting placed on the server and working as expected.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m using a VM to test this with so I’ve rolled back to the previous snapshot and tested a few things, one thing of interest is that I touched
</span><span style="color:#1F4E79">/var/log/rhncfg-actions and chmod the file to 666.  After rescheduling the action the job is completed w/ no errors.  An obvious security risk but interesting just the same.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Would appreciate your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Wes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>