{"action":"created","issue":{"url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/30","repository_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere","labels_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/30/comments","events_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/30/events","html_url":"https://github.com/jetbrains-infra/packer-builder-vsphere/issues/30","id":248966799,"number":30,"title":"Build 'vsphere' errored: NotAuthenticated","user":{"login":"Kutkovsky","id":20702201,"avatar_url":"https://avatars2.githubusercontent.com/u/20702201?v=4","gravatar_id":"","url":"https://api.github.com/users/Kutkovsky","html_url":"https://github.com/Kutkovsky","followers_url":"https://api.github.com/users/Kutkovsky/followers","following_url":"https://api.github.com/users/Kutkovsky/following{/other_user}","gists_url":"https://api.github.com/users/Kutkovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Kutkovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kutkovsky/subscriptions","organizations_url":"https://api.github.com/users/Kutkovsky/orgs","repos_url":"https://api.github.com/users/Kutkovsky/repos","events_url":"https://api.github.com/users/Kutkovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Kutkovsky/received_events","type":"User","site_admin":false},"labels":[{"id":579457569,"url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-09T09:14:31Z","updated_at":"2017-08-16T00:04:11Z","closed_at":null,"body":"Hello, guys!\r\nWe are using your plugin to clone VM's and provision them at vSphere 6.5.\r\nFaced up with situation when our job fails with error:\r\n\r\n```\r\n==> vsphere: Executing shutdown command...\r\npacker-builder-vsphere: 2017/08/09 08:04:47 Shutdown command: sudo shutdown -h now\r\npacker-builder-vsphere: 2017/08/09 08:04:47 opening new ssh session\r\npacker-builder-vsphere: 2017/08/09 08:04:47 starting remote command: sudo shutdown -h now\r\npacker-builder-vsphere: 2017/08/09 08:04:47 Waiting max 5m0s for shutdown to complete\r\n==> vsphere: Power off VM...\r\n==> vsphere: NotAuthenticated\r\n==> vsphere: Destroying VM...\r\n==> vsphere: ServerFaultCode: The session is not authenticated.\r\n[INFO] (telemetry) ending vsphere\r\n[INFO] (telemetry) found error: NotAuthenticated\r\nBuild 'vsphere' errored: NotAuthenticated\r\n```\r\n\r\nVM clearly shutdown and stays at vSphere (its fine, but our job fails with error). So plugin cannot destroy VM due to not authenticated session also.\r\n\r\nOur job takes 3.5 hours usually. So, when we shortened our task to 25 min just for test - it succeed. With any long-duration tries - failed.\r\n\r\nI found an article at vmware.com saying that we can increase timeout constraints at vSphere to resolve this:\r\n[https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2040626](url)\r\nIt didn't help us. So I want to ask you, could you add some kind of Keep Alive packets during the job? Or reestablish session to vSphere at the end of the job?\r\n\r\nSure, this will fix this issue."},"comment":{"url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/comments/322621881","html_url":"https://github.com/jetbrains-infra/packer-builder-vsphere/issues/30#issuecomment-322621881","issue_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/30","id":322621881,"user":{"login":"mkuzmin","id":712402,"avatar_url":"https://avatars3.githubusercontent.com/u/712402?v=4","gravatar_id":"","url":"https://api.github.com/users/mkuzmin","html_url":"https://github.com/mkuzmin","followers_url":"https://api.github.com/users/mkuzmin/followers","following_url":"https://api.github.com/users/mkuzmin/following{/other_user}","gists_url":"https://api.github.com/users/mkuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuzmin/subscriptions","organizations_url":"https://api.github.com/users/mkuzmin/orgs","repos_url":"https://api.github.com/users/mkuzmin/repos","events_url":"https://api.github.com/users/mkuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/mkuzmin/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T00:04:11Z","updated_at":"2017-08-16T00:04:11Z","body":"I suppose I've solved that. But please test the fix, before I merge it into master.\r\nhttps://github.com/jetbrains-infra/packer-builder-vsphere/releases/tag/v.1.3.1.dev1"}}
{"actor":{"display_login":"mkuzmin"}}