VMware vSphere

 View Only

 unable to get or refresh storage policies in vcloud

Christophe NIEL's profile image
Christophe NIEL posted Mar 26, 2025 06:59 AM

Hello

i'm having a issue with a vcenter and vcloud director when I'm adding it, it doesn't get the storage policies and the "refresh policies" make an error

detail

[ 7b650743-6f6f-4885-aa55-c19bb002f7d8 ] Failed to refresh storage policies data from vCenter Server "XXX".
 - Error

debug

com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Failed to refresh storage policies data from vCenter Server "XXX".
    at com.vmware.vcloud.management.system.SystemServiceImpl.refreshStorageClassesTask(SystemServiceImpl.java:2222)
    at com.vmware.vcloud.management.system.SystemServiceImpl.executeTask(SystemServiceImpl.java:1865)
    at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:865)
    at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase$1.doInSecurityContext(TaskActivity.java:860)
    at com.vmware.vcloud.backendbase.management.system.SecurityContextTemplate.executeForOrgAndUser(SecurityContextTemplate.java:49)
    at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.execute(TaskActivity.java:867)
    at com.vmware.vcloud.backendbase.management.system.TaskActivity$ExecutePhase.invokeInner(TaskActivity.java:763)
    at com.vmware.vcloud.backendbase.management.system.TaskActivity$TaskActivityBasePhase.invokeCancelableOperation(TaskActivity.java:378)
    at com.vmware.vcloud.common.activity.toolkit.VcdAbstractActivity$CancelablePhase.invoke(VcdAbstractActivity.java:591)
    at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
    at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.vmware.ssdc.util.LMException: Error
    at com.vmware.ssdc.util.LMException.wrap(LMException.java:138)
    at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:513)
    at com.vmware.vcloud.spbm.impl.Vc55SpbmCallableImpl.call(Vc55SpbmCallableImpl.java:121)
    at com.vmware.vcloud.spbm.impl.SpbmServiceImpl.submitSpsRequest(SpbmServiceImpl.java:541)
    at com.vmware.vcloud.spbm.impl.SpbmServiceImpl.getSpsData(SpbmServiceImpl.java:361)
    at com.vmware.vcloud.spbm.impl.SpbmCollectorServiceImpl.collectStorageProfiles(SpbmCollectorServiceImpl.java:117)
    at com.vmware.vcloud.spbm.impl.SpbmCollectorServiceImpl.collect(SpbmCollectorServiceImpl.java:109)
    at com.vmware.ssdc.backend.services.VirtualCenterService.collectStorageClasses(VirtualCenterService.java:1608)
    at com.vmware.vcloud.management.system.SystemServiceImpl.refreshStorageClassesTask(SystemServiceImpl.java:2213)
    ... 15 more
Caused by: java.lang.NullPointerException
    at java.base/java.util.Arrays.stream(Arrays.java:5614)
    at com.vmware.vcloud.spbm.impl.Vc55SpbmCallableImpl$QueryProfileDatastoresCallable.callSpbm(Vc55SpbmCallableImpl.java:1136)
    at com.vmware.vcloud.spbm.impl.Vc55SpbmCallableImpl$QueryProfileDatastoresCallable.callSpbm(Vc55SpbmCallableImpl.java:1098)
    at com.vmware.vcloud.spbm.impl.Vc55SpbmCallableImpl.call(Vc55SpbmCallableImpl.java:106)
    ... 21 more

for context this vcenter is an "old" one going back 2014, from v5.5 that has been upgraded over the decade to 8.0.3, and has never been connected to our vcloud, but we want to use that vcenter now in the vcloud portal as we plan to migrate and merge some workload and do some long term re-architecturing of our infra

the vcloud itself has other vcenter and no issues to synchronize the storage policies, only that "old" vcenter

I can't seem to find any article/problem similar on the web, I will contact the support if I can't find anything but I would like to see first if someone ever encountered a similar issue, and if someone know where to look to check if the tags are working correctly on the vcenter, or what log to look for on vcloud/vcenter to see where the issue is coming from

any help appreciated

Thanks in advance

Christophe

Christophe NIEL's profile image
Christophe NIEL

never mind my post, I found the issue

I found some clue in vcloud-container-debug.log which was getting all the policy correctly so the issue was not communicating with the vcenter

However there were some old policies based on old unused tags, and these tags were removed and the policies were missing theses tags, I thought I had cleansed all these policies but I had missed one, once I fixed that, the refresh policy worked fine.