Javier,
 
Thanks for the information.   The pull request sounds like the problem I'm encountering, but it doesn't seem to fix the problem.  
 
It looks like pull request 624 also addresses this problem.   I tried that one as well, including the associated pull request for urlgrabber.  
 
I'm running a sync now.   The process hasn't completed but is running and data is being added to /var/satellite.   This is my first sync so it is likely to take awhile.  
 
I believe this has corrected my problem!
 
Thanks again!
Bob
 
 
 
----- Original message -----
From: "Flores, Javier (D4\\INF\\IT ID)" <javier.flo...@gmz.migros.ch>
Sent by: spacewalk-list-boun...@redhat.com
To: "'spacewalk-list@redhat.com'" <spacewalk-list@redhat.com>
Cc:
Subject: Re: [Spacewalk-list] Using Spacewalk with SLES 12 repositories
Date: Mon, Mar 26, 2018 11:51 AM
 


Hi Bob

 

There was a similar issue some months ago.

 

Maybe this can help:

https://www.redhat.com/archives/spacewalk-list/2018-January/msg00063.html

 

https://github.com/spacewalkproject/spacewalk/pull/617

 

I am still on Spacewalk 2.6 so I don’t know if it works, but it seems worth a try.

 

Regards,

Javier

 

Von: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] Im Auftrag von bdus...@luzerne.edu
Gesendet: Montag, 26. März 2018 17:10
An: spacewalk-list@redhat.com
Betreff: [Spacewalk-list] Using Spacewalk with SLES 12 repositories

 

I've been encountering a problem configuring SLES 12 repositories with Spacewalk.   This problem seems to have been addressed before (i.e.  https://www.redhat.com/archives/spacewalk-list/2015-February/msg00012.html), but this patch doesn't work for me.

 

The problem appears to be with the repositories themselves.   SUSE requires a token to be placed at the end of their repository URLs.  Without the token the http server returns a status of 403.  

 

I've placed the URL with associated token in my repository config.   Entering this URL into a browser loads the repository perfectly.   When Spacewalk attempts to access the repository it needs to access the repomd.xml file which it appends to the URL.   This appears to be done incorrectly.

 

Note the original URL is:

https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP3/x86_64/product?tokenGoesHere

 

When Spacewalk attempts to access the URL to sync it appends /repodata/repomd.xml to the URL as follows:

 

https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP3/x86_64/product?tokenGoesHere/repodata/repomd.xml

 

This is incorrect, it should be:

 

https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP3/x86_64/product/repodata/repomd.xml?tokenGoesHere

 

The last URL works fine when placed in a browser.

 

Note the following from the Spacewalk logs

2018/03/26 10:53:58 -04:00 Repo URL: https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP3/x86_64/product?tokenGoesHerehttps://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP3/x86_64/product?tokenGoesHere/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for SLES12-SP3-Pool x86_64: Damaged repomd.xml file

2018/03/26 10:54:01 -04:00 ERROR: failure: repodata/repomd.xml from SLES12-SP3-Pool x86_64: [Errno 256] No more mirrors to try.

The damaged repomd.xml file is caused by the 403 status return from the server.

 

It looks like the initial fix (referenced in the link in my first paragraph) was to apply a diff to the Python urlgrabber source.   This diff doesn't work for me.   Since it's dated back in 2014 it's possible my source for urlgrabber is much newer and not compatible with the diff.

 

Does anyone have Spacewalk working with the SLES 12 repositories?  

 

I'm using Spacewalk 2.7.

 

Thanks!

Bob

 

 

 

 






The contents of this email message and any attachments originating from Luzerne County Community College's email system are for the intended recipients only and may contain confidential and/or privileged information legally protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by replying to the email and then deleting the message and any attachments. Also, if you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.



Luzerne County Community College

"Northeastern Pennsylvania's Community College"

www.luzerne.edu

800-377-5222
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
 





The contents of this email message and any attachments originating from Luzerne County Community College's email system are for the intended recipients only and may contain confidential and/or privileged information legally protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by replying to the email and then deleting the message and any attachments. Also, if you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.



Luzerne County Community College

"Northeastern Pennsylvania's Community College"

www.luzerne.edu

800-377-5222
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to