1. 20 Jun, 2012 1 commit
  2. 31 May, 2012 1 commit
  3. 23 May, 2012 1 commit
  4. 09 May, 2012 2 commits
  5. 18 Jan, 2012 1 commit
  6. 02 Nov, 2011 2 commits
  7. 01 Nov, 2011 2 commits
  8. 05 Aug, 2011 1 commit
  9. 04 Aug, 2011 1 commit
  10. 21 Jul, 2011 1 commit
  11. 01 Jun, 2011 1 commit
  12. 20 May, 2011 1 commit
  13. 17 May, 2011 1 commit
  14. 16 Mar, 2011 1 commit
    • Michael Hanselmann's avatar
      hooks: Provide variables with post-opcode values · dd7f6776
      Michael Hanselmann authored
      
      
      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,
      but that's not a generic solution.
      
      This patch modifies the code calling hooks to generate the environment
      once before and once after an opcode has been executed. Doing so should
      be safe—I did not find any LU.BuildHooksEnv modifying LU instance
      attributes. The values collected after running the opcode are prefixed
      with “GANETI_POST_”, as opposed to “GANETI_” for pre-execution
      variables. The latter are still provided for backwards compatibility.
      
      Environment variable examples:
      
      gnt-instance start $instance:
      GANETI_INSTANCE_STATUS=down
      GANETI_POST_INSTANCE_STATUS=up
      
      gnt-instance modify -B memory=512 $instance:
      GANETI_INSTANCE_BE_memory=768
      GANETI_POST_INSTANCE_BE_memory=512
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      dd7f6776
  15. 11 Jan, 2011 2 commits
  16. 07 Jan, 2011 1 commit
  17. 13 Dec, 2010 1 commit
  18. 08 Dec, 2010 3 commits
  19. 11 Feb, 2010 2 commits
  20. 29 Sep, 2009 2 commits
  21. 24 Sep, 2009 2 commits
  22. 03 Sep, 2009 1 commit
  23. 25 Aug, 2009 3 commits
  24. 22 Jul, 2009 1 commit
  25. 07 Jul, 2009 1 commit
  26. 02 Mar, 2009 1 commit
    • Iustin Pop's avatar
      Export tags to cluster verify hooks · 35e994e9
      Iustin Pop authored
      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
      names” patch.
      
      The patch also fixes a minor line length style problem.
      
      Reviewed-by: ultrotter
      35e994e9
  27. 25 Feb, 2009 1 commit