Hide Forgot
[root@f16 ~]# setenforce 0 [root@f16 ~]# rpm -qa | grep -i openstack-swift openstack-swift-container-1.4.6-2.fc16.noarch openstack-swift-account-1.4.6-2.fc16.noarch openstack-swift-object-1.4.6-2.fc16.noarch openstack-swift-1.4.6-2.fc16.noarch Starting the swift services results in a failure, [root@f16 ~]# /etc/init.d/openstack-swift-account start Starting openstack-swift-account (via systemctl): Job failed. See system logs and 'systemctl status' for details. [FAILED] The reason seems to be that their pid directory isn't present, [root@f16 ~]# ls -l /var/run/swift/ ls: cannot access /var/run/swift/: No such file or directory Apr 3 08:55:39 f16 openstack-swift-account[1119]: Starting swift-account-server: /bin/bash: /var/run/swift/account-server.pid: No such file or directory Apr 3 08:55:39 f16 openstack-swift-account[1119]: [FAILED] Apr 3 08:55:39 f16 systemd[1]: openstack-swift-account.service: control process exited, code=exited status=1 Apr 3 08:55:39 f16 systemd[1]: Unit openstack-swift-account.service entered failed state.
That was a bad merge from master where /var/run/ is handled by systemd. Fixing this now in 1.4.8 rebase, workaround with 1.4.6-2.fc16 is: # mkdir -p /var/run/swift # chown swift /var/run/swift
Ignore above, on f16 tmpfiles.d should also work, but looks like they're created only on boot! So proper workaround is to run: # systemd-tmpfiles --create Packaging guidelines[1] do not mention to run this in %post, so I'm not sure how does this work for other packages! [1] https://fedoraproject.org/wiki/Packaging:Tmpfiles.d
Should read guideline more carefully, RPM still needs to include and own it: %dir %{_localstatedir}/run/%{name}/
Also these will also be needed for SAIO /var/run/swift/{account,container,object,proxy}-server
That's a bug since "Update to 1.1.0" commit 40ee63bccb8713c702b392352e69ed68f13d7c4a so needs to be fixed in all branches.
I think el6 branch is ok this commit ec12f23d55029527407cb0625fbe8f8d3fad629f seems to have fixed it for el6
http://pkgs.fedoraproject.org/gitweb/?p=openstack-swift.git;a=commitdiff;h=68823e85ea72deaff1373117e8806aa08c5d00b0
(In reply to comment #6) > I think el6 branch is ok Correct, el6 doesn't have tmpfiles.d thingy. All other active branches (f16 and f17) will get above patch.