spacewalk-api-scripts
spacewalk-api-scripts copied to clipboard
spacewalk create yum script error
Hi, I am trying to use the create yum repo script and I received the following error.
/usr/local/bin/spacewalk-create-yumrepo.py -s ghslspacewalk.ds.src.bah.com -u swadmin -p xxxx -c spacewalk_client-2.3-centos7-x86_64 -d /var/www/html/pub/spacewalk-client/CentOS/7/
Generating package links. Please be patient
Traceback (most recent call last):
File "/usr/local/bin/spacewalk-create-yumrepo.py", line 140, in
Jason
Hi,
sorry for the really late answer: That seems to me you have a problem with your Server Certificate. Have you tried to generate new, using the Satellite CA?
@angrox I am also facing the same error when running the command in Spacewalk v2.3 configured on CentOS 7.1.
I can confirm that this is not a spacewalk certificate issue as other servers can register to the spacewalk server very well. Also, utilities like spacecmd and other spacewalk scripts are running fine.
The script runs absolutely fine on my CentOS 6.6 boxes, may be you need to tweak something to make it work on CentOS 7.x.
@jasoncal108 @angrox I have found an interim solution. The python script works fine with v2.6 but throws error with v2.7. On my CentOS 7.1 box which has python 2.7, I create a virtual python environment following this link and replaced the shebang line of the script with #!/root/python2.6/bin/activate
. Here, python2.6 is my project name.
Hope this helps people facing the same issue.
I'm experiencing this issue as well. Installing an altinstall of python2.6 seems to have resolved the issue for me as well.
I was able to get rid of the SSL error on spacewalk-create-yumrepo by setting the parallelism to 1.
spacewalk-create-yumrepo.py --pcount 1 ...