[Freeipa-devel] [PATCH] 0019 Stop dogtag when updating its configuration in, ipa-upgradeconfig

David Kupka dkupka at redhat.com
Tue Oct 14 10:47:22 UTC 2014



On 10/10/2014 03:24 PM, Jan Cholasta wrote:
> Dne 8.10.2014 v 12:36 David Kupka napsal(a):
>> On 10/08/2014 09:29 AM, Jan Cholasta wrote:
>>> Hi,
>>>
>>> Dne 8.10.2014 v 09:09 David Kupka napsal(a):
>>>> https://fedorahosted.org/freeipa/ticket/4569
>>>
>>> In renew_ca_cert and cainstance.py, dogtag should already be stopped in
>>> the places you modified, so why the change?
>>
>> I didn't noticed that it is already stopped, fixed.
>>>
>>> Also I don't think it's a good idea to backup CS.cfg when dogtag is
>>> still running (in cainstance.py). If the file is being modified by
>>> dogtag at the time it is backed up, the backup may be corrupted.
>>>
>> Fixed, thanks.
>
> CAInstance.backup_config should be called only when Dogtag is stopped as
> well, you don't need to change it.
>

backup_config is callable from outside of cainstance.py so it's safer to 
check that dogtag is stopped and stop it if necessary. When dogtag is 
already stopped it won't do anything.

>>
>>> Honza
>>>
>>
>
> It would be better to stop and start dogtag only once in
> ipa-upgradeconfig, not every time there is a modification to CS.cfg.
>
OK.



-- 
David Kupka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-dkupka-0019-3-ipa40-Stop-dogtag-when-updating-its-configuration-in-ipa-u.patch
Type: text/x-patch
Size: 4795 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20141014/c0cf1113/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-dkupka-0019-3-ipa41-Stop-dogtag-when-updating-its-configuration-in-ipa-u.patch
Type: text/x-patch
Size: 4833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20141014/c0cf1113/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-dkupka-0019-3-master-Stop-dogtag-when-updating-its-configuration-in-ipa-u.patch
Type: text/x-patch
Size: 4817 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20141014/c0cf1113/attachment-0002.bin>


More information about the Freeipa-devel mailing list