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

Lin, Shuicheng shuicheng.lin at intel.com
Thu Nov 22 01:09:52 UTC 2018

Hi Penny,
Thanks for the explanation.
This issue is tracked in link [0]. And is already fixed in "resource-agents-3.9.5-116".
Our current version already contains the fix. So we could drop the patch safely.

[0]: https://bugzilla.redhat.com/show_bug.cgi?id=1462802

Best Regards

From: Penney, Don [mailto:Don.Penney at windriver.com]
Sent: Wednesday, November 21, 2018 10:37 PM
To: Lin, Shuicheng <shuicheng.lin at intel.com>; Little, Scott <Scott.Little at windriver.com>; Rowsell, Brent <Brent.Rowsell at windriver.com>
Cc: starlingx-discuss at lists.starlingx.io
Subject: RE: question about create-var-run-resource-agents.patch in cluster-resource-agent

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<mailto: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/20181122/cdf48e65/attachment.html>

More information about the Starlingx-discuss mailing list