Revision 05f86716 lib/cmdlib.py

b/lib/cmdlib.py
54 54
    - implement Exec
55 55
    - implement BuildHooksEnv
56 56
    - redefine HPATH and HTYPE
57
    - optionally redefine their run requirements (REQ_MASTER); note that all
58
      commands require root permissions
57
    - optionally redefine their run requirements:
58
        REQ_MASTER: the LU needs to run on the master node
59
        REQ_WSSTORE: the LU needs a writable SimpleStore
60

  
61
  Note that all commands require root permissions.
59 62

  
60 63
  """
61 64
  HPATH = None
62 65
  HTYPE = None
63 66
  _OP_REQP = []
64 67
  REQ_MASTER = True
68
  REQ_WSSTORE = False
65 69

  
66 70
  def __init__(self, processor, op, cfg, sstore):
67 71
    """Constructor for LogicalUnit.
......
849 853
  HPATH = "cluster-rename"
850 854
  HTYPE = constants.HTYPE_CLUSTER
851 855
  _OP_REQP = ["name"]
856
  REQ_WSSTORE = True
852 857

  
853 858
  def BuildHooksEnv(self):
854 859
    """Build hooks env.
......
1661 1666
  HPATH = "master-failover"
1662 1667
  HTYPE = constants.HTYPE_CLUSTER
1663 1668
  REQ_MASTER = False
1669
  REQ_WSSTORE = True
1664 1670
  _OP_REQP = []
1665 1671

  
1666 1672
  def BuildHooksEnv(self):

Also available in: Unified diff