Skip to content

Commit

Permalink
lava-slave: prevent nbd-server to ran as nbd
Browse files Browse the repository at this point in the history
For the moment LAVA does not handle nbd-server running as nbd

Signed-off-by: Corentin LABBE <[email protected]>
  • Loading branch information
montjoie committed Jan 24, 2023
1 parent 0190657 commit 35852ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lava-slave/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ COPY scripts/ /usr/local/bin/
RUN chmod a+x /usr/local/bin/*
COPY conmux/ /etc/conmux/

# LAVA issue 585
RUN rm /etc/nbd-server/config

# Caution to not use any port between the Linux dynamic port range: 32768-60999
RUN find /usr/lib/python3/dist-packages/ -iname constants.py | xargs sed -i 's,XNBD_PORT_RANGE_MIN.*,XNBD_PORT_RANGE_MIN=61950,'
RUN find /usr/lib/python3/dist-packages/ -iname constants.py | xargs sed -i 's,XNBD_PORT_RANGE_MAX.*,XNBD_PORT_RANGE_MAX=62000,'
Expand Down

0 comments on commit 35852ec

Please sign in to comment.