{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/19801","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/19801/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/19801/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/19801/events","html_url":"https://github.com/ansible/ansible/issues/19801","id":198470955,"number":19801,"title":"Error when removing VM with ovirt_vms","user":{"login":"atgreen","id":89993,"avatar_url":"https://avatars.githubusercontent.com/u/89993?v=3","gravatar_id":"","url":"https://api.github.com/users/atgreen","html_url":"https://github.com/atgreen","followers_url":"https://api.github.com/users/atgreen/followers","following_url":"https://api.github.com/users/atgreen/following{/other_user}","gists_url":"https://api.github.com/users/atgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/atgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atgreen/subscriptions","organizations_url":"https://api.github.com/users/atgreen/orgs","repos_url":"https://api.github.com/users/atgreen/repos","events_url":"https://api.github.com/users/atgreen/events{/privacy}","received_events_url":"https://api.github.com/users/atgreen/received_events","type":"User","site_admin":false},"labels":[{"id":454885231,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.3","name":"affects_2.3","color":"5319e7","default":false},{"id":48276055,"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":61528803,"url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-03T13:08:42Z","updated_at":"2017-02-08T10:08:33Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\novirt_vms\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.0 (devel 9f2d8c2409) last updated 2017/01/02 07:45:34 (GMT -400)\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n\r\n##### OS / ENVIRONMENT\r\nFedora 25\r\n\r\n##### SUMMARY\r\n\r\nWhen I try to remove a VM like so...\r\n\r\n- name: Remove the base VM from which we just created our template\r\n  delegate_to: localhost\r\n  ovirt_vms:\r\n    auth:\r\n      username: admin@internal\r\n      password: XXXXX\r\n      url: https://10.0.0.3/ovirt-engine/api\r\n      insecure: true\r\n    state: absent\r\n    name: rhel7-base-vm\r\n    wait: true\r\n\r\nI get...\r\n\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_oqYJc_/ansible_module_ovirt_vms.py\", line 891, in main\r\n    ret = vms_module.remove()\r\n  File \"/tmp/ansible_oqYJc_/ansible_modlib.zip/ansible/module_utils/ovirt.py\", line 540, in remove\r\n    poll_interval=self._module.params['poll_interval'],\r\n  File \"/tmp/ansible_oqYJc_/ansible_modlib.zip/ansible/module_utils/ovirt.py\", line 273, in wait\r\n    entity = service.get()\r\n  File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py\", line 18259, in get\r\n    self._check_fault(response)\r\n  File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 89, in _check_fault\r\n    xmlreader = xml.XmlReader(buf)\r\nException: Can't read first node\r\n\r\nfatal: [10.0.0.3 -> localhost]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"boot_devices\": null,\r\n            \"cd_iso\": null,\r\n            \"clone\": false,\r\n            \"clone_permissions\": false,\r\n            \"cloud_init\": null,\r\n            \"cloud_init_nics\": null,\r\n            \"cluster\": null,\r\n            \"cpu_cores\": null,\r\n            \"cpu_shares\": null,\r\n            \"cpu_sockets\": null,\r\n            \"delete_protected\": null,\r\n            \"disks\": [],\r\n            \"fetch_nested\": false,\r\n            \"force\": false,\r\n            \"high_availability\": null,\r\n            \"host\": null,\r\n            \"id\": null,\r\n            \"memory\": null,\r\n            \"memory_guaranteed\": null,\r\n            \"name\": \"rhel7-base-vm\",\r\n            \"nested_attributes\": null,\r\n            \"nics\": [],\r\n            \"operating_system\": null,\r\n            \"poll_interval\": 3,\r\n            \"state\": \"absent\",\r\n            \"stateless\": null,\r\n            \"sysprep\": null,\r\n            \"template\": null,\r\n            \"template_version\": null,\r\n            \"timeout\": 180,\r\n            \"type\": null,\r\n            \"use_latest_template_version\": null,\r\n            \"wait\": true\r\n        },\r\n        \"module_name\": \"ovirt_vms\"\r\n    },\r\n    \"msg\": \"Can't read first node\"\r\n}\r\n\r\n\r\nThe VM is deleted, but I get this error.\r\n\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\nRun the task above\r\n\r\n##### EXPECTED RESULTS\r\nThe VM should be deleted without error\r\n\r\n##### ACTUAL RESULTS\r\nSee above."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/278285542","html_url":"https://github.com/ansible/ansible/issues/19801#issuecomment-278285542","issue_url":"https://api.github.com/repos/ansible/ansible/issues/19801","id":278285542,"user":{"login":"mwperina","id":6696369,"avatar_url":"https://avatars.githubusercontent.com/u/6696369?v=3","gravatar_id":"","url":"https://api.github.com/users/mwperina","html_url":"https://github.com/mwperina","followers_url":"https://api.github.com/users/mwperina/followers","following_url":"https://api.github.com/users/mwperina/following{/other_user}","gists_url":"https://api.github.com/users/mwperina/gists{/gist_id}","starred_url":"https://api.github.com/users/mwperina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwperina/subscriptions","organizations_url":"https://api.github.com/users/mwperina/orgs","repos_url":"https://api.github.com/users/mwperina/repos","events_url":"https://api.github.com/users/mwperina/events{/privacy}","received_events_url":"https://api.github.com/users/mwperina/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T10:08:33Z","updated_at":"2017-02-08T10:08:33Z","body":"@atgreen Any news?"}}
{"actor":{"display_login":"mwperina"}}