(self, old_node_name, new_node_name, failover)
Non-root switchover.
Non-root switchover.
Non - root switchover .
def takeover_nonroot(self, old_node_name, new_node_name, failover):
        """Non-root switchover."""
        if self.node_depends(new_node_name, old_node_name):
            # yes, old_node is new_nodes provider,
            # switch it around
            pnode = self.find_provider(old_node_name)
            self.node_change_provider(new_node_name, pnode)

        self.node_change_provider(old_node_name, new_node_name)
def takeover_nonroot ( self , old_node_name , new_node_name , failover ) : if self . node_depends ( new_node_name , old_node_name ) : # yes, old_node is new_nodes provider, # switch it around pnode = self . find_provider ( old_node_name ) self . node_change_provider ( new_node_name , pnode ) self . node_change_provider ( old_node_name , new_node_name )