Closed cueball23 closed 4 months ago
@cueball23 Did you try passing
@Shilpi-J I wan't to get detailed information for all attached drives (e.g. their serial number and firmware information). From my understanding this is not possible with the "objectname" parameter for all the drives. Because we need one call per drive to the REST API. And if you have more than a hand full of drives and we do not slow down these requests we run into the rate limit of the REST API and get 429 http responses. Please see https://github.com/ansible-collections/ibm.spectrum_virtualize/pull/101 for one possible solution.
Here is a working example of task for displaying all the properties of 500 volumes that are present in the system.
//output :
PLAY RECAP *** localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ansible-playbook info_vol.yml -vvv 199.77s user 67.80s system 14% cpu 31:04.20 total
As you can see, While the playbook execution took around 200 seconds, individual tasks didn't cause any timeout. The 10-sec timeout is only for single REST API call. Also, please check with your server administrator about API throttling limits. It should be configurable.
I hope this resolves your query. Please let us know if there is anything else required, otherwise this issue will be closed by Tuesday 9th Jan 2024.
This can be worked upon in the ibm_svc_info module by adding "all" for any object.
@cueball23 , This feature will be available in June'24 release.
@cueball23 , This feature is now supported in latest release (version 2.4.1), thus closing the defect. Please install the latest collection to get the feature.
SUMMARY
Add detail information to Drives vial lsdrive detail api call.
ISSUE TYPE
COMPONENT NAME
ibm_svc_info.py
ADDITIONAL INFORMATION
Currently there is no way to get the Firmware Information for each drive.
Overview information for drives contains
detail call includes