Skip to content
Snippets Groups Projects
  1. May 20, 2011
  2. May 17, 2011
  3. May 12, 2011
  4. May 11, 2011
  5. May 10, 2011
  6. Apr 21, 2011
  7. Apr 19, 2011
  8. Apr 04, 2011
  9. Apr 01, 2011
  10. Mar 31, 2011
  11. Mar 30, 2011
  12. Mar 28, 2011
  13. Mar 24, 2011
  14. Mar 23, 2011
  15. Mar 18, 2011
  16. Mar 16, 2011
    • 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
  17. Mar 15, 2011
  18. Mar 14, 2011
  19. Mar 01, 2011
  20. Feb 25, 2011
  21. Feb 24, 2011
  22. Feb 22, 2011
  23. Feb 18, 2011
  24. Feb 17, 2011
  25. Feb 15, 2011
Loading