Skip to content
Snippets Groups Projects
  1. Mar 08, 2011
    • Michael Hanselmann's avatar
      cfgupgrade: Fix critical bug overwriting RAPI users file · 87c80992
      Michael Hanselmann authored
      
      The cfgupgrade tool was designed to be idempotent, that means it could
      be run several times and still give produce the correct result. Ganeti
      2.4 moved the file containing the RAPI users to a separate directory
      (…/lib/ganeti/rapi/users). If it exists, cfgupgrade would automatically
      move an existing file from …/lib/ganeti/rapi_users and replace it with a
      symlink.
      
      Unfortunately one of the checks for this was incorrect and, when run
      multiple times, replaces the users file at the new location with a
      symlink created during a previous run.
      
      In addition the “--dry-run” parameter to cfgupgrade was not respected.
      Unittests are updated for all these cases.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      87c80992
  2. Feb 23, 2011
  3. Feb 18, 2011
  4. Feb 17, 2011
    • Iustin Pop's avatar
      NodeQuery: mark live fields as UNAVAIL for non-vm_capable nodes · effab4ca
      Iustin Pop authored
      
      Since we don't have the data per design, UNAVAIL is appropriate here,
      while NODATA is not.
      
      The patch also adds a comment: if we extend the live fields list to
      contain other data in the future, we need to reevaluate this solution.
      
      This should fix issue 143. The listing now shows (node2==ofline,
      node3==not vm_capable):
      
        Node     DTotal     DFree    MTotal     MNode     MFree Pinst Sinst
        node1    698.6G    630.5G     32.0G      1.0G     30.0G     8     7
        node2 (offline) (offline) (offline) (offline) (offline)     9     4
        node3 (unavail) (unavail) (unavail) (unavail) (unavail)     0     0
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      effab4ca
  5. Feb 02, 2011
  6. Jan 31, 2011
  7. Jan 28, 2011
  8. Jan 27, 2011
  9. Jan 21, 2011
  10. Jan 20, 2011
  11. Jan 18, 2011
  12. Jan 14, 2011
  13. Jan 13, 2011
  14. Jan 12, 2011
  15. Jan 11, 2011
Loading