Open
Description
ISSUE TYPE
- Bug Report
SUMMARY
Up to 24.3.2
I was able to mount a volume /home/user/.config:/root/.config
. But starting from 24.6.0
the same config causes the mount to end up in /var/roothome
, which breaks any apps that expect $HOME/.config
(since $HOME
still points to /root
).
I have a faint feeling this has something to do with issue #1859.
ANSIBLE-NAVIGATOR VERSION
$ ansible-navigator --version
ansible-navigator 24.6.0
CONFIGURATION
ansible-navigator:
logging:
level: critical
mode: stdout
playbook-artifact:
enable: false
execution-environment:
environment-variables:
pass:
# Bitwarden CLI session variable
- BW_SESSION
volume-mounts:
# this way I can authenticate outside the container
- src: "/home/user/.config/Bitwarden\ CLI"
dest: "/root/.config/Bitwarden\ CLI"
options: "Z"
LOG FILE
Before (24.3.2
):
DEBUG 'ansible_navigator.main' Completed post processing for execution_environment_volume_mounts. (changed=True)
DEBUG 'ansible_navigator.main' before: '[{'src': '/home/user/.config/Bitwarden CLI', 'dest': '/root/.config/Bitwarden CLI', 'options': 'Z'}]'
DEBUG 'ansible_navigator.main' after: '['/home/user/.config/Bitwarden CLI:/root/.config/Bitwarden CLI:Z']'
After (24.6.0
):
NOTE: this is Bazzite, based on Fedora Universal Blue, so even the local home path is being interpreted diferently, as you can see in the debug.
DEBUG 'ansible_navigator.main' Completed post processing for execution_environment_volume_mounts. (changed=True)
DEBUG 'ansible_navigator.main' before: '[{'src': '/home/user/.config/Bitwarden CLI', 'dest': '/root/.config/Bitwarden CLI', 'options': 'Z'}]'
DEBUG 'ansible_navigator.main' after: '['/var/home/user/.config/Bitwarden CLI:/var/roothome/.config/Bitwarden CLI:Z']'
STEPS TO REPRODUCE
$ pip install ansible-navigator==24.6.0
$ ansible-navigator exec
bash-5.2# echo $HOME
/root
bash-5.2# ls -la /root/.config
ls: cannot access '/root/.config': No such file or directory
bash-5.2# ls -l /var/roothome/.config
total 0
drwx------. 1 root root 18 Jun 1 00:36 'Bitwarden CLI'
EXPECTED RESULTS
$ pip install ansible-navigator==24.3.2
$ ansible-navigator exec
bash-5.2# echo $HOME
/root
bash-5.2# ls -l /root/.config
total 0
drwx------. 1 root root 18 Jun 1 00:36 'Bitwarden CLI'
ACTUAL RESULTS
$ pip install ansible-navigator==24.6.0
$ ansible-navigator exec
bash-5.2# echo $HOME
/root
bash-5.2# ls -la /root/.config
ls: cannot access '/root/.config': No such file or directory
bash-5.2# ls -l /var/roothome/.config
total 0
drwx------. 1 root root 18 Jun 1 00:36 'Bitwarden CLI'
ADDITIONAL INFORMATION
Metadata
Metadata
Assignees
Type
Projects
Status
No status