Statistics
| Branch: | Tag: | Revision:

root / lib / client / gnt_group.py @ 36c70d4d

History | View | Annotate | Download (10.2 kB)

# Date Author Comment
36c70d4d 03/16/2012 01:40 pm Iustin Pop

Fix gnt-group --help display

Copy-paste mismatch :)

Signed-off-by: Iustin Pop <>
Reviewed-by: Bernardo Dal Seno <>

d04c9d45 01/24/2012 06:39 pm Iustin Pop

Rename ispecs-disk-templates to ipolicy-disk-templates

The ispecs (min/std/max) are different from the other ipolicy
variables (disk templates for now, more in the future). As such, let's
rename the ispecs-disk-templates to ipolicy-disk-templates for
consistency with this logical difference....

57dc299a 01/13/2012 03:24 pm Iustin Pop

Further fixes to instance policy validation

As a followup from "Remove extraneous check in policy creation", there
are more places where we build an ipolicy, and then manually check for
its validity. This is very bad style, as it duplicates the
verification code across many places....

2cc673a3 01/13/2012 03:16 pm Iustin Pop

Add new disk_templates parameter to instance policy

This is a bit more complex patch, as it requires changing the
assumption that all keys in the policy dict points to values that are
themselves dicts. Right now we introduce an assumption that any
non-dicts are lists, we'll see in the future if this holds or whether...

45f8b50d 01/13/2012 03:16 pm Iustin Pop

Remove extraneous check in policy creation

The values are already checked in CreateIPolicy, no need to manually
check them again.

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

0ce212e5 01/13/2012 03:16 pm Iustin Pop

Move the instance specs options to cli.py

Currently these are defined twice, instead of a single time in
cli.py. Also adds the new disk_templates option to the common block,
even though it's not yet used.

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

e4c03256 12/16/2011 10:30 am René Nussbaumer

gnt-group: Add hv/disk state to add

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

fb644e77 12/08/2011 07:24 pm Agata Murawska

GroupSetParam supports instance policy changes

Signed-off-by: Agata Murawska <>
Reviewed-by: Iustin Pop <>

1f5d9bf8 12/08/2011 07:24 pm Agata Murawska

AddGroup supports instance policy

Signed-off-by: Agata Murawska <>
Reviewed-by: Iustin Pop <>

23805716 12/08/2011 01:32 pm Andrea Spadaccini

Restore diskparams in the gnt-group options check

Commit a82823 accidentally removed opts.diskparameters from the list of
parameters that are checked for presence in gnt-group, thus causing
invocations of gnt-group modify with only disk paramaters to fail....

a8282327 12/08/2011 10:48 am René Nussbaumer

gnt-group: Allow modify disk/hv state

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

bc5d0215 12/01/2011 01:03 pm Andrea Spadaccini

Add basic support for disk parameters

objects.py: * add disk parameters to Disk, Cluster, NodeGroup.

constants.py: * add dictionaries that will hold types and default values for disk
parameters (for now, empty).

test/ganeti.constants_unittest.py:...

ef9fa5b9 11/02/2011 05:28 pm René Nussbaumer

Make it possible to pass in flags using ENV variables

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

b459a848 08/30/2011 11:24 am Andrea Spadaccini

DeprecationWarning fixes for pylint

In version 0.21, pylint unified all the disable-* (and enable-*)
directives to disable (resp. enable). This leads to a lot of
DeprecationWarning being emitted even if one uses the recommended
version of pylint (0.21.1, as stated in devnotes.rst)....

8e47b5da 08/26/2011 02:57 pm Michael Hanselmann

Two more PEP8 fixes

cmdlib: Avoid wrapping using backslash

gnt_group: Avoid * magic using keyword arguments (the “pep8” tool
doesn't like the inline comment in this case and will complain about
spaces around the “
*” operator)

Signed-off-by: Michael Hanselmann <>...

6e80da8b 08/04/2011 01:27 pm Michael Hanselmann

Small changes in group evacuation

- Use OpPrereqError in CheckPrereq
- Clarify command synopsis

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

f6eb380d 07/21/2011 12:39 pm Michael Hanselmann

gnt-group: Add command to evacuate whole group

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

819cbfe5 04/21/2011 04:08 pm Michael Hanselmann

gnt-group: Add commands for tagging groups

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

1b1a08e8 04/19/2011 03:56 pm Michael Hanselmann

gnt-group list: Query filter support

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

cbfa4f0f 02/22/2011 05:57 pm Michael Hanselmann

Merge branch 'devel-2.4'

  • devel-2.4: (60 commits)
    Update news and bump version for 2.4.0 rc2
    Fix pylint warnings
    TestRapiInstanceRename use instance name
    Change the list formatting to a 'special' chars
    Add support for merging node groups
    Add option to rename groups on conflict...
f0b1bafe 02/18/2011 04:47 pm Iustin Pop

Change the list formatting to a 'special' chars

And also enable verbose display via the, well, verbose option. Man
page and tests are updated, and the formatting is moved from 4 if
statements to a data structure.

Signed-off-by: Iustin Pop <>...

fecbc0b6 02/18/2011 04:35 pm Stephen Shirley

Fix minor docstring typo

Signed-off-by: Stephen Shirley <>
Reviewed-by: Iustin Pop <>

12da663a 02/15/2011 01:11 pm Michael Hanselmann

Make OpGroupRename consistent with OpInstanceRename

OpInstanceRename uses “instance_name” (like almost all other OpInstance*
opcodes), not “old_name”, to specify the original name. OpGroupRename is
made consistent by renaming “old_name” to “group_name”.
...

fabf1731 01/18/2011 01:47 pm Iustin Pop

Rename OpAddGroup and LUAddGroup

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

934704ae 01/18/2011 01:47 pm Iustin Pop

Rename OpAssignGroupNodes and LUAssignGroupNodes

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

4d1baa51 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveGroup and LURemoveGroup

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

a8173e82 01/18/2011 01:47 pm Iustin Pop

Rename OpRenameGroup and LURenameGroup

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

7cbf74f0 01/18/2011 01:47 pm Iustin Pop

Rename OpSetGroupParams and LUSetGroupParams

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

b288b6f3 01/13/2011 02:09 pm René Nussbaumer

List node parameters in gnt-group list

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>
Reviewed-by: Adeodato Simo <>

919852da 01/10/2011 06:32 pm Adeodato Simo

Add `gnt-group assign-nodes` in the CLI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

ca4ac9c9 01/06/2011 03:02 pm Adeodato Simo

Convert “gnt-group list” to query2

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

90e99856 12/13/2010 06:33 pm Adeodato Simo

Add the "alloc_policy" attribute to node groups

This can be set at group creation time and via OpSetGroupParams. The default
is "preferred", and existing node groups from previous Ganeti version will
get the attribute set to this value.

Signed-off-by: Adeodato Simo <>...

4da7909a 12/13/2010 06:33 pm Adeodato Simo

Add modification of node groups (OpCode/LU/CLI)

With this commit, only modification of the "ndparams" attribute is
supported.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Guido Trotter <>

483be60d 12/13/2010 06:32 pm Adeodato Simo

Introduce OpAddGroup.ndparams and expose in CLI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Guido Trotter <>

66e884e1 12/08/2010 02:27 pm Adeodato Simo

Group operations: CLI code for add/remove/rename a group

Also, minor update to the 2.3 design doc, which was indicating the remove
operation would be `gnt-group del` and not `gnt-group remove` (the latter
being consistent with gnt-node and gnt-instance)....

4edc512c 12/08/2010 02:27 pm Adeodato Simo

Expose new node group attributes in CLI and RAPI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

667dbd6b 12/01/2010 09:31 pm Adeodato Simo

Querying node groups: add client/gnt_group.py

This implements `gnt-group list`.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>