diff --git a/docs/source/guides/admin-guides/references/man5/site.5.rst b/docs/source/guides/admin-guides/references/man5/site.5.rst index a7f482df2..d58a76b2c 100644 --- a/docs/source/guides/admin-guides/references/man5/site.5.rst +++ b/docs/source/guides/admin-guides/references/man5/site.5.rst @@ -393,9 +393,12 @@ site Attributes: entries generated by 'makehosts' will put the FQDN before the PQDN(Partially Qualified Domain Name). Otherwise, the original behavior will be performed. - hierarchicalattrs: Table attributes(e.g. postscripts, postbootscripts) that will be - included hierarchically. Attribute values for all the node's groups + hierarchicalattrs: A comma delimited list of table attributes(e.g. postscripts, postbootscripts) + that will be included hierarchically. Attribute values for all the node's groups will be applied to the node in the groups' order except the repeat one. + By default, comma is used to combine the values. But some columns use different + delimiter, to specify delimiter for those columns as format of 'column:delimiter'. + dbtracelevel: The trace level for the database access log. To activate this setting, please. restart xcatd or send HUP signal to the 'xcatd: DB Access' process, Like: . ps -ef | grep 'xcatd: DB Access' | grep -v grep | awk '{print $2}' | xargs kill -HUP diff --git a/docs/source/guides/admin-guides/references/man8/rinstall.8.rst b/docs/source/guides/admin-guides/references/man8/rinstall.8.rst index 501048030..972bd40c5 100644 --- a/docs/source/guides/admin-guides/references/man8/rinstall.8.rst +++ b/docs/source/guides/admin-guides/references/man8/rinstall.8.rst @@ -21,7 +21,7 @@ Name \ **rinstall**\ \ *noderange*\ [\ **boot**\ | \ **shell**\ | \ **runcmd=**\ \ *command*\ ] [\ **-c | -**\ **-console**\ ] [\ **-V | -**\ **-verbose**\ ] -\ **rinstall**\ \ *noderange*\ \ **osimage**\ [=\ *imagename*\ ] [\ **-**\ **-noupdateinitrd**\ ][\ **-**\ **-ignorekernelchk**\ ] [\ **-c | -**\ **-console**\ ] [\ **-u | -**\ **-uefimode**\ ] [\ **-V | -**\ **-verbose**\ ] +\ **rinstall**\ \ *noderange*\ [\ **osimage**\ [=\ *imagename*\ ]] [\ **-**\ **-noupdateinitrd**\ ][\ **-**\ **-ignorekernelchk**\ ] [\ **-c | -**\ **-console**\ ] [\ **-u | -**\ **-uefimode**\ ] [\ **-V | -**\ **-verbose**\ ] \ **rinstall**\ \ *noderange*\ \ **runimage=**\ \ *task*\ @@ -35,9 +35,9 @@ Name \ **rinstall**\ is a convenience command to begin OS provision on a noderange. -If \ **osimage**\ =\ *imagename*\ is specified or \ **osimage**\ is specified and nodetype.provmethod=\ **osimage**\ is set, provision the noderange with the osimage specified/configured. +If \ **osimage**\ =\ *imagename*\ is specified or \ **osimage**\ is specified and nodetype.provmethod=\ *osimage*\ is set, provision the noderange with the osimage specified/configured. If no task specified, default is \ **osimage**\ . -If \ **-c**\ is specified, it will then run \ **rcons**\ on the node. This is allowed only if one node is in the noderange. If consoles are needed on multiple nodes, see winstall(8)|winstall.8. +If \ **-c**\ is specified, \ **rinstall**\ will run \ **rcons**\ on the node. This is allowed only if one node is in the noderange. If consoles are needed on multiple nodes, see winstall(8)|winstall.8. *************** diff --git a/xCAT-client/pods/man8/rinstall.8.pod b/xCAT-client/pods/man8/rinstall.8.pod index 9d731858d..17b7a4898 100644 --- a/xCAT-client/pods/man8/rinstall.8.pod +++ b/xCAT-client/pods/man8/rinstall.8.pod @@ -6,7 +6,7 @@ B - Begin OS provision on a noderange B I [B | B | BI] [B<-c>|B<--console>] [B<-V>|B<--verbose>] -B I B[=I] [B<--noupdateinitrd>][B<--ignorekernelchk>] [B<-c>|B<--console>] [B<-u>|B<--uefimode>] [B<-V>|B<--verbose>] +B I [B[=I]] [B<--noupdateinitrd>][B<--ignorekernelchk>] [B<-c>|B<--console>] [B<-u>|B<--uefimode>] [B<-V>|B<--verbose>] B I BI @@ -16,9 +16,9 @@ B [B<-h>|B<--help>|B<-v>|B<--version>] B is a convenience command to begin OS provision on a noderange. -If B=I is specified or B is specified and nodetype.provmethod=B is set, provision the noderange with the osimage specified/configured. +If B=I is specified or B is specified and nodetype.provmethod=I is set, provision the noderange with the osimage specified/configured. If no task specified, default is B. -If B<-c> is specified, it will then run B on the node. This is allowed only if one node is in the noderange. If consoles are needed on multiple nodes, see L. +If B<-c> is specified, B will run B on the node. This is allowed only if one node is in the noderange. If consoles are needed on multiple nodes, see L. =head1 B diff --git a/xCAT-server/lib/xcat/plugins/rinstall.pm b/xCAT-server/lib/xcat/plugins/rinstall.pm index 7bc13461a..52fcc4e27 100644 --- a/xCAT-server/lib/xcat/plugins/rinstall.pm +++ b/xCAT-server/lib/xcat/plugins/rinstall.pm @@ -257,12 +257,6 @@ sub rinstall { push @parameter, "osimage=$OSIMAGE"; - if ($ignorekernelchk) { - push @parameter, "--ignorekernelchk"; - } - if ($noupdateinitrd) { - push @parameter, "--noupdateinitrd"; - } } elsif ($STATES) { push @parameter, "$STATES"; @@ -318,6 +312,18 @@ sub rinstall { #only provision the normal nodes @nodes = @validnodes; push @parameter, "osimage"; + + } + + if ( grep( /osimage/, @parameter ) ) { + # Task is osimage, check --ignorekernelchk and --noupdateinitrd flags and set if needed + + if ($ignorekernelchk) { + push @parameter, "--ignorekernelchk"; + } + if ($noupdateinitrd) { + push @parameter, "--noupdateinitrd"; + } } if (scalar(@nodes) == 0) { @@ -406,7 +412,7 @@ sub rinstall { $::RUNCMD_RC = 0; my @nodes = @{ $hmhash{$hmkey} }; unless ($hmkey =~ /^(ipmi|blade|hmc|ivm|fsp|kvm|esx|rhevm|openbmc)$/) { - $rsp->{error}->[0] = "@nodes: rinstall only support nodehm.mgt type 'ipmi', 'blade', 'hmc', 'ivm', 'fsp', 'kvm', 'esx', 'rhevm'."; + $rsp->{error}->[0] = "@nodes: rinstall only support nodehm.mgt type 'ipmi', 'blade', 'hmc', 'ivm', 'fsp', 'kvm', 'esx', 'rhevm', 'openbmc'."; $rsp->{errorcode}->[0] = 1; xCAT::MsgUtils->message("E", $rsp, $callback); next; @@ -598,7 +604,7 @@ sub usage { my $rsp = {}; $rsp->{data}->[0] = "Usage:"; $rsp->{data}->[1] = " $command [boot | shell | runcmd=] [-c|--console] [-u|--uefimode] [-V|--verbose]"; - $rsp->{data}->[2] = " $command osimage[=] [--noupdateinitrd] [--ignorekernelchk] [-c|--console] [-u|--uefimode] [-V|--verbose]"; + $rsp->{data}->[2] = " $command [osimage[=]] [--noupdateinitrd] [--ignorekernelchk] [-c|--console] [-u|--uefimode] [-V|--verbose]"; $rsp->{data}->[3] = " $command runimage="; $rsp->{data}->[4] = " $command [-h|--help|-v|--version]"; xCAT::MsgUtils->message("I", $rsp, $callback);