Statistics
| Branch: | Tag: | Revision:

root / doc / hooks.rst @ ee4ffc8a

History | View | Annotate | Download (19.5 kB)

# Date Author Comment
2c0af7da 01/18/2012 06:03 pm Guido Trotter

gnt-instance modify -m|--runtime-memory

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

0e82dcf9 11/18/2011 01:48 pm Andrea Spadaccini

Merge branch 'devel-2.5'

  • devel-2.5: (24 commits)
    LUInstanceCreate: Release unused node locks
    htools: rework message display construction
    hbal: handle empty node groups
    Document OpNodeMigrate's result for RAPI
    Ensure unused ports return to the free port pool...
3a3e4f1e 11/02/2011 03:18 pm Andrea Spadaccini

Add netmask and IP version to master IP hooks env

Add the master netmask and master IP version parameters to the hooks and
document them. In this way, the hook environment building function can
be reused for the planned master IP turnup changes.

Signed-off-by: Andrea Spadaccini <>...

fe5ca2bb 11/02/2011 12:46 pm Andrea Spadaccini

Move hooks PATH environment variable to constants

Move the contents of the PATH environment variable for hooks to
constants, and use its value in the code and in the hooks documentation.

Signed-off-by: Andrea Spadaccini <>
Reviewed-by: Guido Trotter <>

3738b8d6 11/01/2011 09:09 pm Andrea Spadaccini

Add documentation for the master IP hooks

Reviewed-by: Michael Hanselmann <>
Signed-off-by: Andrea Spadaccini <>

769582be 11/01/2011 08:37 pm Andrea Spadaccini

Add documentation for the master IP hooks

Signed-off-by: Andrea Spadaccini <>
Reviewed-by: Michael Hanselmann <>

9f604ab8 08/05/2011 02:11 pm Michael Hanselmann

Bump version to 2.5.0~beta1

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

1aef3df8 08/04/2011 04:18 pm Michael Hanselmann

Add opcode to change instance's group

This is quite similar to evacuating a group, but the locking
is different.

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

08f8c82c 07/21/2011 12:39 pm Michael Hanselmann

Add new opcode for evacuating group

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

9dfa16fc 06/01/2011 08:24 pm Apollon Oikonomopoulos

Export instance tags to instance hooks

Instance hooks now get an INSTANCE_TAGS environment variable, which contains a
space-delimited list of the affected instance's tags.

Also update the documentation to reflect the change.

Signed-off-by: Apollon Oikonomopoulos <>...

56372573 05/20/2011 06:20 pm Guido Trotter

Update hooks.rst for cluster verify changes

Also update NEWS on this change.

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

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...
8ac5c5d7 05/17/2011 07:18 pm Michael Hanselmann

Fix errors in hooks documentation

In many cases the opcode ID was incorrect. A unittest for this will
be added in the master branch.

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

dd7f6776 03/16/2011 07:58 pm Michael Hanselmann

hooks: Provide variables with post-opcode values

When a hook is called, it is provided with a number of variables
describing the status of the instance/node/etc. before the operation.
Some opcodes provide extra variables to see modified values from hooks,...

18009c1e 01/11/2011 12:39 pm Iustin Pop

Fix some doc issues introduced in recent commits

The hooks is due to me not checking the recent patch from David, and
the cli.py change is due to the utils.py split.

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

dd5e7794 01/11/2011 12:03 pm David Knowles

More fixes to hooks documentation

Signed-off-by: David Knowles <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

49e4c837 01/07/2011 11:22 am David Knowles

Updating hooks documentation with missing environment variables

Signed-off-by: David Knowles <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

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

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

Group operations: OpCode and LU for renaming a group

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

94bd652a 12/08/2010 02:27 pm Adeodato Simo

Group operations: OpCode and LU for removing a group

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

b1ee5610 12/08/2010 02:27 pm Adeodato Simo

Group operations: OpCode and LU for adding a group

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

abd8e836 02/11/2010 06:00 pm Iustin Pop

Run instance hooks on more nodes

This should fix issue 68: some hooks should be run on more nodes than
currently. GrowDisk runs on both nodes, remove run the post hook on the
instance's nodes, and failover and migrate run the post hook on the
source node too....

08eec276 02/11/2010 06:00 pm Iustin Pop

Add {NEW,OLD}_{PRIMARY,SECONDARY} vars to hooks

Per issue 71, the migrate and failover need special variables for
keeping the nodes consistent during instance migrations.

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

e73a5804 09/29/2009 08:25 pm Luca Bigliardi

Improve description of migrate/failover post hooks env

Signed-off-by: Luca Bigliardi <>
Reviewed-by: Guido Trotter <>

454fe3cd 09/29/2009 08:25 pm Luca Bigliardi

Update env vars for instances in hooks documentation

Remove variables which are listed at the beginning of the section and variables
which are not declared when building hooks env.

Signed-off-by: Luca Bigliardi <>
Reviewed-by: Guido Trotter <>

7faf5110 09/24/2009 06:32 pm Michael Hanselmann

Wrap documentation to max 72 characters per line

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

558fd122 09/24/2009 06:31 pm Michael Hanselmann

Set Vim textwidth in each documentation file

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

6c6b7f8a 09/03/2009 06:44 pm Michael Hanselmann

Update hooks documentation

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Luca Bigliardi <>

d87e1814 08/25/2009 06:51 pm Luca Bigliardi

Document cluster destroy hook

Add documentation about new cluster-destroy-post hook.

Signed-off-by: Luca Bigliardi <>
Reviewed-by: Iustin Pop <>

035a7783 08/25/2009 03:57 pm Luca Bigliardi

Document post cluster initialization LU

Update hooks documentation with the new opcode (not deleting OP_INIT_CLUSTER
from obsolete operations because the name is different).

Signed-off-by: Luca Bigliardi <>
Reviewed-by: Iustin Pop <>

cd46f3b4 08/25/2009 02:40 pm Luca Bigliardi

node-remove post on removed node

Run post phase of node-remove on the removed node as well.

Signed-off-by: Luca Bigliardi <>
Reviewed-by: Iustin Pop <>

7ffc5a86 07/22/2009 08:52 pm Michael Hanselmann

Add new opcode to evacuate nodes

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

5bbd3f7f 07/07/2009 03:51 pm Michael Hanselmann

Fix some typos

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

35e994e9 03/02/2009 02:19 pm Iustin Pop

Export tags to cluster verify hooks

This patch export the cluster and node tags to the cluster verify hook
scripts. The tags are exported as a space-separated list, which allows
easy parsing from the shell (e.g. “for tag in $GANETI_CLUSTER_TAGS; do
...”) and therefore requires the previous “Don't allow spaces in tag...

4d6443f4 02/25/2009 01:24 pm Iustin Pop

Convert the hooks document to restructured text

This also updates the hooks document to 2.0.

Reviewed-by: ultrotter