aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Anderson <sven@redhat.com>2017-07-26 18:49:06 +0200
committerSven Anderson <sven@redhat.com>2017-07-27 18:25:41 +0200
commitf1842f4fd9cf9c294c23438ee74971c6dc71c4ec (patch)
tree30bcd3bb0b40b28d3323171ff270bfb6fce29429
parente7a8f3f5bb3e7357e42dfb5cf550fc5f97bbc11b (diff)
downloadkolla-f1842f4fd9cf9c294c23438ee74971c6dc71c4ec.tar.gz
kolla-f1842f4fd9cf9c294c23438ee74971c6dc71c4ec.zip
Add libvirt group to base image
The libvirt-daemon controls socket access with the libvirt group, which is created dynamically. If different containers would get different GIDs for the libvirt group that would break cross-container socket access. Because creation of only a group is not supported and for the uids and gid to stay in sync, an unused libvirt user is created as well. Change-Id: Ie484a6ad1493f4b867c9577fc0beeb8b2e16c371
-rwxr-xr-xkolla/common/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 4db07efff..00c8649c7 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -927,6 +927,10 @@ USERS = {
'uid': 42472,
'gid': 42472,
},
+ 'libvirt-user': {
+ 'uid': 42473, # unused user, but we need the group for socket access
+ 'gid': 42473,
+ },
}