<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks for the help, but I have discovered that this issue:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Could not retrieve action item from server <RetryServer for spacewalk.xxx.lan/XMLRPC><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Error code: 1While running 'queue.get': caught<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><type 'exceptions.TypeError'> : ipaddr() takes exactly 1 argument (2 given)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Is happening on all my systems now…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-22.5pt;page-break-after:avoid">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Justin Ames, RHCSA<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-22.5pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">System Administrator | Guardian Research Network<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><img width="159" height="32" id="Picture_x0020_1" src="cid:image001.png@01D2E105.F18CD370"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">397-C Serpentine Dr | Spartanburg, SC 29303<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-22.5pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">o: 864-560-5058 | c: 864-359-9050<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-22.5pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#262626">e:
</span><u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><a href="mailto:james@guardianresearch.org">james@guardianresearch.org
</a></span></u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#262626"> | w:</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="http://www.guardianresearch.org/"><span style="color:#262626"> GuardianResearch.org</span></a><span style="color:#262626"><o:p></o:p></span></span></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#0033CC">Confidentiality Notice: This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person
 or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received
 this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.<o:p></o:p></span></i></b></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><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"> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com]
<b>On Behalf Of </b>William H. ten Bensel<br>
<b>Sent:</b> Thursday, June 08, 2017 3:34 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Issues with kickstarted systems. [External]<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Arial",sans-serif;background:yellow;mso-highlight:yellow">Be aware: [This message came from outside of Spartanburg Regional Network]</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Arial",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I have updated the bug/enhancement request to see if it is possible to separate out the
<span style="color:#4F4F4F">"Registration and server actions</span>" into two sections of  1. download/install of rpms and 2. registration.  Then with that being separated, allow the admin to enable/disable the download/install of rpms in the scripts section.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">This would still allow support for older distributions or distributions that do not come with the rhn packages.  This would also allow for distributions with newer/older packages to still function
 without the worry of "pune to puny" issues and allow admins the ability to specify a specific repo/channel in the kickstart AND the packages to install in the software section of the kickstart.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">- Thanks and good luck</span><br>
<br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">"William H. ten Bensel" <<a href="mailto:WHTENBEN@up.com">WHTENBEN@up.com</a>></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">06/08/2017 12:29 PM</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Re: [Spacewalk-list] Issues with kickstarted systems.</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Sent by:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a></span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">  <o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">The registration issues, during kickstart and manual, are related...     The registration failure is caused by the kickstart script,
<span style="color:#4F4F4F">"Registration and server actions</span>"  as it does not do dependency checks when doing the following command:<br>
rpm -Uvh --replacepkgs --replacefiles /tmp/rhn_rpms/optional/pyOpenSSL* /tmp/rhn_rpms/optional/rhnlib* /tmp/rhn_rpms/optional/libxml2-python* /tmp/rhn_rpms/optional/libxml2*
</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
I had the same exact problem (</span><a href="https://www.redhat.com/archives/spacewalk-list/2015-November/msg00130.html"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://www.redhat.com/archives/spacewalk-list/2015-November/msg00130.html</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">)
 and the following scripts were the only way that I could figure it out.    </span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Hope this helps...<br>
<br>
- Thanks and good luck</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Systems -> kickstart -> profile -> name -> Scripts ->   <br>
<br>
The following script needs to come BEFORE "<span style="color:#4F4F4F">Registration and server actions</span>"<br>
<br>
Script Name: FIX_REGISTRATION_BUG<br>
Script Execution Time: Post Script<br>
nochroot (YES, checked)<br>
Template(YES, checked)<br>
<br>
Script Contents:  ( I created a snippet, because I use it in ALL of my kickstarts).<br>
$SNIPPET('spacewalk/1/FIX_REGISTRATION_BUG')<br>
<br>
Contents of snippet:<br>
<br>
if [ -f /mnt/sysimage/bin/rpm ]; then<br>
               mv -f /mnt/sysimage/bin/rpm /mnt/sysimage/bin/origrpm<br>
               echo '#!/bin/bash' > /mnt/sysimage/bin/rpm<br>
               echo '#This script is to prevent newer versions of rhn, libxml, pyOpenSSL from being installed' >> /mnt/sysimage/bin/rpm<br>
               echo '#Hack around </span><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1280167'"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://bugzilla.redhat.com/show_bug.cgi?id=1280167'</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">>>
 /mnt/sysimage/bin/rpm<br>
               echo '#The post nochroot script, will mv /mnt/sysimage/bin/rpm to /mnt/sysimage/bin/origrpm and add the following to rpm' >> /mnt/sysimage/bin/rpm<br>
               echo '#Then in the first post snippet, mv -f /bin/origrpm /bin/rpm.' >> /mnt/sysimage/bin/rpm<br>
               echo ' ' >> /mnt/sysimage/bin/rpm<br>
               echo 'if [[ "$@" =~ "Uvh" ]]; then' >> /mnt/sysimage/bin/rpm<br>
               echo '    echo "Not installing \"$@\""' >> /mnt/sysimage/bin/rpm<br>
               echo 'else' >> /mnt/sysimage/bin/rpm<br>
               echo '    isLinux7=`grep "release 7" /etc/redhat-release`' >> /mnt/sysimage/bin/rpm<br>
               echo '    if [[ "$@" =~ "--import" ]] && [[ -n "$isLinux7" ]]; then' >> /mnt/sysimage/bin/rpm<br>
               echo '            /bin/rpmkeys "$@"' >> /mnt/sysimage/bin/rpm<br>
               echo '    else' >> /mnt/sysimage/bin/rpm<br>
               echo '        /bin/origrpm "$@"' >> /mnt/sysimage/bin/rpm<br>
               echo '    fi' >> /mnt/sysimage/bin/rpm<br>
               echo 'fi' >> /mnt/sysimage/bin/rpm<br>
               chmod 755 /mnt/sysimage/bin/rpm<br>
               which rpm<br>
fi<br>
<br>
<br>
The following script needs to come AFTER "<span style="color:#4F4F4F">Registration and server actions</span>"</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Script Name: RESTORE_RPM<br>
Script Execution Time: Post Script<br>
Template(YES, checked)<br>
<br>
Script Contents:  ( I created a snippet, because I use it in ALL of my kickstarts).<br>
$SNIPPET('spacewalk/1/RESTORE_RPM')<br>
<br>
<br>
Contents of snippet:</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
# </span><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1280167"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://bugzilla.redhat.com/show_bug.cgi?id=1280167</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
# changing back from FIX_REGISTRATION_BUG Snippet<br>
if [ -f /bin/origrpm ]; then<br>
  mv -f /bin/origrpm /bin/rpm<br>
  echo "moved rpm back"<br>
fi</span><br>
<br>
<br>
<br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
From:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">"Ames, Justin" <<a href="mailto:james@guardianresearch.org">james@guardianresearch.org</a>><span style="color:#5F5F5F"><br>
To:        </span>"'spacewalk-list@redhat.com'" <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>><span style="color:#5F5F5F"><br>
Date:        </span>06/08/2017 11:48 AM<span style="color:#5F5F5F"><br>
Subject:        </span>[Spacewalk-list] Issues with kickstarted systems.<span style="color:#5F5F5F"><br>
Sent by:        </span><a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a></span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"> <span style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
I am having issues with my kickstarted CentOS systems. First they do not register due to the change from pune to puny between the rhntools in the CentOS 7.3 base. Then when I do register them, I get:<br>
Could not retrieve action item from server <RetryServer for spacewalk.grn.lan/XMLRPC><br>
Error code: 1While running 'queue.get': caught<br>
<type 'exceptions.TypeError'> : ipaddr() takes exactly 1 argument (2 given)<br>
<br>
After that I also get it when I run rhn_check.<br>
<br>
Anyone have any ideas were to look to see what is happening?<br>
<br>
Thanks,<br>
<b><br>
Justin Ames, RHCSA<i><span style="color:#0041C2"><br>
</span></i></b><br>
</span><tt><span style="font-size:10.0pt">This email originated from outside of the company.  Please use discretion if opening attachments or clicking on links.</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>_______________________________________________</tt><br>
<tt>Spacewalk-list mailing list</tt><br>
<tt><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></tt></span><u><span style="color:blue"><br>
</span></u><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><span style="font-size:10.0pt">https://www.redhat.com/mailman/listinfo/spacewalk-list</span></tt></a><br>
<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>
**<tt><span style="font-size:10.0pt">This email originated from outside of the company.  Please use discretion if opening attachments or clicking on links.</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>_______________________________________________</tt><br>
<tt>Spacewalk-list mailing list</tt><br>
<tt><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></tt><br>
</span><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><span style="font-size:10.0pt">https://www.redhat.com/mailman/listinfo/spacewalk-list</span></tt></a>
<o:p></o:p></p>
<p><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>
**<o:p></o:p></p>
</div>
</div>
</body>
</html>