简体   繁体   English

Openstack / Nova:当我尝试ssh实例时没有主机路由

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

I run a little dev vagrant box with Openstack installed on it thanks to devstack. 由于devstack,我运行了一个安装了Openstack的dev dev vagrant box。 Everything runs pretty good, but I can't manage to connect through ssh to my new instance. 一切都运行得很好,但我无法通过ssh连接到我的新实例。 When I try ssh -i ~/.ssh/id_rsa cirros@10.0.0.2 I get the following message : 当我尝试ssh -i~ / .ssh / id_rsa cirros@10.0.0.2时,我收到以下消息:

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. 我的安全组规则很好,但我无法找到问题。

A useful Resource is the RDO Website . 一个有用的资源是RDO网站

From Networking : 来自网络

Verify that traffic to port 22 and ICMP traffic of any type (-1:-1) is allowed in the default security group. 验证默认安全组中是否允许到端口22的流量和任何类型(-1:-1)的ICMP流量。
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. 验证您是否可以对运行实例的主机执行ping和SSH操作从尝试连接到实例的主机,验证网络流量是否正确路由到相关计算节点。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM