emc-openstack/storops

Virtual Drive details attached to pool is not being fetched returning empty list

Opened this issue · 3 comments

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.
image
Please let us know if there is any alternatives with existing SDK.

Thanks
Pavan

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.

Hi, two questions:

  1. Which Unity platform are you using? Hardware Unity or Unity VSA?
  2. Which resource do you want to retrieve? vmDisk or virtualDisk? They are two different resources in Unity, the virtualDisk only exist in Unity VSA

We are using Unity VSA, we are trying to retrieve virtualDisk