TASK [openshift_libvirt_fwcfg : Retrieve ignition volume path] ****
fatal: [helper]: FAILED! => {"changed": false, "cmd": ["virsh", "vol-path", "--pool", "vmpool", "bootstrap.autoupi.example.com-ign"], "delta": "0:00:00.024246", "end": "2020-07-22 10:39:03.497073", "msg": "non-zero return code", "rc": 1, "start": "2020-07-22 10:39:03.472827", "stderr": "error: failed to get pool 'vmpool'\nerror: Storage pool not found: no storage pool with matching name 'vmpool'", "stderr_lines": ["error: failed to get pool 'vmpool'", "error: Storage pool not found: no storage pool with matching name 'vmpool'"], "stdout": "", "stdout_lines": []}
However, if i run the following on my helper-host, the command returns the path fine:
[root@helper-host openshift-auto-upi]# virsh -c qemu://r720-a.home.io/system
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # vol-path --pool vmpool bootstrap.autoupi.example.com-ign
/vmpool/bootstrap.autoupi.example.com-ign <------------------------------*note the path is returned correctly**
When i run the following:
ansible-playbook openshift_libvirt_fwcfg.yml
It fails at the following:
TASK [openshift_libvirt_fwcfg : Retrieve ignition volume path] **** fatal: [helper]: FAILED! => {"changed": false, "cmd": ["virsh", "vol-path", "--pool", "vmpool", "bootstrap.autoupi.example.com-ign"], "delta": "0:00:00.024246", "end": "2020-07-22 10:39:03.497073", "msg": "non-zero return code", "rc": 1, "start": "2020-07-22 10:39:03.472827", "stderr": "error: failed to get pool 'vmpool'\nerror: Storage pool not found: no storage pool with matching name 'vmpool'", "stderr_lines": ["error: failed to get pool 'vmpool'", "error: Storage pool not found: no storage pool with matching name 'vmpool'"], "stdout": "", "stdout_lines": []}
However, if i run the following on my helper-host, the command returns the path fine:
[root@helper-host openshift-auto-upi]# virsh -c qemu://r720-a.home.io/system Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands 'quit' to quit
virsh # vol-path --pool vmpool bootstrap.autoupi.example.com-ign /vmpool/bootstrap.autoupi.example.com-ign <------------------------------*note the path is returned correctly**
virsh # exit