[Freeipa-devel] [PATCH 537] ipapython: port p11helper C code to Python

Jan Cholasta jcholast at redhat.com
Fri Mar 18 07:45:45 UTC 2016


On 18.3.2016 05:16, Timo Aaltonen wrote:
> 07.01.2016, 10:50, Jan Cholasta kirjoitti:
>> Hi,
>>
>> the attached patch ports the _ipap11helper module to python-cffi.
>>
>> Combined with my patch 536 [1], this makes ipapython architecture
>> independent.
>
> don't know why it works for you, but ipa-ods-exporter and ipa-dnskeysync-replica both still try to import _ipap11helper, which fails:
>
> maalis 18 05:45:46 trusty.tyrell ipa-ods-exporter[8788]: Traceback (most recent call last):
> maalis 18 05:45:46 trusty.tyrell ipa-ods-exporter[8788]:   File "/usr/lib/ipa/ipa-ods-exporter", line 4
> maalis 18 05:45:46 trusty.tyrell ipa-ods-exporter[8788]:     import _ipap11helper
> maalis 18 05:45:46 trusty.tyrell ipa-ods-exporter[8788]: ImportError: No module named _ipap11helper
> maalis 18 05:45:46 trusty.tyrell systemd[1]: ipa-ods-exporter.service: Main process exited, code=exited
> maalis 18 05:45:46 trusty.tyrell systemd[1]: ipa-ods-exporter.service: Unit entered failed state.
> maalis 18 05:45:46 trusty.tyrell systemd[1]: ipa-ods-exporter.service: Failed with result 'exit-code'.
> maalis 18 05:46:47 trusty.tyrell systemd[1]: ipa-ods-exporter.service: Service hold-off time over, sche
> maalis 18 05:46:47 trusty.tyrell systemd[1]: Stopped IPA OpenDNSSEC Signer replacement.
>
> dropping the import makes it work again here.. this is with fairly current ipa-4-3 branch.

Patch attached.

Pylint does not detect this obvious error for some reason.

-- 
Jan Cholasta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jcholast-553.0.4_3-daemons-remove-unused-erroneous-_ipap11helper-import.patch
Type: text/x-patch
Size: 1486 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160318/b27ea16f/attachment.bin>


More information about the Freeipa-devel mailing list