[Freeipa-devel] [PATCHSET] Replica promotion patches

Simo Sorce simo at redhat.com
Tue Oct 20 17:24:16 UTC 2015


On 20/10/15 06:32, Martin Babinsky wrote:
> On 10/15/2015 08:14 PM, Simo Sorce wrote:
>> On 15/10/15 11:39, Martin Basti wrote:
>>> Without this patch the ipa-ca-install is broken in current master.
>>> Unexpected error - see /var/log/ipareplica-ca-install.log for details:
>>> AttributeError: Values instance has no attribute 'promote'
>>
>> Should be fixed with the attached patches.
>>
>>
>>
> NACK, in patch 551 you add a test for non-existent CLI option into main
> method:
>
> @@ -198,10 +251,20 @@ def main():
>       if os.geteuid() != 0:
>           sys.exit("\nYou must be root to run this script.\n")
>
> -    if filename is not None:
> -        install_replica(safe_options, options, filename)
> -    else:
> -        install_master(safe_options, options)
> +    try:
> +        if options.replica or filename is not None:
> +            install_replica(safe_options, options, filename)
> +        else:
> +            install_master(safe_options, options)
> +
> +    finally:
> +        # Clean up if we created custom credentials
> +        created_ccache_file = getattr(options, 'created_ccache_file',
> None)
> +        if created_ccache_file is not None:
> +            try:
> +                os.unlink(created_ccache_file)
> +            except OSError:
> +                pass
>
> I guess you wanted to add '--replica' option to the CA installer but
> since it was not added to option parser the installer explodes.
>
> # ipa-ca-install
>
> Your system may be partly configured.
> Run /usr/sbin/ipa-server-install --uninstall to clean up.
>
> Unexpected error - see /var/log/ipareplica-ca-install.log for details:
> AttributeError: Values instance has no attribute 'replica'
>

The attached patch should address this problem now.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-551-4-Allow-ipa-ca-install-to-use-the-new-promotion-code.patch
Type: text/x-patch
Size: 9195 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20151020/5c5174ef/attachment.bin>


More information about the Freeipa-devel mailing list