RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1460457 - pacemaker missing dependency on which (Setup problem: couldn't find command: ip)
Summary: pacemaker missing dependency on which (Setup problem: couldn't find command: ip)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: resource-agents
Version: 7.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-10 21:25 UTC by Etienne CHAMPETIER
Modified: 2021-01-15 07:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:37:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 0013388 0 None None None 2017-06-10 21:25:54 UTC

Description Etienne CHAMPETIER 2017-06-10 21:25:54 UTC
Description of problem:
Using a minimal install of centos (lxd container), installing pacemaker following redhat documentation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/High_Availability_Add-On_Administration/ch-startup-HAAA.html
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

How reproducible:
Always

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
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/High_Availability_Add-On_Reference/ch-clustresources-HAAR.html
pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.0.120 cidr_netmask=24 op monitor interval=30s

Actual results:
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'


Expected results:
Everything works fine ;)


Additional info:
"ip" is installed
# command -v ip
/usr/sbin/ip

but "which" is not
# command -v which || echo "not found"
not found

installing "which" is enough to make everything work

This was only tested with Centos, not RHEL

Comment 2 Ken Gaillot 2017-06-12 13:48:33 UTC
Reassigning to resource-agents since that provides IPaddr2

Comment 3 Chris Feist 2017-07-20 14:48:27 UTC
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.

Comment 4 Etienne CHAMPETIER 2017-07-20 18:44:57 UTC
Hi Chris

"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.

Comment 5 Cb 2018-08-26 12:33:06 UTC
Hallo to all i have this Problem


I am using a CentOS 7 container in Proxmox and have a problem with a virtual IP.

I have created the virtual IP using pcs resource create cluster_vip ocf:heartbeat:IPaddr2 ip=10.2.12.30 cidr_netmask=23 op monitor interval=20s and now I am getting these errors:

Full list of resources:

cluster_vip (ocf::heartbeat:IPaddr2): Stopped
Resource Group: grp_zabbix_httpd
zabbix_server (systemd:zabbix-server): Stopped
httpd (systemd:httpd): Stopped

Failed Actions:
* cluster_vip_monitor_0 on zabbix1 ‘not installed’ (5): call=5, status=complete, exitreason=’Setup problem: couldn’t find command: ip’,
last-rc-change=’Sat Aug 25 17:09:23 2018′, queued=0ms, exec=15ms

on this link you can see the mystrace

https://workupload.com/file/6GJtrSAx

Comment 7 RHEL Program Management 2021-01-15 07:37:56 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.