-
Notifications
You must be signed in to change notification settings - Fork 45
$HOME and ~ point to different locations #19
Comments
Yep, I can confirm that and to be it looks like a read bug caused by base ansible-runner base image, where
I am going to ask ansible-runner folks about this... |
Ah I see someone's already hit this: ansible/ansible-runner#1024 - yeah, this problem totally breaks |
We really need to find a fix for this ASAP. Thanks for raising ansible/ansible-runner#1027 (review) |
Just hit this today: TASK [Wait for instance(s) creation to complete] ******************************* Not sure if there's a workaround? |
Any news about this bug? I fixed it with a custom entrypoint described here: https://github.com/ansible/ansible-runner/pull/1027/files#diff-4d820c4986f8adb686a55c9ce8318cc2f6658479815a40c4ac7e9af28f7aed95 But I would like to remove the workaround and go back to the official image. |
We are still waiting for the official source images to be updated and it might take some more time. AFAIK the build process is completely changed and once done we should also get other problems sorted, like the lack of an arm64 image. |
Since yesterday, this is fixed as we no longer use ansible-builder. |
b5509a1 uses $USER to get the home for the current user, but if the controller does not run login(1), like in containers, the variable is not set. Since the original bug that needed ansible_async_dir was fixed (see ansible-community/molecule-podman PR ansible-community#139 and ansible/creator-ee#19), remove all the related changes. - src/molecule_plugins/podman/playbooks: remove ansible_async_dir tasks from create.yml and destroy.yml - tox.ini: remove USER from the pass_env list
podman: remove ansible_async_dir from create.yml and destroy.yml b5509a1 uses $USER to get the home for the current user, but if the controller does not run login(1), like in containers, the variable is not set. Since the original bug that needed ansible_async_dir was fixed (see ansible-community/molecule-podman PR #139 and ansible/creator-ee#19), remove all the related changes. - src/molecule_plugins/podman/playbooks: remove ansible_async_dir tasks from create.yml and destroy.yml - tox.ini: remove USER from the pass_env list
By running
bash
in the container, you can get to this session:This discrepancy makes makes that i.e.
~/.ssh
and$HOME/.ssh
are different. As that folder is so important for Ansible, you can imagine the problems this supposes.FTR
ssh
seems to seek into~root
, not into~
:ssh $args -vv [...] debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Trying private key: /root/.ssh/id_ecdsa debug1: Trying private key: /root/.ssh/id_ed25519 debug1: Trying private key: /root/.ssh/id_xmss debug2: we did not send a packet, disable method debug1: Next authentication method: password [...]
Workaround: run container with
-e HOME=/root
.@moduon MT-136
The text was updated successfully, but these errors were encountered: