Statistics
| Branch: | Tag: | Revision:

root / lib / client / gnt_node.py @ eb70f6cf

History | View | Annotate | Download (31.1 kB)

# Date Author Comment
f1bebf4c 04/27/2012 11:00 am Iustin Pop

Make setup-ssh behave more friendly

So while testing my previous patch I run setup-ssh manually without
any arguments, and it did nothing (no complains, no messages,
anything). That was very surprising, so let's make it behave better if
no nodes are passed....

c5a66db3 04/18/2012 07:07 pm Michael Hanselmann

gnt-node: Add "--submit" and "--priority" to commands

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

96897af7 04/17/2012 09:20 pm Alexander Schreiber

Add "show" as alias for "info" to gnt commands

This patch adds support for "show" as an alias for "info" to
gnt-(cluster|instance|node|os). It already exists in gnt-job.

Signed-off-by: Alexander Schreiber <>
Reviewed-by: Michael Hanselmann <>

5ad68a23 04/13/2012 04:19 pm Michael Hanselmann

Merge branch 'devel-2.5'

  • devel-2.5: (29 commits)
    gnt-* {add,list,remove}-tags: Unify options
    Bump version for 2.5.0 final release
    configure.ac: Fix “too many arguments” error
    Fix extra whitespace
    Further fixes concerning drbd port release
    Fix a bug concerning TCP port release...
6bc3ed14 04/12/2012 08:53 pm Michael Hanselmann

gnt-* {add,list,remove}-tags: Unify options

- Listing tags is a query, so neither “--priority” nor “--submit” make
sense
- Support both options for adding/removing tags
- Also remove “--submit” from “gnt-node health”; it doesn't work and
doesn't make sense for listing node health...

5ec23388 03/19/2012 11:50 am Iustin Pop

Update gnt-node evacuate man page/help text

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

7bfb3367 03/06/2012 08:58 pm Iustin Pop

Merge remote-tracking branch 'origin/devel-2.5'

Conflicts:
Makefile.am (trivial, test data files added on both branches)
lib/opcodes.py (trivial, master renamed filter→qfilter, 2.5
fixed the type of the parameter)...

dd9b9d7b 02/01/2012 10:25 am Michael Hanselmann

Merge branch 'stable-2.5' into devel-2.5

  • stable-2.5:
    Fix type check for OpQuery.filter
    Fix explanation of gnt-node evacuate --primaries-only
    Makefile.am: fix permissions for Python scripts on install
    devel/upload: Fix permissions for installed directories...
f1dff7ec 01/26/2012 08:31 pm Iustin Pop

Fix explanation of gnt-node evacuate --primaries-only

Furthermore, correct the --help display on evacuate.

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

8c0b16f6 01/26/2012 06:33 pm Guido Trotter

cli/opcodes: add a --no-runtime-changes migrate opt

This will be used for now to avoid ballooning memory at live migration time.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

9fa567b3 01/06/2012 02:47 pm René Nussbaumer

gnt-node: Add instance policy to migrate

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

085e0d9f 12/16/2011 10:30 am René Nussbaumer

gnt-node: Add hv/disk state to add

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

0ec2ce46 12/08/2011 10:48 am René Nussbaumer

gnt-node: Allow modify disk/hv state

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

75191077 11/24/2011 12:31 pm Michael Hanselmann

Merge branch 'devel-2.5'

  • devel-2.5:
    LUGroupAssignNodes: Fix node membership corruption
    LUGroupAssignNodes: Fix node membership corruption
    Fix pylint warning on unreachable code
    LUNodeEvacuate: Disallow migrating all instances at once
    Separate OpNodeEvacuate.mode from iallocator...
cb92e7a1 11/23/2011 03:03 pm Michael Hanselmann

Separate OpNodeEvacuate.mode from iallocator

Until now the iallocator constants for node evacuation
(IALLOCATOR_NEVAC_*) were also used for the opcode. However, it turned
out this was due to a misunderstanding and is incorrect. This patch adds
new constants (with the same values) and changes the affected places....

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)....

d0c8c01d 07/25/2011 04:55 pm Iustin Pop

Most boring patch ever

s/'/"/ in (hopefully) the right places.

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

aafee533 07/06/2011 12:31 am Michael Hanselmann

Change “gnt-node evacuate” to use new opcode

By default it'll now evacuate all instances from the node, not
just secondaries.

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

b7a1c816 05/30/2011 06:07 pm Michael Hanselmann

gnt-node migrate: Use LU-generated jobs

Until now LUNodeMigrate used multiple tasklets to evacuate all primary
instances on a node. In some cases it would acquire all node locks,
which isn't good on big clusters. With upcoming improvements to the LUs
for instance failover and migration, switching to separate jobs looks...

f8fa4175 05/25/2011 05:55 pm Michael Hanselmann

Fix bug in LUNodeMigrate

Commit aac4511a added CheckArguments to LUNodeMigrate with a call to
_CheckIAllocatorOrNode. When no default iallocator is defined,
evacuating a node would always fail:

$ gnt-node migrate node123
Migrate instance(s) '...'?
y/[n]/?: y...

580c971e 04/29/2011 03:38 pm Michael Hanselmann

Merge branch 'devel-2.4'

  • devel-2.4: (24 commits)
    mlock: fail gracefully if libc.so.6 cannot be loaded
    Allow creating the DRBD metadev in a different VG
    Make _GenerateDRBD8Branch accept different VG names
    Fix WriteFile with unicode data
    Replace disks: keep the meta device in the same VG...
d833acc6 04/27/2011 06:26 pm Iustin Pop

Prevent readding of the master node

This breaks Ganeti in multiple ways. If we don't make the check in
gnt-node itself, then bootstrap.SetupNodeDaemon will restart the
master daemon, making the operation fail:

node1# gnt-node add --readd node1
Cannot communicate with the master daemon....
2afd577f 04/19/2011 03:56 pm Michael Hanselmann

gnt-node list: Query filter support

Update manpage, quote field names.

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

0a1fc31c 03/09/2011 03:36 pm René Nussbaumer

gnt-node power: Adding --power-delay flag

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

1b7761fd 03/08/2011 02:00 pm Apollon Oikonomopoulos

CLI changes to facilitate shared storage migration/failover

Add DST_NODE_OPT to cli.py to use for directly specifying the target node
during migration/failover.

gnt-instance failover/migrate also get passed an iallocator option.

gnt-node failover/migrate get only a target_node option....

41543d8b 02/24/2011 12:28 pm René Nussbaumer

Move OOB_TIMEOUT_OPT to cli.py

OOB commands where we need to be able to specify the timeout are
enhancing over the border of just gnt-node so we move it into cli.py
for easy reuse in other cli parts.

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

f2c6673d 02/22/2011 08:05 pm Michael Hanselmann

Add unittest for cli.FormatResultError

Also make the parameter for verbosity mandatory.

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 <>...

fed67843 02/16/2011 02:06 pm René Nussbaumer

Remove force_master support from LUOobCommand

As per discussion on the man-page1 update, this functionality should be
removed and replaced by just give the command to run if the user insists
of power cycle/power off the master and refuse to operate.

[1] http://groups.google.com/group/ganeti-devel/browse_thread/thread/95d4879a747cc295...

65a77fab 02/04/2011 04:34 pm René Nussbaumer

Allow passing timeout for oob helper in gnt_node.py

This allow to pass in --oob-timeout to define the timeout before the
out-of-band helper is beeing aborted.

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

61413377 02/04/2011 04:21 pm Stephen Shirley

Add --force-join option to gnt-node add

This is needed so cluster-merge can add nodes from other clusters.

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

c832b6c8 02/03/2011 11:42 am René Nussbaumer

Modify gnt-node power to support multiple nodes

This also has the sideeffect of presenting a table with the result

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

efae0fdd 01/31/2011 07:06 pm René Nussbaumer

Adding support for the new option flags in gnt-node power

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

a0724772 01/31/2011 05:45 pm René Nussbaumer

Adding gnt-node health

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

b04808ea 01/24/2011 05:32 pm René Nussbaumer

Modify LUOobCommand to support multiple nodes

This will change the result of this LU to a query like result. A list of
tuples with information about the state of the data.

It also includes the modification to the commands calling this opcode.

Signed-off-by: René Nussbaumer <>...

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

Rename OpAddNode and LUAddNode

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

0ae89533 01/18/2011 01:47 pm Iustin Pop

Rename OpNodeEvacuationStrategy and LUNodeEvacuationStrategy

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

5b14a488 01/18/2011 01:47 pm Iustin Pop

Rename OpMigrateNode and LUMigrateNode

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

2cee4077 01/18/2011 01:47 pm Iustin Pop

Rename OpModifyNodeStorage and LUModifyNodeStorage

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

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

Rename OpPowercycleNode and LUPowercycleNode

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

8ed55bfd 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryNodeVolumes and LUQueryNodeVolumes

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

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

Rename OpQueryNodeStorage and LUQueryNodeStorage

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

73d565a3 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveNode and LURemoveNode

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

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

Rename OpSetNodeParams and LUSetNodeParams

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

668f755d 01/18/2011 01:47 pm Iustin Pop

Rename OpReplaceDisks and LUReplaceDisks

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

019dbee1 01/18/2011 01:47 pm Iustin Pop

Rename OpFailoverInstance and LUFailoverInstance

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

8572f1fe 01/13/2011 02:08 pm René Nussbaumer

List node parameters (if any) in gnt-node info

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

016acd85 01/06/2011 05:19 pm René Nussbaumer

List recorded powered state in gnt-node info

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

dd94e9f6 12/17/2010 06:51 pm René Nussbaumer

gnt-node modify: Adding --node-powered=yes|no

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

d363797e 12/17/2010 06:50 pm René Nussbaumer

gnt-node power: Mark also offline when powering off

Signed-off-by: René Nussbaumer <>
Reviewed-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

792af3ad 12/15/2010 05:35 pm René Nussbaumer

Rename (Op|LU)OutOfBand to (Op|LU)OobCommand

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

abefdcff 12/15/2010 12:47 pm René Nussbaumer

Adding gnt-node power * commands

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

a36f605d 12/14/2010 05:21 pm Michael Hanselmann

client.gnt_node: Remove unnecessary lambda

Pylint complained that the “lambda may not be necessary”. Turns out it
was right.

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

7f5443a0 12/14/2010 03:23 pm Michael Hanselmann

Convert “gnt-node list” to query2

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

982ed68e 11/30/2010 05:04 pm Adeodato Simo

Trivial style fixes

Add missing closing brackets and fix a typo.

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

4e37f591 11/29/2010 04:02 pm René Nussbaumer

Adding ndparams to gnt-node add|modify and man page

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

c70e1a9f 11/11/2010 02:18 pm Iustin Pop

Add group, group.uuid fields in node list

This is needed to at least see the current group configuration.

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

4d32c211 11/01/2010 07:27 pm Guido Trotter

Add -s option to gnt-node modify

We can now change a nodes' secondary ip.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

53919782 10/28/2010 02:51 pm Iustin Pop

Add vm_capable to gnt-node modify

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

fd3d37b6 10/28/2010 02:51 pm Iustin Pop

Add the master/vm_capable flags in node add

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

7b4978ad 10/28/2010 02:51 pm Iustin Pop

Add the capability flags in node info output

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

37494fa4 10/27/2010 02:58 pm Michael Hanselmann

Move gnt-node to ganeti.client.gnt_node

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