http://169.254.169.254/2009-04-04/meta-data/instance-id failed - Permission denied (publickey)
Hi Everyone,
I have followed Liberty openstack install on Ubuntu 14.04 using the following tutorial, http://docs.openstack.org/liberty/ins... I have followed each and every instruction as is and everything works fine except the fact that i cant SSH into the instance using its created key. After digging in i could see the following logs and they indicate something to do with metadata not reachable and inject the new key into the instance. Below are the logs,
2016-06-27 22:31:11,185 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d623890>, 'Connection to 169.254.169.254 timed out. (connect timeout=50.0)')]
2016-06-27 22:32:02,311 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [101/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d6239d0>, 'Connection to 169.254.169.254 timed out. (connect timeout=50.0)')]
2016-06-27 22:32:20,407 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d623890>, 'Connection to 169.254.169.254 timed out. (connect timeout=17.0)')]
2016-06-27 22:32:21,424 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 120 seconds
2016-06-27 22:33:11,568 - url_helper.py[WARNING]: Calling 'http://10.0.0.2//latest/meta-data/instance-id' failed
[50/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d6238d0>, 'Connection to 10.173.251.18 timed out. (connect timeout=50.0)')]
2016-06-27 22:34:02,691 - url_helper.py[WARNING]: Calling 'http://10.0.0.2//latest/meta-data/instance-id' failed [101/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d623a90>, 'Connection to 10.173.251.18 timed out. (connect timeout=50.0)')]
2016-06-27 22:34:20,783 - url_helper.py[WARNING]: Calling 'http://10.0.0.2//latest/meta-data/instance-id' failed [119/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7f0c7d623a50>, 'Connection to 10.173.251.18 timed out. (connect timeout=17.0)')]
2016-06-27 22:34:21,800 - DataSourceCloudStack.py[CRITICAL]: Giving up on waiting for the metadata from ['http://10.0.0.2//latest/meta-data/instance-id'] after 120 seconds
10.0.0.2 is my controller where metadata agent is running. I have tried almost everything that i could to try and fix this problem but havent found a solution yet. Can anyone shed some light if they have come across such an issue? Any help is appreciated. Thank you!
Have you checked the security groups, and see that the assigned security group has ICMP/SSH ports open and enabled.
Hi Syed. I have checked the Security group and the permissions look fine as i can connect to the instance on port 22. Problem is when i launch a new instance my created or imported key doesnt get injected into it. Because of that i cant SSH into it using the downloaded key. I am really stuck here :(
I can only see errors such as "Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed" in the instance logs. It does seem like the instance is not able to access metadata from which it would grab the assigned key but not sure how to resolve this. Has anyone seen this problem?
Which network did you attach the instance to? It should be connected to an internal network with DHCP enabled. I've seen this come up when users attempt to launch instances on the Public Network (Floating IP pool network.)
Instance is attached to private network(172.16.1.0/24) and its getting the DHCP allocated IP 172.16.1.3. I am still struggling with this. Is there anything else i should be checking to get this working?