Unsolved
1 Rookie
•
4 Posts
0
15
September 9th, 2025 07:51
dellemc.powermax 4.0.0 with PyU4V 9.2.1.7 - we can't create MV
We've got a problem related to the fact that we use dellemc.powermax 4.0.0 with PyU4V 9.2.1.7 in our environment.
We can't create masking view - we always get error create_masking_view_existing_component() got unexpected keyword argument 'starting_lun_address'.
I believe it's due to create_masking_view_existing_component() function in PyU4V 9.2.1.7 does not have that 'starting_lun_address' argument.
https://github.com/dell/ansible-powermax/issues/82 submitted for that.
No Events found!
rawstorage
3 Apprentice
•
420 Posts
0
October 1st, 2025 11:53
The starting_lun_adddress parameter was only added to the API in version 10.1 of the API this is documented in the change log and I called this out in blog post here.
https://infohub.delltechnologies.com/en-us/p/resting-on-our-laurels-what-s-new-with-the-powermax-api-and-unisphere-10-1/#:~:text=The%20provisioning%20API%20calls%20include,LUN%20Address%20when%20adding%20volumes.%20.
If this was in the API we could easily patch 9.2 version of PyU4V however the base API calls don't support it.
Best thing to do in this case is if you are using older version of PyU4V is to avoid passing this parameter. If you are mixing execution environments but need want to use this parameter where supported you could make it optional e.g.
- name: Get PyU4V version
shell: "python3 -c 'import PyU4V; print(PyU4V.__version__)'"
register: pyu4v_version_result
changed_when: false
failed_when: pyu4v_version_result.rc != 0
- name: Set PyU4V version fact
set_fact:
pyu4v_version: "{{ pyu4v_version_result.stdout }}"
- name: Create MV with hostgroup (conditionally include starting_lun_address)
dellemc.powermax.maskingview:
unispherehost: "{{unispherehost}}"
verifycert: "{{verifycert}}"
user: "{{user}}"
password: "{{password}}"
serial_no: "{{serial_no}}"
mv_name: "{{mv_name}}"
portgroup_name: "Ansible_Testing_portgroup"
hostgroup_name: "Ansible_Testing_hostgroup"
sg_name: "Ansible_Testing_SG"
starting_lun_address: "{{ '7B' if pyu '>') else omit }}"
state: "present"