-
Notifications
You must be signed in to change notification settings - Fork 334
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
azure_rm_resourcegroup_info fails with segfault #1784
Comments
@mila-rodriguez-netapp I have tested in my local machine. However, the resource group information can be successfully returned. Can you provide more information to help solve this problem? Thank you! |
What more information do you need? I see the same behavior whether I'm running the docker container locally in my WSL2-hosted docker desktop instance, or in my Rancher-hosted CI. |
@mila-rodriguez-netapp Ok, thank you very much for your feedback. In addition, I see that you specified I(auth_source=env), could you please provide the information displayed by 'export', thank you! |
@mila-rodriguez-netapp Can you get the resource group information in another way (for example, az group list --query "[?name=='RG_name']")? From your error, it appears that the error occurred when serializing the return value. Thank you! |
My ansible playbooks are currently all using raw AWS CLI queries. My assignment is to look into the possibility of transitioning to using the azure collections so that we can stop using Right now, we're currently doing the existence check like this:
This is the original query which I'm trying to convert with the task that is now failing.
The values in the AZURE_* env vars are for a service principal -- not sure if that makes a difference. In the CLI-based workflows I do a |
@mila-rodriguez-netapp Could you please provide some information about |
For a non-existent group:
For an existent group:
|
SUMMARY
Simple
azure_rm_resourcegroup_info
task to identify if a resource group exists fails with a segfault.ISSUE TYPE
COMPONENT NAME
azure_rm_resourcegroup_info
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
python:3.13.1-alpine3.21
Dockerfile:
STEPS TO REPRODUCE
This task is intended to check for the existence of a resource group:
EXPECTED RESULTS
Expect a response with either information about the RG if it exists, or empty-ish if it doesn't. In either case it should resolve a response successfully.
ACTUAL RESULTS
Segfault, fatal error.
(Not sure where, if anywhere,
See stdout/stderr for the exact error
might be captured.)The text was updated successfully, but these errors were encountered: