Ask Your Question
1

devstack connect to host <> port 22: No route to host

asked 2016-07-13 04:03:30 -0500

anonymous user

Anonymous

Hi,

Created devstack/liberty, created boot from volume

nova list +--------------------------------------+--------+--------+------------+-------------+------------------------------+ | ID
| Name | Status | Task State | Power State | Networks | +--------------------------------------+--------+--------+------------+-------------+------------------------------+ | f88745d5-762b-4652-abfa-463fbbfa0062 | test | ACTIVE | - | Running | private=10.0.0.6, 172.24.4.2 | +--------------------------------------+--------+--------+------------+-------------+------------------------------+

&&

nova secgroup-list-rules default +-------------+-----------+---------+-----------+--------------+ | IP Protocol | From Port | To Port | IP Range | Source Group | +-------------+-----------+---------+-----------+--------------+ | tcp | 22 | 22 | 0.0.0.0/0 | | | icmp | -1 | -1 | 0.0.0.0/0 | | +-------------+-----------+---------+-----------+--------------+

ssh cirros@10.0.0.6 ssh: connect to host 10.0.0.6 port 22: No route to host & also could not able to ping as well

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-07-13 04:11:57 -0500

appeno gravatar image

I think you need to associate the instance with a public floating IP. I believe you are trying yo reach the private IP which is isolated to the network inside openstack and unknown to the public.

edit flag offensive delete link more
0

answered 2016-07-15 00:31:36 -0500

zarkone gravatar image

Openstack Neutron uses Linux network namespaces to create & manage private networks.

from man IP-NETNS:

A network namespace is logically another copy of the network stack, with its own routes, firewall rules, and network devices

In order to ssh login to your instance without floating ip (i.e., having only private ip), you need to use network namespace:

find out your namespace id:

ip netns

login:

ip netns exec qdhcp-6021a3b4-8587-4f9c-8064-0103885dfba2

futher info: http://docs.openstack.org/user-guide/cli_cheat_sheet.html (http://docs.openstack.org/user-guide/...)

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

1 follower

Stats

Asked: 2016-07-13 04:03:30 -0500

Seen: 1,416 times

Last updated: Jul 15 '16