Ask Your Question
0

ssh fails with a public_key issue when create by heat?

asked 2015-04-21 07:46:58 -0600

ankit_gooner gravatar image

Hi, I have an instance created with heat template with a key A,it is exposed to external n/w and i am able to ping it, But, when i do ssh it fails with public_key acces denied issue.

The strange part is when i create an instance manually with the same key in the same netowork, SSH works fine.

I am not able to see any differences in both the instances.can you please help?

regards ankit

edit retag flag offensive close merge delete

Comments

Hi, Please check the neutron Metadata log to see whether the Instance created by heat have requested for metadata.

rahulrajvn gravatar imagerahulrajvn ( 2015-04-21 08:52:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-03 16:16:03 -0600

Nate_McKay gravatar image

I have this same problem. Any instances created via a Heat template can not be logged into, but a manually created instance using the same image and key works as expected. Any ideas? I see that the instance in question is making requests to the metadata service:

2015-08-03 14:09:26.875 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.627 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2012-08-10/meta_data.json HTTP/1.1" 200 725 0.750399
2015-08-03 14:09:27.637 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.643 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2013-10-17 HTTP/1.1" 200 167 0.005155
2015-08-03 14:09:27.653 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.901 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2013-10-17/vendor_data.json HTTP/1.1" 200 124 0.247671
2015-08-03 14:09:27.912 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.919 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2013-10-17/vendor_data.json HTTP/1.1" 200 124 0.006323
2015-08-03 14:09:27.928 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.936 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2013-10-17/user_data HTTP/1.1" 200 7283 0.006698
2015-08-03 14:09:27.945 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:27.953 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:27] "GET /openstack/2013-10-17/user_data HTTP/1.1" 200 7283 0.005900
2015-08-03 14:09:27.961 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:28.279 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:28] "GET /openstack/2013-10-17/meta_data.json HTTP/1.1" 200 1429 0.316215
2015-08-03 14:09:28.290 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:28.299 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:28] "GET /openstack/2013-10-17/meta_data.json HTTP/1.1" 200 1429 0.007537
2015-08-03 14:09:28.310 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:28.319 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:28] "GET /latest/meta-data HTTP/1.1" 200 362 0.006932
2015-08-03 14:09:28.331 3795 INFO eventlet.wsgi.server [-] (3795) accepted ''
2015-08-03 14:09:28.339 3795 INFO eventlet.wsgi.server [-] 192.168.2.34,<local> - - [03/Aug/2015 14:09:28] "GET /latest/meta-data/block-device-mapping/ HTTP/1.1" 200 124 0.006972
2015-08-03 14:09:28.350 3795 INFO eventlet.wsgi.server ...
(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-04-21 07:46:58 -0600

Seen: 136 times

Last updated: Aug 03 '15