Start a Conversation

Unsolved

C

3 Posts

639

March 23rd, 2022 09:00

Ansible - Vplex Distributed VV module volume_id and volume_name are equal.

Hello all, I'm trying to gather volume information using a wwn (vpd_id) as search key.

In the documentation I saw "Get distributed virtual volume using name or System ID" chapther but those are the sintax:

Get distributed virtual volume using name

 

- name: Get Distributed virtual volume by name
dellemc_vplex_distributed_virtual_volume:
vplexhost: "{{ vplexhost }}"
vplexuser: "{{ vplexuser }}"
vplexpassword: "{{ vplexpassword }}"
verifycert: "{{ verifycert }}"
distributed_virtual_volume_name: "ansible_dist_vv"
state: "present"

 

 

And get distributed volume using System ID:

 

- name: Get Distributed virtual volume by system ID
dellemc_vplex_distributed_virtual_volume:
vplexhost: "{{ vplexhost }}"
vplexuser: "{{ vplexuser }}"
vplexpassword: "{{ vplexpassword }}"
verifycert: "{{ verifycert }}"
distributed_virtual_volume_id: "ansible_dist_id"
state: "present"

 

 

The problem is that distributed_virtual_volume_id is the same as distributed_virtual_volume_name.

How can be usefull this two option? Can be more usefull to use volume wwn instead of volume_id (equal to volume_name) as a key search ?

WWN is the unique identifier and it is the only thing that is in common with hosts.

8 Posts

April 1st, 2022 10:00

Hi CubeSloth,

 

thanks for your post, I apologize for the late reply - one of our experts had the following to offer:

– I don’t think that the distributed virtual volume id is necessarily the same as the distributed virtual volume name.  By default, when created it is, but there is another call you can make to change the name later.  Again we would have to learn more about the use case but searching using the vpd_id/WWN seems like a very useful function as that information is propagated to the operating system on hosts and can be used to “link” resources from the VPLEX system to the host system.  Again, naming conventions could be used to mitigate this shortcoming a bit… but that is a fragile solution.

No Events found!

Top