emc-openstack / storops

Python storage management library for VNX and Unity.
Apache License 2.0
53 stars 29 forks source link

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

Open Pavan-Mudunuri opened 2 years ago

Pavan-Mudunuri commented 2 years ago

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

yong-huang commented 2 years ago

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 2 years ago

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
Pavan-Mudunuri commented 2 years ago

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