Revision b5a93c73 qa/qa_cluster.py

b/qa/qa_cluster.py
690 690
      (cur_policy, cur_specs) = TestClusterSetISpecs(new_vals, fail=not good,
691 691
                                                     old_values=cur_state)
692 692

  
693
    # Get the ipolicy command
694
    mnode = qa_config.GetMasterNode()
695
    initcmd = GetCommandOutput(mnode.primary, "gnt-cluster show-ispecs-cmd")
696
    modcmd = ["gnt-cluster", "modify"]
697
    opts = initcmd.split()
698
    assert opts[0:2] == ["gnt-cluster", "init"]
699
    for k in range(2, len(opts) - 1):
700
      if opts[k].startswith("--ipolicy-"):
701
        assert k + 2 <= len(opts)
702
        modcmd.extend(opts[k:k + 2])
703
    # Re-apply the ipolicy (this should be a no-op)
704
    AssertCommand(modcmd)
705
    new_initcmd = GetCommandOutput(mnode.primary, "gnt-cluster show-ispecs-cmd")
706
    AssertEqual(initcmd, new_initcmd)
707

  
693 708

  
694 709
def TestClusterInfo():
695 710
  """gnt-cluster info"""

Also available in: Unified diff