[Spacewalk-list] Spacewalk and SLES 12 Repositories

Klaas Demter demter at atix.de
Tue Feb 3 14:44:36 UTC 2015


Hey Chris,
you can fix it quick & dirty by just applying the patch to your live system or you can build the package yourself. I have not seen upstream packages that include the fix.
Diff: http://lists.opensuse.org/opensuse-commit/2014-09/msg01140.html

Greetings
Klaas Demter 
IT-Consultant 

Telefon: +49 (0)89 452 35 38-235 
Fax: +49 (0)89 452 35 38-290
E-Mail: demter at atix.de 
XING: https://www.xing.com/profiles/Klaas_Demter 
LinkedIn: http://de.linkedin.com/pub/klaas-demter/87/500/b50/ 

ATIX - The Linux & Open Source Company 

ATIX Informationstechnologie und Consulting AG 
Einsteinstraße 10 
85716 Unterschleißheim 
www.atix.de 


Registergericht: Amtsgericht München, Registernummer: HRB 168930 
USt.-Id.: DE209485962 
Vorstand: Thomas Merz (Vors.), Mark Hlawatschek, Jan R. Bergrath 
Vorsitzender des Aufsichtsrats: Dr. Martin Buss 

----- Ursprüngliche Mail -----
Von: "Chris Will" <CWill at bcbsm.com>
An: spacewalk-list at redhat.com
Gesendet: Dienstag, 3. Februar 2015 14:34:30
Betreff: Re: [Spacewalk-list] Spacewalk and SLES 12 Repositories

I am trying to get our Spacewalk 2.2 server to sync with SUSE 12 also.  I obtained the token but probably need the yum or python urlgrabber patch.  However, we are running spacewalk on a RHEL 6 server.  Are there patches available for this platform?  Here is the entry in the log after we attempt to sync the repo.

 Sync started: Tue Feb  3 07:42:59 2015
['/usr/bin/spacewalk-repo-sync', '--channel', 'sles12-pool', '--type', 'yum', '']
Repo URL: https://updates.suse.com/SUSE/Products/SLE-SERVER/12/s390x/product/?<token>
ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: sles12-pool. Please verify its path and try again
Sync completed.

When I added the repodata/repomd.xml string to my repository definition it seemed to work a little better but still failed when it started to download.

Sync started: Mon Feb  2 14:23:06 2015
['/usr/bin/spacewalk-repo-sync', '--channel', 'sles12-pool', '--type', 'yum', '']
Repo URL: https://updates.suse.com/SUSE/Products/SLE-SERVER/12/s390x/product/repodata/repomd.xml?<token>
ERROR: failure: repodata/<hex string>-primary.xml.gz from sles12-pool: [Errno 256] No more mirrors to try.
Sync completed.

Chris Will

-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Klaas Demter
Sent: Tuesday, December 16, 2014 9:53 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Spacewalk and SLES 12 Repositories

Hi,
after I applied your python-urlgrabber patch it works for me, thanks!

In case anyone else needs it:
http://lists.opensuse.org/opensuse-commit/2014-09/msg01140.html


Greetings,
Klaas

----- Original Mail -----
Von: "Michael Calmer" <mc at suse.de>
An: spacewalk-list at redhat.com
Gesendet: Dienstag, 16. Dezember 2014 13:48:47
Betreff: Re: [Spacewalk-list] Spacewalk and SLES 12 Repositories

Hi,

Am Dienstag, 16. Dezember 2014, 13:18:00 schrieb Klaas Demter:
> Hi,
> I'm looking into syncing SLES 12 repositories into my spacewalk. Is 
> there any one who got repo sync for those working?
> 
> It seems they have changed the way their repositories are accessed. 
> They use a token that is added to each http request. I've looked 
> inside the https traffic - the gets are like this:
> https://updates.suse.com/SUSE/Updates/SLE-SERVER/12/x86_64/update/repo
> data/
> repomd.xml?verylongtoken
> https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product/x8
> 6_64/ bash-4.2-75.2.x86_64.rpm?verylongtoken is there a method to set 
> such a token or does anyone know how the suse manager solves this 
> issue?

add it to the repository URL.

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

But your yum and python-urlgrabber need to handle such urls correctly.
Some time ago I send patches upstream (both yum project). I know that one gots accepted. Maybe you check there mailinglist.

--
Regards

	Michael Calmer

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


The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.
 
 Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.


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




More information about the Spacewalk-list mailing list