diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index fecb42372..c65fba888 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -972,6 +972,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."); }