{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/27096","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/27096/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/27096/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/27096/events","html_url":"https://github.com/ansible/ansible/issues/27096","id":244263136,"number":27096,"title":"vmware vm create succeed but result with \"A specified parameter was not correct: spec.identity.hostName\" ","user":{"login":"mavenir-labs","id":30309611,"avatar_url":"https://avatars3.githubusercontent.com/u/30309611?v=4","gravatar_id":"","url":"https://api.github.com/users/mavenir-labs","html_url":"https://github.com/mavenir-labs","followers_url":"https://api.github.com/users/mavenir-labs/followers","following_url":"https://api.github.com/users/mavenir-labs/following{/other_user}","gists_url":"https://api.github.com/users/mavenir-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/mavenir-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavenir-labs/subscriptions","organizations_url":"https://api.github.com/users/mavenir-labs/orgs","repos_url":"https://api.github.com/users/mavenir-labs/repos","events_url":"https://api.github.com/users/mavenir-labs/events{/privacy}","received_events_url":"https://api.github.com/users/mavenir-labs/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},{"id":636327968,"url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":427121291,"url":"https://api.github.com/repos/ansible/ansible/labels/vmware","name":"vmware","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-20T06:58:05Z","updated_at":"2017-10-18T18:42:19Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n\r\nvmware_guest\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.1.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]\r\n\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\n##### OS / ENVIRONMENT\r\n##### SUMMARY\r\n\r\ncreating Vmware VMs from tamplaet in a loop. the name of the VM must contain an IP address\r\nexample --> proj-name-10.0.0.234\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nrun the below code against vmware environment.\r\nscript should create several VMs with IP's embedded in VM name.\r\n```\r\nvmware_guest:\r\n      hostname: vcenter.domain.com\r\n      username: username\r\n      password: password\r\n      validate_certs: no\r\n      esxi_hostname: esxhost.domain.com\r\n      datacenter: MainVDC\r\n      folder: /vm\r\n      name: someVM-10.0.0.{{item}}\r\n      state: poweredon\r\n      guest_id: centos64guest\r\n      disk:\r\n      - size_gb: 20\r\n        type: thin\r\n        datastore: datastore1a\r\n      hardware:\r\n        memory_mb: 512\r\n        num_cpus: 2\r\n        scsi: paravirtual\r\n      networks:\r\n      - name: Vlan10.0.0\r\n        ip: 10.0.0.{{ item }}\r\n        netmask: 255.255.255.128\r\n        gateway: 10.0.0.254\r\n        state: connected\r\n      template: centos_vm\r\n      wait_for_ip_address: no\r\n    delegate_to: localhost\r\n    with_sequence: start=60 end=62 stride=1\r\n    register: myserver\r\n  - pause:\r\n       minutes: 1\r\n\r\n  - lineinfile:\r\n      dest: /etc/ansible/hosts\r\n      insertafter: filebeat_vms\r\n      line: \"{{ item.invocation.module_args.networks.0.ip }}\"\r\n      state: present\r\n    with_items: \"{{ myserver.results }}\"\r\n\r\n\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n\r\n##### ACTUAL RESULTS\r\nvm is created  with correct name in VC --> someVM-10.0.0.60  and can be powered on manually but ansible script fails with error and exits without powering on the VM.  \r\n```\r\n \"item\": \"60\",\r\n    \"msg\": \"A specified parameter was not correct: spec.identity.hostName\"\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/337689160","html_url":"https://github.com/ansible/ansible/issues/27096#issuecomment-337689160","issue_url":"https://api.github.com/repos/ansible/ansible/issues/27096","id":337689160,"user":{"login":"ansibot","id":6585283,"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":"2017-10-18T18:42:19Z","updated_at":"2017-10-18T18:42:19Z","author_association":"CONTRIBUTOR","body":"cc @pdellaert\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}