Pure-Storage-Ansible / FlashArray-Collection

Ansible Collection for Pure Storage FlashArray
GNU General Public License v3.0
19 stars 24 forks source link

Fixed issue of unable to move volume from pod to vgroup #636

Closed skeerthivasan closed 2 months ago

skeerthivasan commented 2 months ago
SUMMARY

Unable to move volume from pod to vgroup. Fixed by adding required condition to avoid checking vgroup as pod.

ISSUE TYPE
COMPONENT NAME

purefa_volume.py

skeerthivasan commented 2 months ago

In this module's context a vgroup is a volume group. You are concerned about a protection group, which is never checked in this module. You will need to add in a call to check if the volume is in a protection group.

@sdodsley , As discussed, this PR is for different issue, its not the same one we discussed over slack. In this scenario, when we try to move volume from pod to vgroup, it couldnt do it. Because its assuming the target location as pod instead of vgroup. By adding the correct condition, its helps to avoid the issue and worked as expected. It has been tested.