root / lib / client / gnt_group.py @ 1f5d9bf8
History | View | Annotate | Download (9.1 kB)
1 | 667dbd6b | Adeodato Simo | #
|
---|---|---|---|
2 | 667dbd6b | Adeodato Simo | #
|
3 | 667dbd6b | Adeodato Simo | |
4 | f0b1bafe | Iustin Pop | # Copyright (C) 2010, 2011 Google Inc.
|
5 | 667dbd6b | Adeodato Simo | #
|
6 | 667dbd6b | Adeodato Simo | # This program is free software; you can redistribute it and/or modify
|
7 | 667dbd6b | Adeodato Simo | # it under the terms of the GNU General Public License as published by
|
8 | 667dbd6b | Adeodato Simo | # the Free Software Foundation; either version 2 of the License, or
|
9 | 667dbd6b | Adeodato Simo | # (at your option) any later version.
|
10 | 667dbd6b | Adeodato Simo | #
|
11 | 667dbd6b | Adeodato Simo | # This program is distributed in the hope that it will be useful, but
|
12 | 667dbd6b | Adeodato Simo | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 667dbd6b | Adeodato Simo | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 667dbd6b | Adeodato Simo | # General Public License for more details.
|
15 | 667dbd6b | Adeodato Simo | #
|
16 | 667dbd6b | Adeodato Simo | # You should have received a copy of the GNU General Public License
|
17 | 667dbd6b | Adeodato Simo | # along with this program; if not, write to the Free Software
|
18 | 667dbd6b | Adeodato Simo | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
19 | 667dbd6b | Adeodato Simo | # 02110-1301, USA.
|
20 | 667dbd6b | Adeodato Simo | |
21 | 667dbd6b | Adeodato Simo | """Node group related commands"""
|
22 | 667dbd6b | Adeodato Simo | |
23 | b459a848 | Andrea Spadaccini | # pylint: disable=W0401,W0614
|
24 | 667dbd6b | Adeodato Simo | # W0401: Wildcard import ganeti.cli
|
25 | 667dbd6b | Adeodato Simo | # W0614: Unused import %s from wildcard import (since we need cli)
|
26 | 667dbd6b | Adeodato Simo | |
27 | 667dbd6b | Adeodato Simo | from ganeti.cli import * |
28 | ca4ac9c9 | Adeodato Simo | from ganeti import constants |
29 | 1f5d9bf8 | Agata Murawska | from ganeti import objects |
30 | 66e884e1 | Adeodato Simo | from ganeti import opcodes |
31 | 4edc512c | Adeodato Simo | from ganeti import utils |
32 | 667dbd6b | Adeodato Simo | |
33 | 667dbd6b | Adeodato Simo | |
34 | 667dbd6b | Adeodato Simo | #: default list of fields for L{ListGroups}
|
35 | b288b6f3 | René Nussbaumer | _LIST_DEF_FIELDS = ["name", "node_cnt", "pinst_cnt", "alloc_policy", "ndparams"] |
36 | 667dbd6b | Adeodato Simo | |
37 | 667dbd6b | Adeodato Simo | |
38 | ef9fa5b9 | René Nussbaumer | _ENV_OVERRIDE = frozenset(["list"]) |
39 | ef9fa5b9 | René Nussbaumer | |
40 | ef9fa5b9 | René Nussbaumer | |
41 | 66e884e1 | Adeodato Simo | def AddGroup(opts, args): |
42 | 66e884e1 | Adeodato Simo | """Add a node group to the cluster.
|
43 | 66e884e1 | Adeodato Simo |
|
44 | 66e884e1 | Adeodato Simo | @param opts: the command line options selected by the user
|
45 | 66e884e1 | Adeodato Simo | @type args: list
|
46 | 66e884e1 | Adeodato Simo | @param args: a list of length 1 with the name of the group to create
|
47 | 66e884e1 | Adeodato Simo | @rtype: int
|
48 | 66e884e1 | Adeodato Simo | @return: the desired exit code
|
49 | 66e884e1 | Adeodato Simo |
|
50 | 66e884e1 | Adeodato Simo | """
|
51 | 1f5d9bf8 | Agata Murawska | ipolicy = \ |
52 | 1f5d9bf8 | Agata Murawska | objects.CreateIPolicyFromOpts(ispecs_mem_size=opts.ispecs_mem_size, |
53 | 1f5d9bf8 | Agata Murawska | ispecs_cpu_count=opts.ispecs_cpu_count, |
54 | 1f5d9bf8 | Agata Murawska | ispecs_disk_count=opts.ispecs_disk_count, |
55 | 1f5d9bf8 | Agata Murawska | ispecs_disk_size=opts.ispecs_disk_size, |
56 | 1f5d9bf8 | Agata Murawska | ispecs_nic_count=opts.ispecs_nic_count, |
57 | 1f5d9bf8 | Agata Murawska | group_ipolicy=True)
|
58 | 1f5d9bf8 | Agata Murawska | for key in ipolicy.keys(): |
59 | 1f5d9bf8 | Agata Murawska | utils.ForceDictType(ipolicy[key], constants.ISPECS_PARAMETER_TYPES) |
60 | 1f5d9bf8 | Agata Murawska | |
61 | 66e884e1 | Adeodato Simo | (group_name,) = args |
62 | bc5d0215 | Andrea Spadaccini | diskparams = dict(opts.diskparams)
|
63 | fabf1731 | Iustin Pop | op = opcodes.OpGroupAdd(group_name=group_name, ndparams=opts.ndparams, |
64 | bc5d0215 | Andrea Spadaccini | alloc_policy=opts.alloc_policy, |
65 | 1f5d9bf8 | Agata Murawska | diskparams=diskparams, ipolicy=ipolicy) |
66 | 66e884e1 | Adeodato Simo | SubmitOpCode(op, opts=opts) |
67 | 66e884e1 | Adeodato Simo | |
68 | 66e884e1 | Adeodato Simo | |
69 | 919852da | Adeodato Simo | def AssignNodes(opts, args): |
70 | 919852da | Adeodato Simo | """Assign nodes to a group.
|
71 | 919852da | Adeodato Simo |
|
72 | 919852da | Adeodato Simo | @param opts: the command line options selected by the user
|
73 | 919852da | Adeodato Simo | @type args: list
|
74 | 919852da | Adeodato Simo | @param args: args[0]: group to assign nodes to; args[1:]: nodes to assign
|
75 | 919852da | Adeodato Simo | @rtype: int
|
76 | 919852da | Adeodato Simo | @return: the desired exit code
|
77 | 919852da | Adeodato Simo |
|
78 | 919852da | Adeodato Simo | """
|
79 | 919852da | Adeodato Simo | group_name = args[0]
|
80 | 919852da | Adeodato Simo | node_names = args[1:]
|
81 | 919852da | Adeodato Simo | |
82 | 934704ae | Iustin Pop | op = opcodes.OpGroupAssignNodes(group_name=group_name, nodes=node_names, |
83 | 919852da | Adeodato Simo | force=opts.force) |
84 | 919852da | Adeodato Simo | SubmitOpCode(op, opts=opts) |
85 | 919852da | Adeodato Simo | |
86 | 919852da | Adeodato Simo | |
87 | b288b6f3 | René Nussbaumer | def _FmtDict(data): |
88 | b288b6f3 | René Nussbaumer | """Format dict data into command-line format.
|
89 | b288b6f3 | René Nussbaumer |
|
90 | b288b6f3 | René Nussbaumer | @param data: The input dict to be formatted
|
91 | b288b6f3 | René Nussbaumer | @return: The formatted dict
|
92 | b288b6f3 | René Nussbaumer |
|
93 | b288b6f3 | René Nussbaumer | """
|
94 | b288b6f3 | René Nussbaumer | if not data: |
95 | b288b6f3 | René Nussbaumer | return "(empty)" |
96 | b288b6f3 | René Nussbaumer | |
97 | b288b6f3 | René Nussbaumer | return utils.CommaJoin(["%s=%s" % (key, value) |
98 | b288b6f3 | René Nussbaumer | for key, value in data.items()]) |
99 | b288b6f3 | René Nussbaumer | |
100 | b288b6f3 | René Nussbaumer | |
101 | 667dbd6b | Adeodato Simo | def ListGroups(opts, args): |
102 | 667dbd6b | Adeodato Simo | """List node groups and their properties.
|
103 | 667dbd6b | Adeodato Simo |
|
104 | 667dbd6b | Adeodato Simo | @param opts: the command line options selected by the user
|
105 | 667dbd6b | Adeodato Simo | @type args: list
|
106 | 667dbd6b | Adeodato Simo | @param args: groups to list, or empty for all
|
107 | 667dbd6b | Adeodato Simo | @rtype: int
|
108 | 667dbd6b | Adeodato Simo | @return: the desired exit code
|
109 | 667dbd6b | Adeodato Simo |
|
110 | 667dbd6b | Adeodato Simo | """
|
111 | 667dbd6b | Adeodato Simo | desired_fields = ParseFields(opts.output, _LIST_DEF_FIELDS) |
112 | b288b6f3 | René Nussbaumer | fmtoverride = { |
113 | b288b6f3 | René Nussbaumer | "node_list": (",".join, False), |
114 | b288b6f3 | René Nussbaumer | "pinst_list": (",".join, False), |
115 | b288b6f3 | René Nussbaumer | "ndparams": (_FmtDict, False), |
116 | b288b6f3 | René Nussbaumer | } |
117 | 667dbd6b | Adeodato Simo | |
118 | ca4ac9c9 | Adeodato Simo | return GenericList(constants.QR_GROUP, desired_fields, args, None, |
119 | ca4ac9c9 | Adeodato Simo | opts.separator, not opts.no_headers,
|
120 | 1b1a08e8 | Michael Hanselmann | format_override=fmtoverride, verbose=opts.verbose, |
121 | 1b1a08e8 | Michael Hanselmann | force_filter=opts.force_filter) |
122 | 667dbd6b | Adeodato Simo | |
123 | 667dbd6b | Adeodato Simo | |
124 | ca4ac9c9 | Adeodato Simo | def ListGroupFields(opts, args): |
125 | ca4ac9c9 | Adeodato Simo | """List node fields.
|
126 | 667dbd6b | Adeodato Simo |
|
127 | ca4ac9c9 | Adeodato Simo | @param opts: the command line options selected by the user
|
128 | ca4ac9c9 | Adeodato Simo | @type args: list
|
129 | ca4ac9c9 | Adeodato Simo | @param args: fields to list, or empty for all
|
130 | ca4ac9c9 | Adeodato Simo | @rtype: int
|
131 | ca4ac9c9 | Adeodato Simo | @return: the desired exit code
|
132 | 667dbd6b | Adeodato Simo |
|
133 | ca4ac9c9 | Adeodato Simo | """
|
134 | ca4ac9c9 | Adeodato Simo | return GenericListFields(constants.QR_GROUP, args, opts.separator,
|
135 | ca4ac9c9 | Adeodato Simo | not opts.no_headers)
|
136 | 667dbd6b | Adeodato Simo | |
137 | 667dbd6b | Adeodato Simo | |
138 | 4da7909a | Adeodato Simo | def SetGroupParams(opts, args): |
139 | 4da7909a | Adeodato Simo | """Modifies a node group's parameters.
|
140 | 4da7909a | Adeodato Simo |
|
141 | fecbc0b6 | Stephen Shirley | @param opts: the command line options selected by the user
|
142 | 4da7909a | Adeodato Simo | @type args: list
|
143 | 4da7909a | Adeodato Simo | @param args: should contain only one element, the node group name
|
144 | 4da7909a | Adeodato Simo |
|
145 | 4da7909a | Adeodato Simo | @rtype: int
|
146 | 4da7909a | Adeodato Simo | @return: the desired exit code
|
147 | 4da7909a | Adeodato Simo |
|
148 | 4da7909a | Adeodato Simo | """
|
149 | 23805716 | Andrea Spadaccini | if (opts.ndparams is None and opts.alloc_policy is None |
150 | 23805716 | Andrea Spadaccini | and not opts.diskparams and not opts.hv_state and not opts.disk_state): |
151 | 4da7909a | Adeodato Simo | ToStderr("Please give at least one of the parameters.")
|
152 | 4da7909a | Adeodato Simo | return 1 |
153 | 4da7909a | Adeodato Simo | |
154 | a8282327 | René Nussbaumer | if opts.disk_state:
|
155 | a8282327 | René Nussbaumer | disk_state = utils.FlatToDict(opts.disk_state) |
156 | a8282327 | René Nussbaumer | else:
|
157 | a8282327 | René Nussbaumer | disk_state = {} |
158 | a8282327 | René Nussbaumer | |
159 | a8282327 | René Nussbaumer | hv_state = dict(opts.hv_state)
|
160 | a8282327 | René Nussbaumer | |
161 | bc5d0215 | Andrea Spadaccini | diskparams = dict(opts.diskparams)
|
162 | 8e47b5da | Michael Hanselmann | op = opcodes.OpGroupSetParams(group_name=args[0],
|
163 | 8e47b5da | Michael Hanselmann | ndparams=opts.ndparams, |
164 | bc5d0215 | Andrea Spadaccini | alloc_policy=opts.alloc_policy, |
165 | a8282327 | René Nussbaumer | hv_state=hv_state, |
166 | a8282327 | René Nussbaumer | disk_state=disk_state, |
167 | bc5d0215 | Andrea Spadaccini | diskparams=diskparams) |
168 | 4da7909a | Adeodato Simo | result = SubmitOrSend(op, opts) |
169 | 4da7909a | Adeodato Simo | |
170 | 4da7909a | Adeodato Simo | if result:
|
171 | 4da7909a | Adeodato Simo | ToStdout("Modified node group %s", args[0]) |
172 | 4da7909a | Adeodato Simo | for param, data in result: |
173 | 4da7909a | Adeodato Simo | ToStdout(" - %-5s -> %s", param, data)
|
174 | 4da7909a | Adeodato Simo | |
175 | 4da7909a | Adeodato Simo | return 0 |
176 | 4da7909a | Adeodato Simo | |
177 | 4da7909a | Adeodato Simo | |
178 | 66e884e1 | Adeodato Simo | def RemoveGroup(opts, args): |
179 | 66e884e1 | Adeodato Simo | """Remove a node group from the cluster.
|
180 | 66e884e1 | Adeodato Simo |
|
181 | 66e884e1 | Adeodato Simo | @param opts: the command line options selected by the user
|
182 | 66e884e1 | Adeodato Simo | @type args: list
|
183 | 66e884e1 | Adeodato Simo | @param args: a list of length 1 with the name of the group to remove
|
184 | 66e884e1 | Adeodato Simo | @rtype: int
|
185 | 66e884e1 | Adeodato Simo | @return: the desired exit code
|
186 | 66e884e1 | Adeodato Simo |
|
187 | 66e884e1 | Adeodato Simo | """
|
188 | 66e884e1 | Adeodato Simo | (group_name,) = args |
189 | 4d1baa51 | Iustin Pop | op = opcodes.OpGroupRemove(group_name=group_name) |
190 | 66e884e1 | Adeodato Simo | SubmitOpCode(op, opts=opts) |
191 | 66e884e1 | Adeodato Simo | |
192 | 66e884e1 | Adeodato Simo | |
193 | 66e884e1 | Adeodato Simo | def RenameGroup(opts, args): |
194 | 66e884e1 | Adeodato Simo | """Rename a node group.
|
195 | 66e884e1 | Adeodato Simo |
|
196 | 66e884e1 | Adeodato Simo | @param opts: the command line options selected by the user
|
197 | 66e884e1 | Adeodato Simo | @type args: list
|
198 | 66e884e1 | Adeodato Simo | @param args: a list of length 2, [old_name, new_name]
|
199 | 66e884e1 | Adeodato Simo | @rtype: int
|
200 | 66e884e1 | Adeodato Simo | @return: the desired exit code
|
201 | 66e884e1 | Adeodato Simo |
|
202 | 66e884e1 | Adeodato Simo | """
|
203 | 12da663a | Michael Hanselmann | group_name, new_name = args |
204 | 12da663a | Michael Hanselmann | op = opcodes.OpGroupRename(group_name=group_name, new_name=new_name) |
205 | 66e884e1 | Adeodato Simo | SubmitOpCode(op, opts=opts) |
206 | 66e884e1 | Adeodato Simo | |
207 | 66e884e1 | Adeodato Simo | |
208 | f6eb380d | Michael Hanselmann | def EvacuateGroup(opts, args): |
209 | f6eb380d | Michael Hanselmann | """Evacuate a node group.
|
210 | f6eb380d | Michael Hanselmann |
|
211 | f6eb380d | Michael Hanselmann | """
|
212 | f6eb380d | Michael Hanselmann | (group_name, ) = args |
213 | f6eb380d | Michael Hanselmann | |
214 | f6eb380d | Michael Hanselmann | cl = GetClient() |
215 | f6eb380d | Michael Hanselmann | |
216 | f6eb380d | Michael Hanselmann | op = opcodes.OpGroupEvacuate(group_name=group_name, |
217 | f6eb380d | Michael Hanselmann | iallocator=opts.iallocator, |
218 | f6eb380d | Michael Hanselmann | target_groups=opts.to, |
219 | f6eb380d | Michael Hanselmann | early_release=opts.early_release) |
220 | f6eb380d | Michael Hanselmann | result = SubmitOpCode(op, cl=cl, opts=opts) |
221 | f6eb380d | Michael Hanselmann | |
222 | f6eb380d | Michael Hanselmann | # Keep track of submitted jobs
|
223 | f6eb380d | Michael Hanselmann | jex = JobExecutor(cl=cl, opts=opts) |
224 | f6eb380d | Michael Hanselmann | |
225 | f6eb380d | Michael Hanselmann | for (status, job_id) in result[constants.JOB_IDS_KEY]: |
226 | f6eb380d | Michael Hanselmann | jex.AddJobId(None, status, job_id)
|
227 | f6eb380d | Michael Hanselmann | |
228 | f6eb380d | Michael Hanselmann | results = jex.GetResults() |
229 | f6eb380d | Michael Hanselmann | bad_cnt = len([row for row in results if not row[0]]) |
230 | f6eb380d | Michael Hanselmann | if bad_cnt == 0: |
231 | f6eb380d | Michael Hanselmann | ToStdout("All instances evacuated successfully.")
|
232 | f6eb380d | Michael Hanselmann | rcode = constants.EXIT_SUCCESS |
233 | f6eb380d | Michael Hanselmann | else:
|
234 | f6eb380d | Michael Hanselmann | ToStdout("There were %s errors during the evacuation.", bad_cnt)
|
235 | f6eb380d | Michael Hanselmann | rcode = constants.EXIT_FAILURE |
236 | f6eb380d | Michael Hanselmann | |
237 | f6eb380d | Michael Hanselmann | return rcode
|
238 | f6eb380d | Michael Hanselmann | |
239 | 1f5d9bf8 | Agata Murawska | INSTANCE_POLICY_OPTS = [ |
240 | 1f5d9bf8 | Agata Murawska | SPECS_CPU_COUNT_OPT, |
241 | 1f5d9bf8 | Agata Murawska | SPECS_DISK_COUNT_OPT, |
242 | 1f5d9bf8 | Agata Murawska | SPECS_DISK_SIZE_OPT, |
243 | 1f5d9bf8 | Agata Murawska | SPECS_MEM_SIZE_OPT, |
244 | 1f5d9bf8 | Agata Murawska | SPECS_NIC_COUNT_OPT, |
245 | 1f5d9bf8 | Agata Murawska | ] |
246 | 6e80da8b | Michael Hanselmann | |
247 | 667dbd6b | Adeodato Simo | commands = { |
248 | 66e884e1 | Adeodato Simo | "add": (
|
249 | bc5d0215 | Andrea Spadaccini | AddGroup, ARGS_ONE_GROUP, |
250 | 1f5d9bf8 | Agata Murawska | [DRY_RUN_OPT, ALLOC_POLICY_OPT, NODE_PARAMS_OPT, DISK_PARAMS_OPT] + |
251 | 1f5d9bf8 | Agata Murawska | INSTANCE_POLICY_OPTS, |
252 | 66e884e1 | Adeodato Simo | "<group_name>", "Add a new node group to the cluster"), |
253 | 919852da | Adeodato Simo | "assign-nodes": (
|
254 | 919852da | Adeodato Simo | AssignNodes, ARGS_ONE_GROUP + ARGS_MANY_NODES, [DRY_RUN_OPT, FORCE_OPT], |
255 | 919852da | Adeodato Simo | "<group_name> <node>...", "Assign nodes to a group"), |
256 | 667dbd6b | Adeodato Simo | "list": (
|
257 | 667dbd6b | Adeodato Simo | ListGroups, ARGS_MANY_GROUPS, |
258 | 1b1a08e8 | Michael Hanselmann | [NOHDR_OPT, SEP_OPT, FIELDS_OPT, VERBOSE_OPT, FORCE_FILTER_OPT], |
259 | 4edc512c | Adeodato Simo | "[<group_name>...]",
|
260 | ca4ac9c9 | Adeodato Simo | "Lists the node groups in the cluster. The available fields can be shown"
|
261 | ca4ac9c9 | Adeodato Simo | " using the \"list-fields\" command (see the man page for details)."
|
262 | ca4ac9c9 | Adeodato Simo | " The default list is (in order): %s." % utils.CommaJoin(_LIST_DEF_FIELDS)),
|
263 | ca4ac9c9 | Adeodato Simo | "list-fields": (
|
264 | ca4ac9c9 | Adeodato Simo | ListGroupFields, [ArgUnknown()], [NOHDR_OPT, SEP_OPT], "[fields...]",
|
265 | ca4ac9c9 | Adeodato Simo | "Lists all available fields for node groups"),
|
266 | 4da7909a | Adeodato Simo | "modify": (
|
267 | 4da7909a | Adeodato Simo | SetGroupParams, ARGS_ONE_GROUP, |
268 | a8282327 | René Nussbaumer | [DRY_RUN_OPT, SUBMIT_OPT, ALLOC_POLICY_OPT, NODE_PARAMS_OPT, HV_STATE_OPT, |
269 | a8282327 | René Nussbaumer | DISK_STATE_OPT, DISK_PARAMS_OPT], |
270 | 4da7909a | Adeodato Simo | "<group_name>", "Alters the parameters of a node group"), |
271 | 66e884e1 | Adeodato Simo | "remove": (
|
272 | 66e884e1 | Adeodato Simo | RemoveGroup, ARGS_ONE_GROUP, [DRY_RUN_OPT], |
273 | 12da663a | Michael Hanselmann | "[--dry-run] <group-name>",
|
274 | 66e884e1 | Adeodato Simo | "Remove an (empty) node group from the cluster"),
|
275 | 66e884e1 | Adeodato Simo | "rename": (
|
276 | 66e884e1 | Adeodato Simo | RenameGroup, [ArgGroup(min=2, max=2)], [DRY_RUN_OPT], |
277 | 12da663a | Michael Hanselmann | "[--dry-run] <group-name> <new-name>", "Rename a node group"), |
278 | f6eb380d | Michael Hanselmann | "evacuate": (
|
279 | f6eb380d | Michael Hanselmann | EvacuateGroup, [ArgGroup(min=1, max=1)], |
280 | f6eb380d | Michael Hanselmann | [TO_GROUP_OPT, IALLOCATOR_OPT, EARLY_RELEASE_OPT], |
281 | 6e80da8b | Michael Hanselmann | "[-I <iallocator>] [--to <group>]",
|
282 | 6e80da8b | Michael Hanselmann | "Evacuate all instances within a group"),
|
283 | 819cbfe5 | Michael Hanselmann | "list-tags": (
|
284 | 819cbfe5 | Michael Hanselmann | ListTags, ARGS_ONE_GROUP, [PRIORITY_OPT], |
285 | 819cbfe5 | Michael Hanselmann | "<instance_name>", "List the tags of the given instance"), |
286 | 819cbfe5 | Michael Hanselmann | "add-tags": (
|
287 | 819cbfe5 | Michael Hanselmann | AddTags, [ArgGroup(min=1, max=1), ArgUnknown()], |
288 | 819cbfe5 | Michael Hanselmann | [TAG_SRC_OPT, PRIORITY_OPT], |
289 | 819cbfe5 | Michael Hanselmann | "<instance_name> tag...", "Add tags to the given instance"), |
290 | 819cbfe5 | Michael Hanselmann | "remove-tags": (
|
291 | 819cbfe5 | Michael Hanselmann | RemoveTags, [ArgGroup(min=1, max=1), ArgUnknown()], |
292 | 819cbfe5 | Michael Hanselmann | [TAG_SRC_OPT, PRIORITY_OPT], |
293 | 819cbfe5 | Michael Hanselmann | "<instance_name> tag...", "Remove tags from given instance"), |
294 | 819cbfe5 | Michael Hanselmann | } |
295 | 667dbd6b | Adeodato Simo | |
296 | 667dbd6b | Adeodato Simo | |
297 | 667dbd6b | Adeodato Simo | def Main(): |
298 | 819cbfe5 | Michael Hanselmann | return GenericMain(commands,
|
299 | ef9fa5b9 | René Nussbaumer | override={"tag_type": constants.TAG_NODEGROUP},
|
300 | ef9fa5b9 | René Nussbaumer | env_override=_ENV_OVERRIDE) |