{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39519","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39519/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39519/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39519/events","html_url":"https://github.com/ansible/ansible/issues/39519","id":318992225,"number":39519,"title":"Module - proxmox_kvm - Creating clone with new mac address not possible","user":{"login":"mxkle","id":28385729,"avatar_url":"https://avatars1.githubusercontent.com/u/28385729?v=4","gravatar_id":"","url":"https://api.github.com/users/mxkle","html_url":"https://github.com/mxkle","followers_url":"https://api.github.com/users/mxkle/followers","following_url":"https://api.github.com/users/mxkle/following{/other_user}","gists_url":"https://api.github.com/users/mxkle/gists{/gist_id}","starred_url":"https://api.github.com/users/mxkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxkle/subscriptions","organizations_url":"https://api.github.com/users/mxkle/orgs","repos_url":"https://api.github.com/users/mxkle/repos","events_url":"https://api.github.com/users/mxkle/events{/privacy}","received_events_url":"https://api.github.com/users/mxkle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T18:41:06Z","updated_at":"2018-04-30T18:41:06Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n \r\n##### COMPONENT NAME\r\nproxmox_kvm\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.5.2\r\n  config file = /mnt/it/ansible/ansible.cfg\r\n  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### CONFIGURATION\r\nANSIBLE_NOCOWS(/mnt/it/ansible/ansible.cfg) = True\r\nDEFAULT_HOST_LIST(/mnt/it/ansible/ansible.cfg) = [u'/mnt/it/ansible/inventory/inventory.yml']\r\nDEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /mnt/it/ansible/inventory/.vault_pass\r\nHOST_KEY_CHECKING(/mnt/it/ansible/ansible.cfg) = False\r\nPERSISTENT_CONNECT_TIMEOUT(/mnt/it/ansible/ansible.cfg) = 30\r\nRETRY_FILES_ENABLED(/mnt/it/ansible/ansible.cfg) = False\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nansible control machine:\r\n```\r\nLinux ubuntu 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\nansible managed machine:\r\n```\r\nLinux pve 4.13.16-1-pve #1 SMP PVE 4.13.16-45 (Wed, 28 Mar 2018 15:47:11 +0200) x86_64 GNU/Linux\r\n```\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nUsing the clone function while also specifiying a new mac address results in a random mac.\r\n##### STEPS TO REPRODUCE\r\n\r\n```yaml\r\n - name: clone vm\r\n    proxmox_kvm:\r\n      api_user: \"{{api_user}}\"\r\n      api_password: \"{{api_password}}\"\r\n      api_host: \"{{api_host}}\"\r\n      clone: \"{{clone}}\"\r\n      #vmid: \"{{vmid}}\"\r\n      newid: \"{{newid | default(ommit)}}\"\r\n      name: \"{{hostname}}\"\r\n      node: \"{{node | default('pve')}}\"\r\n      net: '{\"net0\":\"virtio=02:7D:52:B0:5F:59,bridge=vmbr2\"}'\r\n      storage: \"{{storage}}\"\r\n      format: \"{{format | default ('raw')}}\"\r\n      timeout: \"{{timeout | default('120')}}\"\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nnet0 of new vm should have mac address 02:7D:52:B0:5F:59\r\n\r\n##### ACTUAL RESULTS\r\nnet0 of new vm gets random mac assigned\r\ngist of verbose output:\r\nhttps://gist.github.com/mxkle/d88abac0ca5dc1c51cde633908b8fe5c"}}
{"actor":{"display_login":"mxkle"}}