[Freeipa-devel] [PATCH 0043] Stop uninstaller from failing if a service can't be started

Martin Basti mbasti at redhat.com
Fri Jun 24 14:04:48 UTC 2016



On 24.06.2016 15:50, Stanislav Laznicka wrote:
> On 06/21/2016 04:39 PM, Martin Basti wrote:
>>
>>
>> On 14.06.2016 17:26, Stanislav Laznicka wrote:
>>> -            signerd_service.start()
>>> +            try:
>>> +                signerd_service.start()
>>> +            except Exception as e:
>>> +                root_logger.error("Unable to start '{svcname}': {err}"
>>> + .format(svcname=signerd_service.service_name,
>>> +                                          err=e))
>>
>> why is signerd so special?
>>
>> Martin^2
>>
> From ODSExporterInstance.uninstall():
>
>         signerd_service = services.knownservices.ods_signerd
>
> This means that signerd_service here is not an instance of the 
> service.Service class or of its child class but is rather an instance 
> of the RedHatService class, a child class of the 
> services.SystemdService class. Thus it has to be treated with special 
> care.
>

Well then I prefer to put this option to systemdservice, and only pass 
it from service.restart() to systemdService.restart()

You forgot to handle regular_named service, which is the same as ods_signerd

Martin^2




More information about the Freeipa-devel mailing list