Error: sudo: no password was provided during DX NetOps Upgrade Automation preflight check on Data Collector
search cancel

Error: sudo: no password was provided during DX NetOps Upgrade Automation preflight check on Data Collector

book

Article ID: 448277

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

When running the DX NetOps Upgrade Automation pre-flight check, the task Checking DC Hosteval request status fails with a sudo password error. 

The pre-flight script fails with the following error in the log (orsimilar)

ASK [dc : [DEBUG] Checking DC Hosteval request status]fatal: [#### -> localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "OK (866 bytes)", "content": "... [sudo] password for <username>: Sorry, try again. \n sudo: no password was provided"}


Where <username> is the name of the user the DC process runs as.

Environment

 

  • DX NetOps Performance Management
  • DX NetOps Upgrade Automation

 

Cause

The DX NetOps Upgrade Automation orchestration requires access to the hosteval script located in the upgrade directory. If the sudoers file on the Data Collector (DC) host does not explicitly include the path /opt/IMDataCollector/upgrade/hosteval in the NOPASSWD command alias, the system prompts for a password, causing the automation to fail.

 

Resolution

Resolution Update the sudoers configuration on the Data Collector host to include hosteval:

Cmnd_Alias CA_DATACOLL_UPGRADE = <DC_installation_directory>/upgrade/install.bin,  <DC_installation_directory>/upgrade/hosteval