Openstack/Nova : No route to host when I'm trying to ssh instance

6.7k Views Asked by At

I run a little dev vagrant box with Openstack installed on it thanks to devstack. Everything runs pretty good, but I can't manage to connect through ssh to my new instance. When I try ssh -i ~/.ssh/id_rsa [email protected] I get the following message :

ssh connect to host 10.0.0.2 port 22: No route to host

My security group rules are fine but I'm not able to find the problem.

1

There are 1 best solutions below

0
On

A useful Resource is the RDO Website.

From Networking:

Verify that traffic to port 22 and ICMP traffic of any type (-1:-1) is allowed in the default security group.
Verify that you can ping and SSH the host where the instance is running From the host where you are attempting to connect to your instance, verify that network traffic is being correctly routed to the compute node in question.

ip netns list
# Identify virtual router to which your subnet is connected
ip netns exec qrouter-YOUR-OVSROUTER-ID ping YOUR-INSTANCE-IP
# IP address and qrouter ID correspond to the network namespace and private IP address for instance

If that is working your network is working fine. You can try restarting the following services:

sudo systemctl restart neutron-metadata-agent.service 
sudo systemctl restart neutron-dhcp-agent.service