{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/978","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/978/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/978/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/978","id":106523091,"number":978,"title":"ovirt module KeyError: 'authorized_key_user_groups'","user":{"login":"nutter007","id":11088110,"avatar_url":"https://avatars.githubusercontent.com/u/11088110?v=3","gravatar_id":"","url":"https://api.github.com/users/nutter007","html_url":"https://github.com/nutter007","followers_url":"https://api.github.com/users/nutter007/followers","following_url":"https://api.github.com/users/nutter007/following{/other_user}","gists_url":"https://api.github.com/users/nutter007/gists{/gist_id}","starred_url":"https://api.github.com/users/nutter007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutter007/subscriptions","organizations_url":"https://api.github.com/users/nutter007/orgs","repos_url":"https://api.github.com/users/nutter007/repos","events_url":"https://api.github.com/users/nutter007/events{/privacy}","received_events_url":"https://api.github.com/users/nutter007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-15T09:59:31Z","updated_at":"2015-11-20T20:15:45Z","closed_at":null,"body":"Changing state to cloud-init of a created VM from template throws error:\r\n\r\nfailed: [localhost] => {\"failed\": true, \"parsed\": false}\r\nTraceback (most recent call last):\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 2767, in <module>\r\n    main()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 1119, in main\r\n    ovirt.vm_cloud_init()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 805, in vm_cloud_init\r\n    vm.start(action=params.Action(vm=params.VM(initialization=self.get_cloud_init())))\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 599, in get_cloud_init\r\n    return self._generate_cloud_init()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 591, in _generate_cloud_init\r\n    users=self._cloud_init_user()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 550, in _cloud_init_user\r\n    groups=self._cloud_init_user_groups()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1442310931.41-220049024077041/ovirt\", line 537, in _cloud_init_user_groups\r\n    user_groups = self.module.params['authorized_key_user_groups']\r\nKeyError: 'authorized_key_user_groups'\r\n\r\n\r\nI'm using \r\n- ovirt-engine-sdk-python-3.5.4.0-1.el7\r\n- ansible-1.9.2-1.el7\r\n- ovirt extra module (pull #925, also tried pull #707 - same issue)\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/158513225","html_url":"https://github.com/ansible/ansible-modules-extras/issues/978#issuecomment-158513225","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/978","id":158513225,"user":{"login":"vincentvdk","id":676958,"avatar_url":"https://avatars.githubusercontent.com/u/676958?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentvdk","html_url":"https://github.com/vincentvdk","followers_url":"https://api.github.com/users/vincentvdk/followers","following_url":"https://api.github.com/users/vincentvdk/following{/other_user}","gists_url":"https://api.github.com/users/vincentvdk/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentvdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentvdk/subscriptions","organizations_url":"https://api.github.com/users/vincentvdk/orgs","repos_url":"https://api.github.com/users/vincentvdk/repos","events_url":"https://api.github.com/users/vincentvdk/events{/privacy}","received_events_url":"https://api.github.com/users/vincentvdk/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T20:15:45Z","updated_at":"2015-11-20T20:15:45Z","body":"I couldn't test the cloud-init code @firstyear added. I might have a look at it this weekend or next week."}}