diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-01-08 14:12:33 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-01-08 15:15:40 +0100 |
commit | bef146de0b531182b09a43f366fa2b8318ffe52b (patch) | |
tree | bfb2ef11d22e2005502f39ca8f42f8a42f0ced27 | |
parent | 93222fc2af169e07c151728497832547eabc3614 (diff) |
Move XNBD ports outside of dynamic port range
Under Linux, dynamic port range is 32768-60999, so a clash is possible
with XNBD port range.
Furthermore XNBD constants file have changed in 2017.11
-rw-r--r-- | docker-compose.template | 2 | ||||
-rw-r--r-- | lava-slave/Dockerfile | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/docker-compose.template b/docker-compose.template index d7986ec..218253b 100644 --- a/docker-compose.template +++ b/docker-compose.template @@ -29,7 +29,7 @@ services: ports: - "69:69/udp" - "80:80" - - "55980-56000:55980-56000" + - "61950-62000:61950-62000" links: - "lava-master" squid: diff --git a/lava-slave/Dockerfile b/lava-slave/Dockerfile index 5e0f3cb..a5e1bbf 100644 --- a/lava-slave/Dockerfile +++ b/lava-slave/Dockerfile @@ -60,8 +60,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install postgresql RUN service postgresql start && DEBIAN_FRONTEND=noninteractive apt-get -y install lavapdu-daemon lavapdu-client && service postgresql stop COPY lavapdu.conf /etc/lavapdu/ -#TODO made this customizable, 1000 ports by default is too much -RUN sed -i 's,XNBD_PORT_RANGE_MIN.*,XNBD_PORT_RANGE_MIN=55950,' /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/utils/constants.py +# Caution to not use any port between the Linux dynamic port range: 32768-60999 +RUN sed -i 's,XNBD_PORT_RANGE_MIN.*,XNBD_PORT_RANGE_MIN=61950,' /usr/lib/python2.7/dist-packages/lava_dispatcher/utils/constants.py +RUN sed -i 's,XNBD_PORT_RANGE_MAX.*,XNBD_PORT_RANGE_MAX=62000,' /usr/lib/python2.7/dist-packages/lava_dispatcher/utils/constants.py EXPOSE 69/udp 80 |