Cannot console into new created Openstack instance

asked 2017-05-24 08:24:38 -0600

openstackplz gravatar image

I installed Openstack Mitaka using Devstack on an Ubuntu virtual machine in Virtualbox. After installation, things seemed to be alright. Then I start a new Cirros instance, and it succeeded. However, when I tried to console this instance using ip nets exec xxxxxx ssh cirros@172.24.4.3 it returned ssh: connect to host 172.24.4.3 port 22: no route to host. Result for ip nets exec xxxxxx ping 172.24.4.3 is Destination Host Unreachable.

I checked the ip netsh, the result includes:

qrouter-xxxxxxx

qdhcp-xxxxxx

If I use ip nets exec qrouter-xxxxxx ip addr show , the result includes:

127.0.0.1, 10.0.0.1, 172.24.4.2, and another item with no ip address.

If I user ip nets exec qdhcp-xxxxxx ip addr show, the result includes:

127.0.0.1, 10.0.0.2

The instance is connected to public network as shown in Openstack Dashboard. And if I try to connect to the console in WebUI - Dashboard/Compute/Instances/xxxx/Console, there was an error shown on the page, saying:

    Error response. 
    Error code 404.Message: File not found.
    Error code explanation: 404 = Nothing matches the given URI.

So how can I console into the instances created by Openstack? Is it something to do with the network configuration?

Thank you for your answers in advance.

edit retag flag offensive close merge delete

Comments

Your setup is incorrect somewhere. A few recommendations:

  • Check for ERROR messages in the logs /opt/stack/logs/*
  • openstack console log show INSTANCE. Does the instance have an IP at all?
  • Interactive console: openstack console url show INSTANCE, then paste the URL in the browser.
Bernd Bausch gravatar imageBernd Bausch ( 2017-05-25 04:01:08 -0600 )edit

More recommendations:

  • openstack compute service list. Anything missing? Anything down? In particular the console part.
  • neutron agent-list. Anything missing? Anything down?

And: If your goal is to learn and play with OpenStack, use something more robust - Packstack on Centos.

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-25 04:03:08 -0600 )edit

hi Bernd, I asked a new question, could you have a look? https://ask.openstack.org/en/question/106999/how-to-set-up-openstack-localcon-in-virtual-box/ (https://ask.openstack.org/en/question...)

openstackplz gravatar imageopenstackplz ( 2017-05-26 00:47:45 -0600 )edit