Revision 08eec276 doc/hooks.rst

b/doc/hooks.rst
260 260
and secondary before failover.
261 261

  
262 262
:directory: instance-failover
263
:env. vars: IGNORE_CONSISTENCY
263
:env. vars: IGNORE_CONSISTENCY, OLD_SECONDARY, OLD_PRIMARY, NEW_SECONDARY, NEW_PRIMARY
264 264
:pre-execution: master node, secondary node
265 265
:post-execution: master node, secondary node
266 266

  
......
272 272
and secondary before migration.
273 273

  
274 274
:directory: instance-migrate
275
:env. vars: MIGRATE_LIVE, MIGRATE_CLEANUP
275
:env. vars: MIGRATE_LIVE, MIGRATE_CLEANUP, OLD_SECONDARY, OLD_PRIMARY, NEW_SECONDARY, NEW_PRIMARY
276 276
:pre-execution: master node, secondary node
277 277
:post-execution: master node, secondary node
278 278

  
......
492 492
  The name of the instance OS.
493 493

  
494 494
INSTANCE_PRIMARY
495
  The name of the node which is the primary for the instance.
495
  The name of the node which is the primary for the instance. Note that
496
  for migrations/failovers, you shouldn't rely on this variable since
497
  the nodes change during the exectution, but on the
498
  OLD_PRIMARY/NEW_PRIMARY values.
496 499

  
497 500
INSTANCE_SECONDARIES
498
  Space-separated list of secondary nodes for the instance.
501
  Space-separated list of secondary nodes for the instance. Note that
502
  for migrations/failovers, you shouldn't rely on this variable since
503
  the nodes change during the exectution, but on the
504
  OLD_SECONDARY/NEW_SECONDARY values.
499 505

  
500 506
INSTANCE_MEMORY
501 507
  The memory size (in MiBs) of the instance.
......
538 544

  
539 545
NEW_SECONDARY
540 546
  The name of the node on which the new mirror component is being
541
  added. This can be the name of the current secondary, if the new
542
  mirror is on the same secondary.
547
  added (for replace disk). This can be the name of the current
548
  secondary, if the new mirror is on the same secondary. For
549
  migrations/failovers, this is the old primary node.
543 550

  
544 551
OLD_SECONDARY
545
  The name of the old secondary in the replace-disks command Note that
552
  The name of the old secondary in the replace-disks command. Note that
546 553
  this can be equal to the new secondary if the secondary node hasn't
547
  actually changed.
554
  actually changed. For migrations/failovers, this is the new primary
555
  node.
556

  
557
OLD_PRIMARY, NEW_PRIMARY
558
  For migrations/failovers, the old and respectively new primary
559
  nodes. These two mirror the NEW_SECONDARY/OLD_SECONDARY variables
548 560

  
549 561
EXPORT_NODE
550 562
  The node on which the exported image of the instance was done.
......
595 607
  GANETI_OP_TARGET=instance2.example.com
596 608

  
597 609
.. vim: set textwidth=72 :
610
.. Local Variables:
611
.. mode: rst
612
.. fill-column: 72
613
.. End:

Also available in: Unified diff