[Starlingx-discuss] question about create-var-run-resource-agents.patch in cluster-resource-agent

Penney, Don Don.Penney at windriver.com
Wed Nov 21 14:36:39 UTC 2018

We can't do this in a spec file, as /var/run is on tmpfs, so the dir would be lost on the subsequent reboot. But we do have the following:

controller-0:~$ rpm -qf /usr/lib/tmpfiles.d/resource-agents.conf
controller-0:~$ cat /usr/lib/tmpfiles.d/resource-agents.conf
d /var/run/resource-agents/ 1755 root root

So we could probably drop patch [1] and safely rely on the tmpfiles.d to create it.

From: Lin, Shuicheng [mailto:shuicheng.lin at intel.com]
Sent: Tuesday, November 20, 2018 11:51 PM
To: Little, Scott; Penney, Don; Rowsell, Brent
Cc: starlingx-discuss at lists.starlingx.io
Subject: question about create-var-run-resource-agents.patch in cluster-resource-agent

Hi Scott/Penney,
I am looking at story [0], which want to remove patches [1] for create directory /var/run/resource-agents.
And I find another patch [2] disabled explicit requires the directory in spec file.
(#%dir %attr (1755, root, root)  %{_var}/run/resource-agents)

Could you share me the history of patch [1] and [2]?
I prefer to add back this line in patch [2], and patch [1] could be removed without puppet replacement.
What's your suggestion?

[0]: https://storyboard.openstack.org/#!/story/2004019
[1]: https://git.openstack.org/cgit/openstack/stx-integ/tree/base/cluster-resource-agents/centos/patches/create-var-run-resource-agents.patch
[2]: https://git.openstack.org/cgit/openstack/stx-integ/tree/base/cluster-resource-agents/centos/meta_patches/spec-avoid-dir-collisions.patch

Best Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20181121/7c47be95/attachment.html>

More information about the Starlingx-discuss mailing list