dell / ansible-powermax

Ansible Modules for Dell PowerMax
GNU General Public License v3.0
36 stars 37 forks source link

[QUESTION]: how to get details (IG/SG/PG) about specific MV? #42

Closed 212850a closed 5 months ago

212850a commented 5 months ago

We are trying to get details about specific masking view - what initiator group, storage group and port group it contains, but looks like such functionality is not available in current version of ansible-powermax. Isn't it?

We can get MV based on initiator group name (with a help of host_or_host_group_name filter), but how to know what storage group (SG) and port group (PG) is part of the same MV?

212850a commented 5 months ago

Just found the answer by myself - if dellemc.powermax.maskingview module is used without portgroup_name, hostgroup_name, sg_name values and has state: "present" it just returns details about what components (IG/SG/PG) masking view contains:

- name: Show MV details
  dellemc.powermax.maskingview:
    unispherehost: "{{unispherehost}}"
    universion: "{{universion}}"
    verifycert: "{{verifycert}}"
    user: "{{user}}"
    password: "{{password}}"
    serial_no: "{{serial_no}}"
    mv_name: "{{mv_name}}"
    state: "present"
  register: info

- name: show masking view details
  debug:
    msg: "{{ info }}"
rawstorage commented 5 months ago

Glad you're sorted, apologies was on vacation so delayed response from me.