Installation error(s); Details: [Failed to submit resources: failed to validate create for
services.vcfa.broadcom.com/v2/ConfigurationHandler/prelude/<uuid>: configurationhandlers.services.vcfa.broadcom.com
"<uuid>" already exists]"msg":"Installation failed","controller":"service-rde-v2", ... ,"serviceName":"auto-attach.vksm.broadcom.com",
"errors":["Failed to submit resources: failed to validate create for services.vcfa.broadcom.com/v2/ConfigurationHandler/prelude/<uuid>: ... already exists"]This symptom can occur on its own, without other unrelated installation failures.Note:
VCF Automation 9.1.1.0
Workaround:
Clear the orphaned resources from the environment before attempting the operation again:
NOTE: Only clean up resources from stale installations (non-Healthy status, mismatched version/service-id labels). Deleting active resources will cause an outage.
LABEL="services.vcfa.broadcom.com/refName=<service-refName>"
for RESOURCE_TYPE in configurationhandler supervisorservice vcfaserviceaccount role; do
kubectl get "${RESOURCE_TYPE}" -l "${LABEL}" -A -o json | jq -c '.items[]'
done
Inspect each object's `.metadata.namespace`, `.metadata.name`, `.metadata.labels["services.vcfa.broadcom.com/service-id"]`, `.metadata.labels["services.vcfa.broadcom.com/version"]`, and `.status.status`.service-id`/`version` labels and status of each resource against the version currently being installed. Resources carrying an older `version` label (or a `service-id` that no longer matches the active install), and sitting in a non-Healthy status (e.g. `Busy`, `Unhealthy`), are leftovers from the incomplete previous installation - such as a `ConfigurationHandler` stuck in `Busy` because its associated `SupervisorService` never became `Healthy`.kubectl delete <kind>.services.vcfa.broadcom.com <name> -n preludeBecause these resources carry finalizers (e.g. 'services.vcfa.broadcom.com/vcfa-service', 'services.vcfa.broadcom.com/configurationhandler.callback'), the delete may hang if the owning controller cannot process the finalizer on its own (for example because the Supervisor is still unreachable). Only in that case, patch out the finalizer as a last resort:kubectl patch <kind>.services.vcfa.broadcom.com <name> -n prelude --type=merge -p '{"metadata":{"finalizers":[]}}'