diff --git a/doc/design-2.2.rst b/doc/design-2.2.rst index 1eb0ee3e5a56612a91087bb5d4b876c38fb97ae0..79163728ad4a9aa15437627eb25bca96378a859e 100644 --- a/doc/design-2.2.rst +++ b/doc/design-2.2.rst @@ -716,7 +716,7 @@ hidden from the user and respectively the list of OSes which are blacklisted from new installations. These lists will be modifiable via ``gnt-os modify`` (implemented via -``OpSetClusterParams``), such that even not-yet-existing OSes can be +``OpClusterSetParams``), such that even not-yet-existing OSes can be preseeded into a given state. For the hidden OSes, they are fully functional except that they are not diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 924072ab3cd555674389ed5d8d5d736efcdc2abc..de5a60dfb3a4adfbd18ae9ed1d7af02651d417fe 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -789,7 +789,7 @@ def SetClusterParams(opts, args): else: opts.reserved_lvs = utils.UnescapeAndSplit(opts.reserved_lvs, sep=",") - op = opcodes.OpSetClusterParams(vg_name=vg_name, + op = opcodes.OpClusterSetParams(vg_name=vg_name, drbd_helper=drbd_helper, enabled_hypervisors=hvlist, hvparams=hvparams, diff --git a/lib/client/gnt_os.py b/lib/client/gnt_os.py index 9808d5ee194be33ff1c8a09045c1f368e6fc04cf..3095a9e357e2ef13770de5879afa6cee107235df 100644 --- a/lib/client/gnt_os.py +++ b/lib/client/gnt_os.py @@ -269,7 +269,7 @@ def ModifyOS(opts, args): " must be passed") return 1 - op = opcodes.OpSetClusterParams(os_hvp=os_hvp, + op = opcodes.OpClusterSetParams(os_hvp=os_hvp, osparams=osp, hidden_os=ohid, blacklisted_os=oblk) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index a98b0278bcf6f19d3e26e7997dbc5522fe95ef47..2f248fda3236a07bee8b1f5f242ace383ef1279b 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -2649,7 +2649,7 @@ class LUClusterRename(LogicalUnit): return clustername -class LUSetClusterParams(LogicalUnit): +class LUClusterSetParams(LogicalUnit): """Change the parameters of the cluster. """ diff --git a/lib/opcodes.py b/lib/opcodes.py index a5bb5a547f2f3a21c49fc71ba9b6a82541c67114..b8d4bfde9f1b1e51edb6a398150b3d89e3f9d166 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -486,7 +486,7 @@ class OpClusterRename(OpCode): ] -class OpSetClusterParams(OpCode): +class OpClusterSetParams(OpCode): """Change the parameters of the cluster. @type vg_name: C{str} or C{None} diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index 9dc165e3482b5f246af6d8fc59a3d3a0c62b8d1e..e54509ee4525aa187e451bd028707f66e13a441e 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -198,7 +198,7 @@ class R_2_cluster_modify(baserlib.R_Generic): @return: a job id """ - op = baserlib.FillOpcode(opcodes.OpSetClusterParams, self.request_body, + op = baserlib.FillOpcode(opcodes.OpClusterSetParams, self.request_body, None) return baserlib.SubmitJob([op])