SDDC Manager backup fails with error "Exporting SDDC Manager metadata operation failed".
search cancel

SDDC Manager backup fails with error "Exporting SDDC Manager metadata operation failed".

book

Article ID: 438507

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VCF Operations

Issue/Introduction

  • The SDDC Manager system configuration backup fails with the following error message in the UI:
    Backup operation failed for SDDC Manager System Configuration .Exporting SDDC Manager metadata operation failed.
  • When reviewing the backup logs located at `/var/log/vmware/vcf/sddc-support/backup-####/sos.log`, the following entry is identified:
    INFO [vcf_sos] t/scripts/get-sddc-metadata.sh domain ERROR ERROR  No DNS Search Domains configured: No data available\n vmware/sddc-support/scripts/get-sddc-metadata.sh domain tion failed on failed File "backup/sddcmanagerbackup.py", line 274, in export_metaata File "backup/sddcmanagerbackup.py", line 298, in get sddc metadata xception: Exporting SDDC Manager metadata operation failed.
    
    INFO [vcf_sos] [workflowhandler.py :: update_task_progress: : 378: :backup-b######03-0##a-##e8-##3f-7########425c] Updating task progress ... INFO [vcf_sos] [workflowhandler.py :: update_task_progress: : 381: :backup--b######03-0##a-##e8-##3f-7########425c] Updating status of task BackupSDDCMa agerSystemConfiguration to Failed  INFO [vcf_sos] [workflowhandler.py :: update_task_progress: : 402: :backup--b######03-0##a-##e8-##3f-7########425c] Task BackupSDDCManagerSystemConfigur tion completed with failure

Environment

VMware Cloud Foundation (VCF)
VMware SDDC Manager 9.x

Cause

The SDDC Manager metadata export process requires hostname resolution for internal endpoints. If the DNS search domain configuration is missing or incorrect within the appliance's network configuration, the `get-sddc-metadata.sh` script fails to resolve these endpoints, causing the metadata export and subsequent backup operation to fail.

Resolution

To resolve this issue, manually configure the correct DNS search domain on the SDDC Manager appliance:

  1. Access the SDDC Manager: Establish an SSH session to the SDDC Manager VM using the `vcf` user account and switch to `root` using the `su` command.
    Note: Take the snapshot of SDDC Manager before proceeding.
  2. Inspect the `/etc/resolv.conf` file to confirm if the `search` line is missing or does not include the environment's domain.
    cat /etc/resolv.conf
  3. Update DNS Search Domain by editting the /etc/resolv.conf` file using a text editor (e.g., `vi`) and append the appropriate domain (e.g., `vsphere.local`) to the `search` line.
    Example: 
    search vsphere.local
  4. Save the file and exit the editor.
  5. Return to the SDDC Manager UI and manually re-initiate the **SDDC Manager system configuration backup.