{"action":"created","issue":{"url":"https://api.github.com/repos/opscode/chef-provisioning/issues/140","labels_url":"https://api.github.com/repos/opscode/chef-provisioning/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/opscode/chef-provisioning/issues/140/comments","events_url":"https://api.github.com/repos/opscode/chef-provisioning/issues/140/events","html_url":"https://github.com/opscode/chef-provisioning/issues/140","id":41001864,"number":140,"title":"Chef-metal-fog with digital ocean doesn't seem to like large ssh keys","user":{"login":"jdblack","id":1109549,"avatar_url":"https://avatars.githubusercontent.com/u/1109549?v=3","gravatar_id":"","url":"https://api.github.com/users/jdblack","html_url":"https://github.com/jdblack","followers_url":"https://api.github.com/users/jdblack/followers","following_url":"https://api.github.com/users/jdblack/following{/other_user}","gists_url":"https://api.github.com/users/jdblack/gists{/gist_id}","starred_url":"https://api.github.com/users/jdblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdblack/subscriptions","organizations_url":"https://api.github.com/users/jdblack/orgs","repos_url":"https://api.github.com/users/jdblack/repos","events_url":"https://api.github.com/users/jdblack/events{/privacy}","received_events_url":"https://api.github.com/users/jdblack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opscode/chef-provisioning/labels/Waiting+For+Contributor+Response","name":"Waiting For Contributor Response","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opscode/chef-provisioning/milestones/2","labels_url":"https://api.github.com/repos/opscode/chef-provisioning/milestones/2/labels","id":759292,"number":2,"title":"Later","description":"Laziness abounds!  Ready the flux capacitor!  1.8 gigawatts!","creator":{"login":"jkeiser","id":654882,"avatar_url":"https://avatars.githubusercontent.com/u/654882?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeiser","html_url":"https://github.com/jkeiser","followers_url":"https://api.github.com/users/jkeiser/followers","following_url":"https://api.github.com/users/jkeiser/following{/other_user}","gists_url":"https://api.github.com/users/jkeiser/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeiser/subscriptions","organizations_url":"https://api.github.com/users/jkeiser/orgs","repos_url":"https://api.github.com/users/jkeiser/repos","events_url":"https://api.github.com/users/jkeiser/events{/privacy}","received_events_url":"https://api.github.com/users/jkeiser/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":2,"state":"open","created_at":"2014-08-19T21:33:09Z","updated_at":"2014-12-03T18:23:44Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-08-24T08:52:51Z","updated_at":"2015-01-11T16:09:49Z","closed_at":"2014-09-17T05:44:50Z","body":"'''\r\njblack@comet:~/chef/linuxguru$ cat recipes/stack_simple.rb \r\nrequire 'chef_metal_fog'\r\n\r\nwith_driver 'fog:DigitalOcean',\r\n     :digitalocean_api_key => Chef::Config[:digital_ocean_api_key],\r\n     :digitalocean_client_id => Chef::Config[:digital_ocean_client_id]\r\n\r\nwith_chef_server 'https://chef.linuxguru.net',\r\n   :client_name => Chef::Config[:node_name],\r\n   :signing_key_filename => Chef::Config[:client_key]\r\n\r\nwith_machine_options(\r\n:bootstrap_options => {\r\n      image_name: 'Ubuntu 14.04 x64',\r\n      flavor_name: '512MB',\r\n      region_name: 'New York 2',\r\n      ssh_key_ids:  [ 174936  ]\r\n   }\r\n)\r\n\r\nmachine 'testbox' do\r\n   tag 'itsname'\r\nend\r\n\r\njblack@comet:~/chef/linuxguru$ sudo chef-client -o linuxguru::stack_simple\r\n[2014-08-24T01:36:22-07:00] WARN: \r\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\nSSL validation of HTTPS requests is disabled. HTTPS connections are still\r\nencrypted, but chef is not able to detect forged replies or man in the middle\r\nattacks.\r\n\r\nTo fix this issue add an entry like this to your configuration file:\r\n\r\n```\r\n  # Verify all HTTPS connections (recommended)\r\n  ssl_verify_mode :verify_peer\r\n\r\n  # OR, Verify only connections to chef-server\r\n  verify_api_cert true\r\n```\r\n\r\nTo check your SSL configuration, or troubleshoot errors, you can use the\r\n`knife ssl check` command like so:\r\n\r\n```\r\n  knife ssl check -c /etc/chef/client.rb\r\n```\r\n\r\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\r\nStarting Chef Client, version 11.14.6\r\n[2014-08-24T01:36:23-07:00] WARN: Run List override has been provided.\r\n[2014-08-24T01:36:23-07:00] WARN: Original Run List: [recipe[linuxguru::role_linuxguru]]\r\n[2014-08-24T01:36:23-07:00] WARN: Overridden Run List: [recipe[linuxguru::stack_simple]]\r\nresolving cookbooks for run list: [\"linuxguru::stack_simple\"]\r\nSynchronizing Cookbooks:\r\n  - apache2\r\n  - iptables\r\n  - logrotate\r\n  - pacman\r\n  - freebsd\r\n  - apt\r\n  - asterisk\r\n  - build-essential\r\n  - unimrcp\r\n  - yum\r\n  - bind\r\n  - linuxguru\r\n  - bind9\r\n  - chef-client\r\n  - cron\r\n  - chef-server\r\n  - elasticsearch\r\n  - ark\r\n  - windows\r\n  - chef_handler\r\n  - 7-zip\r\n  - git\r\n  - dmg\r\n  - runit\r\n  - yum-epel\r\n  - gitolite\r\n  - perl\r\n  - hostname\r\n  - hostsfile\r\n  - iptables-ng\r\n  - java\r\n  - jenkins\r\n  - kibana\r\n  - lxc\r\n  - dpkg_autostart\r\n  - mysql\r\n  - yum-mysql-community\r\n  - nfs\r\n  - line\r\n  - openvpn\r\n  - rsyslog\r\n  - selinux\r\n  - ssh-keys\r\n  - sudo\r\n  - swap\r\n  - sysctl\r\n  - ohai\r\n  - td-agent\r\n  - users\r\n  - zenoss\r\n  - openssh\r\n  - openssl\r\n  - chef-sugar\r\n  - rabbitmq\r\n  - erlang\r\n  - yum-erlang_solutions\r\n  - zenoss_client\r\n  - redisio\r\n  - ulimit\r\nCompiling Cookbooks...\r\nConverging 1 resources\r\nRecipe: linuxguru::stack_simple\r\n  * machine[testbox] action converge[2014-08-24T01:36:31-07:00] WARN: Mismatched key size!  /home/jblack/.ssh/id_rsa is 4096 bytes, desired is 2048 bytes.  Use action :regenerate to force key regeneration.\r\n\r\n    \r\n    ================================================================================\r\n    Error executing action `converge` on resource 'machine[testbox]'\r\n    ================================================================================\r\n    \r\n    Fog::Errors::Error\r\n    ------------------\r\n    fog_key_pair[id_rsa] (basic_chef_client::block line 18) had an error: Fog::Errors::Error: {\"status\"=>\"ERROR\", \"error_message\"=>\"SSH Key failed to be created\", \"message\"=>\"SSH Key failed to be created\"}\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/linuxguru/recipes/stack_simple.rb\r\n    \r\n     23: machine 'testbox' do\r\n     24:    tag 'itsname'\r\n     25: end\r\n     26: \r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/linuxguru/recipes/stack_simple.rb:23:in `from_file'\r\n    \r\n    machine(\"testbox\") do\r\n      action :converge\r\n      retries 0\r\n      retry_delay 2\r\n      guard_interpreter :default\r\n      chef_server {:chef_server_url=>\"https://chef.linuxguru.net\", :options=>{:client_name=>\"comet\", :signing_key_filename=>\"/etc/chef/client.pem\"}}\r\n      driver \"fog:DigitalOcean\"\r\n      machine_options {:bootstrap_options=>{:image_name=>\"Ubuntu 14.04 x64\", :flavor_name=>\"512MB\", :region_name=>\"New York 2\", :ssh_key_ids=>174936}}\r\n      cookbook_name \"linuxguru\"\r\n      recipe_name \"stack_simple\"\r\n      attribute_modifiers [[\"tags\", #<Proc:0x000000051b3af0@/var/lib/gems/1.9.1/gems/cheffish-0.7.1/lib/cheffish.rb:149>]]\r\n    end\r\n    \r\n\r\nRunning handlers:\r\n[2014-08-24T01:36:31-07:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2014-08-24T01:36:31-07:00] ERROR: Exception handlers complete\r\n[2014-08-24T01:36:31-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\nChef Client failed. 0 resources updated in 9.61786178 seconds\r\n[2014-08-24T01:36:31-07:00] ERROR: machine[testbox] (linuxguru::stack_simple line 23) had an error: Fog::Errors::Error: fog_key_pair[id_rsa] (basic_chef_client::block line 18) had an error: Fog::Errors::Error: {\"status\"=>\"ERROR\", \"error_message\"=>\"SSH Key failed to be created\", \"message\"=>\"SSH Key failed to be created\"}\r\n[2014-08-24T01:36:31-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n'''\r\n\r\n\r\n<!---\r\n@huboard:{\"milestone_order\":140.0}\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/opscode/chef-provisioning/issues/comments/69499596","html_url":"https://github.com/opscode/chef-provisioning/issues/140#issuecomment-69499596","issue_url":"https://api.github.com/repos/opscode/chef-provisioning/issues/140","id":69499596,"user":{"login":"jakshi","id":786400,"avatar_url":"https://avatars.githubusercontent.com/u/786400?v=3","gravatar_id":"","url":"https://api.github.com/users/jakshi","html_url":"https://github.com/jakshi","followers_url":"https://api.github.com/users/jakshi/followers","following_url":"https://api.github.com/users/jakshi/following{/other_user}","gists_url":"https://api.github.com/users/jakshi/gists{/gist_id}","starred_url":"https://api.github.com/users/jakshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakshi/subscriptions","organizations_url":"https://api.github.com/users/jakshi/orgs","repos_url":"https://api.github.com/users/jakshi/repos","events_url":"https://api.github.com/users/jakshi/events{/privacy}","received_events_url":"https://api.github.com/users/jakshi/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T16:09:49Z","updated_at":"2015-01-11T16:09:49Z","body":"The reason for:\r\n\r\n[2014-08-24T01:36:31-07:00] ERROR: machinetestbox had an error: Fog::Errors::Error: fog_key_pairid_rsa had an error: Fog::Errors::Error: {\"status\"=>\"ERROR\", \"error_message\"=>\"SSH Key failed to be created\", \"message\"=>\"SSH Key failed to be created\"}\r\n\r\nerror is that fog_key_pair create duplicated keys on DO, that forbidden by DO API."}}