VMware Cloud Community
Tibmeister
Expert
Expert

Get-SpbmStoragePolicy and Get-Tag Issues, again

So trying to get SPBM going and running into all kinds of issues.  When running Get-SpbmStoragePolicy I get:

Get-SpbmStoragePolicy
com.vmware.vapi.std.errors.operation_not_found {'messages':
[com.vmware.vapi.std.localizable_message {'id': vapi.method.input.invalid.interface,
'default_message': Cannot find service 'com.vmware.cis.data.resource_model'., 'args':
[com.vmware.cis.data.resource_model], 'params': , 'localized':}], 'data': ,
'error_type': OPERATION_NOT_FOUND}
At line:1 char:1
+ Get-SpbmStoragePolicy -Name "VmDataDisk"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SpbmStoragePolicy], CisException
+ FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.Ta
ggingServiceCisImpl.GetTag.Error,VMware.VimAutomation.Storage.Commands.Cmdlets.Spbm.
GetStorageProfile
 
At first I thought maybe I was doing something wrong, fat finger or something, but then I saw the OPERATION_NOT_FOUND and when through the entire stack trace and saw:
 
VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Error
 
So, I decided to try Get-Tag, and got this:
 
Get-Tag com.vmware.vapi.std.errors.operation_not_f
ound
{'messages': [com.vmware.vapi.std.localizable_message {'id':
vapi.method.input.invalid.interface, 'default_message': Cannot find service
'com.vmware.cis.data.resource_model'., 'args': [com.vmware.cis.data.resource_model],
'params': , 'localized':}], 'data': , 'error_type': OPERATION_NOT_FOUND}
At line:1 char:1
+ get-tag
+ ~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-Tag], CisException
+ FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTag
 
Once again, OPERATION_NOT_FOUND.  I'm thinking something was left out of the Cis model in vCenter.  
 
vCenter: VCSA 6.7 (17137327)
PowerCLI: 12.1.0.17009493
 

3 Replies
LucD
Leadership
Leadership

Is that vCenter by any chance part of a set of linked vCenters?
Could it be that the storage policy exists on one vCenter and not on the other(s)?

What does $global:defaultviservers contain?

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Tibmeister
Expert
Expert

Single standalone vCenter. 

Reply
0 Kudos
LucD
Leadership
Leadership

That specific error doesn't really ring a bell.
I would suggest opening an SR.

Something you could try is to downgrade to an older PowerCLI version.

Out of curiosity, do you also get the error when you run Get-SpbmStoragePolicy without any parameter?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos