{"action":"created","issue":{"url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/35","repository_url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb","labels_url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/35/comments","events_url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/35/events","html_url":"https://github.com/ansibleplaybookbundle/import-vm-apb/issues/35","id":331118019,"node_id":"MDU6SXNzdWUzMzExMTgwMTk=","number":35,"title":"fatal error in importing image via url","user":{"login":"vatsalparekh","id":6758282,"node_id":"MDQ6VXNlcjY3NTgyODI=","avatar_url":"https://avatars3.githubusercontent.com/u/6758282?v=4","gravatar_id":"","url":"https://api.github.com/users/vatsalparekh","html_url":"https://github.com/vatsalparekh","followers_url":"https://api.github.com/users/vatsalparekh/followers","following_url":"https://api.github.com/users/vatsalparekh/following{/other_user}","gists_url":"https://api.github.com/users/vatsalparekh/gists{/gist_id}","starred_url":"https://api.github.com/users/vatsalparekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatsalparekh/subscriptions","organizations_url":"https://api.github.com/users/vatsalparekh/orgs","repos_url":"https://api.github.com/users/vatsalparekh/repos","events_url":"https://api.github.com/users/vatsalparekh/events{/privacy}","received_events_url":"https://api.github.com/users/vatsalparekh/received_events","type":"User","site_admin":false},"labels":[{"id":884058802,"node_id":"MDU6TGFiZWw4ODQwNTg4MDI=","url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-11T09:48:09Z","updated_at":"2018-06-12T17:42:40Z","closed_at":"2018-06-12T17:42:40Z","author_association":"COLLABORATOR","body":"Seeing the below log for importing vm image via url\r\n```\r\n [WARNING]: Found variable using reserved name: action\r\n\r\nPLAY [Playbook to import the virtual machine disk] *****************************\r\n\r\nTASK [ansible.kubernetes-modules : Install latest openshift client] ************\r\nskipping: [localhost]\r\n\r\nTASK [ansibleplaybookbundle.asb-modules : debug] *******************************\r\nskipping: [localhost]\r\n\r\nTASK [import-from-url : include] ***********************************************\r\nincluded: /opt/ansible/roles/import-from-url/tasks/provision.yml for localhost\r\n\r\nTASK [import-from-url : Change project to default] *****************************\r\nchanged: [localhost]\r\n\r\nTASK [import-from-url : Get content metadata] **********************************\r\nok: [localhost]\r\n\r\nTASK [import-from-url : Calculate PVC size] ************************************\r\nskipping: [localhost]\r\n\r\nTASK [import-from-url : Calculate PVC size] ************************************\r\nok: [localhost]\r\n\r\nTASK [import-from-url : Build PVC] *********************************************\r\nchanged: [localhost]\r\n\r\nTASK [import-from-url : Debug generated pvc] ***********************************\r\nchanged: [localhost]\r\n\r\nTASK [import-from-url : Show generated pvc] ************************************\r\nok: [localhost] => {\r\n    \"msg\": \"apiVersion: v1\\nkind: PersistentVolumeClaim\\nmetadata:\\n  name: \\\"cirros-demo-disk-01\\\"\\n  annotations:\\n    kubevirt.io/storage.import.endpoint: \\\"https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-i386-disk.img\\\"\\nspec:\\n  storageClassName: kubevirt\\n  accessModes:\\n  - ReadWriteOnce\\n  resources:\\n    requests:\\n      storage: \\\"1116691496\\\"\"\r\n}\r\n\r\nTASK [import-from-url : Provision PVC] *****************************************\r\nchanged: [localhost]\r\n\r\nTASK [import-from-url : Set pvc_name] ******************************************\r\nok: [localhost]\r\n\r\nTASK [import-from-url : Set disk_bus] ******************************************\r\nok: [localhost]\r\n\r\nTASK [import-from-url : Set disk_size_bytes] ***********************************\r\nok: [localhost]\r\n\r\nTASK [import-from-url : Build VM resources] ************************************\r\nchanged: [localhost]\r\n\r\nTASK [import-from-url : Provision VM resources] ********************************\r\nfatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": [\"oc\", \"create\", \"-f\", \"/tmp/vm-resources.yml\"], \"delta\": \"0:00:00.438359\", \"end\": \"2018-06-11 09:45:50.614037\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2018-06-11 09:45:50.175678\", \"stderr\": \"Error from server (Forbidden): error when creating \\\"/tmp/vm-resources.yml\\\": offlinevirtualmachines.kubevirt.io is forbidden: User \\\"system:serviceaccount:dh-import-vm-apb-prov-xd64x:apb-d27f4009-f265-4797-b2a5-0d45e155dc27\\\" cannot create offlinevirtualmachines.kubevirt.io in the namespace \\\"default\\\": User \\\"system:serviceaccount:dh-import-vm-apb-prov-xd64x:apb-d27f4009-f265-4797-b2a5-0d45e155dc27\\\" cannot create offlinevirtualmachines.kubevirt.io in project \\\"default\\\"\", \"stderr_lines\": [\"Error from server (Forbidden): error when creating \\\"/tmp/vm-resources.yml\\\": offlinevirtualmachines.kubevirt.io is forbidden: User \\\"system:serviceaccount:dh-import-vm-apb-prov-xd64x:apb-d27f4009-f265-4797-b2a5-0d45e155dc27\\\" cannot create offlinevirtualmachines.kubevirt.io in the namespace \\\"default\\\": User \\\"system:serviceaccount:dh-import-vm-apb-prov-xd64x:apb-d27f4009-f265-4797-b2a5-0d45e155dc27\\\" cannot create offlinevirtualmachines.kubevirt.io in project \\\"default\\\"\"], \"stdout\": \"\", \"stdout_lines\": []}\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=12   changed=5    unreachable=0    failed=1   \r\n```"},"comment":{"url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/comments/396674630","html_url":"https://github.com/ansibleplaybookbundle/import-vm-apb/issues/35#issuecomment-396674630","issue_url":"https://api.github.com/repos/ansibleplaybookbundle/import-vm-apb/issues/35","id":396674630,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjY3NDYzMA==","user":{"login":"vatsalparekh","id":6758282,"node_id":"MDQ6VXNlcjY3NTgyODI=","avatar_url":"https://avatars3.githubusercontent.com/u/6758282?v=4","gravatar_id":"","url":"https://api.github.com/users/vatsalparekh","html_url":"https://github.com/vatsalparekh","followers_url":"https://api.github.com/users/vatsalparekh/followers","following_url":"https://api.github.com/users/vatsalparekh/following{/other_user}","gists_url":"https://api.github.com/users/vatsalparekh/gists{/gist_id}","starred_url":"https://api.github.com/users/vatsalparekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatsalparekh/subscriptions","organizations_url":"https://api.github.com/users/vatsalparekh/orgs","repos_url":"https://api.github.com/users/vatsalparekh/repos","events_url":"https://api.github.com/users/vatsalparekh/events{/privacy}","received_events_url":"https://api.github.com/users/vatsalparekh/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T17:42:40Z","updated_at":"2018-06-12T17:42:40Z","author_association":"COLLABORATOR","body":"@aglitke this seems to be working now"}}
{"actor":{"display_login":"vatsalparekh"}}