2007-11-16 19:47:00 +00:00
|
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
|
|
|
|
package xCAT::PPCvm;
|
|
|
|
use strict;
|
|
|
|
use Getopt::Long;
|
|
|
|
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
|
|
|
|
use xCAT::PPCdb;
|
2008-04-12 14:53:11 +00:00
|
|
|
use xCAT::Usage;
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
# Globals
|
|
|
|
##############################################
|
|
|
|
my %method = (
|
|
|
|
mkvm => \&mkvm_parse_args,
|
|
|
|
lsvm => \&lsvm_parse_args,
|
|
|
|
rmvm => \&rmvm_parse_args,
|
|
|
|
chvm => \&chvm_parse_args
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parse the command line for options and operands
|
|
|
|
##########################################################################
|
|
|
|
sub parse_args {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my $cmd = $request->{command};
|
|
|
|
|
|
|
|
###############################
|
|
|
|
# Invoke correct parse_args
|
|
|
|
###############################
|
|
|
|
my $result = $method{$cmd}( $request );
|
|
|
|
return( $result );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parse the chvm command line for options and operands
|
|
|
|
##########################################################################
|
|
|
|
sub chvm_parse_args {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my %opt = ();
|
|
|
|
my $cmd = $request->{command};
|
|
|
|
my $args = $request->{arg};
|
|
|
|
|
|
|
|
#############################################
|
|
|
|
# Responds with usage statement
|
|
|
|
#############################################
|
|
|
|
local *usage = sub {
|
2008-04-12 14:53:11 +00:00
|
|
|
my $usage_string=xCAT::Usage->getUsage($cmd);
|
|
|
|
return( [ $_[0], $usage_string]);
|
2007-11-16 19:47:00 +00:00
|
|
|
};
|
|
|
|
####################################
|
|
|
|
# Configuration file required
|
|
|
|
####################################
|
|
|
|
if ( !exists( $request->{stdin} ) ) {
|
|
|
|
return(usage( "Configuration file not specified" ));
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Process command-line arguments
|
|
|
|
#############################################
|
|
|
|
if ( !defined( $args )) {
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Checks case in GetOptions, allows opts
|
|
|
|
# to be grouped (e.g. -vx), and terminates
|
|
|
|
# at the first unrecognized option.
|
|
|
|
#############################################
|
|
|
|
@ARGV = @$args;
|
|
|
|
$Getopt::Long::ignorecase = 0;
|
|
|
|
Getopt::Long::Configure( "bundling" );
|
|
|
|
|
2008-04-12 14:53:11 +00:00
|
|
|
if ( !GetOptions( \%opt, qw(V|Verbose) )) {
|
2007-11-16 19:47:00 +00:00
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for "-" with no option
|
|
|
|
####################################
|
|
|
|
if ( grep(/^-$/, @ARGV )) {
|
|
|
|
return(usage( "Missing option: -" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for an extra argument
|
|
|
|
####################################
|
|
|
|
if ( defined( $ARGV[0] )) {
|
|
|
|
return(usage( "Invalid Argument: $ARGV[0]" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# No operands - add command name
|
|
|
|
####################################
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parse the mkvm command line for options and operands
|
|
|
|
##########################################################################
|
|
|
|
sub mkvm_parse_args {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my %opt = ();
|
|
|
|
my $cmd = $request->{command};
|
|
|
|
my $args = $request->{arg};
|
|
|
|
|
|
|
|
#############################################
|
|
|
|
# Responds with usage statement
|
|
|
|
#############################################
|
|
|
|
local *usage = sub {
|
2008-04-12 14:53:11 +00:00
|
|
|
my $usage_string=xCAT::Usage->getUsage($cmd);
|
|
|
|
return( [ $_[0], $usage_string]);
|
2007-11-16 19:47:00 +00:00
|
|
|
};
|
|
|
|
#############################################
|
|
|
|
# Process command-line arguments
|
|
|
|
#############################################
|
|
|
|
if ( !defined( $args )) {
|
|
|
|
return(usage( "No command specified" ));
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Only 1 node allowed
|
|
|
|
#############################################
|
|
|
|
if ( scalar( @{$request->{node}} ) > 1) {
|
|
|
|
return(usage( "multiple nodes specified" ));
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Checks case in GetOptions, allows opts
|
|
|
|
# to be grouped (e.g. -vx), and terminates
|
|
|
|
# at the first unrecognized option.
|
|
|
|
#############################################
|
|
|
|
@ARGV = @$args;
|
|
|
|
$Getopt::Long::ignorecase = 0;
|
|
|
|
Getopt::Long::Configure( "bundling" );
|
|
|
|
|
2008-04-12 14:53:11 +00:00
|
|
|
if ( !GetOptions( \%opt, qw(V|Verbose i=s n=s c=s) )) {
|
2007-11-16 19:47:00 +00:00
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for "-" with no option
|
|
|
|
####################################
|
|
|
|
if ( grep(/^-$/, @ARGV )) {
|
|
|
|
return(usage( "Missing option: -" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for non-zero integer
|
|
|
|
####################################
|
|
|
|
if ( exists( $opt{i} )) {
|
2007-11-29 19:45:52 +00:00
|
|
|
if ( $opt{i} !~ /^[1-9]{1}|[1-9]{1}[0-9]+$/ ) {
|
2007-11-16 19:47:00 +00:00
|
|
|
return(usage( "Invalid entry: $opt{i}" ));
|
2007-11-29 19:45:52 +00:00
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# -i and -n not valid with -c
|
|
|
|
####################################
|
|
|
|
if ( exists( $opt{c} ) ) {
|
|
|
|
if ( exists($opt{i}) or exists($opt{n})) {
|
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# If -i and -n, both required
|
|
|
|
####################################
|
|
|
|
elsif ( !exists($opt{n}) or !exists($opt{i})) {
|
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for an extra argument
|
|
|
|
####################################
|
|
|
|
if ( defined( $ARGV[0] )) {
|
|
|
|
return(usage( "Invalid Argument: $ARGV[0]" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# No operands - add command name
|
|
|
|
####################################
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parse the rmvm command line for options and operands
|
|
|
|
##########################################################################
|
|
|
|
sub rmvm_parse_args {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my %opt = ();
|
|
|
|
my $cmd = $request->{command};
|
|
|
|
my $args = $request->{arg};
|
|
|
|
|
|
|
|
#############################################
|
|
|
|
# Responds with usage statement
|
|
|
|
#############################################
|
|
|
|
local *usage = sub {
|
2008-04-12 14:53:11 +00:00
|
|
|
my $usage_string=xCAT::Usage->getUsage($cmd);
|
|
|
|
return( [ $_[0], $usage_string]);
|
2007-11-16 19:47:00 +00:00
|
|
|
};
|
|
|
|
#############################################
|
|
|
|
# Process command-line arguments
|
|
|
|
#############################################
|
|
|
|
if ( !defined( $args )) {
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Checks case in GetOptions, allows opts
|
|
|
|
# to be grouped (e.g. -vx), and terminates
|
|
|
|
# at the first unrecognized option.
|
|
|
|
#############################################
|
|
|
|
@ARGV = @$args;
|
|
|
|
$Getopt::Long::ignorecase = 0;
|
|
|
|
Getopt::Long::Configure( "bundling" );
|
|
|
|
|
2008-04-12 14:53:11 +00:00
|
|
|
if ( !GetOptions( \%opt, qw(V|Verbose) )) {
|
2007-11-16 19:47:00 +00:00
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for "-" with no option
|
|
|
|
####################################
|
|
|
|
if ( grep(/^-$/, @ARGV )) {
|
|
|
|
return(usage( "Missing option: -" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for an extra argument
|
|
|
|
####################################
|
|
|
|
if ( defined( $ARGV[0] )) {
|
|
|
|
return(usage( "Invalid Argument: $ARGV[0]" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# No operands - add command name
|
|
|
|
####################################
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Parse the lsvm command line for options and operands
|
|
|
|
##########################################################################
|
|
|
|
sub lsvm_parse_args {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my %opt = ();
|
|
|
|
my $cmd = $request->{command};
|
|
|
|
my $args = $request->{arg};
|
|
|
|
|
|
|
|
#############################################
|
|
|
|
# Responds with usage statement
|
|
|
|
#############################################
|
|
|
|
local *usage = sub {
|
2008-04-12 14:53:11 +00:00
|
|
|
my $usage_string=xCAT::Usage->getUsage($cmd);
|
|
|
|
return( [ $_[0], $usage_string]);
|
2007-11-16 19:47:00 +00:00
|
|
|
};
|
|
|
|
#############################################
|
|
|
|
# Process command-line arguments
|
|
|
|
#############################################
|
|
|
|
if ( !defined( $args )) {
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
#############################################
|
|
|
|
# Checks case in GetOptions, allows opts
|
|
|
|
# to be grouped (e.g. -vx), and terminates
|
|
|
|
# at the first unrecognized option.
|
|
|
|
#############################################
|
|
|
|
@ARGV = @$args;
|
|
|
|
$Getopt::Long::ignorecase = 0;
|
|
|
|
Getopt::Long::Configure( "bundling" );
|
|
|
|
|
2008-04-12 14:53:11 +00:00
|
|
|
if ( !GetOptions( \%opt, qw(V|Verbose) )) {
|
2007-11-16 19:47:00 +00:00
|
|
|
return( usage() );
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for "-" with no option
|
|
|
|
####################################
|
|
|
|
if ( grep(/^-$/, @ARGV )) {
|
|
|
|
return(usage( "Missing option: -" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Check for an extra argument
|
|
|
|
####################################
|
|
|
|
if ( defined( $ARGV[0] )) {
|
|
|
|
return(usage( "Invalid Argument: $ARGV[0]" ));
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# No operands - add command name
|
|
|
|
####################################
|
|
|
|
$request->{method} = $cmd;
|
|
|
|
return( \%opt );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Clones all the LPARs from one CEC to another (must be on same HMC)
|
2007-11-16 19:47:00 +00:00
|
|
|
##########################################################################
|
|
|
|
sub clone {
|
|
|
|
|
|
|
|
my $exp = shift;
|
2007-11-29 19:45:52 +00:00
|
|
|
my $src = shift;
|
|
|
|
my $dest = shift;
|
|
|
|
my $srcd = shift;
|
2007-11-16 19:47:00 +00:00
|
|
|
my $hwtype = @$exp[2];
|
2007-11-29 19:45:52 +00:00
|
|
|
my $server = @$exp[3];
|
2007-11-16 19:47:00 +00:00
|
|
|
my @values = ();
|
2007-11-29 19:45:52 +00:00
|
|
|
my @lpars = ();
|
|
|
|
my $srccec;
|
|
|
|
my $destcec;
|
|
|
|
my @cfgdata;
|
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
|
|
|
# Always one source CEC specified
|
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
my $lparid = @$srcd[0];
|
2008-03-06 18:29:07 +00:00
|
|
|
my $mtms = @$srcd[2];
|
2007-11-29 19:45:52 +00:00
|
|
|
my $type = @$srcd[4];
|
2007-11-16 19:47:00 +00:00
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
#####################################
|
|
|
|
# Not supported on IVM
|
|
|
|
#####################################
|
|
|
|
if ( $hwtype eq "ivm" ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[RC_ERROR,"Not supported for IVM"]] );
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Source must be CEC
|
|
|
|
#####################################
|
2007-11-16 19:47:00 +00:00
|
|
|
if ( $type ne "fsp" ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[RC_ERROR,"Node must be an FSP"]] );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2008-03-06 18:29:07 +00:00
|
|
|
#####################################
|
|
|
|
# Find Destination CEC
|
|
|
|
#####################################
|
|
|
|
my $tab = xCAT::Table->new( "vpd" );
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Error opening vpd database
|
|
|
|
#####################################
|
|
|
|
if ( !defined( $tab )) {
|
|
|
|
return( [[RC_ERROR, "Error opening 'vpd' database"]] );
|
|
|
|
}
|
|
|
|
my ($ent) = $tab->getAttribs({node=>$dest}, qw(mtm serial));
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Node not found
|
|
|
|
#####################################
|
|
|
|
if ( !defined( $ent )) {
|
|
|
|
return( [[RC_ERROR,"Destination '$dest' not in 'vpd' database"]] );
|
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Attributes not found
|
|
|
|
#####################################
|
|
|
|
if ( !exists( $ent->{mtm} ) or !exists( $ent->{serial} )) {
|
|
|
|
return( [[RC_ERROR,"Attributes not in 'vpd' database"]] );
|
|
|
|
}
|
|
|
|
my $destmtms = "$ent->{mtm}*$ent->{serial}";
|
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
|
|
|
# Enumerate CECs
|
|
|
|
#####################################
|
2008-03-06 18:29:07 +00:00
|
|
|
my $filter = "type_model,serial_num";
|
|
|
|
my $cecs = xCAT::PPCcli::lssyscfg( $exp, "fsps", $filter );
|
2007-11-16 19:47:00 +00:00
|
|
|
my $Rc = shift(@$cecs);
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Return error
|
|
|
|
#####################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[$Rc, @$cecs[0]]] );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
#####################################
|
2008-03-06 18:29:07 +00:00
|
|
|
# Find source/dest CEC
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
|
|
|
foreach ( @$cecs ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
s/(.*),(.*)/$1*$2/;
|
|
|
|
|
|
|
|
if ( $_ eq $mtms ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
$srccec = $_;
|
2008-03-06 18:29:07 +00:00
|
|
|
} elsif ( $_ eq $destmtms ) {
|
|
|
|
$destcec = $destmtms;
|
|
|
|
}
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Source CEC not found
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
if ( !defined( $srccec )) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[RC_ERROR,"Source CEC '$src' not found"]] );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Destination CEC not found
|
|
|
|
#####################################
|
|
|
|
if ( !defined( $destcec )) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return([[RC_ERROR,"Destination CEC '$dest' not found on '$server'"]]);
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Get all LPARs on source CEC
|
|
|
|
#####################################
|
|
|
|
my $filter = "name,lpar_id";
|
|
|
|
my $result = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
|
|
|
"lpar",
|
2008-03-06 18:29:07 +00:00
|
|
|
$srccec,
|
2007-11-29 19:45:52 +00:00
|
|
|
$filter );
|
|
|
|
$Rc = shift(@$result);
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Return error
|
|
|
|
#####################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[$Rc, @$result[0]]] );
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Get profile for each LPAR
|
|
|
|
#####################################
|
|
|
|
foreach ( @$result ) {
|
|
|
|
my ($name,$id) = split /,/;
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Get source LPAR profile
|
|
|
|
#################################
|
|
|
|
my $prof = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
|
|
|
"prof",
|
2008-03-06 18:29:07 +00:00
|
|
|
$srccec,
|
2007-11-29 19:45:52 +00:00
|
|
|
$id );
|
|
|
|
|
|
|
|
$Rc = shift(@$prof);
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Return error
|
|
|
|
#################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[$Rc, @$prof[0]]] );
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
|
|
|
#################################
|
|
|
|
# Save LPAR profile
|
|
|
|
#################################
|
|
|
|
push @cfgdata, @$prof[0];
|
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Modify read back profile
|
|
|
|
#####################################
|
|
|
|
foreach my $cfg ( @cfgdata ) {
|
|
|
|
$cfg =~ s/^name=([^,]+|$)/profile_name=$1/;
|
|
|
|
$cfg =~ s/lpar_name=/name=/;
|
|
|
|
$cfg = strip_profile( $cfg, $hwtype);
|
2007-11-16 19:47:00 +00:00
|
|
|
my $name = $1;
|
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
$cfg =~ /lpar_id=([^,]+)/;
|
2007-11-16 19:47:00 +00:00
|
|
|
$lparid = $1;
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Create new LPAR
|
|
|
|
#################################
|
2007-11-29 19:45:52 +00:00
|
|
|
my @temp = @$srcd;
|
2007-11-16 19:47:00 +00:00
|
|
|
$temp[0] = $lparid;
|
2008-03-06 18:29:07 +00:00
|
|
|
$temp[2] = $destcec;
|
2007-11-16 19:47:00 +00:00
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
my $result = xCAT::PPCcli::mksyscfg( $exp, \@temp, $cfg );
|
2007-11-16 19:47:00 +00:00
|
|
|
$Rc = shift(@$result);
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Success - add LPAR to database
|
|
|
|
#################################
|
|
|
|
if ( $Rc == SUCCESS ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
my $err = xCATdB( "mkvm", $srcd, $lparid, $name, $hwtype );
|
|
|
|
if ( defined( $err )) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$err, RC_ERROR];
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
2007-11-16 19:47:00 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
#################################
|
|
|
|
# Error - Save error
|
|
|
|
#################################
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [@$result[0], $Rc];
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
if ( !scalar(@values) ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[SUCCESS,"Success"]]);
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
return( \@values );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Removes logical partitions
|
|
|
|
##########################################################################
|
|
|
|
sub remove {
|
2007-11-29 19:45:52 +00:00
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my $hash = shift;
|
|
|
|
my $exp = shift;
|
|
|
|
my @lpars = ();
|
|
|
|
my @values = ();
|
2007-11-16 19:47:00 +00:00
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
while (my ($mtms,$h) = each(%$hash) ) {
|
|
|
|
while (my ($lpar,$d) = each(%$h) ) {
|
|
|
|
my $lparid = @$d[0];
|
|
|
|
my $mtms = @$d[2];
|
|
|
|
my $type = @$d[4];
|
|
|
|
|
|
|
|
####################################
|
|
|
|
# Must be CEC or LPAR
|
|
|
|
####################################
|
|
|
|
if ( $type !~ /^lpar|fsp$/ ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$lpar, "Node must be LPAR or CEC", RC_ERROR];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# This is a single LPAR
|
|
|
|
####################################
|
|
|
|
if ( $type eq "lpar" ) {
|
|
|
|
$lpars[0] = "$lpar,$lparid";
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# This is a CEC - remove all LPARs
|
|
|
|
####################################
|
|
|
|
else {
|
|
|
|
my $filter = "name,lpar_id";
|
|
|
|
my $result = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
|
|
|
"lpar",
|
|
|
|
$mtms,
|
|
|
|
$filter );
|
|
|
|
my $Rc = shift(@$result);
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Expect error
|
|
|
|
################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar, @$result[0], $Rc];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
################################
|
|
|
|
# Success - save LPARs
|
|
|
|
################################
|
|
|
|
foreach ( @$result ) {
|
|
|
|
push @lpars, $_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Remove the LPARs
|
|
|
|
####################################
|
|
|
|
foreach ( @lpars ) {
|
|
|
|
my ($name,$id) = split /,/;
|
|
|
|
my $mtms = @$d[2];
|
|
|
|
|
|
|
|
################################
|
|
|
|
# id profile mtms hcp type frame
|
|
|
|
################################
|
|
|
|
my @d = ( $id,0,$mtms,0,"lpar",0 );
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Send remove command
|
|
|
|
################################
|
|
|
|
my $result = xCAT::PPCcli::rmsyscfg( $exp, \@d );
|
|
|
|
my $Rc = shift(@$result);
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Remove LPAR from database
|
|
|
|
################################
|
|
|
|
if ( $Rc == SUCCESS ) {
|
|
|
|
my $err = xCATdB( "rmvm", $name );
|
|
|
|
if ( defined( $err )) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$lpar,$err,RC_ERROR];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
}
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar,@$result[0],$Rc];
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return( \@values );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
##########################################################################
|
|
|
|
# Changes the configuration of an existing partition
|
|
|
|
##########################################################################
|
2007-11-29 19:45:52 +00:00
|
|
|
sub modify {
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my $hash = shift;
|
|
|
|
my $exp = shift;
|
2007-11-29 19:45:52 +00:00
|
|
|
my $hwtype = @$exp[2];
|
2007-11-16 19:47:00 +00:00
|
|
|
my $name = @{$request->{node}}[0];
|
|
|
|
my $cfgdata = $request->{stdin};
|
|
|
|
my @values;
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
# Remove "node: " in case the
|
|
|
|
# configuration file was created as
|
|
|
|
# the result of an "lsvm" command.
|
|
|
|
# "lpar9: name=lpar9, lpar_name=..."
|
|
|
|
#######################################
|
|
|
|
$cfgdata =~ s/^[\w]+: //;
|
|
|
|
|
|
|
|
if ( $cfgdata !~ /^name=/ ) {
|
|
|
|
my $text = "Invalid file format: must begin with 'name='";
|
2008-03-06 18:29:07 +00:00
|
|
|
return( [[$name,$text,RC_ERROR]] );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2007-11-29 19:45:52 +00:00
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
#######################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Send change profile command
|
2007-11-16 19:47:00 +00:00
|
|
|
#######################################
|
|
|
|
while (my ($cec,$h) = each(%$hash) ) {
|
|
|
|
while (my ($lpar,$d) = each(%$h) ) {
|
|
|
|
|
|
|
|
###############################
|
|
|
|
# Change configuration
|
|
|
|
###############################
|
2007-11-29 19:45:52 +00:00
|
|
|
my $cfg = strip_profile( $cfgdata, $hwtype );
|
2008-01-07 20:34:53 +00:00
|
|
|
|
|
|
|
###############################
|
|
|
|
# Additional changes
|
|
|
|
###############################
|
|
|
|
$cfg =~ s/,*lpar_env=[^,]+|$//;
|
|
|
|
|
|
|
|
if ( $hwtype eq "hmc" ) {
|
|
|
|
$cfg =~ s/,*all_resources=[^,]+|$//;
|
|
|
|
$cfg =~ s/,*lpar_id=[^,]+|$//;
|
|
|
|
}
|
2007-11-29 19:45:52 +00:00
|
|
|
my $result = xCAT::PPCcli::chsyscfg( $exp, $d, $cfg );
|
2007-11-16 19:47:00 +00:00
|
|
|
my $Rc = shift(@$result);
|
|
|
|
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar,@$result[0],$Rc];
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return( \@values );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
##########################################################################
|
|
|
|
# Lists logical partitions
|
|
|
|
##########################################################################
|
|
|
|
sub list {
|
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my $hash = shift;
|
|
|
|
my $exp = shift;
|
|
|
|
my @values = ();
|
|
|
|
my @lpars = ();
|
|
|
|
my $result;
|
|
|
|
|
|
|
|
while (my ($mtms,$h) = each(%$hash) ) {
|
|
|
|
while (my ($lpar,$d) = each(%$h) ) {
|
|
|
|
my $lparid = @$d[0];
|
|
|
|
my $mtms = @$d[2];
|
|
|
|
my $type = @$d[4];
|
2008-03-20 18:32:18 +00:00
|
|
|
my $pprofile;
|
2007-11-29 19:45:52 +00:00
|
|
|
|
|
|
|
####################################
|
|
|
|
# Must be CEC or LPAR
|
|
|
|
####################################
|
|
|
|
if ( $type !~ /^lpar|fsp$/ ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$lpar,"Node must be LPAR or CEC",RC_ERROR];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# This is a single LPAR
|
|
|
|
####################################
|
|
|
|
if ( $type eq "lpar" ) {
|
|
|
|
$lpars[0] = "$lpar,$lparid";
|
|
|
|
}
|
|
|
|
####################################
|
2008-01-04 20:31:55 +00:00
|
|
|
# This is a CEC
|
2007-11-29 19:45:52 +00:00
|
|
|
####################################
|
|
|
|
else {
|
|
|
|
my $filter = "name,lpar_id";
|
|
|
|
my $result = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
|
|
|
"lpar",
|
|
|
|
$mtms,
|
|
|
|
$filter );
|
|
|
|
my $Rc = shift(@$result);
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Expect error
|
|
|
|
################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar, @$result[0], $Rc];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
################################
|
|
|
|
# Success - save LPARs
|
|
|
|
################################
|
|
|
|
foreach ( @$result ) {
|
|
|
|
push @lpars, $_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
####################################
|
|
|
|
# Get LPAR profile
|
|
|
|
####################################
|
|
|
|
foreach ( @lpars ) {
|
|
|
|
my ($name,$id) = split /,/;
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Get source LPAR profile
|
|
|
|
#################################
|
|
|
|
my $prof = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
|
|
|
"prof",
|
|
|
|
$mtms,
|
|
|
|
$id );
|
|
|
|
my $Rc = shift(@$prof);
|
|
|
|
|
|
|
|
#################################
|
|
|
|
# Return error
|
|
|
|
#################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar, @$prof[0], $Rc];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
#################################
|
|
|
|
# List LPAR profile
|
|
|
|
#################################
|
2008-03-20 18:32:18 +00:00
|
|
|
$pprofile .= "@$prof[0]\n\n";
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
2008-03-20 18:32:18 +00:00
|
|
|
push @values, [$lpar, $pprofile, SUCCESS];
|
2007-11-29 19:45:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return( \@values );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
##########################################################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Creates/changes logical partitions
|
2007-11-16 19:47:00 +00:00
|
|
|
##########################################################################
|
2007-11-29 19:45:52 +00:00
|
|
|
sub create {
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
my $request = shift;
|
|
|
|
my $hash = shift;
|
|
|
|
my $exp = shift;
|
|
|
|
my $hwtype = @$exp[2];
|
|
|
|
my $opt = $request->{opt};
|
|
|
|
my @values = ();
|
|
|
|
my $result;
|
|
|
|
|
|
|
|
while (my ($mtms,$h) = each(%$hash) ) {
|
|
|
|
while (my ($lpar,$d) = each(%$h) ) {
|
|
|
|
my $lparid = @$d[0];
|
|
|
|
my $mtms = @$d[2];
|
|
|
|
my $type = @$d[4];
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Must be CEC or LPAR
|
|
|
|
#####################################
|
|
|
|
if ( $type !~ /^lpar|fsp$/ ) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$lpar,"Node must be LPAR or CEC",RC_ERROR];
|
2007-11-16 19:47:00 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Clone all the LPARs on CEC
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
if ( exists( $opt->{c} )) {
|
|
|
|
my $result = clone( $exp, $lpar, $opt->{c}, $d );
|
2008-03-06 18:29:07 +00:00
|
|
|
foreach ( @$result ) {
|
2008-03-05 19:33:21 +00:00
|
|
|
my $Rc = shift(@$_);
|
|
|
|
push @values, [$opt->{c}, @$_[0], $Rc];
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Get source LPAR profile
|
|
|
|
#####################################
|
|
|
|
my $prof = xCAT::PPCcli::lssyscfg(
|
|
|
|
$exp,
|
2007-11-29 19:45:52 +00:00
|
|
|
"prof",
|
2007-11-16 19:47:00 +00:00
|
|
|
$mtms,
|
|
|
|
$lparid );
|
|
|
|
my $Rc = shift(@$prof);
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Return error
|
|
|
|
#####################################
|
|
|
|
if ( $Rc != SUCCESS ) {
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$lpar, @$prof[0], $Rc];
|
2007-11-16 19:47:00 +00:00
|
|
|
next;
|
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Get command-line options
|
2007-11-29 19:45:52 +00:00
|
|
|
#####################################
|
2007-11-16 19:47:00 +00:00
|
|
|
my $id = $opt->{i};
|
|
|
|
my $name = $opt->{n};
|
|
|
|
my $cfgdata = @$prof[0];
|
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
#####################################
|
|
|
|
# Modify read-back profile.
|
|
|
|
# See HMC or IVM mksyscfg man
|
|
|
|
# page for valid attributes.
|
|
|
|
#
|
|
|
|
#####################################
|
2007-11-16 19:47:00 +00:00
|
|
|
if ( $hwtype eq "hmc" ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
$cfgdata =~ s/^name=[^,]+|$/profile_name=$name/;
|
|
|
|
$cfgdata =~ s/lpar_name=[^,]+|$/name=$name/;
|
|
|
|
$cfgdata =~ s/lpar_id=[^,]+|$/lpar_id=$id/;
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
elsif ( $hwtype eq "ivm" ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
$cfgdata =~ s/^name=[^,]+|$/name=$name/;
|
|
|
|
$cfgdata =~ s/lpar_id=[^,]+|$/lpar_id=$id/;
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2007-11-29 19:45:52 +00:00
|
|
|
$cfgdata = strip_profile( $cfgdata, $hwtype );
|
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
2007-11-29 19:45:52 +00:00
|
|
|
# Create new LPAR
|
2007-11-16 19:47:00 +00:00
|
|
|
#####################################
|
|
|
|
$result = xCAT::PPCcli::mksyscfg( $exp, $d, $cfgdata );
|
|
|
|
$Rc = shift(@$result);
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Add new LPAR to database
|
|
|
|
#####################################
|
|
|
|
if ( $Rc == SUCCESS ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
my $err = xCATdB( "mkvm", $name, $id, $d, $hwtype, $lpar );
|
|
|
|
if ( defined( $err )) {
|
2008-03-06 18:29:07 +00:00
|
|
|
push @values, [$name,$err,RC_ERROR];
|
2007-11-29 19:45:52 +00:00
|
|
|
next;
|
|
|
|
}
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2008-03-05 19:33:21 +00:00
|
|
|
push @values, [$name,@$result[0],$Rc];
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return( \@values );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
##########################################################################
|
|
|
|
# Strips attributes from profile not valid for creation
|
|
|
|
##########################################################################
|
|
|
|
sub strip_profile {
|
|
|
|
|
|
|
|
my $cfgdata = shift;
|
|
|
|
my $hwtype = shift;
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Modify read-back profile. See
|
|
|
|
# HMC mksyscfg man page for valid
|
|
|
|
# attributes.
|
|
|
|
#####################################
|
|
|
|
if ( $hwtype eq "hmc" ) {
|
|
|
|
$cfgdata =~ s/,*\"virtual_serial_adapters=[^\"]+\"//;
|
|
|
|
$cfgdata =~ s/,*electronic_err_reporting=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/,*shared_proc_pool_id=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/\"/\\"/g;
|
|
|
|
$cfgdata =~ s/\n//g;
|
|
|
|
return( $cfgdata );
|
|
|
|
}
|
|
|
|
#####################################
|
|
|
|
# Modify read-back profile. See
|
|
|
|
# IVM mksyscfg man page for valid
|
|
|
|
# attributes.
|
|
|
|
#####################################
|
|
|
|
$cfgdata =~ s/,*lpar_name=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/os_type=/lpar_env=/;
|
|
|
|
$cfgdata =~ s/,*all_resources=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/,*\"virtual_serial_adapters=[^\"]+\"//;
|
|
|
|
$cfgdata =~ s/,*lpar_io_pool_ids=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/,*virtual_scsi_adapters=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/,*conn_monitoring=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/,*power_ctrl_lpar_ids=[^,]+|$//;
|
|
|
|
$cfgdata =~ s/\"/\\"/g;
|
|
|
|
return( $cfgdata );
|
|
|
|
}
|
|
|
|
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Adds/removes LPARs from the xCAT database
|
|
|
|
##########################################################################
|
|
|
|
sub xCATdB {
|
|
|
|
|
|
|
|
my $cmd = shift;
|
|
|
|
my $name = shift;
|
|
|
|
my $lparid = shift;
|
|
|
|
my $d = shift;
|
|
|
|
my $hwtype = shift;
|
2007-11-29 19:45:52 +00:00
|
|
|
my $lpar = shift;
|
2007-11-16 19:47:00 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
# Remove entry
|
|
|
|
#######################################
|
|
|
|
if ( $cmd eq "rmvm" ) {
|
2007-11-29 19:45:52 +00:00
|
|
|
return( xCAT::PPCdb::rm_ppc( $name ));
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
#######################################
|
|
|
|
# Add entry
|
|
|
|
#######################################
|
|
|
|
else {
|
|
|
|
my ($model,$serial) = split /\*/,@$d[2];
|
2008-03-20 18:32:18 +00:00
|
|
|
my $pprofile = $name;
|
|
|
|
my $server = @$d[3];
|
|
|
|
my $fsp = @$d[2];
|
2007-11-29 19:45:52 +00:00
|
|
|
|
|
|
|
###################################
|
|
|
|
# Find FSP name in ppc database
|
|
|
|
###################################
|
|
|
|
my $tab = xCAT::Table->new( "ppc" );
|
|
|
|
|
|
|
|
###################################
|
|
|
|
# Error opening ppc database
|
|
|
|
###################################
|
|
|
|
if ( !defined( $tab )) {
|
|
|
|
return( "Error opening 'ppc' database" );
|
|
|
|
}
|
|
|
|
my ($ent) = $tab->getAttribs({node=>$lpar}, "parent" );
|
2007-11-16 19:47:00 +00:00
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
###################################
|
|
|
|
# Node not found
|
|
|
|
###################################
|
|
|
|
if ( !defined( $ent )) {
|
|
|
|
return( "'$lpar' not found in 'ppc' database" );
|
|
|
|
}
|
|
|
|
###################################
|
|
|
|
# Attributes not found
|
|
|
|
###################################
|
|
|
|
if ( !exists( $ent->{parent} )) {
|
|
|
|
return( "'parent' attribute not found in 'ppc' database" );
|
|
|
|
}
|
2007-11-16 19:47:00 +00:00
|
|
|
my $values = join( ",",
|
|
|
|
"lpar",
|
|
|
|
$name,
|
|
|
|
$lparid,
|
|
|
|
$model,
|
|
|
|
$serial,
|
|
|
|
$server,
|
2008-03-20 18:32:18 +00:00
|
|
|
$pprofile,
|
2007-11-29 19:45:52 +00:00
|
|
|
$ent->{parent} );
|
2007-11-16 19:47:00 +00:00
|
|
|
|
2007-11-29 19:45:52 +00:00
|
|
|
return( xCAT::PPCdb::add_ppc( $hwtype, [$values] ));
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
2007-11-29 19:45:52 +00:00
|
|
|
return undef;
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Creates logical partitions
|
|
|
|
##########################################################################
|
|
|
|
sub mkvm {
|
2007-11-29 19:45:52 +00:00
|
|
|
return( create(@_) );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Change logical partition
|
|
|
|
##########################################################################
|
|
|
|
sub chvm {
|
2007-11-29 19:45:52 +00:00
|
|
|
return( modify(@_) );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Removes logical partitions
|
|
|
|
##########################################################################
|
|
|
|
sub rmvm {
|
2007-11-29 19:45:52 +00:00
|
|
|
return( remove(@_) );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Lists logical partition profile
|
|
|
|
##########################################################################
|
|
|
|
sub lsvm {
|
2007-11-29 19:45:52 +00:00
|
|
|
return( list(@_) );
|
2007-11-16 19:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1;
|
2008-03-05 19:33:21 +00:00
|
|
|
|
2008-03-06 18:29:07 +00:00
|
|
|
|
2008-03-20 18:32:18 +00:00
|
|
|
|