Skip to content
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

podman containers break on Get passwd entries for USER env #181

Closed
lod opened this issue Aug 4, 2023 · 5 comments · Fixed by #182
Closed

podman containers break on Get passwd entries for USER env #181

lod opened this issue Aug 4, 2023 · 5 comments · Fixed by #182

Comments

@lod
Copy link

lod commented Aug 4, 2023

Release v23.5.0 includes the commit b5509a1

This causes the following error

Molecule default > destroy 00:01
PLAY [Destroy] *****************************************************************
TASK [Get passwd entries for USER env] *****************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "One or more supplied key could not be found in the database."}

I believe the root of this is that the USER variable is not set.

@lod
Copy link
Author

lod commented Aug 4, 2023

It looks like all the github tests are run using tox, and the USER variable was specifically added to the tox config in this commit so that those tests passed.

@grcancelliere
Copy link
Contributor

@lod can you describe your environment? I'll change that part to get the user home even if $USER is not set

@grcancelliere
Copy link
Contributor

grcancelliere commented Aug 4, 2023

@lod I'm sorry for breaking your workflow, the PR I'm currently writing uses whoami instead of $USER, is it available in your environment?

@lod
Copy link
Author

lod commented Aug 16, 2023

Thanks for looking at this @grcancelliere, Sorry I didn't respond promptly

whoami will work fantastically

My environment is a gitlab runner executing a basic Debian container.

# env
HOSTNAME=a8d732721bfc
PWD=/
container=podman
HOME=/root
TERM=xterm
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env

@ng-bsy
Copy link

ng-bsy commented Jan 15, 2024

@zhan9san When will the fix for this be released?
https://github.com/ansible/creator-ee is using molecule-plugins 23.5.0 since v0.20.0 and causing molecule tests to fail

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 a pull request may close this issue.

3 participants