Virtual Drive details attached to pool is not being fetched returning empty list
Opened this issue · 3 comments
Pavan-Mudunuri commented
Requirement :
As part of one of the customer's ask, there is a requirement to display drive details, we are able to retrieve info of non virtual drives details trying to do so for virtual drives is giving an empty list . Checked SDK , did not find any support for getting virtual drives details.
Please let us know if there is any alternatives with existing SDK.
Thanks
Pavan
yong-huang commented
Hi, UnityVmDisk/UnityVmDiskList should already supported, but I have no environment to verify it.
Could you try these codes?
import pprint
import storops
from storops.unity.resource.vmware import UnityVmDiskList
unity = storops.UnitySystem('xxx', 'xxx', 'xxx')
vm_disk_lst = UnityVmDiskList(cli=unity._cli)
pprint.pprint(vm_disk_lst)
If it works, we will add a get_vm_disk method in system.py.
yong-huang commented
Hi, two questions:
- Which Unity platform are you using? Hardware Unity or Unity VSA?
- Which resource do you want to retrieve? vmDisk or virtualDisk? They are two different resources in Unity, the virtualDisk only exist in Unity VSA
Pavan-Mudunuri commented
We are using Unity VSA, we are trying to retrieve virtualDisk