Closed mainline-automation closed 12 months ago
Please try the use case on the new version of collection 2.1.0. In case you still face issue, feel free to re-open it. Closing it for now.
Found a bug in this. If you gather info and you have "false" under the "Thin" parameter, it will always be false. This is because it evaluates by comparing capacity vs. real capacity (which would determine thin), but then goes on to compare whether the volume is compressed. In my playbook, I used a CSV to make changes to the volume so that it would become a thick/generic volume. However, even with that transformation it was still compression_copy = 'no'. So, even after the volume had been changed to thick/generic it would give me the same error about not making changes to ['thin'].
I made a change in my pull request (primarily regarding using manage_volume to change from thin to thick and vice versa) to fix this bug. I removed that compression_copy comparison. I also changed the capacity comparison to looking at whether se_copy was set to "yes".
https://github.com/ansible-collections/ibm.storage_virtualize/pull/31
SUMMARY
After running a demonstration for one of our VPs about how csv files/gitops methodology could be used to maintain FlashSystem volumes with Ansible at our customers, he asked about the ibm_svc_manage_volume module and whether it could change volumes from Thick to Thin/Thin to Thick. When I tried, I found that it didn't react at all
ISSUE TYPE
COMPONENT NAME
ibm.storage_virtualize_ibm_svc_manage_volume
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Storwize V7000 (2076-724), 8.2.0.9
STEPS TO REPRODUCE
Create a thin provisioned volume with ibm.ibm_svc_manage.volume Run a new playbook against the same volume that changes the "thin" parameter to false
EXPECTED RESULTS
In an ideal world it would trigger a response to do a volume mirror to change from thin to thick (and the opposite if we started with a thick volume). Failing that, it would at least give a message about the thin parameter only being used in the creation of a volume.
ACTUAL RESULTS
It said that the volume already exists. It totally ignored the presence of the thin parameter and the value assigned to it