From c5774a5223f3d53fe21c7c17d3a2c2c8bc181fca Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 14 Mar 2012 21:22:08 +0000 Subject: [PATCH] defect 3504334 -- fix rollupdate for xLinux rpower timeout errors git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/rollupdate.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/rollupdate.pm b/xCAT-server/lib/xcat/plugins/rollupdate.pm index b21b44932..e2c73ddf6 100644 --- a/xCAT-server/lib/xcat/plugins/rollupdate.pm +++ b/xCAT-server/lib/xcat/plugins/rollupdate.pm @@ -2058,9 +2058,11 @@ sub runrollupdate { my $pwrstat = xCAT::Utils->runxcmd( $pwrstat_cmd, $::SUBREQ, -1, 1 ); foreach my $pline (@{$pwrstat}) { my ( $pnode, $pstat, $rest ) = split( /\s+/, $pline ); - if ( ( $pstat eq "Running" ) + if ( ( ! $pstat ) + || ( $pstat eq "Running" ) || ( $pstat eq "Shutting" ) - || ( $pstat eq "on" ) ) + || ( $pstat eq "on" ) + || ( $pstat eq "Error:" ) ) { $alldown = 0;