Skip to content
  • Iustin Pop's avatar
    Extend node evacuation unittests · 6a855aaa
    Iustin Pop authored
    
    
    Currently they only check for change secondary, via iallocator's
    relocate method. We add two separate unittests that checks all the
    node evacuate modes (ChangeAll, ChangePrimary) and also the group
    change request. All of these are done only for DRBD instances.
    
    The patch also enhances an error message in Cluster.findBestAllocGroup
    for invalid input data (guess how this was detected…).
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
    6a855aaa