<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 30 March 2016 at 22:48, William H. ten Bensel <span dir="ltr"><<a href="mailto:WHTENBEN@up.com" target="_blank">WHTENBEN@up.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="sans-serif" size="2">That is a "hack" work around.
 After the 1-3 steps below is done, add this before and after the
"hack" to add some validation in the %post script.   This
should see/validate if the activation key is pushing the files as expected
while the server is being kickstarted/built.<br>date > /root/verify_configs.out<br>rhncfg-client verify >> /root/verify_configs.out<br>"hack"<br>date >> /root/verify_configs.out<br>rhncfg-client verify >> /root/verify_configs.out<br></font></blockquote><div><br><br></div><div>Ok, this is what I got with current set up:<br><br>Thu Mar 31 11:05:08 AEDT 2016<br>Using server name emts-res-utils1<br> modified /etc/cntlm.conf<br>  missing /etc/cron.d/15min<br>  missing /etc/cron.quarter_hour/check_nfs_mounts.sh<br>  missing /etc/munge/munge.key<br>  missing /etc/profile.d/proxy.sh<br>  missing /etc/samba/user<br>  missing /etc/slurm/slurm.conf<br>  missing /etc/slurm/slurmdbd.conf<br>Thu Mar 31 11:05:10 AEDT 2016<br>Using server name emts-res-utils1<br>  /etc/cntlm.conf<br>  /etc/cron.d/15min<br>  /etc/cron.quarter_hour/check_nfs_mounts.sh<br>  /etc/munge/munge.key<br>  /etc/profile.d/proxy.sh<br>  /etc/samba/user<br>  /etc/slurm/slurm.conf<br>  /etc/slurm/slurmdbd.conf<br><br></div><div><br> <br></div><div>When I did the below exactly as you have it described, I got exactly the same result - ie, for some reason, Spacewalk is not delivering the files before I ratchet them in. <br><br></div><div>Note: The problem only exists when I do the first option in step 4, the rebuild/re-kickstart. When I do the second option, it is successful - which reflects that I can deploy manually after the server has installed and first booted, not during the kickstart.<br></div><div><br></div><div>I can't see anything in the logs that would indicate where the Kickstart process has attempted and failed to get the files. Would that error be logged?<br></div><div><br><font face="sans-serif" size="2"></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><font face="sans-serif" size="2">1. Now lets concentrate on resetting
the activation key:<br><br>For each activation key that you want config files pushed when a system
activates/registers with this key:</font></p><p><font face="sans-serif" size="2">Systems -> Activation Keys -> {activation
key} -> details -> take note of the key (ie: {org#}-{what you named
it} or {some long number})<br>Systems -> Activation Keys -> {activation key} -> details ->
uncheck  Configuration File Deployment.  <br>Select: Update Activation key<br>then recheck Configuration File Deployment<br>Select: Update Activation key<br>Validate that the Config channels are part of this activation key.<br>Systems -> Activation Keys -> {activation key} -> Configuration<br><br>2. Now go to the kickstart:<br>Systems -> kickstarts -> profiles -> {profile name} -> Activation
Keys -> uncheck the key<br>Select: Update Activation keys<br>then recheck the key<br>Select: Update Activation keys<br><br>3. Validate that the kickstart has been updated:<br>Systems -> kickstarts -> profiles -> {profile name} -> Kickstart
File<br>Verify AND take note of the Activation key(s) is there.  You will
use those in re-registration.<br>ie: key=1-xxxxxxxxxxxxxxxxx,1-yourkey<br><br><br>4.  Now you can do the following:<br>Re-kickstart / rebuild the server with the kickstart.<br>OR<br>add a test file to the configuration channel that is NOT on the server.<br>delete the server from the Spacewalk<br>force register from the server:<br></font><font face="Consolas" size="2">rhnreg_ks --force --serverUrl=https:</font><font face="Consolas" color="#008000" size="2">//spacewalk.server.domain/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey="keys
from kickstart"</font><font size="3"> </font><font face="sans-serif" size="2"><br>validate the file is on the server. (This will tell you if the activation
key is pushing the files as expected with the above configuration)<br>Remove test file from the configuration channel.<span class=""></span></font><br></p></blockquote><div><br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>------<br>The most dangerous phrase in the language is, "We've always done it this way."<br><br>- Grace Hopper<br></div></div></div></div>
<br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span class=""><br><font face="sans-serif" color="#5f5f5f" size="1">From:      
 </font><font face="sans-serif" size="1">Lachlan Musicman <<a href="mailto:datakid@gmail.com" target="_blank">datakid@gmail.com</a>></font><br><font face="sans-serif" color="#5f5f5f" size="1">To:      
 </font><font face="sans-serif" size="1"><a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a></font><br></span><font face="sans-serif" color="#5f5f5f" size="1">Date:      
 </font><font face="sans-serif" size="1">03/30/2016 01:08 AM</font></p><div><div class="h5"><br><font face="sans-serif" color="#5f5f5f" size="1">Subject:    
   </font><font face="sans-serif" size="1">Re: [Spacewalk-list]
Kickstart and Config management</font><br><font face="sans-serif" color="#5f5f5f" size="1">Sent by:    
   </font><font face="sans-serif" size="1"><a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a></font><br><hr noshade><br><br><br><font size="3">This email originated from outside of the company. Please
use discretion if opening attachments or clicking on links.</font><hr><font size="3"> </font><p><font size="3">Now I'm confused. <br></font><br><font size="3">I've set up the config channel, I've set up an activation
key, I've associated both to the kickstart profile, without success.<br></font><br><font size="3">I have not been able to find any mention of /var/log/rhncfg-actions
in any documentation, although I do now touch it in a post installation
script. This doesn't work with regard to getting the managed files to deploy
to the newly installed server.<br></font><br><font size="3">Various helpful responders have mentioned forcing and/or
checking that the files have deployed during installation (*well, after
installation, but before reboot).<br></font><br><font size="3">What I have found that works is the post script that William
posted</font><font face="sans-serif" size="2"><br><br>for myconfigs in `rhncfg-client list |egrep -v "myspacewalk.server.domain|Config
Channel" |awk '{print $3}'`; do<br>                rhncfg-client get
$myconfigs</font><font size="3"><br></font><br><br><font size="3">thanks. <br></font><br><font size="3">Was it always the case that I should have had something
like this, or is this a hack to get around the "something isn't working,
but we don't know what it is" problem? I don't mind - I am happy to
have it working :)</font><br><br><font size="3">L.</font><br><br><font size="3">------<br>The most dangerous phrase in the language is, "We've always done it
this way."<br><br>- Grace Hopper</font><br><br><font size="3">On 30 March 2016 at 13:19, Lachlan Musicman <</font><a href="mailto:datakid@gmail.com" target="_blank"><font color="blue" size="3"><u>datakid@gmail.com</u></font></a><font size="3">>
wrote:</font><br><font size="3">On 30 March 2016 at 12:40, William H. ten Bensel <</font><a href="mailto:WHTENBEN@up.com" target="_blank"><font color="blue" size="3"><u>WHTENBEN@up.com</u></font></a><font size="3">>
wrote:</font><br><tt><font size="3">*Deployed*... Does that mean activate/re-activate
OR the installation of the rpms did not get the files OR an rhncfg-client
get failed? </font></tt><font size="3"><br></font><br><font size="3"><br><br></font><br><font size="3">Sorry, I'm not 100% with the lingo yet. Deployed in that
context meant "kickstart install on just provisioned bare metal vm,
via cobbler"</font><br><font size="3"><br><br> </font><br><tt><font size="3">Activate/re-activate should have pushed the files.
<br>Installation of the rpms by themselves, will not push the files.  rhncfg-client
get or a schedule through the UI, api, or spacecmd.</font></tt><br><font size="3"> </font><br><br><font size="3">Right. Late last week I moved the installation of the
rhncfg-* files from the Configuration Channel to the Kickstart profile
"Software" tab, in order to confirm that the rpms were installed
before the Configuration Channel kicked in?</font><br><font size="3"><br> </font><br><tt><font size="3">This are some of the options you can do in the kickstart:</font></tt><font size="3"><br></font><tt><font size="3"><br>1. Ensure that the rpms Avi gave are installed.</font></tt><font size="3"><br></font><tt><font size="3"><br>2. This has been part of our default kickstart for years.<br># Per rhncfg-client documentation, the first get or deploy of files can
fail if this file does not exist.<br># The work around is either reschedule, rerun, or touch the file<br>touch /var/log/rhncfg-actions</font></tt><br><br><font size="3"><br>Ah, I'll try this now. I am putting it into an early run post-install script
- is that what you are suggesting here? OR do you put this in the Kickstart
Details -> Advanced options ?<br></font><br><font size="3"><br> </font><br><font face="sans-serif" size="2">3.  In a %post script, verify all
of the files were deployed.<br>        for myconfigs in `rhncfg-client list |egrep
-v "myspacewalk.server.domain|Config Channel" |awk '{print $3}'`;
do<br>                rhncfg-client get
$myconfigs<br>        done</font><br><br><font size="3">Hmmm. ok - I'll test. Thanks<br></font><br><font size="3">cheers</font><br><font color="#8f8f8f" size="3">L. </font><br><font size="3"><br><br><br><br><br>------<br>The most dangerous phrase in the language is, "We've always done it
this way."<br><br>- Grace Hopper<br><br> </font><br><font size="3"><br></font><font face="sans-serif" color="#5f5f5f" size="1"><br>From:        </font><font face="sans-serif" size="1">Lachlan
Musicman <</font><a href="mailto:datakid@gmail.com" target="_blank"><font face="sans-serif" color="blue" size="1"><u>datakid@gmail.com</u></font></a><font face="sans-serif" size="1">></font><font face="sans-serif" color="#5f5f5f" size="1"><br>To:        </font><a href="mailto:spacewalk-list@redhat.com" target="_blank"><font face="sans-serif" color="blue" size="1"><u>spacewalk-list@redhat.com</u></font></a><font face="sans-serif" color="#5f5f5f" size="1"><br>Date:        </font><font face="sans-serif" size="1">03/29/2016
07:19 PM</font><font face="sans-serif" color="#5f5f5f" size="1"><br>Subject:        </font><font face="sans-serif" size="1">Re:
[Spacewalk-list] Kickstart and Config management</font><font face="sans-serif" color="#5f5f5f" size="1"><br>Sent by:        </font><a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank"><font face="sans-serif" color="blue" size="1"><u>spacewalk-list-bounces@redhat.com</u></font></a><font size="3"><br></font></p><hr noshade><font size="3"><br><br><br>This email originated from outside of the company. Please use discretion
if opening attachments or clicking on links.</font><hr><font size="3"> </font><p><font size="3">On 30 March 2016 at 10:43, Avi Miller <</font><a href="mailto:avi.miller@oracle.com" target="_blank"><font color="blue" size="3"><u>avi.miller@oracle.com</u></font></a><font size="3">>
wrote:<br><br>> On 30 Mar 2016, at 10:30 AM, Lachlan Musicman <</font><a href="mailto:datakid@gmail.com" target="_blank"><font color="blue" size="3"><u>datakid@gmail.com</u></font></a><font size="3">>
wrote:<br>><br>><br>> If this doesn't work, where should I look for information on why?
I'm not seeing anything in the log files.<br><br>Post-provisioning, check that you have the following RPMs installed:<br><br>rhncfg-management<br>rhncfg-client<br>rhncfg<br>rhncfg-actions<br><br>And check that configuration management is allowed:<br><br># rhn-actions-control --report<br>deploy is enabled<br>diff is enabled<br>upload is enabled<br>mtime_upload is enabled<br>run is enabled<br><br>If you don't have the RPMs, the rhn-actions-control won't work. If you're
not installing the RPMs as part of the provisioning process (i.e. if they're
not available in any channel enabled for kickstart), then the enabling
options won't work.<br><br><br><br>Thanks Avi.<br><br>Here's the output on a machine that I *just* deployed:<br><br><br>[root@vmpr-res-head-node ~]# rpm -qa | grep rhncfg<br>rhncfg-5.10.85-1.el7.noarch<br>rhncfg-actions-5.10.85-1.el7.noarch<br>rhncfg-client-5.10.85-1.el7.noarch<br>rhncfg-management-5.10.85-1.el7.noarch<br><br>[root@vmpr-res-head-node ~]# rhn-actions-control --report<br>deploy is enabled<br>diff is enabled<br>upload is enabled<br>mtime_upload is enabled<br>run is enabled<br><br><br>So everything looks right from that perspective. <br><br>But, no file deployment?<br><br>Hmmm..<br><br><br><br>------<br>The most dangerous phrase in the language is, "We've always done it
this way."<br><br>- Grace Hopper<br><br> <br>Cheers,<br>Avi<br><br>--<br>Oracle <</font><a href="http://www.oracle.com/" target="_blank"><font color="blue" size="3"><u>http://www.oracle.com</u></font></a><font size="3">><br>Avi Miller | Product Management Director | </font><a href="tel:%2B61%20%283%29%208616%203496" target="_blank"><font color="blue" size="3"><u>+61
(3) 8616 3496</u></font></a><font size="3"><br>Oracle Linux and Virtualization<br>417 St Kilda Road, Melbourne, Victoria 3004 Australia<br><br><br>_______________________________________________<br>Spacewalk-list mailing list</font><font color="blue" size="3"><u><br></u></font><a href="mailto:Spacewalk-list@redhat.com" target="_blank"><font color="blue" size="3"><u>Spacewalk-list@redhat.com</u></font></a><font color="blue" size="3"><u><br></u></font><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank"><font color="blue" size="3"><u>https://www.redhat.com/mailman/listinfo/spacewalk-list</u></font></a><br><tt><font size="2">This email originated from outside of the company.
 Please use discretion if opening attachments or clicking on links.<br><br>_______________________________________________<br>Spacewalk-list mailing list</font></tt><tt><font color="blue" size="2"><u><br></u></font></tt><a href="mailto:Spacewalk-list@redhat.com" target="_blank"><tt><font color="blue" size="2"><u>Spacewalk-list@redhat.com</u></font></tt></a><font color="blue" size="3"><u><br></u></font><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank"><tt><font color="blue" size="2"><u>https://www.redhat.com/mailman/listinfo/spacewalk-list</u></font></tt></a><font size="3"><br><br><br><br>**<br><br><br><br>This email and any attachments may contain information that is confidential
and/or privileged for the sole use of the intended recipient. Any use,
review, disclosure, copying, distribution or reliance by others, and any
forwarding of this email or its contents, without the express permission
of the sender is strictly prohibited by law. If you are not the intended
recipient, please contact the sender immediately, delete the e-mail and
destroy all copies.<br><br>**</font></p><p><font size="3"><br>_______________________________________________<br>Spacewalk-list mailing list</font><font color="blue" size="3"><u><br></u></font><a href="mailto:Spacewalk-list@redhat.com" target="_blank"><font color="blue" size="3"><u>Spacewalk-list@redhat.com</u></font></a><font color="blue" size="3"><u><br></u></font><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank"><font color="blue" size="3"><u>https://www.redhat.com/mailman/listinfo/spacewalk-list</u></font></a><br><br><tt><font size="2">This email originated from outside of the company.
 Please use discretion if opening attachments or clicking on links.<br><br>_______________________________________________<br>Spacewalk-list mailing list<br><a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br></font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank"><tt><font size="2">https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><br><br>
<br>
<br>
**<br>
<br>
<br>
<br>
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.<br>
<br>
**<br></p><p></p><p></p></div></div><p></p><p></p><p></p><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div></div>