Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Pavan-Mudunuri opened this issue Jan 12, 2022 · 3 comments
Assignees
Labels
ansible request from Ansible team feature Feature requested

Comments

@Pavan-Mudunuri
Copy link

Pavan-Mudunuri commented Jan 12, 2022

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

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

@yong-huang yong-huang added the feature Feature requested label Mar 3, 2022
@wangi1 wangi1 added the ansible request from Ansible team label Mar 23, 2022
@yong-huang yong-huang self-assigned this Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible request from Ansible team feature Feature requested
Projects
None yet
Development

No branches or pull requests

3 participants