Re: [Spacewalk-list] Problem while registering ( CentOS 7 )
Hi Robert, How can I find it from spacewalk server ? I don't know why this server has this problem, I have registered ten CentOS servers without any problems. Best Regards, From: spacewalk-list-boun...@redhat.com on behalf of Robert Paschedag Sent: Tuesday, September 3, 2019 5:17 AM To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] Problem while registering ( CentOS 7 ) You're missing the python xml2 module. You need to manually download it from your spacewalk server and install it. Robert sent from my mobile device Originale Nachricht Von: Amir Kalhori Gesendet: Tue Sep 03 06:22:15 GMT+02:00 2019 An: "spacewalk-list@redhat.com" Betreff: [Spacewalk-list] Problem while registering ( CentOS 7 ) Dear All, I got below error while registering a a CentOS 7 server. [root@TAAM-DB /]# sudo rhnreg_ks --serverUrl=https://repo.yaas.bm/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-centos7 Traceback (most recent call last): File "/sbin/rhnreg_ks", line 35, in from up2date_client import rhnreg File "/usr/lib/python2.7/site-packages/up2date_client/rhnreg.py", line 20, in from up2date_client import hardware File "/usr/lib/python2.7/site-packages/up2date_client/hardware.py", line 57, in import dmidecode File "/usr/lib64/python2.7/site-packages/dmidecode.py", line 28, in import libxml2 ImportError: No module named libxml2 [root@TAAM-DB /]# ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Problem while registering ( CentOS 7 )
You're missing the python xml2 module. You need to manually download it from your spacewalk server and install it. Robert sent from my mobile device Originale Nachricht Von: Amir Kalhori Gesendet: Tue Sep 03 06:22:15 GMT+02:00 2019 An: "spacewalk-list@redhat.com" Betreff: [Spacewalk-list] Problem while registering ( CentOS 7 ) Dear All, I got below error while registering a a CentOS 7 server. [root@TAAM-DB /]# sudo rhnreg_ks --serverUrl=https://repo.yaas.bm/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-centos7 Traceback (most recent call last): File "/sbin/rhnreg_ks", line 35, in from up2date_client import rhnreg File "/usr/lib/python2.7/site-packages/up2date_client/rhnreg.py", line 20, in from up2date_client import hardware File "/usr/lib/python2.7/site-packages/up2date_client/hardware.py", line 57, in import dmidecode File "/usr/lib64/python2.7/site-packages/dmidecode.py", line 28, in import libxml2 ImportError: No module named libxml2 [root@TAAM-DB /]# ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] Problem while registering ( CentOS 7 )
Dear All, I got below error while registering a a CentOS 7 server. [root@TAAM-DB /]# sudo rhnreg_ks --serverUrl=https://repo.yaas.bm/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-centos7 Traceback (most recent call last): File "/sbin/rhnreg_ks", line 35, in from up2date_client import rhnreg File "/usr/lib/python2.7/site-packages/up2date_client/rhnreg.py", line 20, in from up2date_client import hardware File "/usr/lib/python2.7/site-packages/up2date_client/hardware.py", line 57, in import dmidecode File "/usr/lib64/python2.7/site-packages/dmidecode.py", line 28, in import libxml2 ImportError: No module named libxml2 [root@TAAM-DB /]# ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Spacewalk 2.9 - How to Disable network proxy for specific repos
Larry Clegg: > Greetings Spacers, > > I’m running Spacewalk 2.9 on Centos 6.10 with all the latest patches. > > Is there a way to disable the network proxy for specific repos? I have two > internal repos which should not be passed thru the proxy server. I’ve > tried updating /etc/rhn/spacewalk-repo-sync/yum.conf with the entry shown > below but it did not work. So far no luck in figuring it out. I can ping > the swdepot.local server and I can wget from it. > > # cat /etc/rhn/spacewalk-repo-sync/yum.conf > [main] > proxy=http://proxy.local:3128 > [kyriba-misc-centos6] > name=External - Kyriba-Misc for Centos 6 > baseurl=http://swdepot.local/SW/Packages/kyriba-misc > proxy=_none_ > enabled=1 > gpgcheck = 0 > > When I try a repo sync I get these messages: > > [root@us3-inf-lu-s01 scripts]# /usr/bin/python -u > /usr/bin/spacewalk-repo-sync --channel kyriba-misc-centos6 --type yum > 15:35:06 == > 15:35:06 | Channel: kyriba-misc-centos6 > 15:35:06 == > 15:35:06 Sync of channel started. > 15:35:06 > 15:35:06 Processing repository with URL: > http://swdepot.local/SW/Packages/kyriba-misc > 15:35:06 ERROR: Cannot retrieve repository metadata (repomd.xml) for > repository: External - Kyriba-Misc for Centos 6. Please verify its path and > try again > 15:35:06 Sync of channel completed in 0:00:00. > 15:35:06 Total time: 0:00:00 Hello Larry, Are you able to access repo from commandline on spacewalk? E.g. # curl -v http://swdepot.local/SW/Packages/kyriba-misc/repodata/repomd.xml Regards, -- Michael Mráka System Management Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Error with yum update on Centos 7
Charles Allen: > > Running into an error similar to that seen in a post from several years ago: > > https://www.redhat.com/archives/spacewalk-list/2015-November/msg00074.html > > If I run 'yum update' from my spacewalk client, it provides the following > traceback: > > Loaded plugins: fastestmirror, rhnplugin > Traceback (most recent call last): > File "/usr/bin/yum", line 29, in > yummain.user_main(sys.argv[1:], exit_code=True) ... > File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1415, in > __getattr__ > return getattr(self._socket, name) > AttributeError: '_socketobject' object has no attribute 'state_string' > > It appears to occur if there are no updates available for the client; though, > I am not certain of this. Currently running Spacewalk 2.9; clients are > Centos 7. > > Looking for some insight from someone smarter than myself to fix this issue. > Thanks in advance. Hello Charlie, The traceback in your report is a different one than one in referenced email. Your issue looks more like https://bugzilla.redhat.com/show_bug.cgi?id=1581424 https://bugzilla.redhat.com/show_bug.cgi?id=1597711 which should be fixed by latest python-pyOpenSSL. > Charlie Regards, -- Michael Mráka System Management Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Changing the functionality of the Daily Status Report
I have something like this in cron https://github.com/ac427/my_cm/blob/master/python_scripts/spacewalk_inactive.py ac On Wed, Aug 28, 2019 at 11:38 AM Guy Matz wrote: > Hi! I get a daily email of machines that have not checked in, but what I > would prefer is for spacewalk to fire a webhook . . . is that possible? > > Thanks! > Guy > ___ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Changing the functionality of the Daily Status Report
Guy Matz: > Hi! I get a daily email of machines that have not checked in, but what I > would prefer is for spacewalk to fire a webhook . . . is that possible? Hello Guy, Emails can't be changed to anything else. But you can use procmail to pass selected ones through a script. > Thanks! > Guy Regards, -- Michael Mráka System Management Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list