Revision c06e0c83 lib/server/noded.py
b/lib/server/noded.py | ||
---|---|---|
677 | 677 |
return backend.VerifyNode(params[0], params[1]) |
678 | 678 |
|
679 | 679 |
@staticmethod |
680 |
def perspective_node_start_master(params): |
|
681 |
"""Promote this node to master status.
|
|
680 |
def perspective_node_start_master_daemons(params):
|
|
681 |
"""Start the master daemons on this node.
|
|
682 | 682 |
|
683 | 683 |
""" |
684 |
return backend.StartMaster(params[0], params[1]) |
|
684 |
return backend.StartMasterDaemons(params[0]) |
|
685 |
|
|
686 |
@staticmethod |
|
687 |
def perspective_node_activate_master_ip(params): |
|
688 |
"""Activate the master IP on this node. |
|
689 |
|
|
690 |
""" |
|
691 |
return backend.ActivateMasterIp() |
|
692 |
|
|
693 |
@staticmethod |
|
694 |
def perspective_node_deactivate_master_ip(params): |
|
695 |
"""Deactivate the master IP on this node. |
|
696 |
|
|
697 |
""" |
|
698 |
return backend.DeactivateMasterIp() |
|
685 | 699 |
|
686 | 700 |
@staticmethod |
687 | 701 |
def perspective_node_stop_master(params): |
688 |
"""Demote this node from master status. |
|
702 |
"""Deactivate the master IP and stops master daemons on this node. |
|
703 |
|
|
704 |
Sometimes both operations need to be executed at the same time (doing one of |
|
705 |
the two would make impossible to do the other one). |
|
689 | 706 |
|
690 | 707 |
""" |
691 |
return backend.StopMaster(params[0]) |
|
708 |
backend.DeactivateMasterIp() |
|
709 |
return backend.StopMasterDaemons() |
|
692 | 710 |
|
693 | 711 |
@staticmethod |
694 | 712 |
def perspective_node_leave_cluster(params): |
Also available in: Unified diff