Unable to install Telegraf Agent on Linux Machine
search cancel

Unable to install Telegraf Agent on Linux Machine

book

Article ID: 409519

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

Failure to install Telegraf Agent on a Linux machine, specifically encountering ModuleNotFoundError: No module named 'psutil' and NameError: name 'yaml' is not defined errors during the installation process.
 
Error in uaf-bootstrap.log:
ERROR:root:Failed to import some dependencies
Traceback (most recent call last):
File "/tmp/vmware-root_###-##########/VMware-UCP_Bootstrap_Scriptsvmware###/config-utils.py", line ##, in <module>
import psutil
ModuleNotFoundError: No module named 'psutil'
ERROR:root:None
Traceback (most recent call last):
File "/tmp/vmware-root_###-##########/VMware-UCP_Bootstrap_Scriptsvmware###/config-utils.py", line ##, in <module>
class OrderedDictYAMLLoader(yaml.Loader):
NameError: name 'yaml' is not defined

Environment

Aria Operations 8.18.x

Cause

File permissions were changed to the root user on Cloud Proxy under the directory /ucp/downloads/salt.
This incorrect permission setting led to the Python environment not being able to locate necessary modules like psutil and yaml.

Resolution

To be able install telegraf agents on Linux based VMs:
  1. Verify the ownership of the folders under the directory /ucp/downloads/salt in cloud proxy. The ownership must be admin/admin. If the ownership is not admin, reset permissions/ownership.
  2. Run the /ucp/ucp-config-scripts/ucp-firstboot.sh script and verify the permissions of the folder.
  3. Re-install the agent after successful execution of the script.

Additional Information