Ask Your Question
0

Can't access dashboard on VM installation [closed]

asked 2015-04-22 06:31:15 -0500

mickt gravatar image

updated 2015-04-24 09:24:45 -0500

I have an all-in-one icehouse running on a redhat VM and I'm using novncproxy. I can't access the dashboard, receiving the following error when I browse to http://test:6080/vnc_auto.html, 'Failed to connect to server (code: 1006)'.

I can find no logs on the server for novncproxy.

Can anyone direct me to what nest to check?

Status:

+------------------+----------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host     | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+----------+----------+---------+-------+----------------------------+-----------------+
| nova-conductor   | test | internal | enabled | up    | 2015-04-22T10:58:57.000000 | -               |
| nova-consoleauth | test | internal | enabled | up    | 2015-04-22T10:58:58.000000 | -               |
| nova-scheduler   | test | internal | enabled | up    | 2015-04-22T10:59:00.000000 | -               |
| nova-cert        | test | internal | enabled | up    | 2015-04-22T10:58:59.000000 | -               |
| nova-compute     | test | nova     | enabled | up    | 2015-04-22T10:59:02.000000 | -               |
+------------------+----------+----------+---------+-------+----------------------------+-----------------+

openstack-nova-novncproxy (pid  5882) is running...

+--------------------------------------+--------------------+----------+-------+----------------+
| id                                   | agent_type         | host     | alive | admin_state_up |
+--------------------------------------+--------------------+----------+-------+----------------+
| 6c76ed25-b187-47bf-8dec-bdd5692e11aa | Open vSwitch agent | test | :-)   | True           |
| 91966572-cf79-4f48-949a-e69b92be00f9 | L3 agent           | test | :-)   | True           |
| a02a2af9-c7b3-40e7-83d4-f4b613936709 | Metadata agent     | test | :-)   | True           |
| aa8e3509-bc3a-455d-a5b9-affafa622765 | DHCP agent         | test | :-)   | True           |
+--------------------------------------+--------------------+----------+-------+----------------+

netstat -nap |grep 6080
tcp        0      0 0.0.0.0:6080                0.0.0.0:*                   LISTEN      5882/python         
tcp        0      0 127.0.0.1:60802             127.0.0.1:3306              ESTABLISHED 2898/python         
tcp        0      0 127.0.0.1:3306              127.0.0.1:60802             ESTABLISHED 1996/mysqld

.

Configuration:

grep vnc /etc/nova/nova.conf | grep -v ^#

novncproxy_host=0.0.0.0
novncproxy_port=6080
novncproxy_base_url=http://test:6080/vnc_auto.html
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=127.0.0.1
vnc_enabled=True
vnc_keymap=en-us

novncproxy is a red herring so I've removed it from question title. I noticed that the permissions were incorrect for horizon logs, which I've corrected so now I have some useful logging. I also have another VM, which I imported and I can access it from the host so at least the comms are verified.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mickt
close date 2015-04-24 09:30:57.010532

Comments

If you are using iptables, can you flush it and check? Are you able to ping "test"? Also try to capture the traffic passing through 6080 port using wireshark.

uts9 gravatar imageuts9 ( 2015-04-22 07:15:52 -0500 )edit

Make sure the domain name test is resolvable from the machine you are trying to access the console.

rahulrajvn gravatar imagerahulrajvn ( 2015-04-22 08:08:58 -0500 )edit

I can ping etc.

4 0.000250 10.169.106.239 10.169.106.230 HTTP 896 GET /websockify HTTP/1.1

6 0.012608 10.169.106.230 10.169.106.239 HTTP 227 HTTP/1.1 101 Switching Protocols

mickt gravatar imagemickt ( 2015-04-22 08:35:56 -0500 )edit

Hi , are you trying to access the Openstack Dashboard or the remote console for the Instance running in the Openstack Servers.

rahulrajvn gravatar imagerahulrajvn ( 2015-04-22 11:09:02 -0500 )edit

The dashboard as I've not yet created any instances. I've tried various URL:ports etc. with little success.

mickt gravatar imagemickt ( 2015-04-22 11:29:02 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-04-24 08:40:47 -0500

mickt gravatar image

Sorted issue as follows:

Remove /etc/httpd/conf.d/15-default.conf. I just renamed it and restart httpd.

Best also verify the hostname in /etc/httpd/conf.d/15-horizon_vhost.conf.

edit flag offensive delete link more
0

answered 2015-04-22 09:09:32 -0500

Your hostname is not resolvable from the device your accessing Edit the /etc/nova/nova.conf under [DEFAULT] change novncproxy_base_url from 'http://test:6080/vnc_auto.html' to 'http://IP_ADDRESS:6080/vnc_auto.html' where IP_ADDRESS is ip address of your VM which should be reachable from the machine you are opening dashboard.

edit flag offensive delete link more

Comments

I receive the same error when using the IP, http://10.10.10.10:6080/vnc_auto.html

mickt gravatar imagemickt ( 2015-04-22 09:28:34 -0500 )edit

Because 10.10.10.10 is not accessible outside your VM. Use public IP address or you can NAT to access that IP outside VM on Host OS.

Gursimran Singh gravatar imageGursimran Singh ( 2015-04-22 12:58:17 -0500 )edit

It's an example hostname and IP address. My host and VM have IPs on the same /21 network.

mickt gravatar imagemickt ( 2015-04-23 02:52:49 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-04-22 06:31:15 -0500

Seen: 2,066 times

Last updated: Apr 24 '15