-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community.aws.route53 state:get - return value differs between 2.10.7 and 2.10.6 #523
Comments
Files identified in the description: If these files are inaccurate, please update the |
!component =plugins/modules/route53.py |
Files identified in the description:
If these files are inaccurate, please update the |
Apologies for the breakage here. The module was recently updated to use the boto3 library instead of the boto (v2) library. This is likely a side effect of Amazon changing the way they formatted the results between the two libraries. I would strongly recommend using the route53_info module rather than 'get' on the route53 module. In general 'get', 'list', etc actions for normal (not _info) modules should be considered deprecated. While it's not been formally deprecated with the route53 module, it's just a matter of time. |
Thanks for the quick reply.
Yep, I considered that too, but it requires an extra call to (Also confirmed the old functionality still works in 2.10.6) |
It's not caused by that: the old format was explicitly formatted by the module, see the removed code here: 08d0b9c#diff-39a0039c8f787ef918e13c9e34de717b42890a4baada9448cd80a76242bffee4L468 |
|
@tamirhad That looks like it would be a different issue, please raise a separate issue rather than tagging onto this one. |
I'm wondering on that's the best solution for this. Reverting to the old format will break some users which started using the new format, and not reverting is breaking other users who were using the old format. (This isn't just about |
#528 should land soon. It's going to return both the 'old' and 'new' formats. We can look at removing the old return values with something like 3.0.0 |
Sounds great - thanks. |
@tremble how about removing state=get in 3.0.0 completely? :) |
+ Previous method of getting route53 records (using route53 module with state=get), has an issue in Ansible 2.10.7 where the return values have changed due to boto3 migration (ansible-collections/community.aws#523). + In any case, state=get on the route53 module is not likely to remain supported indefinitely. + Using the route53_info module also has some issues with ignoring type and max_items (ansible-collections/community.aws#529), so these are worked around in this fix by post-filtering the output.
+ Previous method of getting route53 records (using route53 module with state=get), has an issue in Ansible 2.10.7 where the return values have changed due to boto3 migration (ansible-collections/community.aws#523). + In any case, state=get on the route53 module is not likely to remain supported indefinitely. + Using the route53_info module also has some issues with ignoring type and max_items (ansible-collections/community.aws#529), so these are worked around in this fix by post-filtering the output. + Do not call route53_info asynchronously, as it makes too many concurrent requests and blows the AWS Route53 API limit.
+ Previous method of getting route53 records (using route53 module with state=get), has an issue in Ansible 2.10.7 where the return values have changed due to boto3 migration (ansible-collections/community.aws#523). + In any case, state=get on the route53 module is not likely to remain supported indefinitely. + Using the route53_info module also has some issues with ignoring type and max_items (ansible-collections/community.aws#529), so these are worked around in this fix by post-filtering the output. + Do not call route53_info asynchronously, as it makes too many concurrent requests and blows the AWS Route53 API limit.
At the moment using |
+ Previous method of getting route53 records (using route53 module with state=get), has an issue in Ansible 2.10.7 where the return values have changed due to boto3 migration (ansible-collections/community.aws#523). + In any case, state=get on the route53 module is not likely to remain supported indefinitely. + Using the route53_info module also has some issues with ignoring type and max_items (ansible-collections/community.aws#529), so these are worked around in this fix by post-filtering the output. + Do not call route53_info asynchronously, as it makes too many concurrent requests and blows the AWS Route53 API limit.
…delete (#92) * Use route53_info to get record sets for delete + Previous method of getting route53 records (using route53 module with state=get), has an issue in Ansible 2.10.7 where the return values have changed due to boto3 migration (ansible-collections/community.aws#523). + In any case, state=get on the route53 module is not likely to remain supported indefinitely. + Using the route53_info module also has some issues with ignoring type and max_items (ansible-collections/community.aws#529), so these are worked around in this fix by post-filtering the output. + Do not call route53_info asynchronously, as it makes too many concurrent requests and blows the AWS Route53 API limit. * Fix for private zone * Fix non-private DNS. Add testsuite support for scaling up/down * Break dependence upon 2.9.6 <= Ansible <= 2.10.6. Route53 deletion enhancement. * Remove '--format json' from 'ansible-galaxy collection list' assertion, as 'format option' is not present in ansible-galaxy 2.10.x
…#523) IGW use module_util functions for tag management SUMMARY Internet Gateway use module_util functions for tag management Cleaning ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_vpc_igw Reviewed-by: Mark Chappell <None> Reviewed-by: None <None>
SUMMARY
With Ansible 2.10.7, the return value (within the
set
parameter) from the community.aws.route53 module run withstate: get
does not correspond to expected values defined in documentation. Works as documented in Ansible 2.9.7.ISSUE TYPE
COMPONENT NAME
community.aws.route53
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: