Bad Request
/opt/vmware/h4/cloud/log/cloud.log
on the Cloud Director Availability Cloud source appliance, you see entries similar to:
2024-06-13 15:25:43.630 ERROR - [UI-a3cbba30-18d4-4ec8-8d29-ff71df329035-r4128-4E] [job-87] com.vmware.h4.jobengine.JobExecution : Task 0fe73d32-6774-4930-8432-38b61faad430 (WorkflowInfo{type='start', resourceType='vmReplication', resourceId='C4-58f789f4-2bb2-4177-b13a-9227ea02412d', isPrivate=false, resourceName='null'}) has failed
com.vmware.h4.api.error.exceptions.BadRequestException: Bad request.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at com.vmware.h4.api.error.GenericServerExceptionProvider.get(GenericServerExceptionProvider.java:123)
2024-06-13 15:25:43.624 ERROR - [UI-a3cbba30-18d4-4ec8-8d29-ff71df329035-r4128-4E-sy] [https-jsse-nio-8044-exec-8] c.v.h.c.c.error.ExceptionAdvisorBase : A POST request from tenant1@vCDA-EPG-Cloud[127.0.0.1] to /replications failed.
org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [1] in public com.vmware.h4.manager.api.model.H4ApiTask<com.vmware.h4.manager.api.replication.ReplicationInfo> com.vmware.h4.manager.controller.ReplicationController.configureReplication(java.util.Optional<java.lang.String>,com.vmware.h4.manager.api.replication.StartReplicationSettings,java.util.Optional<java.lang.String>):
[Field error in object 'startReplicationSettings' on field 'seedVm.vcId': rejected value [null]; codes [NotNull.startReplicationSettings.seedVm.vcId,NotNull.seedVm.vcId,NotNull.vcId,NotNull.java.lang.String,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [startReplicationSettings.seedVm.vcId,seedVm.vcId]; arguments []; default message [seedVm.vcId]]; default message [must not be null]]
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:141)
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:122)
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:179)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:146)
VMware Cloud Director Availability 4.x
This issue occurs due to the vcid not being sent from the Cloud site to the On-Premises site when starting protections / migrations using seed VM's.
This is a known issue affecting Cloud Director Availability 4.7.X
This issue is resolved in Cloud Director Availability 4.7.2 available at Broadcom Downloads.
To workaround this issue avoid using seed VM's for Cloud Director Availability Cloud to On-Premises Protections / Migrations