Problems with procedure in blog post...

rgolan asked me to post this here for him. I'm trying the procedure from this blog post: https://ovirt.org/blog/2019/01/ovirt-openshift-part-1.html Ultimate goal is to install ovirt metrics store. I've tried vars.yaml with and without the ovirt metrics stuff commented out. The errors seem to revolve around downloading the centos qcow2c image. With image_path: "{{ lookup('env', 'HOME') }}/Downloads/{{ template_name }}.qcow2" defined, I get the following error: fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'isdir'\n\nThe error appears to have been in '/usr/share/ansible/roles/ovirt.image-template/tasks/qcow2_image.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Download the qcow image\n ^ here\n"} If I comment out the above image_path line and uncomment the one at the bottom of vars.yaml that specifies /var/tmp, I get this error: fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/file /var/tmp/CentOS-7-x86_64-GenericCloud.qcow2c", "msg": "[Errno 2] No such file or directory", "rc": 2} --Jason

On Thu, Jan 17, 2019, 6:40 PM Jason P. Thomas <jthomasp@gmualumni.org wrote:
rgolan asked me to post this here for him.
I'm trying the procedure from this blog post: https://ovirt.org/blog/2019/01/ovirt-openshift-part-1.html
Ultimate goal is to install ovirt metrics store. I've tried vars.yaml with and without the ovirt metrics stuff commented out.
The errors seem to revolve around downloading the centos qcow2c image. With image_path: "{{ lookup('env', 'HOME') }}/Downloads/{{ template_name }}.qcow2" defined, I get the following error: fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'isdir'\n\nThe error appears to have been in '/usr/share/ansible/roles/ovirt.image-template/tasks/qcow2_image.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Download the qcow image\n ^ here\n"}
If I comment out the above image_path line and uncomment the one at the bottom of vars.yaml that specifies /var/tmp, I get this error:
Can you try just /tmp ?
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/file /var/tmp/CentOS-7-x86_64-GenericCloud.qcow2c", "msg": "[Errno 2] No such file or directory", "rc": 2}
--Jason _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/E4XGZ47K2Q7MI2...

I can confirm that /tmp directory is also not working. seems like the file is not created.. I manually downloaded the file and place it there, but even then the script gave the same error.. I created an empty template called Centos7, just to see if the image can be uploaded, but the Template should be created by the script.. so it did not work neither..

I did try /tmp and got the same error as with /var/tmp. I too downloaded the image to the location specified in vars.yaml and still received the same error. I'm a little docker stupid, is the image downloading inside the docker or inside the host OS? On 1/18/19 6:03 AM, senol@nucleuss.com wrote:
I can confirm that /tmp directory is also not working. seems like the file is not created.. I manually downloaded the file and place it there, but even then the script gave the same error.. I created an empty template called Centos7, just to see if the image can be uploaded, but the Template should be created by the script.. so it did not work neither.. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://secure-web.cisco.com/1yLKQtxsdnpvDSleewVRX0INFvKXi_chSMPEYviKV7U_RqW... oVirt Code of Conduct: https://secure-web.cisco.com/17Dct0QZchqNan_8XMHQJHzYAhrW1wVtP5_C896wqWHCK06... List Archives: https://secure-web.cisco.com/1qe4ZLpDinfGMCnzKTFsUZrT4fTLgxm8_2XTmDkg802Gh0g...

On Fri, 18 Jan 2019 at 16:24, Jason P. Thomas <jthomasp@gmualumni.org> wrote:
I did try /tmp and got the same error as with /var/tmp. I too downloaded the image to the location specified in vars.yaml and still received the same error. I'm a little docker stupid, is the image downloading inside the docker or inside the host OS?
I believe the issue was fixed as reported by a user on IRC. The error that was hiding there was that the '/usr/bin/file' was actually missing and that fails a task of the oVirt.image-template and this dependency is now added to ovirt-openshift-installer container. Let me know if this works for you. On 1/18/19 6:03 AM, senol@nucleuss.com wrote:
I can confirm that /tmp directory is also not working. seems like the file is not created.. I manually downloaded the file and place it there, but even then the script gave the same error.. I created an empty template called Centos7, just to see if the image can be uploaded, but the Template should be created by the script.. so it did not work neither.. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://secure-web.cisco.com/1yLKQtxsdnpvDSleewVRX0INFvKXi_chSMPEYviKV7U_RqW... oVirt Code of Conduct: https://secure-web.cisco.com/17Dct0QZchqNan_8XMHQJHzYAhrW1wVtP5_C896wqWHCK06... List Archives: https://secure-web.cisco.com/1qe4ZLpDinfGMCnzKTFsUZrT4fTLgxm8_2XTmDkg802Gh0g...
Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ITHRO3XAKREQAD...
participants (3)
-
Jason P. Thomas
-
Roy Golan
-
senol@nucleuss.com