{"action":"created","issue":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/372","repository_url":"https://api.github.com/repos/chef-partners/knife-vsphere","labels_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/372/comments","events_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/372/events","html_url":"https://github.com/chef-partners/knife-vsphere/issues/372","id":237859814,"number":372,"title":"vm clone picks up IP before Windows sysprep","user":{"login":"talcloudshare","id":11614000,"avatar_url":"https://avatars2.githubusercontent.com/u/11614000?v=3","gravatar_id":"","url":"https://api.github.com/users/talcloudshare","html_url":"https://github.com/talcloudshare","followers_url":"https://api.github.com/users/talcloudshare/followers","following_url":"https://api.github.com/users/talcloudshare/following{/other_user}","gists_url":"https://api.github.com/users/talcloudshare/gists{/gist_id}","starred_url":"https://api.github.com/users/talcloudshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talcloudshare/subscriptions","organizations_url":"https://api.github.com/users/talcloudshare/orgs","repos_url":"https://api.github.com/users/talcloudshare/repos","events_url":"https://api.github.com/users/talcloudshare/events{/privacy}","received_events_url":"https://api.github.com/users/talcloudshare/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-22T14:13:54Z","updated_at":"2017-06-25T13:55:51Z","closed_at":"2017-06-23T17:35:12Z","body":"### Versions:\r\n<!--- Version of the software where you are encountering the issue --->\r\n<!-- You should probably update in this is not newest release.--->\r\n* Version of knife-vsphere: 1.2.26\r\n* Version of chef: 12.17.44\r\n\r\n### Platform Details\r\n<!--- What version of vSphere are you running? What version of ESXi are you using too?--->\r\n* Version of vSphere: 6.5.0 Build 4602587\r\n* Version of ESXi:\r\n\r\n### Scenario:\r\nWhen running vm clone with bootstrap, for a Windows VM, IP for bootstrapping is determined before running sysprep (lib/chef/knife/vsphere_vm_clone.rb:395)\r\n\r\nI would expect the command to first wait for sysprep to complete before determining the IP for bootstrap (in my case, IP is altered during sysprep)\r\n\r\n### Please paste the command and output (run with `-VV`). Don't forget to X out any passwords or sensitive information:\r\n<!--- If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this gem or any resources it includes?--->\r\n```\r\nknife vsphere vm clone ****** --vsdc ****** --vshost ****** --vsinsecure true --vsuser **** --vspass **** --datastore ****** --resource-pool ****** --dest-folder ****** --folder ****** --template ****** --cspec knife-vsphere-plugin --ccpu 1 --cram 1 --cdomain ****** --cgw ****** --cdnsips ****** --cdnssuffix ****** --chostname CloudIIS-K --cvlan ****** --cips x.x.x.82/16 --cmacs auto --sw-uuid auto --bootstrap --environment ****** --bootstrap-version 12.14.89 --run-list ****** --node-name ****** --bootstrap-protocol winrm --winrm-user **** --winrm-password **** --bootstrap-ipv4 --sysprep_timeout 1200 -VV\r\n```\r\n\r\n### Expected Result:\r\n<!--- What are you expecting to happen as the consequence of above reproduction steps?--->\r\nVM cloned, Chef bootstrap running properly\r\n\r\n### Actual Result:\r\n<!--- What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.--->\r\n```\r\nFinished creating virtual machine ******\r\nDEBUG: value for config item customization_plugin: \r\nDEBUG: value for config item mark_as_template: \r\nDEBUG: value for config item power: \r\nDEBUG: value for config item bootstrap: true\r\nPowered on virtual machine ******\r\nDEBUG: value for config item bootstrap: true\r\nWaiting for network interfaces to become available...\r\nFound address x.x.x.78\r\nWaiting for a valid IPv4 address...\r\nDEBUG: value for config item bootstrap_nic: 0\r\nDEBUG: value for config item bootstrap_nic: 0\r\nDEBUG: Connect Host for Bootstrap: x.x.x.78\r\nDEBUG: value for config item ssh_port: 22\r\nDEBUG: value for config item bootstrap_protocol: winrm\r\nDEBUG: Identified os as windows.\r\nWaiting for customization to complete...\r\nDEBUG: value for config item sysprep_timeout: 1200\r\nWaiting for sysprep............................\r\nCustomization of VM ****** succeeded. Customization log located at C:/Windows/TEMP/vmware-imc/guestcust.log in the guest OS.\r\nCustomization Complete\r\nDEBUG: value for config item winrm_transport: plaintext\r\nDEBUG: value for config item winrm_port: 5985\r\n```\r\n\r\nThen run is stuck (as IP was altered to x.x.x.82 as mentioned in knife command)\r\n"},"comment":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/comments/310904006","html_url":"https://github.com/chef-partners/knife-vsphere/issues/372#issuecomment-310904006","issue_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/372","id":310904006,"user":{"login":"swalberg","id":221368,"avatar_url":"https://avatars0.githubusercontent.com/u/221368?v=3","gravatar_id":"","url":"https://api.github.com/users/swalberg","html_url":"https://github.com/swalberg","followers_url":"https://api.github.com/users/swalberg/followers","following_url":"https://api.github.com/users/swalberg/following{/other_user}","gists_url":"https://api.github.com/users/swalberg/gists{/gist_id}","starred_url":"https://api.github.com/users/swalberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalberg/subscriptions","organizations_url":"https://api.github.com/users/swalberg/orgs","repos_url":"https://api.github.com/users/swalberg/repos","events_url":"https://api.github.com/users/swalberg/events{/privacy}","received_events_url":"https://api.github.com/users/swalberg/received_events","type":"User","site_admin":false},"created_at":"2017-06-25T13:55:51Z","updated_at":"2017-06-25T13:55:51Z","body":"Thanks! I'll cut a release tomorrow with this in it.\n\n> On Jun 25, 2017, at 09:06, Tal Auslander <notifications@github.com> wrote:\n> \n> Fixed the issue, thanks!\n> \n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n> \n"}}
{"actor":{"display_login":"swalberg"}}