All,

 

            I am still having no luck at getting the SLES.pm file to be a successful identifier for OSCAR 5.0 + SLES10. Any recommendations would be helpful. Thanks.

 

This is output from my head node:

 

elmo:/opt/oscar # ./install_cluster eth2

--> Setting env variable OSCAR_UI to gui

 

=============================================================================

== Running OSCAR install_cluster script    Mon Oct  2 15:05:44 CDT 2006

 

=============================================================================

 

--> Checking if this is a supported platform

elmo:/opt/oscar # ERROR: This is an unsupported system.  Specifically, no module in OSCAR/OCA/OS_Detect positively identified this as a supported system.

Cannot continue at ./install_cluster line 200.

 

*******************************************************************************************************************************************************

SLES.pm ->

 

# $Id: SLES.pm 4810 2006-05-22 01:21:38Z bli $

#

 

package OCA::OS_Detect::SLES;

 

use strict;

 

my $distro = "sles";

my $compat_distro = "sles";

my $pkg = "rpm";

my $detect_package = "SuSE-release";

my $detect_file = "/bin/bash";

 

sub detect_dir {

    my ($root) = @_;

    my $release_string;

 

    # If /etc/SuSE-release exists, continue, otherwise, quit.

    if (-f "/etc/$detect_package") {

        $release_string = `cat /etc/$detect_package`;

    } else {

        return undef;

    }

 

    my $id = {

        os => "linux",

        chroot => $root,

    };

 

    if ($release_string =~ SUSE Linux Enterprise Server 10 (\d+.\d+)/) {

        my $os_version = $1;

        $id->{distro} = $distro;

        $id->{distro_version} = $os_version;

        $id->{compat_distro} = $compat_distro;

        $id->{compat_distrover} = $os_version;

        $id->{pkg} = $pkg;

    } else {

        return undef;

    }

 

    # this hash contains all info necessary for identifying the OS

 

    # determine architecture

    my $arch = main::OSCAR::OCA::OS_Detect::detect_arch_file($root,$detect_file);

    $id->{arch} = $arch;

 

    # Make final string

    $id->{ident} = "$id->{os}-$id->{arch}-$id->{distro}-$id->{distro_version}";

 

    return $id;

 

 

 

elmo:/opt/oscar/lib/OSCAR/OCA/OS_Detect # cat /etc/SuSE-release

SUSE Linux Enterprise Server 10 (x86_64)

VERSION = 10

 

 

Christopher Heller

Systems Requirements and Engineering Group (SRE)

System Engineer

Champaign, Illinois

Phone: (217) 403-4237

Mobile:(217) 721-5374


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernard Li
Sent: Friday, September 22, 2006 12:17
To: [email protected]
Subject: Re: [Oscar-devel] SLES10 + oscar-5.1a1r5332-20060905

 

Hi Chris:

 

$distro and $compat_distro should be "sles".

 

The $release_string string comparison should match "SUSE Linux Enterprise Server " without the number (so that we can support future releases).

 

Try the above modifications and let us know if it works.  Also, next time it would help if you increase the verbosity by doing:

 

export OSCAR_VERBOSE=2

 

and then sending the error message when you run install_cluster  - it would help us troubleshoot your problem much easier.

 

Then you need to create distro directories distro/sles10-x86_64 for each package and re-compile the RPMs.  You will likely run into problems with Ganglia, since 3.0.3 will not work with SUSE x86_64, but 3.0.4 (which should be out soon) should address that.

 

Cheers,

 

Bernard

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heller, Christopher R
Sent: Friday, September 22, 2006 9:15
To: [email protected]
Subject: Re: [Oscar-devel] SLES10 + oscar-5.1a1r5332-20060905

All,

 

            For SLES10 on EM64T, I am having trouble getting the installer to recognize the OS as valid; I am sure my $release_string is probably incorrect, however I am not sure how to fix it, I’m sure it’s a simple fix, yet it still eludes me.  I have attached the SLES.pm file and my SuSE-release file.

 

Thanks for any help,

 

Christopher Heller

Systems Requirements and Engineering Group (SRE)

System Engineer

Champaign, Illinois

Phone: (217) 403-4237

Mobile:(217) 721-5374


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernard Li
Sent: Thursday, September 14, 2006 12:18
To: [email protected]
Subject: Re: [Oscar-devel] SLES10 + oscar-5.1a1r5332-20060905

 

Hi Chris:

 

What you probably want to do is make a copy of SuSE.pm and call it SLES.pm, and modify the $release_string to match whatever it is on SLES10.  After that it is simply a matter rebuilding a bunch of packages (RPMs) under SLES10 and creating SLES-specific distro directories for packages (eg. packages/sge/distro/sles10).

 

I'm not sure how similiar SLES10 is with SUSE Linux 10, but if they are similiar enough, perhaps you can even make "sles" a compat_distro of "suse" (hopefully Erich can provide some insight regarding this).

 

I would suggest that you use oscar-5.0 instead of 5.1 because 5.0 is more stable and will be released "soon".  5.1 does have the added features of the CLI and system-sanity framework though.

 

If you have any other questions, please do not hesitate to contact us!

 

Thanks,

 

Bernard

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heller, Christopher R
Sent: Thursday, September 14, 2006 9:58
To: [email protected]
Subject: [Oscar-devel] SLES10 + oscar-5.1a1r5332-20060905

All,

 

            I am working on SLES10 + oscar-5.1a1r5332-20060905, and I am trying to get Oscar to recognize SLES10 as an actual viable OS (versus SuSE), I believe I need to modify the perl module: /opt/oscar/lib/OSCAR/OCA/OS_Detect/SuSE.pm but am unsure how to make this work correctly, any thoughts?  

 

 

System:

 

OS: SLES10

Oscar: oscar-5.1a1r5332-20060905

Dual processor Intel(R) Xeon(TM) CPU 3.60GHz EM64T system

 

Goal: Functional oscar framework on SLES10.

 

 

 

Thanks in advance!

 

Christopher Heller

Systems Requirements and Engineering Group (SRE)

System Engineer

Champaign, Illinois

Phone: (217) 403-4237

Mobile:(217) 721-5374

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to