{"action":"created","issue":{"url":"https://api.github.com/repos/vatesfr/xo-web/issues/882","repository_url":"https://api.github.com/repos/vatesfr/xo-web","labels_url":"https://api.github.com/repos/vatesfr/xo-web/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/issues/882/comments","events_url":"https://api.github.com/repos/vatesfr/xo-web/issues/882/events","html_url":"https://github.com/vatesfr/xo-web/issues/882","id":148717771,"number":882,"title":"Use an available path to the SR to create a config drive","user":{"login":"pguay","id":2796543,"avatar_url":"https://avatars.githubusercontent.com/u/2796543?v=3","gravatar_id":"","url":"https://api.github.com/users/pguay","html_url":"https://github.com/pguay","followers_url":"https://api.github.com/users/pguay/followers","following_url":"https://api.github.com/users/pguay/following{/other_user}","gists_url":"https://api.github.com/users/pguay/gists{/gist_id}","starred_url":"https://api.github.com/users/pguay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pguay/subscriptions","organizations_url":"https://api.github.com/users/pguay/orgs","repos_url":"https://api.github.com/users/pguay/repos","events_url":"https://api.github.com/users/pguay/events{/privacy}","received_events_url":"https://api.github.com/users/pguay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/comp:%20server","name":"comp: server","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/difficulty%201:%20easy%20(hours)","name":"difficulty 1: easy (hours)","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/severity%201:%20low","name":"severity 1: low","color":"0052cc"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/vatesfr/xo-web/milestones/26","html_url":"https://github.com/vatesfr/xo-web/milestones/4.16","labels_url":"https://api.github.com/repos/vatesfr/xo-web/milestones/26/labels","id":1658004,"number":26,"title":"4.16","description":"Maintenance release","creator":{"login":"olivierlambert","id":1241401,"avatar_url":"https://avatars.githubusercontent.com/u/1241401?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlambert","html_url":"https://github.com/olivierlambert","followers_url":"https://api.github.com/users/olivierlambert/followers","following_url":"https://api.github.com/users/olivierlambert/following{/other_user}","gists_url":"https://api.github.com/users/olivierlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlambert/subscriptions","organizations_url":"https://api.github.com/users/olivierlambert/orgs","repos_url":"https://api.github.com/users/olivierlambert/repos","events_url":"https://api.github.com/users/olivierlambert/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlambert/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":9,"state":"closed","created_at":"2016-03-21T17:45:19Z","updated_at":"2016-04-29T13:11:19Z","due_on":"2016-04-28T22:00:00Z","closed_at":"2016-04-29T13:11:19Z"},"comments":23,"created_at":"2016-04-15T17:18:42Z","updated_at":"2016-05-04T15:51:56Z","closed_at":"2016-04-27T07:38:30Z","body":"We have a problem when we are trying to create a VM with Cloud Init. Here is the errors we got when creating the VM : \r\n\r\nIn Web Console, this is the stack trace we have (192.168.252.94 is the address of XO)  : \r\n```\r\nTypeError: Unable to get property '$SR' of undefined or null reference\r\n   at Anonymous function (http://192.168.252.94/app.js:8:15718)\r\n   at arrayEach (http://192.168.252.94/app.js:77:2687)\r\n   at forEach (http://192.168.252.94/app.js:77:2875)\r\n   at Anonymous function (http://192.168.252.94/app.js:8:15242)\r\n   at Anonymous function (http://192.168.252.94/app.js:8:17412)\r\n   at $watchCollectionAction (http://192.168.252.94/app.js:34:18496)\r\n   at Scope.prototype.$digest (http://192.168.252.94/app.js:34:20052)\r\n   at Scope.prototype.$apply (http://192.168.252.94/app.js:34:22222)\r\n   at Anonymous function (http://192.168.252.94/app.js:34:15071)\r\n   at completeOutstandingRequest (http://192.168.252.94/app.js:31:12973)\r\napp.js (1,3628)\r\n```\r\n\r\nIn the logs of the server, a Xen Orchestra built from sources (we tried with the XOA but no good) : \r\n```\r\nFri, 15 Apr 2016 12:15:58 GMT xo:xapi Resizing VDI VMTest_1 from 10737418240 to 16106127360\r\nFri, 15 Apr 2016 12:15:58 GMT xen-api root@192.168.252.47: event.from(...) [285ms] ==> object\r\nFri, 15 Apr 2016 12:15:58 GMT xen-api root@192.168.252.47: event.from(...) [37ms] ==> object\r\nFri, 15 Apr 2016 12:15:58 GMT xen-api root@192.168.252.47: VDI.resize_online(...) [48ms] =!> XapiError: SR_OPERATION_NOT_SUPPORTED(OpaqueRef:5e21d0ae-8f46-93dd-8b80-7bf453debb4b)\r\n```\r\n\r\nWhen this patch [Hotfix XS65ESP1026](http://support.citrix.com/article/CTX209355) isn't installed, my CloudInit is working flawlessly.\r\n\r\nWe do have a default-SR on the pool : \r\n```\r\nxe pool-param-list uuid=a2922c0d-3628-a3ff-5df3-330fa630a80e | grep default\r\n                      default-SR ( RW): 0d4f69a9-a999-ac16-e5f1-255447f17849`\r\n```\r\n\r\nWe are running on xo-web 4.15.1 - xo-server 4.15.2"},"comment":{"url":"https://api.github.com/repos/vatesfr/xo-web/issues/comments/216909469","html_url":"https://github.com/vatesfr/xo-web/issues/882#issuecomment-216909469","issue_url":"https://api.github.com/repos/vatesfr/xo-web/issues/882","id":216909469,"user":{"login":"UAnton","id":1290580,"avatar_url":"https://avatars.githubusercontent.com/u/1290580?v=3","gravatar_id":"","url":"https://api.github.com/users/UAnton","html_url":"https://github.com/UAnton","followers_url":"https://api.github.com/users/UAnton/followers","following_url":"https://api.github.com/users/UAnton/following{/other_user}","gists_url":"https://api.github.com/users/UAnton/gists{/gist_id}","starred_url":"https://api.github.com/users/UAnton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UAnton/subscriptions","organizations_url":"https://api.github.com/users/UAnton/orgs","repos_url":"https://api.github.com/users/UAnton/repos","events_url":"https://api.github.com/users/UAnton/events{/privacy}","received_events_url":"https://api.github.com/users/UAnton/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T15:51:56Z","updated_at":"2016-05-04T15:51:56Z","body":"(xo-web 4.16.0 - xo-server 4.16.1)"}}