Closed bengland2 closed 4 years ago
You are pointing to a file on your localhost which is not mounted inside the container.
You can run podman linking the file to a volume like:
podman run -it --rm -v /home/bengland/openshift/upi/masters.list:/masters.list quads/badfish --host-list /masters.list -u {USER} -p {PASS} -i config/idrac_interfaces.yml --check-boot
Reopening this to display a more appropriate error message on non existing file.
Thanks @grafuls
another option is to just pass a list of hostnames (separated by commas for example) in the CLI using the -H option, then you don't have to worry about whether the file exists or not. I should have thought of the reason for file not found though. Maybe you could document the use of -v option when passing --host-list?
This can be closed, I use --host-list all the time now, I've updated ocp4_upi_baremetal documentation to get rid of unnecessary scripting on top of badfish and just use this feature instead!
Your System Details
Lenovo ThinkPad T470 [bengland@localhost upi]$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/quads/badfish latest 6c3ff7c5d8f3 12 days ago 142 MB
Python Version: whatever the container image is using
Operating System: Fedora 31
Target System Type: (e.g. Dell, SuperMicro)
IPMI / Out-of-band Firmware Version: (_e.g. iDRAC 8 2.60.60.60)
Describe the bug --host-list parameter does not work, always gets this:
However, if I drop --host-list masters.list and substitute a -H hostname, it works.
If this is not the correct format for the list, what is? Documentation doesn't say.
Expected Behavior It should perform the requested action for each host in the input host list, or say why it couldn't.
I can workaround by doing 1 host at a time, but would be nice to have this feature.