chef-client hangs (ohai discovery hangs) when a server has a mounted nfs filesystem while the remote host does not respond #537
Labels
Expeditor: Skip Version Bump
Used to skip built_in:bump_version
Priority: Low
Type: Enhancement
Adds new functionality.
Milestone
Version:
Ohai: 8.0.1
Chef: 12.0.3 (chef-client)
Environment:
CentOS 6.6
AIX 7.1
Scenario:
When I have a mounted nfs filesystem, I run chef-client to perform a discovery or change (executing some recipes). If the remote host exporting the nfs directory does not respond (nfs service down, etc.), the chef-client will just hang there.
Steps to Reproduce:
Expected Result:
The chef-client can run and exit (no matter with error or not).
Actual Result
The chef-client hangs.
Root cause
This hang is caused by the command "df" is hanging which is part of the ohai discovery of filesystem (the filesystem plugin). If the remote host does not respond, the df command hangs which further cause the chef-client process hangs.
The text was updated successfully, but these errors were encountered: