Skip to content
Snippets Groups Projects
  1. Apr 20, 2011
  2. Mar 17, 2011
  3. Mar 10, 2011
  4. Mar 04, 2011
  5. Feb 28, 2011
  6. Feb 25, 2011
  7. Feb 24, 2011
  8. Feb 22, 2011
  9. Feb 18, 2011
  10. Feb 17, 2011
    • Iustin Pop's avatar
      Fix HV/OS parameter validation on non-vm nodes · 9c24736c
      Iustin Pop authored
      
      Currently, there is at least one LU that does wrong validation of HV
      parameters (against all nodes, LUClusterSetParams). It's possible to
      fix this case, but I went and modified the base functions to filter
      out non-vm_capable nodes so all callers are protected.
      
      Note: the _CheckOSParams function is never called with all nodes list,
      so modifying it shouldn't be needed. However, I think it's safe to do
      so (and it shouldn't hurt as an instance's node shouldn't ever lack
      the vm_capable bit).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      9c24736c
    • 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
Loading