a9d34c8 Speed up cainstance.migrate_profiles_to_ldap

Authored and Committed by cheimes 3 years ago
    Speed up cainstance.migrate_profiles_to_ldap
    
    The ra_certprofile API is slow. It takes ~200ms to migrate and enable a
    profile even when the profile already available. The migration step
    slows down the installer and upgrader by about 12 to 15 seconds.
    
    Skip all profiles that have been imported by Dogtag already.
    
    Related: https://pagure.io/freeipa/issue/8522
    Related: https://pagure.io/freeipa/issue/8521
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>