Move codes to call makedns and makehosts for kitnoderemove request from 00kitnodebase.pm to profilednodes.pm as other kitnoderemove plugins need the node name for some operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -148,14 +148,6 @@ sub process_request { | ||||
|         setrsp_progress("Update DHCP entries"); | ||||
|         $retref = xCAT::Utils->runxcmd({command=>["makedhcp"], node=>$nodelist, arg=>['-d']}, $request_command, 0, 2); | ||||
|         log_cmd_return($retref); | ||||
|  | ||||
|         setrsp_progress("Updating DNS entries"); | ||||
|         $retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>$nodelist, arg=>['-d']}, $request_command, 0, 2); | ||||
|         log_cmd_return($retref); | ||||
|  | ||||
|         setrsp_progress("Updating hosts entries"); | ||||
|         $retref = xCAT::Utils->runxcmd({command=>["makehosts"], node=>$nodelist, arg=>['-d']}, $request_command, 0, 2); | ||||
|         log_cmd_return($retref); | ||||
|     } | ||||
|     elsif ($command eq 'kitnodeupdate'){ | ||||
|         setrsp_progress("Updating hosts entries"); | ||||
|   | ||||
| @@ -532,6 +532,12 @@ Usage: | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     setrsp_progress("Updating DNS entries"); | ||||
|     $retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>$nodes, arg=>['-d']}, $request_command, 0, 2); | ||||
|  | ||||
|     setrsp_progress("Updating hosts entries"); | ||||
|     $retref = xCAT::Utils->runxcmd({command=>["makehosts"], node=>$nodes, arg=>['-d']}, $request_command, 0, 2); | ||||
|  | ||||
|     setrsp_progress("Removing nodes..."); | ||||
|     $retref = xCAT::Utils->runxcmd({command=>["noderm"], node=>$nodes}, $request_command, 0, 2); | ||||
|     $retstrref = parse_runxcmd_ret($retref); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user