{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/43921","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/43921/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/43921/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/43921/events","html_url":"https://github.com/ansible/ansible/issues/43921","id":349437166,"node_id":"MDU6SXNzdWUzNDk0MzcxNjY=","number":43921,"title":"[vmware_guest] wrong interface name in os network customization","user":{"login":"shibumi","id":3833685,"node_id":"MDQ6VXNlcjM4MzM2ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/3833685?v=4","gravatar_id":"","url":"https://api.github.com/users/shibumi","html_url":"https://github.com/shibumi","followers_url":"https://api.github.com/users/shibumi/followers","following_url":"https://api.github.com/users/shibumi/following{/other_user}","gists_url":"https://api.github.com/users/shibumi/gists{/gist_id}","starred_url":"https://api.github.com/users/shibumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibumi/subscriptions","organizations_url":"https://api.github.com/users/shibumi/orgs","repos_url":"https://api.github.com/users/shibumi/repos","events_url":"https://api.github.com/users/shibumi/events{/privacy}","received_events_url":"https://api.github.com/users/shibumi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-10T09:15:18Z","updated_at":"2018-08-10T09:16:15Z","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##### SUMMARY\r\n**vmware_guest** needs a variable for specifing the interface name or a mechanism to automatically set the right interface name in the OS network customization. I am unsure if this issue should be solved upstream in the guest additions or in the ansible module. This needs to be discussed.\r\n\r\n##### ISSUE TYPE\r\n*   Bug Report\r\n\r\n##### COMPONENT NAME\r\n**vmware_guest**\r\n\r\n##### ANSIBLE VERSION\r\nansible 2.5.3\r\n  config file = /root/ansible-vxlan/ansible.cfg\r\n  configured module search path = ['/root/ansible-vxlan/library']\r\n  ansible python module location = /usr/lib/python3.6/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 3.6.5 (default, May 11 2018, 04:00:52) [GCC 8.1.0]\r\n\r\n##### CONFIGURATION\r\nANSIBLE_PIPELINING(/root/ansible-vxlan/ansible.cfg) = True\r\nDEFAULT_HOST_LIST(/root/ansible-vxlan/ansible.cfg) = ['/root/ansible-vxlan/hosts']\r\nDEFAULT_MODULE_PATH(/root/ansible-vxlan/ansible.cfg) = ['/root/ansible-vxlan/library']\r\nDEFAULT_ROLES_PATH(/root/ansible-vxlan/ansible.cfg) = ['/root/ansible-vxlan/roles']\r\nDEFAULT_SCP_IF_SSH(/root/ansible-vxlan/ansible.cfg) = True\r\nRETRY_FILES_ENABLED(/root/ansible-vxlan/ansible.cfg) = False\r\n\r\n##### OS / ENVIRONMENT\r\nHost Running Ansible: Arch Linux\r\nTarget Host: VMWare ESXI Hosts with Ubuntu 18.04 Template\r\n\r\n##### STEPS TO REPRODUCE\r\nI set these `networks` settings:\r\n```\r\n\"gateway\": \"xxx.xxx.221.126\",\r\n\"ip\": \"xxx.xxx.221.100\",\r\n\"name\": \"xxx.xxx.221.97%2f27_vlan1306_vinst6\",\r\n\"netmask\": \"255.255.255.224\",\r\n\"start_connected\": true,\r\n\"type\": \"static\"\r\n```\r\n\r\n\r\n##### EXPECTED RESULTS\r\n**vmware_guest** should create a working network configuration in `/etc/network/interfaces`\r\n```\r\niface lo inet loopback\r\nauto lo\r\n\r\nauto ens160\r\niface ens160 inet static\r\naddress xxx.xx.221.100\r\nnetmask 255.255.255.224\r\nup route add default gw xxx.xxx.221.126\r\n```\r\n\r\n##### ACTUAL RESULTS\r\nThe following file will get created:\r\n```\r\niface lo inet loopback\r\nauto lo\r\n\r\nauto ether\r\niface ether inet static\r\naddress xxx.xx.221.100\r\nnetmask 255.255.255.224\r\nup route add default gw xxx.xxx.221.126\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/412026722","html_url":"https://github.com/ansible/ansible/issues/43921#issuecomment-412026722","issue_url":"https://api.github.com/repos/ansible/ansible/issues/43921","id":412026722,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjAyNjcyMg==","user":{"login":"ansibot","id":6585283,"node_id":"MDQ6VXNlcjY1ODUyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T09:16:15Z","updated_at":"2018-08-10T09:16:15Z","author_association":"CONTRIBUTOR","body":"Files identified in the description:\n* [lib/ansible/modules/cloud/vmware/vmware_guest.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest.py)\n\nIf these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.\n\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: components_banner --->"}}
{"actor":{"display_login":"ansibot"}}