Revision fb460cf7 lib/rpc.py

b/lib/rpc.py
944 944

  
945 945
  @classmethod
946 946
  @_RpcTimeout(_TMO_FAST)
947
  def call_node_start_master(cls, node, start_daemons, no_voting):
948
    """Tells a node to activate itself as a master.
947
  def call_node_start_master_daemons(cls, node, no_voting):
948
    """Starts master daemons on a node.
949 949

  
950 950
    This is a single-node call.
951 951

  
952 952
    """
953
    return cls._StaticSingleNodeCall(node, "node_start_master",
954
                                     [start_daemons, no_voting])
953
    return cls._StaticSingleNodeCall(node, "node_start_master_daemons",
954
                                     [no_voting])
955 955

  
956 956
  @classmethod
957 957
  @_RpcTimeout(_TMO_FAST)
958
  def call_node_stop_master(cls, node, stop_daemons):
959
    """Tells a node to demote itself from master status.
958
  def call_node_activate_master_ip(cls, node):
959
    """Activates master IP on a node.
960 960

  
961 961
    This is a single-node call.
962 962

  
963 963
    """
964
    return cls._StaticSingleNodeCall(node, "node_stop_master", [stop_daemons])
964
    return cls._StaticSingleNodeCall(node, "node_activate_master_ip", [])
965

  
966
  @classmethod
967
  @_RpcTimeout(_TMO_FAST)
968
  def call_node_stop_master(cls, node):
969
    """Deactivates master IP and stops master daemons on a node.
970

  
971
    This is a single-node call.
972

  
973
    """
974
    return cls._StaticSingleNodeCall(node, "node_stop_master", [])
975

  
976
  @classmethod
977
  @_RpcTimeout(_TMO_FAST)
978
  def call_node_deactivate_master_ip(cls, node):
979
    """Deactivates master IP on a node.
980

  
981
    This is a single-node call.
982

  
983
    """
984
    return cls._StaticSingleNodeCall(node, "node_deactivate_master_ip", [])
965 985

  
966 986
  @classmethod
967 987
  @_RpcTimeout(_TMO_URGENT)

Also available in: Unified diff