{"action":"opened","number":2278,"pull_request":{"url":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278","id":39254342,"html_url":"https://github.com/xapi-project/xen-api/pull/2278","diff_url":"https://github.com/xapi-project/xen-api/pull/2278.diff","patch_url":"https://github.com/xapi-project/xen-api/pull/2278.patch","issue_url":"https://api.github.com/repos/xapi-project/xen-api/issues/2278","number":2278,"state":"open","locked":false,"title":"Allow disk ids to be rewritten during metadata import","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"body":"`xe vm-import --metadata` now supports an optional `vdi:src=dest` rewrite map, like with storage migration.\r\n\r\nIn the rewrite rules, the source VDI is identified by:\r\n- uuid\r\n- SCSIid (in sm-config)\r\nThe destination VDI is identified by:\r\n- uuid\r\n- SCSIid (in sm-config)\r\n\r\nIf a rewrite doesn't match then the source VDI is identified by:\r\n- SCSIid\r\n- SR and VDI.location\r\n- other_config:storage_migrate_vdi_map_key\r\n","created_at":"2015-07-06T10:30:26Z","updated_at":"2015-07-06T10:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278/commits","review_comments_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278/comments","review_comment_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xapi-project/xen-api/issues/2278/comments","statuses_url":"https://api.github.com/repos/xapi-project/xen-api/statuses/eddefd99072d202b7b6c016ba82f71bedf73f8ad","head":{"label":"djs55:import-vdi-map","ref":"import-vdi-map","sha":"eddefd99072d202b7b6c016ba82f71bedf73f8ad","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"repo":{"id":1325746,"name":"xen-api","full_name":"djs55/xen-api","owner":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djs55/xen-api","description":"XCP xen-api","fork":true,"url":"https://api.github.com/repos/djs55/xen-api","forks_url":"https://api.github.com/repos/djs55/xen-api/forks","keys_url":"https://api.github.com/repos/djs55/xen-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djs55/xen-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djs55/xen-api/teams","hooks_url":"https://api.github.com/repos/djs55/xen-api/hooks","issue_events_url":"https://api.github.com/repos/djs55/xen-api/issues/events{/number}","events_url":"https://api.github.com/repos/djs55/xen-api/events","assignees_url":"https://api.github.com/repos/djs55/xen-api/assignees{/user}","branches_url":"https://api.github.com/repos/djs55/xen-api/branches{/branch}","tags_url":"https://api.github.com/repos/djs55/xen-api/tags","blobs_url":"https://api.github.com/repos/djs55/xen-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djs55/xen-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djs55/xen-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/djs55/xen-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djs55/xen-api/statuses/{sha}","languages_url":"https://api.github.com/repos/djs55/xen-api/languages","stargazers_url":"https://api.github.com/repos/djs55/xen-api/stargazers","contributors_url":"https://api.github.com/repos/djs55/xen-api/contributors","subscribers_url":"https://api.github.com/repos/djs55/xen-api/subscribers","subscription_url":"https://api.github.com/repos/djs55/xen-api/subscription","commits_url":"https://api.github.com/repos/djs55/xen-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/djs55/xen-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/djs55/xen-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/djs55/xen-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/djs55/xen-api/contents/{+path}","compare_url":"https://api.github.com/repos/djs55/xen-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djs55/xen-api/merges","archive_url":"https://api.github.com/repos/djs55/xen-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djs55/xen-api/downloads","issues_url":"https://api.github.com/repos/djs55/xen-api/issues{/number}","pulls_url":"https://api.github.com/repos/djs55/xen-api/pulls{/number}","milestones_url":"https://api.github.com/repos/djs55/xen-api/milestones{/number}","notifications_url":"https://api.github.com/repos/djs55/xen-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djs55/xen-api/labels{/name}","releases_url":"https://api.github.com/repos/djs55/xen-api/releases{/id}","created_at":"2011-02-03T21:11:05Z","updated_at":"2015-04-19T12:25:34Z","pushed_at":"2015-07-06T10:21:25Z","git_url":"git://github.com/djs55/xen-api.git","ssh_url":"git@github.com:djs55/xen-api.git","clone_url":"https://github.com/djs55/xen-api.git","svn_url":"https://github.com/djs55/xen-api","homepage":"","size":26123,"stargazers_count":4,"watchers_count":4,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"xapi-project:master","ref":"master","sha":"3117c9fc4df4957261282147c513715ec8f21951","user":{"login":"xapi-project","id":317268,"avatar_url":"https://avatars.githubusercontent.com/u/317268?v=3","gravatar_id":"","url":"https://api.github.com/users/xapi-project","html_url":"https://github.com/xapi-project","followers_url":"https://api.github.com/users/xapi-project/followers","following_url":"https://api.github.com/users/xapi-project/following{/other_user}","gists_url":"https://api.github.com/users/xapi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xapi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xapi-project/subscriptions","organizations_url":"https://api.github.com/users/xapi-project/orgs","repos_url":"https://api.github.com/users/xapi-project/repos","events_url":"https://api.github.com/users/xapi-project/events{/privacy}","received_events_url":"https://api.github.com/users/xapi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":960233,"name":"xen-api","full_name":"xapi-project/xen-api","owner":{"login":"xapi-project","id":317268,"avatar_url":"https://avatars.githubusercontent.com/u/317268?v=3","gravatar_id":"","url":"https://api.github.com/users/xapi-project","html_url":"https://github.com/xapi-project","followers_url":"https://api.github.com/users/xapi-project/followers","following_url":"https://api.github.com/users/xapi-project/following{/other_user}","gists_url":"https://api.github.com/users/xapi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xapi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xapi-project/subscriptions","organizations_url":"https://api.github.com/users/xapi-project/orgs","repos_url":"https://api.github.com/users/xapi-project/repos","events_url":"https://api.github.com/users/xapi-project/events{/privacy}","received_events_url":"https://api.github.com/users/xapi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xapi-project/xen-api","description":"The Xapi Project's XenAPI Server","fork":false,"url":"https://api.github.com/repos/xapi-project/xen-api","forks_url":"https://api.github.com/repos/xapi-project/xen-api/forks","keys_url":"https://api.github.com/repos/xapi-project/xen-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xapi-project/xen-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xapi-project/xen-api/teams","hooks_url":"https://api.github.com/repos/xapi-project/xen-api/hooks","issue_events_url":"https://api.github.com/repos/xapi-project/xen-api/issues/events{/number}","events_url":"https://api.github.com/repos/xapi-project/xen-api/events","assignees_url":"https://api.github.com/repos/xapi-project/xen-api/assignees{/user}","branches_url":"https://api.github.com/repos/xapi-project/xen-api/branches{/branch}","tags_url":"https://api.github.com/repos/xapi-project/xen-api/tags","blobs_url":"https://api.github.com/repos/xapi-project/xen-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xapi-project/xen-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xapi-project/xen-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/xapi-project/xen-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xapi-project/xen-api/statuses/{sha}","languages_url":"https://api.github.com/repos/xapi-project/xen-api/languages","stargazers_url":"https://api.github.com/repos/xapi-project/xen-api/stargazers","contributors_url":"https://api.github.com/repos/xapi-project/xen-api/contributors","subscribers_url":"https://api.github.com/repos/xapi-project/xen-api/subscribers","subscription_url":"https://api.github.com/repos/xapi-project/xen-api/subscription","commits_url":"https://api.github.com/repos/xapi-project/xen-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/xapi-project/xen-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/xapi-project/xen-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/xapi-project/xen-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/xapi-project/xen-api/contents/{+path}","compare_url":"https://api.github.com/repos/xapi-project/xen-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xapi-project/xen-api/merges","archive_url":"https://api.github.com/repos/xapi-project/xen-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xapi-project/xen-api/downloads","issues_url":"https://api.github.com/repos/xapi-project/xen-api/issues{/number}","pulls_url":"https://api.github.com/repos/xapi-project/xen-api/pulls{/number}","milestones_url":"https://api.github.com/repos/xapi-project/xen-api/milestones{/number}","notifications_url":"https://api.github.com/repos/xapi-project/xen-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xapi-project/xen-api/labels{/name}","releases_url":"https://api.github.com/repos/xapi-project/xen-api/releases{/id}","created_at":"2010-10-04T10:52:57Z","updated_at":"2015-07-03T07:58:15Z","pushed_at":"2015-07-06T10:30:26Z","git_url":"git://github.com/xapi-project/xen-api.git","ssh_url":"git@github.com:xapi-project/xen-api.git","clone_url":"https://github.com/xapi-project/xen-api.git","svn_url":"https://github.com/xapi-project/xen-api","homepage":"http://xenproject.org/developers/teams/xapi.html","size":39503,"stargazers_count":182,"watchers_count":182,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":138,"mirror_url":null,"open_issues_count":32,"forks":138,"open_issues":32,"watchers":182,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278"},"html":{"href":"https://github.com/xapi-project/xen-api/pull/2278"},"issue":{"href":"https://api.github.com/repos/xapi-project/xen-api/issues/2278"},"comments":{"href":"https://api.github.com/repos/xapi-project/xen-api/issues/2278/comments"},"review_comments":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278/comments"},"review_comment":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/2278/commits"},"statuses":{"href":"https://api.github.com/repos/xapi-project/xen-api/statuses/eddefd99072d202b7b6c016ba82f71bedf73f8ad"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":101,"deletions":33,"changed_files":4}}