From 7f23ac77b6641734b8e0819351d3642da9e3deb7 Mon Sep 17 00:00:00 2001 From: Rafael Falcao Date: Tue, 18 Apr 2023 15:09:54 -0300 Subject: [PATCH] Add PROJECT_UID and PROJECT_GID specification to stx-cinder This review intends to solve a id conflict between the cinder user and the keystone user (added on [1]). The keystone user is attached with the id 42424, same as the cinder user. This conflict is making volume related commands to fail due permissions of the user (because it is trying to execute the commands as keystone user, not cinder). [1] https://review.opendev.org/c/starlingx/integ/+/854246 Test plan: PASS - Check the /etc/passwd file to see that the user 'cinder' in the cinder container changed its id from 42424 to 42425. Partial-Bug: 2012392 Signed-off-by: Rafael Falcao Change-Id: I29bba77beb0e63dfd03fcc681aba8a13b4c3445f --- openstack/python-cinder/debian/stx-cinder.stable_docker_image | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstack/python-cinder/debian/stx-cinder.stable_docker_image b/openstack/python-cinder/debian/stx-cinder.stable_docker_image index 109bf9b8..dc65611e 100644 --- a/openstack/python-cinder/debian/stx-cinder.stable_docker_image +++ b/openstack/python-cinder/debian/stx-cinder.stable_docker_image @@ -4,6 +4,8 @@ PROJECT=cinder DIST_REPOS="OS" PROJECT_REPO=https://opendev.org/openstack/cinder.git PROJECT_REF=stable/ussuri +PROJECT_UID=42425 +PROJECT_GID=42425 NON_UNIQUE_SYSTEM_ACCOUNT="yes" DIST_PACKAGES="nfs-common" PIP_PACKAGES="pycryptodomex python-swiftclient pylint"