VMware Cloud Community
Noemie
Enthusiast
Enthusiast

vRA 8.2 migration tool - migration failed on Cloud zone type for Reservation

Hello all,

I'm testing the migration tool of vRA 8.2 for my client and faced an error during the migration of my reservation, the error is migration failed on type "cloud zone".

We tried to modify the reservation on the legacy vRA, to adjust it and find what is blocking the migration , but without success for now ( remove / add reservation policy , remove special carachers inside the name of the reservation ) 

of course before clicking on "migration" this assessment was concidered as "ready".

I tryied to find more log to debug it but without sucess for now, below the log of pod " prelude_migration_ui_app

2021-04-07 13:51:26.277 INFO 546 --- [ migration-4] c.v.a.m.client.vra8.AssessmentClient : Getting content. Source server: ndm-vra75app.lri.lcl, business group ID: 9cacd83d-8509-4077-8478-97bd4b26cf65, content type: Reservations, content ID: 64110e15-c47b-4abc-9220-0d81bded8959
2021-04-07 13:51:26.293 INFO 546 --- [ migration-4] c.v.a.m.client.vra8.AssessmentClient : Getting content. Source server: ndm-vra75app.lri.lcl, business group ID: 9cacd83d-8509-4077-8478-97bd4b26cf65, content type: NetworkProfiles, content ID: 64110e15-c47b-4abc-9220-0d81bded8959
2021-04-07 13:51:26.307 INFO 546 --- [ migration-4] m.s.c.VsphereReservationConverterService : Converting vSphere reservation: '{"@type":"Reservation","createdDate":"2021-03-16T14:16:37.603Z","lastUpdated":"2021-04-02T13:15:48.323Z","version":6,"id":"64110e15-c47b-4abc-9220-0d81bded8959","name":"RES_LAB75","reservationTypeId":"Infrastructure.Reservation.Virtual.vSphere","tenantId":"vsphere.local","subTenantId":"9cacd83d-8509-4077-8478-97bd4b26cf65","enabled":true,"priority":1,"reservationPolicyId":null,"alertPolicy":{"enabled":false,"frequencyReminder":0,"emailBgMgr":true,"recipients":[],"alerts":[{"alertPercentLevel":80,"referenceResourceId":"storage"},{"alertPercentLevel":80,"referenceResourceId":"memory"},{"alertPercentLevel":80,"referenceResourceId":"cpu"},{"alertPercentLevel":80,"referenceResourceId":"machine"}]},"extensionData":{"entries":[{"key":"reservationMemory","value":{"type":"complex","componentTypeId":null,"componentId":null,"classId":null,"typeFilter":null,"values":{"entries":[{"key":"computeResourceMemoryTotalSizeMB","value":{"type":"integer","value":327680}},{"key":"computeResourceMemoryReservedTotalSizeMB","value":{"type":"integer","value":262144}},{"key":"memoryReservedSizeMb","value":{"type":"integer","value":262144}},{"key":"computeResourceMemoryAllocatedTotalSizeMB","value":{"type":"integer","value":0}}]}}},{"key":"reservationStorages","value":{"type":"multiple","elementTypeId":"COMPLEX","items":[{"type":"complex","componentTypeId":null,"componentId":null,"classId":null,"typeFilter":null,"values":{"entries":[{"key":"storageReservedSizeGB","value":{"type":"integer","value":500}},{"key":"storageReservationPriority","value":{"type":"integer","value":1}},{"key":"permissible_value_selected","value":{"type":"boolean","value":true}},{"key":"storageAllocatedSizeGB","value":{"type":"integer","value":185}},{"key":"computeResourceStorageTotalSizeGB","value":{"type":"integer","value":980}},{"key":"isStorageCluster","value":{"type":"boolean","value":false}},{"key":"storagePath","value":{"type":"entityRef","classId":"Storage","id":"6ffee578-f41d-4a5b-879e-da3ec5bba05c","componentId":null,"label":"datastoreNFS"}},{"key":"storageEnabled","value":{"type":"boolean","value":true}},{"key":"computeResourceStorageReservedSizeGB","value":{"type":"integer","value":500}},{"key":"isSDRSEnabled","value":{"type":"boolean","value":false}},{"key":"computeResourceStorageFreeSizeGB","value":{"type":"integer","value":421}},{"key":"diskCost","value":{"type":"integer","value":0}}]}}]}},{"key":"machineQuota","value":{"type":"integer","value":0}},{"key":"computeResource","value":{"type":"entityRef","classId":"ComputeResource","id":"ca243cb1-bdfe-4aa6-b3f0-10b74dc39833","componentId":null,"label":"Cluster 1 (ndm-vcsa01.lri.lcl)"}},{"key":"reservationNetworks","value":{"type":"multiple","elementTypeId":"COMPLEX","items":[{"type":"complex","componentTypeId":"com.vmware.csp.iaas.blueprint.service","componentId":null,"classId":"Infrastructure.Reservation.Network","typeFilter":null,"values":{"entries":[{"key":"networkPath","value":{"type":"entityRef","classId":"Network","id":"3216f33a-95bb-4b94-a717-21ef7a357c6b","componentId":null,"label":"vxw-dvs-44-universalwire-4-sid-10003-Test2-LS"}},{"key":"networkProfile","value":{"type":"entityRef","classId":"networkProfile","id":"d2e5e2f1-7924-4e2c-bd0f-2a020031757e","componentId":null,"label":"LAB75-VM-Network"}}]}}]}}]}}'
2021-04-07 13:51:26.308 INFO 546 --- [ migration-4] c.v.a.m.client.vra8.ProvisioningClient : Assigning tags
2021-04-07 13:51:26.398 ERROR 546 --- [ migration-4] c.v.a.m.s.AbstractMigrationService : null

java.lang.NullPointerException: null
at com.vmware.automation.migration.service.converter.VsphereReservationConverterService.convert(VsphereReservationConverterService.java:140) ~[app.jar:na]
at com.vmware.automation.migration.service.ReservationMigrationService.migrateReservation(ReservationMigrationService.java:161) ~[app.jar:na]
at com.vmware.automation.migration.service.ReservationMigrationService.lambda$migrateReservations$0(ReservationMigrationService.java:113) ~[app.jar:na]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) ~[na:na]
at com.vmware.automation.migration.service.ReservationMigrationService.migrateReservations(ReservationMigrationService.java:108) ~[app.jar:na]
at com.vmware.automation.migration.service.ContentMigrationService.migrateContent(ContentMigrationService.java:125) ~[app.jar:na]
at com.vmware.automation.migration.service.ContentMigrationService.lambda$migrateContent$5(ContentMigrationService.java:93) ~[app.jar:na]
at com.vmware.automation.migration.service.ContentMigrationService.lambda$handleBusinessGroups$8(ContentMigrationService.java:160) ~[app.jar:na]
at java.base/java.util.Optional.ifPresent(Optional.java:183) ~[na:na]
at com.vmware.automation.migration.service.ContentMigrationService.lambda$handleBusinessGroups$9(ContentMigrationService.java:160) ~[app.jar:na]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[na:na]
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[na:na]
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1603) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[na:na]
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[na:na]
at com.vmware.automation.migration.service.ContentMigrationService.handleBusinessGroups(ContentMigrationService.java:157) ~[app.jar:na]
at com.vmware.automation.migration.service.ContentMigrationService.migrateContent(ContentMigrationService.java:90) ~[app.jar:na]
at com.vmware.automation.migration.service.ContentMigrationService$$FastClassBySpringCGLIB$$6f9a601d.invoke(<generated>) ~[app.jar:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) ~[spring-aop-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:84) ~[spring-security-core-5.3.3.RELEASE.jar:5.3.3.RELEASE]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

2021-04-07 13:51:26.434 ERROR 546 --- [ migration-4] c.v.a.m.service.ContentMigrationService : Failed to migrate business group 'XXXXXX'. Message: NullPointerException:

 

Does Anybody got this error during a migration ? any ideas ?

Thanks a lot for your help.

-----------------------------------------

Tahcnical Context : 

existing vRA :

version 7.5 with no patch

target vRA :

version 8.2 with no patch

vCenter 6.7, with the same Cluster ressource shared for both vRA

 

 

 

Reply
0 Kudos
2 Replies
jimmyvandermast
Hot Shot
Hot Shot

We once had a weird message on migrating the cloud zone.
In vRA8(.3) the cloud zone already existed, after deleting it, the migration succeeded.

But something in the error we got then brought my mind to the already existing cloud zone, but I don't recognize your error.

Reply
0 Kudos
Noemie
Enthusiast
Enthusiast

Hello jimmyvandermast

Thans for your reply, we thought as you, maybe there is something created somewhere but we checked on there is no cloud zone created at all ffrom the migration tool.
So we tried to create it manually and then rerun the migration tool to see if we have another error , but unfortunatlhy it doesn't work and the error was the same.

Also we tried to add / remove tag as the error appear just after :

2021-04-07 13:51:26.308 INFO 546 --- [ migration-4] c.v.a.m.client.vra8.ProvisioningClient : Assigning tags
2021-04-07 13:51:26.398 ERROR 546 --- [ migration-4] c.v.a.m.s.AbstractMigrationService : null

But same as for the cloud zone, it doesn't change anything , still the same error,

On WEB UI side we have a "nullpointer execption" error which is not very helpfull.

We also tried to duplication our source ressource to apply KB 82606 (https://kb.vmware.com/s/article/82606) but no progress at all, so we are still stuck on this step for now.

 

Reply
0 Kudos