ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

ec2_vol: Commit 6b27cdc break some use case #1362

Closed patlachance closed 8 years ago

patlachance commented 9 years ago

Commit 6b27cdc08eba5f2ff817b4e0470dd4b6034012c7 changed the volume creation logic to "find and name" volume at creation time but it breaks some use cases when name is not specified and more than one volumes are present with no name tag.

bennojoy commented 9 years ago

@patlachance can you please attach the task that works before the commit and fails after the commit, from the code it seems like even before the commit if a name is not specified and multiples volumes exists in the AZ it would still fail

patlachance commented 9 years ago

@bennojoy : please find below the code that was working before and is broken by commit 6b27cdc. Note that I also proposed a fix this morning.

Failure arise when there are more than one volume without a name tag present in EBS

wimnat commented 8 years ago

@patlachance i have experienced the issue you reported but I'm not sure how your proposed fix resolves the issue.

I have a PR which has fixes including this one here https://github.com/ansible/ansible-modules-core/pull/2180

Could you test and let me know if it works for you?