Specifically, when using the gather_subset=all it seems to freak out when it doesn't see every single possible command available. The 8.3.x was looking for lsreplicationpolicy and 8.5.x is still looking for lssnapshotpolicy.
Using a version of Storage Virtualize that doesn't support all commands performed by ibm_svc_info, use that module with gather_subset=all
"---
- name: Gather facts from FlashSystem and store in inventory
hosts: localhost
gather_facts: false
become: false
vars_files:
- vars/authentication.yml
tasks:
- name: gather facts using ibm_svc_info
ibm.spectrum_virtualize.ibm_svc_info:
clustername: "{{ clustername }}"
gather_subset: all
token: "{{ api_token }}"
"
EXPECTED RESULTS
job failed with a statement that some command didn't exist. Given that gather_subset=all is the default and that most customers will not be using the absolute latest version of the code, it would make sense that such failures should be skipped over.
on Virtualize 8.5.0.9 (the highest level that our lab Storwize V7 G3 can handle), it is missing lssnapshotpolicy which only comes in 8.6.
'"TASK [gather facts using ibm_svc_info] *****
task path: /runner/project/flashsystem_gather_facts.yml:9
fatal: [localhost]: FAILED! => {"changed": false, "msg": {"code": 404, "data": null, "err": ["HTTPError %s", "HTTP Error 404: Not Found"], "out": "\"Command 'lssnapshotpolicy' does not exist\"", "url": [https://xx.xx.xx.xx:7443/rest/lssnapshotpolicy]"
_**TASK [gather facts using ibm_svc_info] ***
SUMMARY
Specifically, when using the gather_subset=all it seems to freak out when it doesn't see every single possible command available. The 8.3.x was looking for lsreplicationpolicy and 8.5.x is still looking for lssnapshotpolicy.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 9.2
STEPS TO REPRODUCE
Using a version of Storage Virtualize that doesn't support all commands performed by ibm_svc_info, use that module with gather_subset=all
EXPECTED RESULTS
job failed with a statement that some command didn't exist. Given that gather_subset=all is the default and that most customers will not be using the absolute latest version of the code, it would make sense that such failures should be skipped over.
on Virtualize 8.5.0.9 (the highest level that our lab Storwize V7 G3 can handle), it is missing lssnapshotpolicy which only comes in 8.6.
'"TASK [gather facts using ibm_svc_info] ***** task path: /runner/project/flashsystem_gather_facts.yml:9 fatal: [localhost]: FAILED! => {"changed": false, "msg": {"code": 404, "data": null, "err": ["HTTPError %s", "HTTP Error 404: Not Found"], "out": "\"Command 'lssnapshotpolicy' does not exist\"", "url": [https://xx.xx.xx.xx:7443/rest/lssnapshotpolicy]"
ACTUAL RESULTS"