Namespace deployment failing with Synchronization error
search cancel

Namespace deployment failing with Synchronization error

book

Article ID: 418974

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

Warning "Unable to sync the status of this resource" when trying to fetch the namespace resource state

Catalog-service-app.log: /service-logs/prelude/catalog-service-app.log/file-logs

ERROR catalog-service-app [host='catalog-service-app-xxxxxx-xx8bd' thread='xxxxxxxxxxxxx' user='' org='' trace='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] c.v.t.d.service.ResourceSyncServiceImpl - Failed to sync resource with id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx of type: 'Name of the catalog item' and origin: 'DEPLOYED' with error: 500 Internal Server Error from POST http://tango-blueprint.prelude.cluster.local:8080/blueprint/api/blueprint-deployments/xxxxxxx-xxxx-xxxx-xxxx-xxxxxx/fetch-resource-state

Tango-blueprint-service-app.log: /service-logs/prelude/tango-blueprint-service-app.log/file-logs

ERROR tango-blueprint [host='tango-blueprint-service-app-xxxxxxxx' thread='xxxxxxxxxx' user='catalog-xxxxxxxxxxx' com.vmware.tango.blueprint.exception.ControllerExceptionHandler - java.lang.IllegalStateException: Failed to fetch latest state for resource: , reason: Error reading resource: clusters.cluster.x-k8s.io  is forbidden: User "sso:vcenter account" cannot get resource "clusters" in API group "cluster.x-k8s.io" in the namespace "namespace" [Error Reference ID: xxxxxxxxxxxxxxxxx]
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Failed to fetch latest state for resource: , reason: Error reading resource: clusters.cluster.x-k8s.io "namespace" is forbidden: User "sso:" cannot get resource
 "clusters" in API group "cluster.x-k8s.io" in the namespace "namespace"
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:) ~[?:?

Environment

Aria Automation 8.18.0

Cause

Namespace was missing at the source location. In vCenter found that the namespace was not available, hence the synchronization or request to fetch the state of the resource was failing. 

Resolution

Ensure the deployed resource being requested is available at the endpoint for the synchronization to happen.