Red Hat Bugzilla – Bug 1460457
pacemaker missing dependency on which (Setup problem: couldn't find command: ip)
Last modified: 2018-06-20 22:20:04 EDT
Description of problem:
Using a minimal install of centos (lxd container), installing pacemaker following redhat documentation
one of the simplest example is not working (creating a VIP)
Version-Release number of selected component (if applicable):
Nom : pacemaker
Architecture : x86_64
Version : 1.1.15
Révision : 11.el7_3.4
Steps to Reproduce:
1) Install 2 server using minimal version of Centos, without "which" command
2) Create a simple cluster following https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/High_Availability_Add-On_Administration/ch-startup-HAAA.html
3) try to create a VIP
pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.0.120 cidr_netmask=24 op monitor interval=30s
in the logs you will see something like
VirtualIP_monitor_0 on testcentos7-2 'not installed' (5): call=91, status=complete, exitreason='Setup problem: couldn't find command: ip'
Everything works fine ;)
"ip" is installed
# command -v ip
but "which" is not
# command -v which || echo "not found"
installing "which" is enough to make everything work
This was only tested with Centos, not RHEL
Reassigning to resource-agents since that provides IPaddr2
We typically don't and requirements for dependencies of resource agents because we would require including a large number of packages (OracleDB, etc.). We will investigate this, because ip is such a common utility, but most likely we will require the user to install all applications themselves.
"ip" is present, but "which" is not,
the problem here is that the error message is very misleading, and you have to fire strace (or ...) to find the real issue.