Description of problem: /usr/lib/ocf/resource.d/heartbeat/portblock: line 253: netstat: command not found ] messages are seen in /var/log/messages when IO's are running. Version-Release number of selected component (if applicable): glusterfs-ganesha-3.8.4-5.el7rhgs.x86_64 nfs-ganesha-gluster-2.4.1-1.el7rhgs.x86_64 How reproducible: Always Steps to Reproduce: 1. Create nfs ganesha cluster and export the volume. 2. Mount it on client. 3. Start creating more number of files. Actual results: /usr/lib/ocf/resource.d/heartbeat/portblock: line 253: netstat: command not found ] messages are seen in /var/log/messages when IO's are running. Expected results: command not found message should not be seen and if netstat package is mandatory we have to install it as a prerequisite. Additional info: Nov 16 14:17:12 dhcp46-42 lrmd[27280]: notice: dhcp46-42.lab.eng.blr.redhat.com-nfs_unblock_monitor_10000:10318:stderr [ /usr/lib/ocf/resource.d/heartbeat/portblock: line 253: netstat: command not found ] Nov 16 14:17:12 dhcp46-42 lrmd[27280]: notice: dhcp46-42.lab.eng.blr.redhat.com-nfs_unblock_monitor_10000:10318:stderr [ 0+0 records in ] Nov 16 14:17:12 dhcp46-42 lrmd[27280]: notice: dhcp46-42.lab.eng.blr.redhat.com-nfs_unblock_monitor_10000:10318:stderr [ 0+0 records out ] Nov 16 14:17:12 dhcp46-42 lrmd[27280]: notice: dhcp46-42.lab.eng.blr.redhat.com-nfs_unblock_monitor_10000:10318:stderr [ 0 bytes (0 B) copied, 0.00349785 s, 0.0 kB/s ] Nov 16 14:17:22 dhcp46-42 lrmd[27280]: notice: dhcp46-42.lab.eng.blr.redhat.com-nfs_unblock_monitor_10000:10417:stderr [ /usr/lib/ocf/resource.d/heartbeat/portblock: line 253: netstat: command not found ]
Looks like portblock resource agent is using netstat command. Kaleb/Oyvind, Do we need to address this as part of resource-agents package itself or does ganesha-gluster which makes use of this resource agent needs to have this check? Either wise if it can't be addressed by RHGS 3.2.0 timeline, least we should document it as pre-requisite. Thoughts?
Seems like (In reply to Soumya Koduri from comment #2) Yeah. Seems like we need to add it to Requires in resource-agents.
While running pynfs test suite seeing the netstat not found in log messages. Also when a node is rebooted seeing following messages in pcs status which doesn't looks ok: Resource Group: dhcp47-104.lab.eng.blr.redhat.com-group dhcp47-104.lab.eng.blr.redhat.com-nfs_block (ocf::heartbeat:portblock): Started dhcp47-104.lab.eng.blr.redhat.com dhcp47-104.lab.eng.blr.redhat.com-cluster_ip-1 (ocf::heartbeat:IPaddr): Started dhcp47-104.lab.eng.blr.redhat.com dhcp47-104.lab.eng.blr.redhat.com-nfs_unblock (ocf::heartbeat:portblock): FAILED dhcp47-104.lab.eng.blr.redhat.com (blocked) Resource Group: dhcp47-105.lab.eng.blr.redhat.com-group dhcp47-105.lab.eng.blr.redhat.com-nfs_block (ocf::heartbeat:portblock): Started dhcp47-105.lab.eng.blr.redhat.com dhcp47-105.lab.eng.blr.redhat.com-cluster_ip-1 (ocf::heartbeat:IPaddr): Started dhcp47-105.lab.eng.blr.redhat.com dhcp47-105.lab.eng.blr.redhat.com-nfs_unblock (ocf::heartbeat:portblock): FAILED dhcp47-105.lab.eng.blr.redhat.com (blocked) checked with Soumya, looks like when portblock is trying to run it needs netstat and may show such errors.
Checked in rhel7 , the net-tools package comes from RHEL-base channel but not installed by default. So if we add dependency on glusters-ganesha it should pull in from rhel base channel and install it.
downstream only patch : https://code.engineering.redhat.com/gerrit/#/c/90529/
Verified the fix in build, glusterfs-ganesha-3.8.4-7.el7rhgs.x86_64 nfs-ganesha-gluster-2.4.1-2.el7rhgs.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2017-0486.html