Unable to configure SFTP backups after username and password change in Fleet Manager
search cancel

Unable to configure SFTP backups after username and password change in Fleet Manager

book

Article ID: 416350

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

Once the credentials are changed for SFTP in Fleet Manager, you will encounter synthetic check failing error while saving the setting for SFTP configuration in Fleet Manager

Environment

VCF Operations 9.0

Cause

Old credentials are still stored in VMSP

Resolution

Follow the steps below to update the SFTP credentials in VMSP for the respective product (VCFA or VIDB):

1.SSH into the VCFA or VIDB node using the vmware-system-user account.

2.Run the following command to switch to the root user: sudo su -

3.To view the actual current password you can use this

   kubectl get secret sftp-password-secret -n vmsp-platform -o jsonpath='{.data.sftpPassword}' | base64 --decode

4.To view the actual current config use

   kubectl get pd vmsp-platform -n vmsp-platform -o yaml

5.Create a /tmp/patch.json file with this content

  {"spec":{"values":{"sftp":{"directory":"/fleetbackups/","host":"<SFTP_IP>","port":22,"username":"service-account"}}}}

6.Apply the sftp config

  kubectl patch pd vmsp-platform -n vmsp-platform --type=merge --patch-file /tmp/patch.json

7.Run to update the password

 kubectl create secret generic sftp-password-secret -n vmsp-platform --from-literal='sftpPassword=<password>' --dry-run=client -o yaml | kubectl apply -f -



Note

In version 9.0, the VI Editor is not available by default. The required packages are not included in the out-of-the-box deployment and must be installed manually. For detailed installation steps, refer to KB Article 424649, which provides instructions for installing the required VIM packages.