• Michael Hanselmann's avatar
    Fix cluster verification issues on multi-group clusters · 2c2f257d
    Michael Hanselmann authored
    This patch attempts to fix a number of issues with “gnt-cluster verify”
    in presence of multiple node groups and DRBD8 instances split over nodes
    in more than one group.
    - Look up instances in a group only by their primary node (otherwise
      split instances would be considered when verifying any of their node's
    - When gathering additional nodes for LV checks, just compare instance's
      node's groups with the currently verified group instead of comparing
      against the primary node's group
    - Exclude nodes in other groups when calculating N+1 errors and checking
      logical volumes
    Not directly related, but a small error text is also clarified.
    Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
cmdlib.py 475 KB