Add keystone to group, passwd to prevent issue on
data-migration because keystone doesn't have permission
to open the /var/log/keystone/keystone.log and the
content of /opt/platform/keystone/fernet-keys/ as well
on upgrade between 22.06 centos and 22.12 debian.
The fernet-keys content files is created with an uid and
gid specific (42424), without this change the keystone will
not be the owner of the file, with that causing the permission
error. So adding the keystone to these files the user/group
will be keystone keystone instead of 42424 42424.
We want to get the same behavior as we do in CentOS, in [1]
[1]: https://opendev.org/starlingx/integ/src/branch/master/base/setup/centos/patches/0001-Change-group-passwd-and-uidgid.patch
Test Plan:
PASS: Data-migration-complete CentOS -> Debian upgrade
PASS: Debian building test
PASS: Debian AIO-SX unlocked
PASS: Debian AIO-DX unlocked
Story: 2009303
Task: 46093
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
Change-Id: Id9bfe914cd80552cb49029c3fdca77886c432a3e
This reverts commit 33c720cd03e162bb6bdd611c769ba2c4650a6d04.
Reason for revert: failing bootstrap, because sysinv group was removed.
Story: 2009101
Task: 43417
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Iaa3154518bfc0361b21a383f1fc85d83f0e22212
When the debian image boots, udev complains about
missing groups. Specifically 'video', 'audio', and 'lp'.
These groups were remvoved in Centos. Re-add the groups
to silence the warnings in the daemon.log when the
machine boots.
Test Plan
PASS Build base-passwd package
PASS Boot Debian ISO
PASS Check for udev warnings in the daemon.log
Story: 2009101
Task: 43417
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Id5b5901615246ede736369b79a72d5cc9d0599cc
Let barbican package create the user and group.
Test:
PASS: build-pkgs
PASS: build-image
PASS: install-iso
PASS: check user and group created by packaging
PASS: bootstrap
Depends-On: https://review.opendev.org/c/starlingx/upstream/+/836048
Story: 2009101
Task: 43417
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ie99844f5dd8db6b017db78e9a8e7880778380feb
Removed user from group/passwd files to prevent a
conflict when the postgresql-common package is installed.
Story: 2009221
Task: 43417
Test Plan
PASS Apply patch build package
PASS Build base-passwd package
PASS Run build-image
PASS Check to see if postgresql is running when
the image is running.
PASS Debootstrap
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I885ed3467548013ad9c2be3d7d64fafad3703adc
Remove the keystone group and user since its created
when the keystone package is installed and the image is built.
Tested by checking that the keystone user/group was still
on the image after they were removed from base-passwd.
Story: 2009221
Task: 43417
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I404d8d17cfc901c4cb2fed3b79a05c440c063641
Porting patch 0001-Change-group-passwd-and-uidgid.patch from setup of
CentOS. Skip porting uidgid file, a doc file which changed format.
Postgres,neutron,barbican,ceilometer all creates the user when the
package installs so this is not needed as well.
A new patch 0002-update-passwd.c-set-...-before-removin.patch is
used to fix a bug in update-passwd of removing items from group,
passwd. More details please see the patch header.
Test Plan: building, installing, booting, checking /etc/group,
/etc/passwd
Pass: building test
Pass: installing test
Pass: booting test
Pass: the /etc/group, /etc/passwd are same with /usr/shar/base-passwd
/group.master and passwd.master
Story: 2009221
Task: 43417
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I53f1f323e2e293c641af7142a0d3388cc3dde8eb