Users Unable to Perform Domain Operations in SDDC Manager Due to Deployment Lock Held by Backup Operation
search cancel

Users Unable to Perform Domain Operations in SDDC Manager Due to Deployment Lock Held by Backup Operation

book

Article ID: 313431

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

When attempting to perform domain-related operations in SDDC Manager, such as host commissioning or VI domain creation, you may encounter the following error message:

"This operation is not allowed because SDDC Manager Backup Operation operation(s) are working on related resources."

This message indicates that a deployment lock is preventing further actions within the environment.

Environment

Vmware Cloud Foundation 4.5
VMware Cloud Foundation 5.0

Cause

This issue occurs when a restore operation in SDDC Manager fails to release a deployment lock that was previously acquired by a backup operation. As a result, any new deployment-related operations are blocked due to the lingering lock entry.

Resolution

This issue has been permanently resolved in VMware Cloud Foundation (VCF) 5.0. Upgrading to this version or later eliminates the lock persistence issue caused by restore operations.

Workaround:
If you are using a version of VCF prior to 5.0, the deployment lock can be manually removed by following these steps:

Important: Always take a snapshot of the SDDC Manager appliance before performing any database-level modifications.

  1. SSH into the SDDC Manager appliance as the root user.

  2. Access the PostgreSQL database:

    psql -U postgres -h localhost
  3. Connect to the platform database:

    \c platform
  4. View current locks to confirm the presence of the deployment lock:

    SELECT * FROM lock;
  5. Delete the lock entry associated with the deployment operation:

    DELETE FROM lock WHERE resource_type='deployment';

After performing these steps, domain-related operations in SDDC Manager should proceed without issue.