Revision 140aa4a8 lib/bootstrap.py

b/lib/bootstrap.py
230 230
  rpc.call_node_start_master(hostname.name, True)
231 231

  
232 232

  
233
def FinalizeClusterDestroy(master):
234
  """Execute the last steps of cluster destroy
235

  
236
  This function shuts down all the daemons, completing the destroy
237
  begun in cmdlib.LUDestroyOpcode.
238

  
239
  """
240
  if not rpc.call_node_stop_master(master, True):
241
    logging.warning("Could not disable the master role")
242
  if not rpc.call_node_leave_cluster(master):
243
    logging.warning("Could not shutdown the node daemon and cleanup the node")
244

  
245

  
233 246
def SetupNodeDaemon(node):
234 247
  """Add a node to the cluster.
235 248

  

Also available in: Unified diff