{"action":"created","issue":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/188","labels_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/188/comments","events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/188/events","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/188","id":74187370,"number":188,"title":"SAIC-169 Key pair migration","user":{"login":"roman-verchikov","id":386276,"avatar_url":"https://avatars.githubusercontent.com/u/386276?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-verchikov","html_url":"https://github.com/roman-verchikov","followers_url":"https://api.github.com/users/roman-verchikov/followers","following_url":"https://api.github.com/users/roman-verchikov/following{/other_user}","gists_url":"https://api.github.com/users/roman-verchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-verchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-verchikov/subscriptions","organizations_url":"https://api.github.com/users/roman-verchikov/orgs","repos_url":"https://api.github.com/users/roman-verchikov/repos","events_url":"https://api.github.com/users/roman-verchikov/events{/privacy}","received_events_url":"https://api.github.com/users/roman-verchikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-08T01:31:14Z","updated_at":"2015-05-12T00:55:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/188","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/188","diff_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/188.diff","patch_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/188.patch"},"body":"Key pairs are only accessible by user created them, admin user has no\r\naccess to user key pairs. Because of that migration fails for non-admin\r\nVMs which have keypair associated."},"comment":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/comments/101084136","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/188#issuecomment-101084136","issue_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/188","id":101084136,"user":{"login":"roman-verchikov","id":386276,"avatar_url":"https://avatars.githubusercontent.com/u/386276?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-verchikov","html_url":"https://github.com/roman-verchikov","followers_url":"https://api.github.com/users/roman-verchikov/followers","following_url":"https://api.github.com/users/roman-verchikov/following{/other_user}","gists_url":"https://api.github.com/users/roman-verchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-verchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-verchikov/subscriptions","organizations_url":"https://api.github.com/users/roman-verchikov/orgs","repos_url":"https://api.github.com/users/roman-verchikov/repos","events_url":"https://api.github.com/users/roman-verchikov/events{/privacy}","received_events_url":"https://api.github.com/users/roman-verchikov/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T00:55:03Z","updated_at":"2015-05-12T00:55:03Z","body":"Ok, so the problem is actually more complicated than I thought. Simply put, it's not enough to transfer key pairs to destination on the low level, it is also required to boot VM on destination with original user credentials, in our case VM is booted with admin credentials at all times, which makes it impossible to associate VM with user's key pair (key pair is only visible to user, not to admin). I will continue investigating the possibility to hack cloud-init on the lower level so that it provides correct keys at boot time without `--key-pair` argument provided to `nova boot`."}}