{"action":"created","issue":{"url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/21","labels_url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/21/comments","events_url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/21/events","html_url":"https://github.com/rdobson/packer-builder-xenserver/issues/21","id":57120246,"number":21,"title":"PUT request to upload the iso never finishes","user":{"login":"sammcj","id":862951,"avatar_url":"https://avatars.githubusercontent.com/u/862951?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcj","html_url":"https://github.com/sammcj","followers_url":"https://api.github.com/users/sammcj/followers","following_url":"https://api.github.com/users/sammcj/following{/other_user}","gists_url":"https://api.github.com/users/sammcj/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcj/subscriptions","organizations_url":"https://api.github.com/users/sammcj/orgs","repos_url":"https://api.github.com/users/sammcj/repos","events_url":"https://api.github.com/users/sammcj/events{/privacy}","received_events_url":"https://api.github.com/users/sammcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-10T02:03:30Z","updated_at":"2015-02-11T22:46:27Z","closed_at":null,"body":"Sits here forever:\r\n\r\n```\r\nsystems-samm ~/src/github.com/rdobson/packer-builder-xenserver/examples % packer build centos-6.6.json\r\nxenserver-iso output will be in this color.\r\n\r\n==> xenserver-iso: XAPI client session established\r\n==> xenserver-iso: Downloading or copying ISO\r\n    xenserver-iso: Downloading or copying: http://centos.mirror.serversaustralia.com.au/6.6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso\r\n==> xenserver-iso: Starting HTTP server on port 8000\r\n==> xenserver-iso: Step: Upload VDI 'CentOS-6.6-x86_64-minimal.iso'\r\n==> xenserver-iso: PUT 'https://s1-dl360-01/import_raw_vdi?session_id=OpaqueRef%3A75b48216-2034-aa42-7a71-f3851fde3cb9&task_id=OpaqueRef%3A3fd254c0-412b-e363-d3fe-d29cb50ab6da&vdi=OpaqueRef%3A864e8a33-a30e-1166-0631-6c09fe328af7'\r\n```\r\n\r\nBut I can see the .iso appear in XenCentre:\r\n\r\n![screen shot 2015-02-10 at 13 01 37](https://cloud.githubusercontent.com/assets/862951/6120071/fa85794a-b124-11e4-9ada-8305db2bce29.png)\r\n\r\n* Config is the same as example on readme\r\n* XenServer 6.5\r\n* Fresh build of packer-dev and packer-builder-xenserver as per instructions\r\n* go version go1.4.1 darwin/amd64"},"comment":{"url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/comments/73981666","html_url":"https://github.com/rdobson/packer-builder-xenserver/issues/21#issuecomment-73981666","issue_url":"https://api.github.com/repos/rdobson/packer-builder-xenserver/issues/21","id":73981666,"user":{"login":"rdobson","id":841869,"avatar_url":"https://avatars.githubusercontent.com/u/841869?v=3","gravatar_id":"","url":"https://api.github.com/users/rdobson","html_url":"https://github.com/rdobson","followers_url":"https://api.github.com/users/rdobson/followers","following_url":"https://api.github.com/users/rdobson/following{/other_user}","gists_url":"https://api.github.com/users/rdobson/gists{/gist_id}","starred_url":"https://api.github.com/users/rdobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdobson/subscriptions","organizations_url":"https://api.github.com/users/rdobson/orgs","repos_url":"https://api.github.com/users/rdobson/repos","events_url":"https://api.github.com/users/rdobson/events{/privacy}","received_events_url":"https://api.github.com/users/rdobson/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T22:46:27Z","updated_at":"2015-02-11T22:46:27Z","body":"HI @sammcj,\r\n\r\nThanks for raising this - it's a known problem - sorry for not forewarning you! Unfortunately as we developed this plugin we exposed a bug in how XAPI handled disk uploads (which we use for importing the ISO). We've fixed this, but it's only available in our dev builds of XenServer, available here:\r\nhttp://xenserver.org/overview-xenserver-open-source-virtualization/download/2-uncategorised/115-development-snapshots.html\r\n\r\nThe PR's where here:\r\nhttps://github.com/xapi-project/xen-api/pull/2052\r\nhttps://github.com/xapi-project/vhd-tool/pull/15\r\n\r\n(FYI - If you rounded your ISO to the nearest 2MB you would work around this issue, but clearly that's neither nice nor practical!).\r\n\r\nThanks.\r\n"}}