[Freeipa-devel] [PATCH] 0048 Remove unused enable() method from DogtagInstance.

Martin Basti mbasti at redhat.com
Wed May 13 10:07:51 UTC 2015


On 12/05/15 16:54, David Kupka wrote:
> On 05/12/2015 02:16 PM, Martin Basti wrote:
>> On 12/05/15 13:53, David Kupka wrote:
>>> DogtagInstance.enable() overrides Service.enable() and does nothing
>>> usefulll. Also removing it solves bug discovered recently in uninstall
>>> procedure.
>> NACK
>>
>> 1)
>> this is used in step() call, which means the tomcatd will be enabled in
>> systemd, and we do not want this.
>> Services should be disabled and managed just by ipactl.
>>
>> 2)
>> Which method now store state of tomcatd before IPA changes it?
>>
>> To solve this please rename method to, for example, store_state(), and
>> add appropriate description, or put backup_state() call into different
>> appropriate step.
>>
>> Martin^2
>>
> Thanks for catching that, updated patch attached.
>
I discussed this with Honza, and would be better to remove the enable 
sysrestore status at all, because it is just IPA instance of CA, and 
instance with the same name cannot be there otherwise installation will 
fail, so there is no reason to store status.

Patch attached, untested.

-- 
Martin Basti

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-dkupka+mbasti-0048.2-Do-not-store-state-if-CA-is-enabled.patch
Type: text/x-patch
Size: 2822 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150513/58657a3d/attachment.bin>


More information about the Freeipa-devel mailing list