Data Repository scripts fail when using non-root
search cancel

Data Repository scripts fail when using non-root

book

Article ID: 369803

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

This affects 23.3.3 and higher NetOps Data Repository installs. See the Prepare to Install the Data Repository documentation for additional information.

The non-root user used to install is an externally authenticated user. It doesn't require a local OS password. It does have an entry in the /etc/passwd file to help define it as a local user.

The user is able to successfully ssh between the 3 cluster nodes, from each node to the others.

When running the dr_validate.sh script as the non-root user, using the following command, it asks for the users password when it never has in the past.

sudo ./dr_validate.sh -p drinstall.properties

We tried using a made up placeholder password but it fails as it isn't a valid password set for the local user.

Environment

All supported DX NetOps Performance Management Data Repository releases 23.3.3+

Cause

DR installer scripts aren't set up to support a local OS user with no password configured.

Resolution

This is submitted to engineering as defect ID DE605398. Watch the Fixed Issues lists for an entry with the defect ID to see the release the fix is included in. The fix will allow users without passwords to work with the DR install scripts.

Until a fix is available the only solution involved setting a password for the user. In total we did the following.

  • Removing sudo from command. No longer needed.
  • Run "passwd <UserName>" to set the password for the user on each of the 3 cluster nodes. Set all with the same password.
  • Set the password in the SudoPassword variable in the drinstall.properties file and the command runs won't prompt for a password.
    • Alternatively leave it out and the password can be entered when prompted.

After those changes running this as the non-root user works properly.

  • ./dr_validate.sh -p drinstall.properties