Hi Bernard,

yes, the call is done in PackMan by the gencache function. And indeed, there
might be some problem with the non-recognition of createrepo failure, this
needs to be fixed. The checksum generation and recognition is in
lib/OSCAR/PackageSmart.pm.

Yum doesn't return correct error codes :-( I added some features to PackMan to
try to detect failure strings, currently it bails out when it sees /^Error: /.
We should improve this, the infrastructure is there, so it should be easilly
doable.

Regards,
Erich


On Wednesday 22 March 2006 06:13, Bernard Li wrote:
> Erich:
>  
> Can you please let us know where the createrepo call is made?  Is it called 
> via gencahce?
>  
> I got the following on FC4:
> 
> --- checking md5sum for /tftpboot/oscar/fc-4-i386
> Calling gencache for /tftpboot/oscar/fc-4-i386, this might take a minute ... 
> success
> --- checking md5sum for /tftpboot/distro/fedora-4-i386
> Calling gencache for /tftpboot/distro/fedora-4-i386, this might take a minute 
> ... success
>  
> I still could not get gencache to generate the cache correctly (I don't think 
> createrepo was ever called).  This is on a vanilla installation.  I think 
> part of the problem is that pool.md5 could be generated prior to the 
> repository being correctly setup, as in:
>  
> - createrepo not being installed
> - createrepo not executed on the repository
>  
> I think the md5sum should only be generated when the repository is known to 
> be correctly setup, i.e. repocache/ and repodata/ exists in the directories - 
> otherwise it should bail prior to the md5sum file being created.
>  
> Also, we need a way to check for yum success/failures, this should definitely 
> have errored out:
>  
> Baseurl(s) for repo: ['file:/tftpboot/distro/fedora-4-i386']
> file:///tftpboot/distro/fedora-4-i386/repodata/repomd.xml: [Errno 5] OSError: 
> [Errno 2] No such file or directory: 
> '/tftpboot/distro/fedora-4-i386/repodata/repomd.xml'
> Trying other mirror.
> Cannot open/read repomd.xml file for repository: distro_fedora-4-i386
> failure: repodata/repomd.xml from distro_fedora-4-i386: [Errno 256] No more 
> mirrors to try. 
>  
> before we get down here:
>  
> --> Checking status of MySQL server mysqld
> ERROR: Prerequisite setup failure! at ./wizard_prep line 137
> Oscar Wizard preparation script failed to complete at ./install_cluster line 
> 223.
>  
> Cheers,
>  
> Bernard
> 
> ________________________________
> 
> From: [EMAIL PROTECTED] on behalf of Bernard Li
> Sent: Tue 21/03/2006 15:22
> To: [EMAIL PROTECTED]
> Cc: DongInn Kim; [email protected]
> Subject: RE: [Oscar-devel] Trunk Error on FC3-X86
> 
> 
> 
> I can't remember now, I think it bailed on RHEL4 x86 as well, but I have
> an email confirming that it did _not_ work on RHEL4 x86_64:
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Bernard Li
> > Sent: Tuesday, March 14, 2006 15:50
> > To: [email protected]
> > Subject: [Oscar-devel] RHEL4u3 x86_64 and trunk r4450
> >
> > I needed to modify
> > /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/IO/Tty.pm
> > (perl-IO-Tty) otherwise it'll fail midway during install_cluster:
> >
> > ---
> > /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/I
> O/Tty.pm.o
> > ld  2006-03-14 15:48:33.000000000 -0800
> > +++
> > /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/IO/Tty.pm
> > 2006-03-14 15:48:40.000000000 -0800
> > @@ -50,7 +50,7 @@
> >
> >  sub clone_winsize_from {
> >    my ($self, $fh) = @_;
> > -  my $winsize = "";
> > +  my $winsize = chr(0) x 8192;
> >    croak "Given filehandle is not a tty in clone_winsize_from, called"
> >      if not POSIX::isatty($fh);
> >    return 1 if not POSIX::isatty($self);  # ignored for master ptys
> >
> > Cheers,
> >
> > Bernard
> 
> Come to think of it - I may have been testing Fedora Core 4 x86 at home
> which caused the problem, could be the same issue as what DongInn was
> encountering.
> 
> Cheers,
> 
> Bernard
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> Oscar-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oscar-devel
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to