7b63b88 Consider configured servers as valid

2 files Authored by cheimes 4 years ago, Committed by rcritten 4 years ago,
    Consider configured servers as valid
    
    Under some conditions, ipa config-show and several other commands were
    failing with error message:
    
      ERROR: invalid 'PKINIT enabled server': all masters must have IPA master role enabled
    
    Amongst others the issue can be caused by a broken installation, when
    some services are left in state 'configuredServices'. The problem even
    block uninstallation or removal of replicas. Now configured servers are
    also consider valid providers for associated roles.
    
    A new test verifies that config-show works with hidden and configured HTTP
    service.
    
    Remark: The original intent of the sanity check is no longer clear to me. I
    think it was used to very that all services can be started by ipactl.
    Since ipactl starts hidden, configured, and enabled services, the new
    logic reflect the fact, too.
    
    Fixes: https://pagure.io/freeipa/issue/7929
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+6 -3