def test_unreachable(self): self.assert_message( messages.ServiceCommandsOnNodesSkipped( const.REASON_UNREACHABLE, ["pacemaker_remote enable", "pacemaker_remote start"], ["nodeA", "nodeB"], ), "Running action(s) 'pacemaker_remote enable', 'pacemaker_remote " "start' on 'nodeA', 'nodeB' was skipped because pcs is unable " "to connect to the node(s). Please, run the action(s) manually.", )
def test_unknown_reason(self): self.assert_message( messages.ServiceCommandsOnNodesSkipped( "some undefined reason", ["pacemaker_remote enable", "pacemaker_remote start"], ["nodeA", "nodeB"], ), "Running action(s) 'pacemaker_remote enable', 'pacemaker_remote " "start' on 'nodeA', 'nodeB' was skipped because some undefined " "reason. Please, run the action(s) manually.", )
def test_not_live(self): self.assert_message( messages.ServiceCommandsOnNodesSkipped( const.REASON_NOT_LIVE_CIB, ["pacemaker_remote enable", "pacemaker_remote start"], ["nodeA", "nodeB"], ), "Running action(s) 'pacemaker_remote enable', 'pacemaker_remote " "start' on 'nodeA', 'nodeB' was skipped because the command " "does not run on a live cluster (e.g. -f was used). Please, " "run the action(s) manually.", )