-
Notifications
You must be signed in to change notification settings - Fork 104
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 volume mount of single files are replaced by a directory mount rather than inserted correctly #1753
Comments
This looks like a valid bug. A PR would be welcomed here. |
I looked into this a bit closer. It seems that this is a bug in to fix the following bug: As far as I can tell the bug has nothing to do with why we should only allow directory mounts rather than file mounts, too. @cidrblock Would you happen to remember why it was necessary to disallow file mounts to fix the mentioned issue? |
Any resolution to this issue? Or is the outcome simply that file mounts should not be be used (based on the PR in ansible-runner it sure looks that way)? Thanks! |
I don't think the intent of that fix was to explicitely disallow file mount but instead to normalize the directory names in a manner they could be deduplicated. The missing ability to mount just a file is just an oversight as I think it's less commonly done. I don't see a reason why individual file mounts would be an issue, although the runner code would need to be updated with an escape hatch to bypass the directory logic and let the file mount striaght through. Good catch all. The best path forward I think would be for an issue to be opened in the runner repo, linked back to this and a PR if anyone has time. |
ISSUE TYPE
SUMMARY
Ansible navigator breaks volume mounts if you try to mount a single file rather than a directory. Specifying the following mount
leads to the following podman mount CLI option:
ANSIBLE-NAVIGATOR VERSION
CONFIGURATION
LOG FILE
The relevant part of the debug log file has been mentioned above. The mount on the podman command doesn't look as specified:
this leads to the following errors from
ansible-playbook
:STEPS TO REPRODUCE
Specify a file mount rather than a directory mount as mentioned above.
EXPECTED RESULTS
The podman option that should be used is as follows:
ACTUAL RESULTS
Only a directory mount is inserted in the
podman
commandThe text was updated successfully, but these errors were encountered: