Statistics
| Branch: | Tag: | Revision:

root / lib / client / gnt_instance.py @ dd47a0f0

History | View | Annotate | Download (53.1 kB)

# Date Author Comment
6aac5aef 05/20/2011 11:11 am Iustin Pop

Merge remote branch 'origin/devel-2.4'

  • origin/devel-2.4:
    Fix errors in hooks documentation
    Clarify a bit the noded man page
    Note --no-remember in NEWS
    Switch QA over to using instance stop --no-remember
    Implement no_remember at RAPI level
    Implement no_remember at CLI level...
885a0fc4 05/16/2011 04:24 pm Iustin Pop

Implement no_remember at CLI level

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

bb851c63 05/12/2011 03:40 pm Iustin Pop

Fix a bug in LUInstanceMove

The opcode parameter ignore_consistency was used in the LU, but not
actually declared in the OpCode. The patch adds it in the opcode and
the command line client.

ObQuote — Please, please, can I have static typing?

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

93384b8c 05/11/2011 05:14 pm Guido Trotter

Merge branch 'devel-2.4'

  • devel-2.4:
    Use floppy disk and a second CDROM on KVM
    Document the selection of instance kernels
    Make root_path an optional hypervisor parameter
    Some man page updates
    Add 2 new variables to the OS scripts environment
    Add --no-wait-for-sync when converting to drbd...
456798ab 05/09/2011 02:22 pm Iustin Pop

Add --no-wait-for-sync when converting to drbd

Currently, when converting an instance from plain to DRBD, the
instance is blocked during the entire resync period. This patch adds
the --no-wait-for-sync so that the operation finishes as soon as the
DRBD sync has started, without waiting for the entire sync. This makes...

c8a96ae7 05/09/2011 12:18 pm Iustin Pop

Recreate instance disks: allow changing nodes

This patch introduces the option of changing an instance's nodes when
doing the disk recreation. The rationale is that currently if an
instance lives on a node that has gone down and is marked offline,
it's not possible to re-create the disks and reinstall the instance on...

3de8301d 04/29/2011 04:01 pm Michael Hanselmann

Merge branch 'devel-2.4'

  • devel-2.4:
    TLReplaceDisks: Use implicit loop for dictionary
    Release unneeded locks while replacing disks
    locking: Export “list_owned” from lock manager
    gnt-instance: Fix typo in error message

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

d8d838cb 04/29/2011 03:41 pm Michael Hanselmann

gnt-instance: Fix typo in error message

The iallocator parameter is “-I”, not “-i”.

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

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...
5c097318 04/20/2011 02:54 pm Iustin Pop

gnt-instance info: automatically request locking

Commit dae661a4 added support for controlling the locking, but it
didn't modify the gnt-instance info code, which leads to this command
always showing:

Wed Apr 20 04:10:48 2011 - WARNING: Non-static data requested, locks...

87e87959 04/19/2011 03:54 pm Michael Hanselmann

gnt-instance list: Query filter support

Update manpage, quote field names.

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

e9c487be 04/06/2011 04:03 pm René Nussbaumer

gnt-instance migrate: Adding --allow-failover option

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

3429a076 03/08/2011 02:01 pm Apollon Oikonomopoulos

Rename DTS_NET_MIRROR to DTS_INT_MIRROR

DTS_INT_MIRROR better contrasts DTS_EXT_MIRROR.

Signed-off-by: Apollon Oikonomopoulos <>
[: updated patch for changed context]
Signed-off-by: Iustin Pop <>
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....

717920a0 03/02/2011 10:03 pm Guido Trotter

Unhardcode constants from instance batch create

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

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

c37bb2c6 02/08/2011 02:41 pm Stephen Shirley

Handle gnt-instance shutdown --all for empty clusters

The current code gives:
Failure: prerequisites not met for this operation:
error type: wrong_input, error details:
Selection filter does not match any instances

Signed-off-by: Stephen Shirley <>...

f86426f5 02/04/2011 07:01 pm Iustin Pop

gnt-instance reinstall: display OS changes

Currently, when reinstalling an instance, especially when selecting an
OS interactively, is hard to be sure one has chosen the correct OS.

This patch adds displaying the selected OS. I'm not entirely happy, as
it's not very good English (e.g. keeping the same OS should be "but...

25bd815c 02/01/2011 02:39 pm René Nussbaumer

Refactor _ConfirmOperation from gnt_instance.py to cli.py

This will allow us to use this functionality also in other cli-tools
like gnt-node power where we've to operate on multiple nodes.

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

fb87cbeb 01/27/2011 07:07 pm Michael Hanselmann

Merge branch 'devel-2.3' into devel-2.4

  • devel-2.3:
    Wait for master to become available on initialization
    Start all daemons on cluster initialization
    Clarify job processing order in admin guide
    Improve option descriptions
    Remove two unused variables...
c9c41373 01/26/2011 06:53 pm Iustin Pop

Deactivate disks: allow skipping hypervisor checks

In some cases (e.g. the hypervisor not running at all), we might want
to force disk deactivation, skipping the hypervisor checks. I believe
this is not a good thing to do all the time, so this patch adds the...

65cb5c4d 01/26/2011 05:44 pm Iustin Pop

Remove two unused variables

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

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

Rename OpStartupInstance and LUStartupInstance

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

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

Rename OpDiagnoseOS and LUDiagnoseOS

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

75c866c2 01/18/2011 01:47 pm Iustin Pop

Rename OpMigrateInstance and LUMigrateInstance

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

0091b480 01/18/2011 01:47 pm Iustin Pop

Rename OpMoveInstance and LUMoveInstance

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

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

Rename OpQueryInstances and LUQueryInstances

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

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

Rename OpQueryInstanceData and LUQueryInstanceData

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

90ab1a95 01/18/2011 01:47 pm Iustin Pop

Rename OpRebootInstance and LURebootInstance

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

6b273e78 01/18/2011 01:47 pm Iustin Pop

Rename OpRecreateInstanceDisks and LURecreateInstanceDisks

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

5073fd8f 01/18/2011 01:47 pm Iustin Pop

Rename OpReinstallInstance and LUReinstallInstance

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

3cd2d4b1 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveInstance and LURemoveInstance

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

5659e2e2 01/18/2011 01:47 pm Iustin Pop

Rename OpRenameInstance and LURenameInstance

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

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

Rename OpReplaceDisks and LUReplaceDisks

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

9a3cc7ae 01/18/2011 01:47 pm Iustin Pop

Rename OpSetInstanceParams and LUSetInstanceParams

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

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

Rename OpShutdownInstance and LUShutdownInstance

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

83f5d475 01/18/2011 01:47 pm Iustin Pop

Rename OpActivateInstanceDisks and LUActivateInstanceDisks

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

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

Rename OpConnectConsole and LUConnectConsole

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

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

Rename OpCreateInstance and LUCreateInstance

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

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

Rename OpDeactivateInstanceDisks and LUDeactivateInstanceDisks

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

60472d29 01/18/2011 01:47 pm Iustin Pop

Rename OpGrowDisk and LUGrowDisk

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

b32d6567 01/14/2011 11:36 am René Nussbaumer

Merge branch 'devel-2.3'

Conflicts:
doc/design-2.3.rst
This was a minor conflict with some rewording of a phrase

lib/client/gnt_instance.py
Removed _FormatParameterDict function as it was moved to cli.py in
master branch

Reviewed-by: Michael Hanselmann <>

acd19189 01/12/2011 05:59 pm René Nussbaumer

Move FormatParameterDict from gnt_instance.py to cli.py

This function is useful for other cli-tools who need to display
a dict based parameter field.

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

b577dac4 01/07/2011 05:47 pm Michael Hanselmann

gnt-instance info: Show disk template

The data was already there, but not shown.

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

25ce3ec4 01/07/2011 05:34 pm Michael Hanselmann

Introduce verbose opcode result for console

With this patch OpConnectConsole will no longer just return a command
with arguments, but rather a detailed description about how to connect
to an instance's console. Unittests for some parts are included. Another...

047686c5 01/07/2011 12:27 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    Remove unused import from client.gnt_instance
    gnt-instance console: Improve error reporting
    Increase timeout for connection on remote import
    import-export: Improve timeout error reporting

Conflicts:
lib/cmdlib.py: Trivial...

ab92578a 01/07/2011 12:01 pm Michael Hanselmann

Remove unused import from client.gnt_instance

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

678aa6d3 01/06/2011 06:52 pm Michael Hanselmann

gnt-instance console: Improve error reporting

If the SSH command fails, this will give a more detailed error
message than before.

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

b82c5ff5 12/14/2010 03:23 pm Michael Hanselmann

Convert “gnt-instance list” to query2

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

eb28ecf6 11/01/2010 07:27 pm Guido Trotter

Merge the common options between import and add

The "I always wanted to do this" commit.

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

e792102d 10/27/2010 02:58 pm Michael Hanselmann

Move gnt-instance to ganeti.client.gnt_instance

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