From 7839592fbc0686342a2f572f0cbc99d0ba606c2d Mon Sep 17 00:00:00 2001 From: xyye Date: Sun, 28 Apr 2013 06:07:08 +0000 Subject: [PATCH] make dns and dhcp after adding unmanagement node in profilenodes.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16115 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index c224b59b9..057ba1991 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -973,6 +973,17 @@ Usage: setrsp_progress("Warning: failed to update /etc/hosts for unmanaged node."); } + $retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>[$args_dict{"hostname"}]}, $request_command, 0, 2); + $retstrref = parse_runxcmd_ret($retref); + if ($::RUNCMD_RC != 0){ + setrsp_progress("Warning: failed to update dns for unmanaged node."); + } + + $retref = xCAT::Utils->runxcmd({command=>["makedhcp"], node=>[$args_dict{"hostname"}]}, $request_command, 0, 2); + $retstrref = parse_runxcmd_ret($retref); + if ($::RUNCMD_RC != 0){ + setrsp_progress("Warning: failed to update dhcp for unmanaged node."); + } setrsp_infostr("Created unmanaged node."); }