Bug 51021 - univention-network-manager: make UCR templates python3-compatible
univention-network-manager: make UCR templates python3-compatible
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Network
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-4-errata
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-26 15:06 CET by Florian Best
Modified: 2020-04-02 14:47 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-03-26 15:06:27 CET
The UCR templates of univention-network-manager have to be python3-compatible.
Comment 1 Florian Best univentionstaff 2020-03-26 15:08:35 CET
univention-network-manager.yaml
546a922baa2b | YAML Bug #51021

univention-network-manager (11.0.0-2)
d00fc0306fae | Bug #51021: make UCR templates compatible to python3
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2020-03-29 23:16:40 CEST
univention-network-manager/conffiles/etc/default/ifplugd fails with a traceback:

Traceback (most recent call last):
  File "/tmp/ucs-test-ucr-template.py", line 9, in <module>
    from univention.config_registry.interfaces import Interfaces
  File "/usr/lib/python3/dist-packages/univention/config_registry/interfaces.py", line 39, in <module>
    from backend import ConfigRegistry
ImportError: No module named 'backend'


# python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from univention.config_registry.interfaces import Interfaces
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/univention/config_registry/interfaces.py", line 39, in <module>
    from backend import ConfigRegistry
ImportError: No module named 'backend'
>>>
Comment 3 Florian Best univentionstaff 2020-03-30 10:31:21 CEST
Well, we didn't fully migrate UCR to python3 yet.
I can fix that now as well, not sure if there are more follow up problems.
Comment 4 Florian Best univentionstaff 2020-03-30 10:55:09 CEST
Fixed in:

univention-config-registry (14.0.0-14)
ec62e272c659 | Bug #51021: FTBFS: UCR interfaces
8bdf95e4d8ad | Bug #51021: UCR interfaces: use absolute imports

univention-config-registry.yaml
bbd1bada17cd | YAML Bug #51021
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2020-03-31 11:23:24 CEST
OK: code change
OK: changelog entry
OK: advisory
OK: package built and installable