Attempting to create multiple volumes with the purefa_volume module fails when no suffix parameter is provided, even though this is an optional field.
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\nTraceback (most recent call last):\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 107, in \n _ansiballz_main()\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_volume', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_volume', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 1726, in \n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 1664, in main\n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 461, in get_multi_volumes\nTypeError: can only concatenate str (not \"NoneType\") to str\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Attempting to create multiple volumes with the
purefa_volume
module fails when nosuffix
parameter is provided, even though this is an optional field.fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/d3502189-879/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'purex50-01-mgt-vip.systems.uk.hsbc'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\nTraceback (most recent call last):\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 107, in\n _ansiballz_main()\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/d3502189-879/.ansible/tmp/ansible-tmp-1692619157.0357642-313176-104229176294709/AnsiballZ_purefa_volume.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_volume', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_volume', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 1726, in \n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 1664, in main\n File \"/tmp/ansible_purestorage.flasharray.purefa_volume_payload_3ud8tovx/ansible_purestorage.flasharray.purefa_volume_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_volume.py\", line 461, in get_multi_volumes\nTypeError: can only concatenate str (not \"NoneType\") to str\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}