Hello,

First of all let me know which distribution you are using for Head Node.
Also attached the log file from the log location to provide resolution for
the error.

 /var/log/oscar/ log <log file name>


Thanks

Laxman Singh

On Fri, Apr 27, 2012 at 3:14 PM, Sahil Tikale <sahil.tik...@gmail.com>wrote:

> Hi I am running a ICE cluster which uses OSCAR.
>
> I need to update various nodes and the update is failing for the lack of
> updated meta data information for the RPMS.
>
> I tried running yume --prepare --repos which usually refreshed the
> metadata information.
>
> But now it just gives out this 'dumb' output
>
>
>
> ***********************************************************************************************
>
> pepper:/var/lock/systemimager # yume
> Unexpected error detected (255) while distro-query. Exiting.
>
>
> *****************************************************************************************************************************
>
> I did some debugging using the perl debugger and reading through the perl
> script.
>
> I could isolate the problem code snippet. Now I am new to both perl and to
> Cluster on Linux.
> So correct me if you guys find anything wrong.
>
> so the code snippet is here
>
> *****************************************************************************************************************************
> 449 sub get_default_repos {
> 450     # if OSCAR_HOME is defined, we're on an OSCAR cluster
> 451     if (&on_oscar_master()) {
> 452         my $dquery = "$ENV{OSCAR_HOME}/scripts/distro-query";
> 453         if (-x $dquery) {
> *454             if ($installroot && (-x "$installroot/bin/bash")) {*
> *455                 $dquery = $dquery . " --image $installroot";*
> 456             }
> 457             print STDERR "Executing: $dquery\n" if ($verbose);
> 458             local *CMD;
> 459             open CMD, "$dquery |" or die "Could not run $dquery: $!";
> 460             while (<CMD>) {
> 461                 chomp;
> 462                 if (/Distro package url : (\S+)$/) {
> 463                     push @repos, split(",",$1);
> 464                 } elsif (/OSCAR package pool : (\S+)$/) {
> 465                     push @repos, split(",",$1);
> 466                 }
> 467             }
>
> I think that highlighted IF condition is failing
>
>
> *****************************************************************************************************************************
>
> I could not establish the value of $installroot and $dquery. When I tried
> to print the value out, Perl complained that they are not initialized yet.
> I checked the syntax of the script and it looks correct
> I ran perl -c yume and it came out fine.
>
> so I am stuck and need to get this script working. I believe the problem
> is with the call it is trying to make.
>
> In short I want to get
> yume --prepare --repos working.
>
> With Regards,
> Sahil Tikale
>
>
>
> --SAHIL TIKALE
> Systems Consultant
> “You are as old as your doubt, your fear, your despair.
> The way to keep young is to keep your faith young; keep your hope young."
>
> --Dr. L.F. Phelan
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Oscar-devel mailing list
> Oscar-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oscar-devel
>
>
 <http://webdunia.com/>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to