Start a Conversation

Unsolved

C

3 Posts

774

March 22nd, 2022 03:00

Ansible vplex get storage view of a given wwn initiator

Hello all, as per subject statement I need to get a storage view of a given host initiator.

As far I can see I could search an initiator name using a port_wwn. With that information I can retrieve the list of storage view and look in the details of each one in order to find a match between port_wwn name and wwn details.

Am I missing something?

This approache took too much time (this should be only the start of our provisioning playbook) and I wondering if there is any faster solution. Any ideas?

Consider that the gather_fact on those vplex took more than 4 minutes in order to retrieve storage-view list

8 Posts

April 1st, 2022 10:00

BPM – Unfortunately, there is no other way to retrieve that relationship.  There isn’t a simple call from either direction, either on the initiator or on all storage views, to get this information.  I looked at the REST API and there isn’t anything there either so far as I could see.  Retrieving all storage views and then checking each one for initiator membership will be very slow as the poster mentions when the count of storage views gets large.  I would be curious what the rest of the use case is though.  By using some standard naming practices for resources one may be able to infer the storage view for a given initiator.  But as soon as someone manually creates a non-standard entity or changes the naming on an existing one slightly the connection breaks down.

No Events found!

Top