Re: [Spacewalk-list] Mutli distro kickstart issue.

2014-07-03 Thread Paul Robert Marino
Look at candlepin and subscription manager on a host registered with
Red Hat its actually fairly obvious how to do it with Spacewalk 2.x.
The reason I am not specifically telling any one how to do it is I
just don't know if I would be violating any NDA's and or support
agreements if I wrote a guide on how to do it.

Also a possible alternative I havent had time to fully investigate is
this https://github.com/splice/spacewalk-splice-tool It's used in the
latest version of RHN Satellite 5.x. The one problem is that SAM is
compiled against Jboss 6 and spacewalk is compiled against jpackage 5
so the cant be on the same host. Although in theory if spacewalk could
be compiled against Jpackage 6 or even better Jboss 6 they should be
able to run on the same host. Essentially what it does is it
syncronizes Spacewalk with SAM is the stripped down core of Satellite
6 (its equivalent to a spacewalk proxy) so in theory it could allow
you to have the best of both worlds. My only problem with it is for
some reason it needs Mogodb which I find odd since both Spacewalk and
SAM use PostgreSQL.



On Wed, Jul 2, 2014 at 1:35 PM, Boyd, Robert
robert.b...@peoplefluent.com wrote:
 Paul Robert Marino,

 This sounds intriguing.

 You say you hesitate to write it out completely.   I'm wondering if you could 
 give some hints as to how to start the little research.
 There are a couple of things you've mentioned before where you've said 
 something like this about issues I'm interested in.   I could definitely use 
 some hints about how to pursue things like this.  What tools/knowledge are 
 required to start?  And where does one begin from?  I find it's easy to wind 
 up chasing down many rabbit holes with little return other than learning 
 about a great many things I don't need much for the time spent without some 
 guidance.

 Thanks,

 Robert Boyd
 Sr. Systems Engineer
 PeopleFluent
 p. 919-645-2972 | c. 919-306-4681
 e. robert.b...@peoplefluent.com





 Visit: www.peoplefluent.com | Read: Peoplefluent Blog | Follow: @peoplefluent 
 | Download: iPad App


 -Original Message-
 From: spacewalk-list-boun...@redhat.com 
 [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Paul Robert Marino
 Sent: Tuesday, July 01, 2014 1:57 PM
 To: spacewalk-list@redhat.com
 Subject: Re: [Spacewalk-list] Mutli distro kickstart issue.

 ...

 Unfortunately the core API issue has never been fixed althouth the new method 
 of syncing erratas via the yum repo does not seem to be effected by this so 
 where possible try to use that method instead. the problem is CentOS hasn't 
 adopted this method and I'm not sure about Oracle.
 RHEL its pretty easy now to get the erratas using the new method if you do a 
 little research although I hesitate to write it out for you completely.

 ...



 On Tue, Jul 1, 2014 at 11:39 AM, Canalichio, Kevin 
 canalic...@jmail.metronaviation.com wrote:
 I have set up my spacewalk server to have Redhat, Centos, and Oracle
 linux distros available for kickstart.

 When kickstarting I will get the following error:



   “ The file libart_lgpl-2.3.20-5.1.el6.x86_64 cannot be opened. This
 is due to a missing file, a corrupted package or corrupted media.”



 The problem occurs because the md5 checksums are different for the
 same package name in the each of the different distros. I read
 somewhere that the satellite server uses some sort of dedup or links
 to not have multiple copies of the same file, which seems to work fine
 for updates, but not so well for kickstarts.



 I can fix this problem by clearing out all three the repos and
 resyncing the one I want to kickstart. But it take a while for the repo to 
 rsync.



 I have also found this bug report that no one seems to be working on
 http://bugs.centos.org/view.php?id=6977 which references this from the
 archive
 https://www.redhat.com/archives/spacewalk-list/2014-February/msg00048.
 html



 Has anyone else seen this, or have a better work around?


 ___
 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

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Mutli distro kickstart issue.

2014-07-02 Thread Boyd, Robert
Paul Robert Marino,

This sounds intriguing.

You say you hesitate to write it out completely.   I'm wondering if you could 
give some hints as to how to start the little research. 
There are a couple of things you've mentioned before where you've said 
something like this about issues I'm interested in.   I could definitely use 
some hints about how to pursue things like this.  What tools/knowledge are 
required to start?  And where does one begin from?  I find it's easy to wind up 
chasing down many rabbit holes with little return other than learning about a 
great many things I don't need much for the time spent without some guidance.  

Thanks,

Robert Boyd
Sr. Systems Engineer 
PeopleFluent
p. 919-645-2972 | c. 919-306-4681
e. robert.b...@peoplefluent.com





Visit: www.peoplefluent.com | Read: Peoplefluent Blog | Follow: @peoplefluent | 
Download: iPad App


-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Paul Robert Marino
Sent: Tuesday, July 01, 2014 1:57 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Mutli distro kickstart issue.

...

Unfortunately the core API issue has never been fixed althouth the new method 
of syncing erratas via the yum repo does not seem to be effected by this so 
where possible try to use that method instead. the problem is CentOS hasn't 
adopted this method and I'm not sure about Oracle.
RHEL its pretty easy now to get the erratas using the new method if you do a 
little research although I hesitate to write it out for you completely.

...



On Tue, Jul 1, 2014 at 11:39 AM, Canalichio, Kevin 
canalic...@jmail.metronaviation.com wrote:
 I have set up my spacewalk server to have Redhat, Centos, and Oracle 
 linux distros available for kickstart.

 When kickstarting I will get the following error:



   “ The file libart_lgpl-2.3.20-5.1.el6.x86_64 cannot be opened. This 
 is due to a missing file, a corrupted package or corrupted media.”



 The problem occurs because the md5 checksums are different for the 
 same package name in the each of the different distros. I read 
 somewhere that the satellite server uses some sort of dedup or links 
 to not have multiple copies of the same file, which seems to work fine 
 for updates, but not so well for kickstarts.



 I can fix this problem by clearing out all three the repos and 
 resyncing the one I want to kickstart. But it take a while for the repo to 
 rsync.



 I have also found this bug report that no one seems to be working on
 http://bugs.centos.org/view.php?id=6977 which references this from the 
 archive 
 https://www.redhat.com/archives/spacewalk-list/2014-February/msg00048.
 html



 Has anyone else seen this, or have a better work around?


 ___
 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

[Spacewalk-list] Mutli distro kickstart issue.

2014-07-01 Thread Canalichio, Kevin
I have set up my spacewalk server to have Redhat, Centos, and Oracle linux 
distros available for kickstart.
When kickstarting I will get the following error:

   The file libart_lgpl-2.3.20-5.1.el6.x86_64 cannot be opened. This is due to 
a missing file, a corrupted package or corrupted media.

The problem occurs because the md5 checksums are different for the same  
package name in the each of the different distros. I read somewhere that the 
satellite server uses some sort of dedup or links to not have multiple copies 
of the same file, which seems to work fine for updates, but not so well for 
kickstarts.

I can fix this problem by clearing out all three the repos and resyncing the 
one I want to kickstart. But it take a while for the repo to rsync.

I have also found this bug report that no one seems to be working on 
http://bugs.centos.org/view.php?id=6977 which references this from the archive 
https://www.redhat.com/archives/spacewalk-list/2014-February/msg00048.html

Has anyone else seen this, or have a better work around?
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Mutli distro kickstart issue.

2014-07-01 Thread Paul Robert Marino
This is usually caused by errata synchronization tools.
There is a known bug in the API for spacewalk ERRATA publishing which
causes this. here is a link to a ticket which should give you a better
idea of the background
https://bugzilla.redhat.com/show_bug.cgi?id=834569

Essentially you have a channel cross contamination issue.
what you need to do is remove all of the offending packages except the
one written by the correct vendor from the channel.
Its not a problem with deduplication its a problem with erratas
spanning multiple base channels.

I have RHEL, Scientific Linux and CentOS on my spacewalk servers and
do not experience this issue.
this issue is one of the many reasons I wrote my own errata sync tool
here 
https://github.com/prmarino1/Extravehicular-Activity-Admin/tree/master/errata-tools
I ran into this same issue with rhn-clone-errata.py and the centos
version of the script which scrapes the centos mailing list as well.

Unfortunately the core API issue has never been fixed althouth the new
method of syncing erratas via the yum repo does not seem to be
effected by this so where possible try to use that method instead. the
problem is CentOS hasn't adopted this method and I'm not sure about
Oracle.
RHEL its pretty easy now to get the erratas using the new method if
you do a little research although I hesitate to write it out for you
completely.

In any case my script and a few others should be able to do eratta
syncs for you safely because 3 other developers and I all hit the same
issue when we wanted to create errata sync scripts which spanned
multiple base channels.

In fact my script can even sync erratas from one base channel to an
other on the same spacewalk server. so for CentOS in my test
environment I've synced the erratas from my Scientific Linux channel
to my CentOS channel. The down side is with syncing erratas from one
distro to an other using the method in my script you may have
incomplete erratas if the source distro ports a patch faster than the
destination distro, but its at least safe from this issue.




On Tue, Jul 1, 2014 at 11:39 AM, Canalichio, Kevin
canalic...@jmail.metronaviation.com wrote:
 I have set up my spacewalk server to have Redhat, Centos, and Oracle linux
 distros available for kickstart.

 When kickstarting I will get the following error:



   “ The file libart_lgpl-2.3.20-5.1.el6.x86_64 cannot be opened. This is due
 to a missing file, a corrupted package or corrupted media.”



 The problem occurs because the md5 checksums are different for the same
 package name in the each of the different distros. I read somewhere that the
 satellite server uses some sort of dedup or links to not have multiple
 copies of the same file, which seems to work fine for updates, but not so
 well for kickstarts.



 I can fix this problem by clearing out all three the repos and resyncing the
 one I want to kickstart. But it take a while for the repo to rsync.



 I have also found this bug report that no one seems to be working on
 http://bugs.centos.org/view.php?id=6977 which references this from the
 archive
 https://www.redhat.com/archives/spacewalk-list/2014-February/msg00048.html



 Has anyone else seen this, or have a better work around?


 ___
 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] Mutli distro kickstart issue.

2014-07-01 Thread Avi Miller
Hi,

On 2 Jul 2014, at 3:56 am, Paul Robert Marino prmari...@gmail.com wrote:

 Unfortunately the core API issue has never been fixed althouth the new
 method of syncing erratas via the yum repo does not seem to be
 effected by this so where possible try to use that method instead. the
 problem is CentOS hasn't adopted this method and I'm not sure about
 Oracle.

Oracle provides errata via the yum repositories on ULN (using the new ULN sync 
mechanism) or via public-yum.oracle.com, so it should not be affected by this 
issue.

Cheers,
Avi

--
Oracle http://www.oracle.com
Avi Miller | Product Management Director | +61 (3) 8616 3496
Oracle Linux and Virtualization
417 St Kilda Road, Melbourne, Victoria 3004 Australia


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list