{"action":"created","issue":{"url":"https://api.github.com/repos/uzh/gc3pie/issues/560","repository_url":"https://api.github.com/repos/uzh/gc3pie","labels_url":"https://api.github.com/repos/uzh/gc3pie/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/uzh/gc3pie/issues/560/comments","events_url":"https://api.github.com/repos/uzh/gc3pie/issues/560/events","html_url":"https://github.com/uzh/gc3pie/issues/560","id":164938006,"number":560,"title":"Confusing error when using a PEM-format keypairs","user":{"login":"riccardomurri","id":447228,"avatar_url":"https://avatars.githubusercontent.com/u/447228?v=3","gravatar_id":"","url":"https://api.github.com/users/riccardomurri","html_url":"https://github.com/riccardomurri","followers_url":"https://api.github.com/users/riccardomurri/followers","following_url":"https://api.github.com/users/riccardomurri/following{/other_user}","gists_url":"https://api.github.com/users/riccardomurri/gists{/gist_id}","starred_url":"https://api.github.com/users/riccardomurri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riccardomurri/subscriptions","organizations_url":"https://api.github.com/users/riccardomurri/orgs","repos_url":"https://api.github.com/users/riccardomurri/repos","events_url":"https://api.github.com/users/riccardomurri/events{/privacy}","received_events_url":"https://api.github.com/users/riccardomurri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uzh/gc3pie/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/uzh/gc3pie/labels/openstack","name":"openstack","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-11T21:24:42Z","updated_at":"2016-07-11T21:25:05Z","closed_at":null,"body":"A bug will manifest itself if all the following conditions are met:\r\n\r\n1. The `public_key` configuration item of an OpenStack computational\r\n   resource points to a PEM-format file (irrelevant whether it already\r\n   contains the public key or if it contains the private one from\r\n   which the former should be derived)\r\n2. The `keypair` configuration item of that same resource points to a\r\n   non-existing name.\r\n\r\nIn accordance with the manual and what happens in other cases, GC3Pie\r\nshould upload the public key under the specified keypair name -- thus\r\neffectively creating a new keypair.\r\n\r\nInstead, we get an exception and an error message stating that the\r\npublic key fingerprint is invalid and the OpenStack resource becomes\r\nunusable.\r\n\r\nApparently, the issue originates from the [Nova Client code][1];\r\nhowever, the [documentation][2] is very scarce and the [code][3] is\r\njust doing an RPC call so it's quite possible that the error message\r\noriginates server-side.\r\n\r\nAnyway: it doesn't seem possible to patch or work around the issue on\r\nthe NovaClient side, but GC3Pie should prevent the call to NovaClient\r\nfrom happening and report a useful error message if the public key is\r\nnot in OpenSSH's own text format.\r\n\r\n[1]: http://docs.openstack.org/user-guide/sdk_configure_access_security_instances.html\r\n[2]: http://docs.openstack.org/developer/python-novaclient/api/novaclient.v1_1.keypairs.html#novaclient.v1_1.keypairs.KeypairManager.create\r\n[3]: https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/keypairs.py#L90\r\n"},"comment":{"url":"https://api.github.com/repos/uzh/gc3pie/issues/comments/231870081","html_url":"https://github.com/uzh/gc3pie/issues/560#issuecomment-231870081","issue_url":"https://api.github.com/repos/uzh/gc3pie/issues/560","id":231870081,"user":{"login":"riccardomurri","id":447228,"avatar_url":"https://avatars.githubusercontent.com/u/447228?v=3","gravatar_id":"","url":"https://api.github.com/users/riccardomurri","html_url":"https://github.com/riccardomurri","followers_url":"https://api.github.com/users/riccardomurri/followers","following_url":"https://api.github.com/users/riccardomurri/following{/other_user}","gists_url":"https://api.github.com/users/riccardomurri/gists{/gist_id}","starred_url":"https://api.github.com/users/riccardomurri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riccardomurri/subscriptions","organizations_url":"https://api.github.com/users/riccardomurri/orgs","repos_url":"https://api.github.com/users/riccardomurri/repos","events_url":"https://api.github.com/users/riccardomurri/events{/privacy}","received_events_url":"https://api.github.com/users/riccardomurri/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T21:25:05Z","updated_at":"2016-07-11T21:25:05Z","body":"Thanks to Rostyk Kuzyakiv for reporting."}}
{"actor":{"display_login":"riccardomurri"}}