diff --git a/openstack-nova.spec b/openstack-nova.spec index ea07880c4988c7fa0d81878235930fb5f021b30e..e07cef5d1bef5ad438ab60175e1b9ecc63c895cc 100644 --- a/openstack-nova.spec +++ b/openstack-nova.spec @@ -15,7 +15,7 @@ Name: openstack-nova # Liberty semver reset # https://review.openstack.org/#/q/I6a35fa0dda798fad93b804d00a46af80f08d475c,n,z Version: 20.6.1 -Release: 6 +Release: 7 Summary: OpenStack Compute (nova) License: ASL 2.0 @@ -568,10 +568,7 @@ rm -rf os_xenapi %endif %pre common -getent group nova >/dev/null || groupadd -r nova --gid 162 -if ! getent passwd nova >/dev/null; then - useradd -u 162 -r -g nova -G nova,nobody -d %{_sharedstatedir}/nova -s /sbin/nologin -c "OpenStack Nova Daemons" nova -fi +%openstack_pre_user_group_create -u 162 nova -g 162 nova /sbin/nologin exit 0 %pre compute @@ -732,6 +729,9 @@ exit 0 %endif %changelog +* Sat Oct 8 2022 binshuozu - 20.6.1-7 +- Migrate to openstack-macros to create user & group + * Tue Mar 08 2022 lijiawei - 20.6.1-6 - Remove monotonic usage