From 5ca26688464d4d85ba56a9dc9dca699b7ce66703 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 1 Feb 2011 18:52:34 +0000 Subject: [PATCH] fix for defect 3167038, we lose the noderange table handle ( goes stale) on the service node when using DB2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/NodeRange.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-xCAT/xCAT/NodeRange.pm b/perl-xCAT/xCAT/NodeRange.pm index db062ed58..453133662 100644 --- a/perl-xCAT/xCAT/NodeRange.pm +++ b/perl-xCAT/xCAT/NodeRange.pm @@ -182,6 +182,11 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels # Try to match groups? unless ($grptab) { $grptab = xCAT::Table->new('nodegroup'); + } else { # if DB2 we need to get a new table handle always + my $DBname = xCAT::Utils->get_DBName; + if (($DBname =~ /^DB2/) && (xCAT::Utils->isServiceNode())){ + $grptab = xCAT::Table->new('nodegroup'); + } } if ($grptab and not $didgrouplist and not scalar @grplist) { $didgrouplist = 1;