spacewalk-api-scripts icon indicating copy to clipboard operation
spacewalk-api-scripts copied to clipboard

spacewalk create yum script error

Open jasoncal108 opened this issue 9 years ago • 5 comments

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 main() File "/usr/local/bin/spacewalk-create-yumrepo.py", line 127, in main pkg_paths=pool.map(get_package_details, pkg_id_list) File "/usr/lib64/python2.7/multiprocessing/pool.py", line 250, in map return self.map_async(func, iterable, chunksize).get() File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get raise self._value ssl.SSLError: [Errno 1] _ssl.c:1419: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

Jason

jasoncal108 avatar Jun 17 '15 16:06 jasoncal108

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 avatar Jul 20 '15 06:07 angrox

@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.

vikas027 avatar Aug 27 '15 17:08 vikas027

@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.

vikas027 avatar Sep 03 '15 07:09 vikas027

I'm experiencing this issue as well. Installing an altinstall of python2.6 seems to have resolved the issue for me as well.

Vermyndax avatar Jul 20 '16 20:07 Vermyndax

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 ...

jbidinger avatar Oct 16 '18 20:10 jbidinger