From 17c516e885e3936f6765e316e8455dc75a072b68 Mon Sep 17 00:00:00 2001 From: Lei Ai Date: Wed, 25 Jun 2014 08:50:41 +0800 Subject: [PATCH] PCM:remove DNS records while change node's IP address --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 9f25a3b7a..f7048edde 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -1047,11 +1047,10 @@ Usage: foreach my $command (@kitcommands) { my $retref; if ($command eq 'removenodes'){ - # Not run makedns -d as it costs too much time - #setrsp_progress("Updating DNS entries"); - #$retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>$nodes, arg=>['-d']}, $request_command, 0, 2); + setrsp_progress("Updating DNS entries"); + $retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>$nodes, arg=>['-d']}, $request_command, 0, 2); - #setrsp_progress("Updating hosts entries"); + setrsp_progress("Updating hosts entries"); $retref = ""; $retref = xCAT::Utils->runxcmd({command=>["makehosts"], node=>$nodes, arg=>['-d']}, $request_command, 0, 2); next;