[Spacewalk-list] Issues with kickstarted systems. [External]

Ames, Justin james at guardianresearch.org
Fri Jun 9 13:51:19 UTC 2017


Thanks for the help, but I have discovered that this issue:
Could not retrieve action item from server <RetryServer for spacewalk.xxx.lan/XMLRPC>
Error code: 1While running 'queue.get': caught
<type 'exceptions.TypeError'> : ipaddr() takes exactly 1 argument (2 given)

Is happening on all my systems now...
Thanks,
Justin Ames, RHCSA
System Administrator | Guardian Research Network

[cid:image001.png at 01D2E105.F18CD370]

397-C Serpentine Dr | Spartanburg, SC 29303
o: 864-560-5058 | c: 864-359-9050
e: james at guardianresearch.org <mailto:james at guardianresearch.org>  | w: GuardianResearch.org<http://www.guardianresearch.org/>
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.

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of William H. ten Bensel
Sent: Thursday, June 08, 2017 3:34 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Issues with kickstarted systems. [External]

Be aware: [This message came from outside of Spartanburg Regional Network]

I have updated the bug/enhancement request to see if it is possible to separate out the "Registration and server actions" 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.

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.

- Thanks and good luck




From:        "William H. ten Bensel" <WHTENBEN at up.com<mailto:WHTENBEN at up.com>>
To:        spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Date:        06/08/2017 12:29 PM
Subject:        Re: [Spacewalk-list] Issues with kickstarted systems.
Sent by:        spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
________________________________



This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.
________________________________


The registration issues, during kickstart and manual, are related...     The registration failure is caused by the kickstart script, "Registration and server actions"  as it does not do dependency checks when doing the following command:
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*

I had the same exact problem (https://www.redhat.com/archives/spacewalk-list/2015-November/msg00130.html) and the following scripts were the only way that I could figure it out.

Hope this helps...

- Thanks and good luck


Systems -> kickstart -> profile -> name -> Scripts ->

The following script needs to come BEFORE "Registration and server actions"

Script Name: FIX_REGISTRATION_BUG
Script Execution Time: Post Script
nochroot (YES, checked)
Template(YES, checked)

Script Contents:  ( I created a snippet, because I use it in ALL of my kickstarts).
$SNIPPET('spacewalk/1/FIX_REGISTRATION_BUG')

Contents of snippet:

if [ -f /mnt/sysimage/bin/rpm ]; then
               mv -f /mnt/sysimage/bin/rpm /mnt/sysimage/bin/origrpm
               echo '#!/bin/bash' > /mnt/sysimage/bin/rpm
               echo '#This script is to prevent newer versions of rhn, libxml, pyOpenSSL from being installed' >> /mnt/sysimage/bin/rpm
               echo '#Hack around https://bugzilla.redhat.com/show_bug.cgi?id=1280167'>> /mnt/sysimage/bin/rpm
               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
               echo '#Then in the first post snippet, mv -f /bin/origrpm /bin/rpm.' >> /mnt/sysimage/bin/rpm
               echo ' ' >> /mnt/sysimage/bin/rpm
               echo 'if [[ "$@" =~ "Uvh" ]]; then' >> /mnt/sysimage/bin/rpm
               echo '    echo "Not installing \"$@\""' >> /mnt/sysimage/bin/rpm
               echo 'else' >> /mnt/sysimage/bin/rpm
               echo '    isLinux7=`grep "release 7" /etc/redhat-release`' >> /mnt/sysimage/bin/rpm
               echo '    if [[ "$@" =~ "--import" ]] && [[ -n "$isLinux7" ]]; then' >> /mnt/sysimage/bin/rpm
               echo '            /bin/rpmkeys "$@"' >> /mnt/sysimage/bin/rpm
               echo '    else' >> /mnt/sysimage/bin/rpm
               echo '        /bin/origrpm "$@"' >> /mnt/sysimage/bin/rpm
               echo '    fi' >> /mnt/sysimage/bin/rpm
               echo 'fi' >> /mnt/sysimage/bin/rpm
               chmod 755 /mnt/sysimage/bin/rpm
               which rpm
fi


The following script needs to come AFTER "Registration and server actions"

Script Name: RESTORE_RPM
Script Execution Time: Post Script
Template(YES, checked)

Script Contents:  ( I created a snippet, because I use it in ALL of my kickstarts).
$SNIPPET('spacewalk/1/RESTORE_RPM')


Contents of snippet:

# https://bugzilla.redhat.com/show_bug.cgi?id=1280167
# changing back from FIX_REGISTRATION_BUG Snippet
if [ -f /bin/origrpm ]; then
  mv -f /bin/origrpm /bin/rpm
  echo "moved rpm back"
fi







From:        "Ames, Justin" <james at guardianresearch.org<mailto:james at guardianresearch.org>>
To:        "'spacewalk-list at redhat.com'" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Date:        06/08/2017 11:48 AM
Subject:        [Spacewalk-list] Issues with kickstarted systems.
Sent by:        spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>

________________________________



This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.
________________________________

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:
Could not retrieve action item from server <RetryServer for spacewalk.grn.lan/XMLRPC>
Error code: 1While running 'queue.get': caught
<type 'exceptions.TypeError'> : ipaddr() takes exactly 1 argument (2 given)

After that I also get it when I run rhn_check.

Anyone have any ideas were to look to see what is happening?

Thanks,

Justin Ames, RHCSA

This email originated from outside of the company.  Please use discretion if opening attachments or clicking on links.

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list




**



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.

**This email originated from outside of the company.  Please use discretion if opening attachments or clicking on links.

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list



**



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.

**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170609/45a61dd4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7603 bytes
Desc: image001.png
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170609/45a61dd4/attachment.png>


More information about the Spacewalk-list mailing list