Skip to content

Install community.crypto for connection_plugin integration test#725

Open
SirGitsalot wants to merge 24 commits into
masterfrom
SirGitsalot-install-community-crypto
Open

Install community.crypto for connection_plugin integration test#725
SirGitsalot wants to merge 24 commits into
masterfrom
SirGitsalot-install-community-crypto

Conversation

@SirGitsalot

Copy link
Copy Markdown
Collaborator

This fixes the integration test for me locally, which was complaining about the same error as the GitHub Actions:

ERROR! couldn't resolve module/action 'community.crypto.openssh_keypair'. This often indicates a misspelling, missing collection, or incorrect module path.

@SirGitsalot SirGitsalot requested a review from thekad October 31, 2025 00:29
@SirGitsalot

Copy link
Copy Markdown
Collaborator Author

Well, that got it past the error, now it fails with:

fatal: [localhost]: FAILED! => ***"changed": false, "msg": "Please install the google-auth library"***

Which of course is installed, I assume this has something to do with venvs and env vars getting reset when the runme.sh script is executed. I have enabled verbose logging on the action to debug it.

@thekad

thekad commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

There's no mention in the docs about how runme.sh is executed (i.e. fresh session vs inherited env) so I am curious what this will show

@thekad

thekad commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

I completely forgot about this one, #748 sort of clashes with this a little bit

Try out the --requirements flag to install packages
The docs says --venv-system-site-packages is not a real flag, and with --venv "requirements are automatically installed before tests are run"
See what happens installing google-auth manually
Try it without any venv
See what pip has to say about google-auth-oauthlib
Figure if there's a particular auth import it doesn't like
Remove debugging code
Try `ansible-galaxy collection install google.cloud`
More debugging
Create the network before the keypair
Don't install the community.crypto collection
Try without community.crypto at all
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants