{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3292","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3292/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3292/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3292/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3292","id":185388580,"number":3292,"title":"New module proxmox_kvm","user":{"login":"helldorado","id":1775426,"avatar_url":"https://avatars.githubusercontent.com/u/1775426?v=3","gravatar_id":"","url":"https://api.github.com/users/helldorado","html_url":"https://github.com/helldorado","followers_url":"https://api.github.com/users/helldorado/followers","following_url":"https://api.github.com/users/helldorado/following{/other_user}","gists_url":"https://api.github.com/users/helldorado/gists{/gist_id}","starred_url":"https://api.github.com/users/helldorado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helldorado/subscriptions","organizations_url":"https://api.github.com/users/helldorado/orgs","repos_url":"https://api.github.com/users/helldorado/repos","events_url":"https://api.github.com/users/helldorado/events{/privacy}","received_events_url":"https://api.github.com/users/helldorado/received_events","type":"User","site_admin":false},"labels":[{"id":132898074,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":229425764,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/community_review","name":"community_review","color":"fad8c7","default":false},{"id":153577344,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/new_plugin","name":"new_plugin","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-26T13:09:42Z","updated_at":"2016-11-10T08:14:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3292","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3292","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/3292.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/3292.patch"},"body":"##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- New Module Pull Request\n##### COMPONENT NAME\n\n<!--- proxmox_kvm -->\n\nproxmox_kvm \n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nansible --version                                                                                                                                                                                                                                                                                            \nansible 2.1.2.0\n  config file =\n  configured module search path = Default w/o overrides\n```\n##### SUMMARY\n\n<!--- Describe the change, including rationale and design decisions -->\n\nManagement of Qemu(KVM) Virtual Machines in Proxmox\nAllows you to create/delete/stop Qemu(KVM) Virtual Machines in Proxmox VE cluster.\n\n<!---\nIf you are fixing an existing issue, please include \"Fixes #nnnn\" in your commit\nmessage and your description; but you should still explain what the change does.\n-->\n\n<!--- Paste verbatim command output below, e.g. before and after your change -->\n\n```\nansible-playbook test.yml                                                                                                                                                                                                                                                                      PLAY [localhost] ***************************************************************\n\nTASK [proxmox-build : CREATE VM] ***************************************************\nchanged: [localhost]\n\nTASK [proxmox-build : debug] *******************************************************\nok: [localhost] => {\n    \"qemu\": {\n        \"changed\": true,\n        \"devices\": {\n            \"virtio0\": \"VMs:130/vm-130-disk-1.raw\"\n        },\n        \"mac\": {\n            \"net0\": \"26:46:D5:C2:4B:AC\"\n        },\n        \"msg\": \"VM helldorado with vmid 130 deployed\",\n        \"vmid\": 130\n    }\n}\n\nTASK [proxmox-build : START VM] ****************************************************\nchanged: [localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost                  : ok=4    changed=2    unreachable=0    failed=0\n```\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/259627390","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3292#issuecomment-259627390","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3292","id":259627390,"user":{"login":"morph027","id":600106,"avatar_url":"https://avatars.githubusercontent.com/u/600106?v=3","gravatar_id":"","url":"https://api.github.com/users/morph027","html_url":"https://github.com/morph027","followers_url":"https://api.github.com/users/morph027/followers","following_url":"https://api.github.com/users/morph027/following{/other_user}","gists_url":"https://api.github.com/users/morph027/gists{/gist_id}","starred_url":"https://api.github.com/users/morph027/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morph027/subscriptions","organizations_url":"https://api.github.com/users/morph027/orgs","repos_url":"https://api.github.com/users/morph027/repos","events_url":"https://api.github.com/users/morph027/events{/privacy}","received_events_url":"https://api.github.com/users/morph027/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T08:14:49Z","updated_at":"2016-11-10T08:14:49Z","body":"Ok, looks like i've boiled down the problem:\r\n\r\nCommenting all params in ```create_vm()``` ([line 893-942](https://github.com/helldorado/ansible-modules-extras/blob/b19c3390461b281883349e75940ecdece94d1947/cloud/misc/proxmox_kvm.py#L893-L942)) and uncommenting step by step yields the error at the ```force``` flag.\r\n\r\nLooking at the [API documentation](http://pve.proxmox.com/pve-docs/api-viewer/index.html) (```nodes - {node} - qemu - post```), this should be allowed to overwrite vms:\r\n\r\n> | Name | Type | Format | Description |\r\n> |------|------|--------|-------------|\r\n> | force | boolean | boolean | Allow to overwrite existing VM. |"}}
{"actor":{"display_login":"morph027"}}