Summary: | sys-cluster/resource-agents installs to /usr/lib64/ocf where sys-cluster/pacemaker can't find them | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dan Goodliffe <gentoo> |
Component: | Current packages | Assignee: | Gentoo Cluster Team <cluster> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris, gentoo, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Deadline: | 2020-12-07 | ||
Attachments: | emerge --info |
Description
Dan Goodliffe
2020-05-02 10:21:29 UTC
Created attachment 635936 [details]
emerge --info
Apologies for the delay in further information... I've got easy access again now, I can provide more as needed. # crm configure primitive virtual_ip ocf:heartbeat:IPaddr2 params ip="192.168.1.38" cidr_netmask="32" op monitor interval="10s" meta migration-threshold="10" ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: warning: unpack_config: Blind faith: not fencing unseen nodes ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: ocf:heartbeat:IPaddr2: no such resource agent Do you still want to commit (y/n)? n This doesn't log anything that I can find. However, if you answer yes to commit at the end: May 01 16:09:22 m1 lrmd[337831]: warning: Cannot execute '/usr/lib/ocf/resource.d/heartbeat/IPaddr2': No such file or directory (2) Followed by many variations of couldn't get metadata, things not being installed etc. # cat /etc/crm/crm.conf | grep -v ^\; [path] crm_daemon_user = hacluster ocf_root = /usr/lib64/ocf I tried clutching at straws as I'd seen references to the OCF_ROOT environment variable, but no luck: # OCF_ROOT=/usr/lib64/ocf/ crm configure primitive virtual_ip ocf:heartbeat:IPaddr2 params ip="192.168.1.38" cidr_netmask="32" op monitor interval="10s" meta migration-threshold="10" ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: warning: unpack_config: Blind faith: not fencing unseen nodes ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: ocf:heartbeat:IPaddr2: got no meta-data, does this RA exist? ERROR: ocf:heartbeat:IPaddr2: no such resource agent Do you still want to commit (y/n)? n # emerge -pv crmsh pacemaker corosync resource-agents libqb These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-cluster/libqb-1.9.1:0/20::gentoo USE="systemd -debug -doc -examples -test" 0 KiB [ebuild R ] sys-cluster/resource-agents-4.0.1::gentoo USE="-doc -libnet -rgmanager" 0 KiB [ebuild R ] sys-cluster/corosync-2.4.2::gentoo USE="systemd xml -doc -infiniband -static-libs" 535 KiB [ebuild R ] sys-cluster/pacemaker-1.1.19-r1::gentoo USE="acl -heartbeat -smtp -snmp" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_7" 5,244 KiB [ebuild R ] sys-cluster/crmsh-4.1.0::gentoo PYTHON_TARGETS="python3_6 -python3_7" 980 KiB Total: 5 packages (5 reinstalls), Size of downloads: 6,758 KiB Had to manually bump libqb to address a different problem (permissions in /dev/shm, same ebuild, different number) but I don't believe that's related. # qlist resource-agents | grep IPaddr2 /usr/share/resource-agents/ocft/configs/IPaddr2 /usr/share/resource-agents/ocft/configs/IPaddr2v4 /usr/share/resource-agents/ocft/configs/IPaddr2v6 /usr/lib64/ocf/resource.d/heartbeat/IPaddr2 can confirm the problem when switching from profile 17.0 to 17.1 in 17.0 we had a symlink /usr/lib -> /usr/lib64 so the resource agents could be found by pacemaker. in 17.1 the symlink is gone and pacemaker still looking in /usr/lib for the resource agents. Ah yes... forgot about that change. I was about to try putting some symlinks in place to see if I could get them in as a stop-gap, but paths already exist where I was going to put them: # qfile /usr/lib{,64}/ocf sys-cluster/pacemaker: /usr/lib/ocf sys-cluster/resource-agents: /usr/lib64/ocf i added these symlinks: ln -s /usr/lib64/ocf/resource.d/heartbeat/ /usr/lib/ocf/resource.d/heartbeat ln -s /usr/lib64/ocf/lib/ /usr/lib/ocf/lib it also affects drbd, in case someone reads this. ln -s /usr/lib64/ocf/resource.d/linbit/ /usr/lib/ocf/resource.d/linbit Ah, thanks... that's done the trick. I noticed recently that pacemaker and related components have all been masked, which has left me wondering, what is the new/current supported HA solution for Gentoo? Sorry, ignore that... I see the masking has been lifted, all is well in the world again. Thanks! FWIU, this package has been revived. Please CC treecleaners again if the new 'maintainer' doesn't cope. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e682e0638a3e1e30f8153cffbcee7dd16b56034 commit 1e682e0638a3e1e30f8153cffbcee7dd16b56034 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-11-18 02:06:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-18 02:11:45 +0000 sys-cluster/resource-agents: add 4.11.0 Closes: https://bugs.gentoo.org/720420 Signed-off-by: Sam James <sam@gentoo.org> sys-cluster/resource-agents/Manifest | 1 + .../resource-agents/resource-agents-4.11.0.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) |