Revision fb460cf7 lib/server/noded.py

b/lib/server/noded.py
694 694
    return backend.VerifyNode(params[0], params[1])
695 695

  
696 696
  @staticmethod
697
  def perspective_node_start_master(params):
698
    """Promote this node to master status.
697
  def perspective_node_start_master_daemons(params):
698
    """Start the master daemons on this node.
699 699

  
700 700
    """
701
    return backend.StartMaster(params[0], params[1])
701
    return backend.StartMasterDaemons(params[0])
702

  
703
  @staticmethod
704
  def perspective_node_activate_master_ip(params):
705
    """Activate the master IP on this node.
706

  
707
    """
708
    return backend.ActivateMasterIp()
709

  
710
  @staticmethod
711
  def perspective_node_deactivate_master_ip(params):
712
    """Deactivate the master IP on this node.
713

  
714
    """
715
    return backend.DeactivateMasterIp()
702 716

  
703 717
  @staticmethod
704 718
  def perspective_node_stop_master(params):
705
    """Demote this node from master status.
719
    """Deactivate the master IP and stops master daemons on this node.
720

  
721
    Sometimes both operations need to be executed at the same time (doing one of
722
    the two would make impossible to do the other one).
706 723

  
707 724
    """
708
    return backend.StopMaster(params[0])
725
    backend.DeactivateMasterIp()
726
    return backend.StopMasterDaemons()
709 727

  
710 728
  @staticmethod
711 729
  def perspective_node_leave_cluster(params):

Also available in: Unified diff