The swift spec file contains this in python2-swift: %dir %attr(0755, swift, swift) %{_localstatedir}/run/swift However, if you perform: # dnf -y install python2-swift The resulting directory is as such: [root@localhost ~]# ls -ld /var/run/swift/ drwxr-xr-x. 6 swift root 120 Jul 12 11:17 /var/run/swift/ And rpm -q --verify fails: [root@localhost ~]# rpm -q python2-swift python2-swift-2.21.1-0.20190530000408.5ba975c.el8ost.noarch [root@localhost ~]# rpm -q python2-swift --verify ......G.. /var/run/swift
I think simply changing the spec file in RDO to be: %dir %attr(0755, swift, root) %{_localstatedir}/run/swift ... will resolve the verification issue. What I'm not certain about is why the directory GID is changed during or after installation.
(In reply to Lon Hohberger from comment #2) > I think simply changing the spec file in RDO to be: > > %dir %attr(0755, swift, root) %{_localstatedir}/run/swift > > ... will resolve the verification issue. What I'm not certain about is why > the directory GID is changed during or after installation. Lon, /run and its symlink /var/run are tmpfs-mounted and re-created on every boot. The process is controlled by a file in /etc/tmpfiles.d/ . See openstack-swift.tmpfs. I agree that %attr must be made consistent with directives for /var/run.
proposed backport of change to stein-rdo branch of RDO dist-git repos.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0722