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 below steps to update new credentials in VMSP.

  1. 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
  2. To view the actual current config use
    • kubectl get pd vmsp-platform -n vmsp-platform -o yaml
  3. Create a /tmp/patch.json file with this content
    • {"spec":{"values":{"sftp":{"directory":"/fleetbackups/","host":"<SFTP_IP>","port":22,"username":"service-account"}}}}
  4. Apply the sftp config
    • kubectl patch pd vmsp-platform -n vmsp-platform --type=merge --patch-file /tmp/patch.json
  5. 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 -