From 109706aa8b26f6f915e1cadae89de8135c3b68bf Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 5 Sep 2019 14:53:36 +0200 Subject: [PATCH] base/deb: bump 'system' users limit beyond Kolla ones Haproxy complains that user 'haproxy' already exists during installation and is not 'system user'. So let bump range for 'system' users to make it happier. Our images do not have normal users so it should not affect. Change-Id: Ia073774c8053111652847a39d80665fd9d3e5dcf --- docker/base/Dockerfile.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 8f2ec86343..c366d785f9 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -285,7 +285,10 @@ RUN if [ $(awk -F '=' '/DISTRIB_RELEASE/{print $2}' /etc/lsb-release) != "{{ sup echo "Only release '{{ supported_distro_release }}' is supported on {{ base_distro }}"; false; fi # Customize PS1 bash shell -RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc +# enlarge 'system users' range so 'haproxy' package will not complain +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939470 +RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc \ + && sed -i -e s/LAST_SYSTEM_UID=999/LAST_SYSTEM_UID=59999/g /etc/adduser.conf # This will prevent questions from being asked during the install ENV DEBIAN_FRONTEND noninteractive