diff --git a/buildcore.sh b/buildcore.sh index a7bc3617a..bde67f985 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -4,25 +4,36 @@ # 2 subdirs created: core-snap and core-snap-srpms. # Usage: buildcore.sh [] [release] -# - e.g. 2.1. If not specified, the trunk/new devel branch is assumed -# release - if the keyword "release" is specified, means an official dot release. +# - e.g. 2.1 or devel (the default). If not specified, the trunk/new devel branch is assumed +# promote - if the keyword "promote" is specified, means an official dot release. # Otherwise, and snap build is assumed. # You can override the default upload behavior by specifying env var: UP=0 or UP=1 # you can change this if you need to UPLOADUSER=bp-sawyers +set -x export HOME=/root if [ -n "$1" ]; then - export DESTDIR=`pwd`/$1/core-snap - export SRCDIR=`pwd`/$1/core-snap-srpms + REL=$1 else - export DESTDIR=`pwd`/core-snap - export SRCDIR=`pwd`/core-snap-srpms + REL=devel fi - cd `dirname $0` VER=`cat Version` +if [ "$2" = "promote" ]; then + CORE="xcat-core" + TARNAME=xcat-core-$VER.tar.bz2 +else + CORE="core-snap" + TARNAME=core-rpms-snap.tar.bz2 +fi +DESTDIR=`pwd`/$REL/$CORE + +if [ "$2" != "promote" ]; then # very long if statement to not do builds if we are promoting +mkdir -p $DESTDIR +SRCDIR=`pwd`/$REL/core-snap-srpms +mkdir -p $SRCDIR GREP=grep UPLOAD=0 if [ -f /etc/redhat-release ] @@ -32,9 +43,6 @@ else pkg="packages" fi -mkdir -p $DESTDIR -mkdir -p $SRCDIR -#cd xcat-core svn up > ../coresvnup if $GREP xCAT-client ../coresvnup; then @@ -131,7 +139,6 @@ else fi # Prepare the RPMs for pkging and upload -set -x build-utils/rpmsign.exp $DESTDIR/*rpm build-utils/rpmsign.exp $SRCDIR/*rpm createrepo $DESTDIR @@ -142,18 +149,18 @@ gpg -a --detach-sign $DESTDIR/repodata/repomd.xml gpg -a --detach-sign $SRCDIR/repodata/repomd.xml chgrp -R xcat $DESTDIR chmod -R g+w $DESTDIR +fi # end of very long if-not-promote + +set -x cd $DESTDIR/.. -#todo: if $2 == "release" then name the tarball differently and upload to FRS. Also upload RPMs to xcat-core instead of core-snap. -export CFNAME=core-rpms-snap.tar.bz2 -tar jcvf $CFNAME core-snap -chgrp xcat $CFNAME -chmod g+w $CFNAME +tar -hjcvf $TARNAME $CORE +chgrp xcat $TARNAME +chmod g+w $TARNAME # Upload the tarball and individual RPMs -if [ -n "$1" ]; then - DIR=$1 +rsync -rlv --delete $CORE $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$REL/ +if [ "$2" = "promote" ]; then + true #todo: upload tarball to FRS. else - DIR=devel + scp $TARNAME $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$REL/ fi -scp $CFNAME $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$DIR/ -rsync -rlv --delete core-snap $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$DIR/ diff --git a/xCAT-client/pods/man1/nodestat.1.pod b/xCAT-client/pods/man1/nodestat.1.pod index 64e6f6129..296e1712f 100644 --- a/xCAT-client/pods/man1/nodestat.1.pod +++ b/xCAT-client/pods/man1/nodestat.1.pod @@ -1,6 +1,6 @@ =head1 Name -B - display the running status of a noderange +B - display the running status of each node in a noderange =head1 B @@ -10,12 +10,12 @@ B [I<-h>|I<--help>|I<-v>|I<--version>] =head1 B -B is a small utility used to display the running status of a +B displays the running status of a single or range of nodes or groups. See L. B will first check for pbs_mom, if that fails then B will -check for snmpd, then ping. If ping fails, then B returns "nop- -ing". +check for snmpd, then sshd, then ping. If ping fails, then B returns +"noping". =head1 B @@ -34,17 +34,16 @@ Print help. =head1 B - nodestat gpfs + nodestat compute + node1 sshd + node2 sshd + node3 ping node4 snmp node5 pbs node6 snmp node7 noping -=head1 B - -Egan Ford - =head1 B B L, L, L diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index b73de9b9f..86994f83a 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -19,7 +19,7 @@ Requires: xCAT-server xCAT-client perl-DBD-SQLite %ifos linux # yaboot-xcat is pulled in so any MN can manage ppc nodes -Requires: atftp dhcp httpd nfs-utils expect nmap bind perl-XML-Parser vsftpd yaboot-xcat +Requires: atftp dhcp httpd nfs-utils expect nmap fping bind perl-XML-Parser vsftpd yaboot-xcat %ifarch s390x # No additional requires for zLinux right now %else diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 46ceaf255..16c2d2032 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -18,7 +18,7 @@ Requires: xCAT-server xCAT-client perl-xCAT perl-XML-Parser %ifos linux # yaboot-xcat is pulled in so any SN can manage ppc nodes -Requires: atftp dhcp httpd nfs-utils expect nmap bind yaboot-xcat +Requires: atftp dhcp httpd nfs-utils expect nmap fping bind yaboot-xcat %ifarch s390x # No additional requires for zLinux right now %else