Hostagent Stuck While Executing an Extension
Problem
- A Platform9 managed host is showing offline from Clarity UI.
- The Hostagent i.e. pf9-hostagent service has a forked process which is running a script from /opt/pf9/hostagent/extensions.
- The forked process is in a ' D' (defunct) state.
Environment
- Platform9 Managed OpenStack - All Versions
- Platform9 Managed Kubernetes - All Versions
Cause
There may be various factors which can contribute to one of the Hostagent extension scripts failing to execute and subsequently entering a defunct state.
Resolution
- Inspect the script in question and identify if any of the commands may be ran manually.
Example: /opt/pf9/hostagent/extensions/fetch_mounted_nfs.py
The corresponding command would be as follows.
- If the command executes successfully, proceed to Step #3. Otherwise, you will need to identify what is causing the command to fail.
- Stop the pf9-hostagent service.
- Kill any remaining forked processes (if present).
You may need to add a -9
or -SIGKILL
flag if any of the processes remain.
- Start pf9-hostagent service.
Was this page helpful?