In a Virtual Machine where UAC is enabled, when a non-administrator user (who is part of the Administrators group) initiates the Telegraf agent installation, the process completes as "Download Success". Although the agent bits are successfully downloaded to the VM, the installation fails at Stage 6 during execution of the following PowerShell command:
cmd /c uaf-bootstrap-launcher.bat > uaf_bootstrap.log 2>&1
The installation will fail with below error in the uaf_bootstrap.log:
uaf-bootstrap - INFO - Running Bootstrap Orchestration using downloaded python and its dependencies...
Traceback (most recent call last):
File "C:\VMware\UCP\downloads\config-utils.py", line 1387, in <module>
u = UafBootstrap(sys.argv[2], sys.argv[3], sys.argv[5], sys.argv[6], run_dependent_action=run_dependent_action)
IndexError: list index out of range
Aria Operations 8.18.x
UAC endpoints need to add a specific parameter that must be set in order to continue bootstrapping of agent after download stage 6.
Please follow the steps below to resolve this issue:
1)Open the uaf-bootstrap.bat file located in the downloads directory of the UCP installation path.
2)Locate the line containing the %RETAIN_TELEGRAF_CONFIG% variable and replace it with "true" at line 654
Example:
%CONFIG_UTILS_CMD% orch %ACTION% %PROGDIR% "%DEPENDENT_ACTION%" %RETAIN_TELEGRAF_CONFIG% %UCP_PREFIX%\telegraf-backup
to
%CONFIG_UTILS_CMD% orch %ACTION% %PROGDIR% "%DEPENDENT_ACTION%" "true" %UCP_PREFIX%\telegraf-backup
3)Continue with the installation
cd $SYSTEMDRIVE\VMware\UCP\downloads
.\uaf-bootstrap-launcher.bat > uaf_bootstrap.log 2>&1