Univention Bugzilla – Bug 39199
Ports for Docker Apps
Last modified: 2015-11-17 12:12:19 CET
A Docker App can define ports which will be used exclusive by the Docker App. That means the port of the Docker host is redirected to the Docker container. The ports can be defined via the ini file.
I suggest putting the pre-install test in the already existing must_have_no_conflicts_apps. Otherwise one needs to implement the frontend code for a new requirement - with pretty much the same text as must_have_no_conflicts_apps. It should not matter whether the conflict is from stating the conflict explicitely in the ini file or "implicitely" from the port config.
From Jenkins: (2015-10-20 02:34:54.895325)Traceback (most recent call last): (2015-10-20 02:34:54.895389) File "75_app_ports_exclusive", line 13, in <module> (2015-10-20 02:34:54.895452) import pytest (2015-10-20 02:34:54.895538)ImportError: No module named pytest For example: http://jenkins.knut.univention.de:8080/job/UCS-4.1/job/UCS-4.1-0/job/Autotest%20MultiEnv/SambaVersion=s3,Systemrolle=member/68/testReport/junit/80_docker/78_app_ports_conflicts_redirect/test/
We already have the two app ini options PortsExclusive, PortsRedirection. I just added another check to must_have_no_conflicts_apps() in python/appcenter/app.py and umc/python/appcenter/app_center.py to prohibit the installation if a port in PortsExclusive or the host port in PortsRedirection is already used. ucs-test: 80_docker/75_app_ports_exclusive 80_docker/76_app_ports_redirect 80_docker/77_app_ports_conflicts_exclusive 80_docker/78_app_ports_conflicts_redirect (In reply to Dirk Wiesenthal from comment #1) > I suggest putting the pre-install test in the already existing > must_have_no_conflicts_apps. Otherwise one needs to implement the frontend > code for a new requirement - with pretty much the same text as > must_have_no_conflicts_apps. It should not matter whether the conflict is > from stating the conflict explicitely in the ini file or "implicitely" from > the port config. yep, changed that
When upgrading from V1.0 (PortsExclusive=2000) to V2.0 (PortsExclusive=2000) the test fails while it should not.
fixed (ignore "myself" in port checks)
OK, works. Changelog entry added.
UCS 4.1 has been released: https://docs.software-univention.de/release-notes-4.1-0-en.html https://docs.software-univention.de/release-notes-4.1-0-de.html If this error occurs again, please use "Clone This Bug".