Ask Your Question
0

unable to launch console from horizon

asked 2014-08-20 15:08:53 -0500

bobyakov gravatar image

Hi All,

Instance was created successfully no errors, but when I access instance via horizon console get error "operation timed out" in Chrome and IE. I am able to ping and ssh to instance on floating public ip.

I have 2 controllers, and to HA Proxy's

HAproxy 10.1.0.3 10.1.0.4 VIP 10.1.0.2

Controller: 10.1.0.5 10.1.0.6

Only error I see is apache2 log:

[Wed Aug 20 19:30:30.287706 2014] [:error] [pid 10629:tid 140490927363840] RESP: [200] CaseInsensitiveDict({'date': 'Wed, 20 Aug 2014 19:30:30 GMT', 'content-length': '522', 'content-type': 'application/json', 'x-compute-request-id': 'req-6d1cd473-d727-4ad6-b0a3-25a94e2a04ab'})
[Wed Aug 20 19:30:30.287720 2014] [:error] [pid 10629:tid 140490927363840] RESP BODY: {"flavor": {"name": "m1.small", "links": [{"href": "http://10.1.0.2:8774/v2/e9c4804197d54e80b25a79770f748dc4/flavors/9b77eb77-f2ac-4686-bd35-45af693f8945", "rel": "self"}, {"href": "http://10.1.0.2:8774/e9c4804197d54e80b25a79770f748dc4/flavors/9b77eb77-f2ac-4686-bd35-45af693f8945", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "9b77eb77-f2ac-4686-bd35-45af693f8945"}}
[Wed Aug 20 19:30:30.287744 2014] [:error] [pid 10629:tid 140490927363840]
[Wed Aug 20 19:30:30.465977 2014] [:error] [pid 10629:tid 140490927363840] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.0.2
[Wed Aug 20 19:30:30.466507 2014] [:error] [pid 10629:tid 140490927363840] DEBUG:urllib3.connectionpool:Setting read timeout to None
[Wed Aug 20 19:30:30.536949 2014] [:error] [pid 10629:tid 140490927363840] DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1315
[Wed Aug 20 19:30:30.539278 2014] [:error] [pid 10629:tid 140490927363840] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.1.0.2
[Wed Aug 20 19:30:30.539706 2014] [:error] [pid 10629:tid 140490927363840] DEBUG:urllib3.connectionpool:Setting read timeout to None
[Wed Aug 20 19:30:30.562614 2014] [:error] [pid 10629:tid 140490927363840] DEBUG:urllib3.connectionpool:"GET /v2.0/tenants HTTP/1.1" 200 130
[Wed Aug 20 19:30:32.221964 2014] [:error] [pid 10629:tid 140491002963712]
[Wed Aug 20 19:30:32.222037 2014] [:error] [pid 10629:tid 140491002963712] REQ: curl -i 'http://10.1.0.2:8774/v2/e9c4804197d54e80b25a79770f748dc4/servers/3c4656ca-e42a-4c08-857e-e1d0f9a0cbc2' -X GET -H "X-Auth-Project-Id: e9c4804197d54e80b25a79770f748dc4" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 67770d341014bdde5a003dce7a0f49d3"
[Wed Aug 20 19:30:32.222049 2014] [:error] [pid 10629:tid 140491002963712]
[Wed Aug 20 19:30:32.222287 2014] [:error] [pid 10629:tid 140491002963712] New session created for: (http://10.1.0.2:8774)
[Wed Aug 20 19:30:32.224990 2014] [:error] [pid 10629:tid 140491002963712] DEBUG:urllib3.connectionpool:Setting read timeout to None
[Wed Aug 20 19:30:32.357540 2014] [:error] [pid 10629:tid 140491002963712] DEBUG:urllib3.connectionpool:"GET /v2/e9c4804197d54e80b25a79770f748dc4/servers/3c4656ca-e42a-4c08-857e-e1d0f9a0cbc2 HTTP/1.1" 200 1600
[Wed Aug 20 19:30:32.359109 2014] [:error] [pid 10629:tid 140491002963712] RESP: [200] CaseInsensitiveDict({'date': 'Wed, 20 Aug 2014 19:30:32 GMT', 'content-length': '1600', 'content-type': 'application/json', 'x-compute-request-id': 'req-ffbdc492-e97b-453d-b7dc-447d56c42732'})
[Wed ...
(more)
edit retag flag offensive close merge delete

Comments

Looks like the VNC console is set to be at http://10.1.0.2:6080 , maybe make sure the IP is accessible from your machine (the one with the browser open, not the Horizon server) and that port 6080 is open on the controller? Can you access the console when you paste in the URL given from "nova get-vnc-console novnc" command directly into the browser?

jpichon gravatar imagejpichon ( 2014-08-21 11:29:47 -0500 )edit

That IP is the private VIP on the HA proxy. It is not accessible from my browser computer IP. Port 6080 is open on controller.

I thought that was for compute and controller to communicate on?

bobyakov gravatar imagebobyakov ( 2014-08-22 09:14:01 -0500 )edit

Update URL to public IP still getting error : Not Found The requested URL /130.245.183.133:6080/vnc_auto.html was not found on this server.

bobyakov gravatar imagebobyakov ( 2014-08-25 10:36:17 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-08-21 04:22:21 -0500

SGPJ gravatar image

Can you refer to this link: link text

Request you to search the site before posting.

edit flag offensive delete link more

Comments

I confirmed and reconfirmed my vnc and novnc settings, still not working.

bobyakov gravatar imagebobyakov ( 2014-08-21 09:15:43 -0500 )edit
1

answered 2014-08-22 11:16:56 -0500

jpichon gravatar image

You probably want to make sure the novnc base URL on port 6080 is a public URL.

Horizon requests the novnc URL and token using nova get-vnc-console novnc. From the logs you posted, the URL is returned as http://10.1.0.2:6080/vnc_auto.html?token=97a6fa8a-58b0-42c2-81f5-07c025889fe2 in this case. This needs to be accessible from the places you want to access the console from, so I would say the baseurl config parameter shouldn't use a private IP.

edit flag offensive delete link more

Comments

Will try it and let you guys know, that definitely sounds like the issue.

bobyakov gravatar imagebobyakov ( 2014-08-25 08:48:30 -0500 )edit

Update URL to public IP still getting error : Not Found The requested URL /130.245.183.133:6080/vnc_auto.html was not found on this server.

bobyakov gravatar imagebobyakov ( 2014-08-25 10:35:52 -0500 )edit

Looks like the VNC URL is getting truncated, you need to include the http:// (or https, if you set up novnc with SSL) part of the URL in the nova.conf, e.g. in my env it looks like this: novncproxy_base_url = http://192.168.100.189:6080/vnc_auto.html

jpichon gravatar imagejpichon ( 2014-08-25 10:38:24 -0500 )edit

Config is correct has the http. Tried URL directly with out console. getting: Failed to connect to server (code: 1006)

bobyakov gravatar imagebobyakov ( 2014-08-25 15:15:20 -0500 )edit

Ok, at least now the console is loading! There's a lot of different possible reasons for that error message, I believe there's several questions about it on this website too. Sadly I'm not familiar enough with NoVNC itself to be much help with debugging. Good luck!

jpichon gravatar imagejpichon ( 2014-08-26 03:09:15 -0500 )edit

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: 2014-08-20 15:08:53 -0500

Seen: 6,899 times

Last updated: Aug 22 '14