<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0);">
<div style="font-size: 14px; font-family: Calibri, sans-serif;">
<p id="yui_3_10_3_1_1413383897969_2304" style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
I did a fresh re-install of devstack.</p>
<p id="yui_3_10_3_1_1413383897969_2310" style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
Now I got the URL for the console.</p>
<p id="yui_3_10_3_1_1413383897969_2313" style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
localadmin@<wbr>qa4:~/devstack$ nova get-vnc-console vm1 novnc<br>
+------<wbr>-+-----<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>---+<br>
<span class="foldable-quoted">| Type | Url |<br>
</span>+------<wbr>-+-----<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>---+<br>
<span class="foldable-quoted">| novnc | <a rel="nofollow" href="http://172.29.172.161:6080/vnc_auto.html?token=9ced0dd0-f146-42eb-9b26-c64a29443936" style="color: rgb(0, 51, 170); text-decoration: none;">http://<wbr>172.29.<wbr>172.161:<wbr>6080/vnc_<wbr>auto.html?<wbr>token=9ced0dd0-<wbr>f146-42eb-<wbr>9b26-c64a294439<wbr>36</a> |<br>
</span>+------<wbr>-+-----<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>---+</p>
<p style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
However, when attempt to connect to the URL, error "Failed to connect to server (code: 1006)" is returned at the web page.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
The following traceback is logged in the Controller's screen-<wbr>x-n-novnc.<wbr>log:</p>
<p style="margin: 0px 0px 0.8em; padding: 0px; width: auto; max-width: 45em; color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);">
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/webutil.js HTTP/1.1" 200 -<br>
2014-10-15 15:11:06.029 DEBUG nova.console.<wbr>websocketproxy [-] 10.131.67.144: new handler Process from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/des.js HTTP/1.1" 200 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/<wbr>keyboard.<wbr>js HTTP/1.1" 200 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/input.js HTTP/1.1" 200 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/display.js HTTP/1.1" 200 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/jsunzip.js HTTP/1.1" 200 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /include/rfb.js HTTP/1.1" 200 -<br>
2014-10-15 15:11:06.590 DEBUG nova.console.<wbr>websocketproxy [-] 10.131.67.144: new handler Process from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /websockify HTTP/1.1" 101 -<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] 10.131.67.144: Plain non-SSL (ws://) WebSocket connection<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] 10.131.67.144: Version hybi-13, base64: 'False'<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] 10.131.67.144: Path: '/websockify'<br>
2014-10-15 15:11:06.605 INFO oslo.messaging.<wbr>_drivers.<wbr>impl_rabbit [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] Connecting to AMQP server on 172.29.172.161:5672<br>
2014-10-15 15:11:06.616 DEBUG nova.console.<wbr>websocketproxy [-] 10.131.67.144: new handler Process from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
10.131.67.144 - - [15/Oct/2014 15:11:06] "GET /favicon.ico HTTP/1.1" 200 -<br>
2014-10-15 15:11:06.622 INFO oslo.messaging.<wbr>_drivers.<wbr>impl_rabbit [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] Connected to AMQP server on 172.29.172.161:5672<br>
2014-10-15 15:11:06.629 INFO oslo.messaging.<wbr>_drivers.<wbr>impl_rabbit [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] Connecting to AMQP server on 172.29.172.161:5672<br>
2014-10-15 15:11:06.641 INFO oslo.messaging.<wbr>_drivers.<wbr>impl_rabbit [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] Connected to AMQP server on 172.29.172.161:5672<br>
2014-10-15 15:11:06.652 INFO nova.console.<wbr>websocketproxy [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] handler exception: The token '9ced0dd0-<wbr>f146-42eb-<wbr>9b26-c64a294439<wbr>36' is invalid or has expired<br>
2014-10-15 15:11:06.652 DEBUG nova.console.<wbr>websocketproxy [req-f5c8828b-<wbr>f111-4a12-<wbr>8812-d25f56e47b<wbr>01 None None] exception from (pid=13509) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy Traceback (most recent call last):<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 874, in top_new_client<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy client = self.do_<wbr>handshake(<wbr>startsock, address)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 809, in do_handshake<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy self.RequestHan<wbr>dlerClass(<wbr>retsock, address, self)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/opt/stack/<wbr>nova/nova/<wbr>console/<wbr>websocketproxy.<wbr>py", line 112, in __init__<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy websockify.<wbr>ProxyRequestHan<wbr>dler.__<wbr>init__(<wbr>self, *args, **kwargs)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 112, in __init__<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy SimpleHTTPReque<wbr>stHandler.<wbr>__init_<wbr>_(self, req, addr, server)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/lib/<wbr>python2.<wbr>7/SocketServer.<wbr>py", line 649, in __init__<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy self.handle()<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 540, in handle<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy SimpleHTTPReque<wbr>stHandler.<wbr>handle(<wbr>self)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/lib/<wbr>python2.<wbr>7/BaseHTTPServe<wbr>r.py", line 340, in handle<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy self.handle_<wbr>one_request(<wbr>)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/lib/<wbr>python2.<wbr>7/BaseHTTPServe<wbr>r.py", line 328, in handle_one_request<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy method()<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 506, in do_GET<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy if not self.handle_<wbr>websocket(<wbr>):<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py", line 494, in handle_websocket<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy self.new_<wbr>websocket_<wbr>client(<wbr>)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy File "/opt/stack/<wbr>nova/nova/<wbr>console/<wbr>websocketproxy.<wbr>py", line 74, in new_websocket_<wbr>client<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy raise exception.<wbr>InvalidToken(<wbr>token=token)<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy InvalidToken: The token '9ced0dd0-<wbr>f146-42eb-<wbr>9b26-c64a294439<wbr>36' is invalid or has expired<br>
2014-10-15 15:11:06.652 TRACE nova.console.<wbr>websocketproxy<br>
2014-10-15 15:11:06.658 DEBUG nova.console.<wbr>websocketproxy [-] Reaing zombies, active child count is 7 from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
2014-10-15 15:11:50.404 DEBUG nova.console.<wbr>websocketproxy [-] Reaing zombies, active child count is 4 from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
2014-10-15 15:11:50.405 DEBUG nova.console.<wbr>websocketproxy [-] Reaing zombies, active child count is 0 from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824<br>
2014-10-15 15:11:50.405 DEBUG nova.console.<wbr>websocketproxy [-] Reaing zombies, active child count is 0 from (pid=21242) vmsg /usr/local/<wbr>lib/python2.<wbr>7/dist-<wbr>packages/<wbr>websockify/<wbr>websocket.<wbr>py:824</p>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Devstack is used to deploy OpenStack.  I enabled the “n-novnc” service at the Compute node.</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Below is a snippet of the localrc.</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Compute:</div>
<div>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;"># Services</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">disable_all_services</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">ENABLED_SERVICES=neutron,n-cpu,rabbit,q-api,q-agt,n-novnc</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;"><br>
</p>
<p style="margin: 0px;">Controller:</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;"># Services</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">disable_service n-net</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">disable_service n-cpu</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service q-svc</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service q-agt</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service q-dhcp</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service q-l3</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service q-meta</p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;"></p>
<p style="font-size: 11px; font-family: Menlo; margin: 0px;">enable_service neutron</p>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">The process n-novnc is running at both the Controller and Compute nodes.</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Is this a misconfiguration issue?</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Thanks,</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Danny</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">---------------------------------------------------------------</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">
<div style="font-family: Consolas; font-size: medium;">Date: Wed, 15 Oct 2014 08:10:00 -0700</div>
<div style="font-family: Consolas; font-size: medium;">From: Vishvananda Ishaya <<a href="mailto:vishvananda@gmail.com">vishvananda@gmail.com</a>></div>
<div style="font-family: Consolas; font-size: medium;">To: "OpenStack Development Mailing List (not for usage questions)"</div>
<div style="font-family: Consolas; font-size: medium;"><span class="Apple-tab-span" style="white-space: pre;"></span><<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>></div>
<div style="font-family: Consolas; font-size: medium;">Subject: Re: [openstack-dev] [qa] Cannot start the VM console when VM</div>
<div style="font-family: Consolas; font-size: medium;"><span class="Apple-tab-span" style="white-space: pre;"></span>is<span class="Apple-tab-span" style="white-space: pre;">
</span>launched at Compute node</div>
<div style="font-family: Consolas; font-size: medium;">Message-ID: <<a href="mailto:BC5F71F5-5F45-497A-BF99-F8CCD3C710F2@gmail.com">BC5F71F5-5F45-497A-BF99-F8CCD3C710F2@gmail.com</a>></div>
<div style="font-family: Consolas; font-size: medium;">Content-Type: text/plain; charset="windows-1252"</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">No this is not expected and may represent a misconfiguration or a bug. Something</div>
<div style="font-family: Consolas; font-size: medium;">is returning a 404 when it shouldn?t. You might get more luck running the nova command</div>
<div style="font-family: Consolas; font-size: medium;">with ?debug to see what specifically is 404ing. You could also see if anything is reporting</div>
<div style="font-family: Consolas; font-size: medium;">NotFound in the nova-consoleauth or nova-api or nova-compute logs</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">Vish</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">On Oct 14, 2014, at 10:45 AM, Danny Choi (dannchoi) <<a href="mailto:dannchoi@cisco.com">dannchoi@cisco.com</a>> wrote:</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="font-family: Consolas; font-size: medium; border-left-color: rgb(181, 196, 223); border-left-width: 5px; border-left-style: solid; padding: 0px 0px 0px 5px; margin: 0px 0px 0px 5px;">
<div>Hi,</div>
<div></div>
<div>I used devstack to deploy multi-node OpenStack, with Controller + nova-compute + Network on one physical node (qa4),</div>
<div>and Compute on a separate physical node (qa5).</div>
<div></div>
<div>When I launch a VM which spun up on the Compute node (qa5), I cannot launch the VM console, in both CLI and Horizon.</div>
<div></div>
<div>localadmin@qa4:~/devstack$ nova hypervisor-servers q</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>| ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>| 48b16e7c-0a17-42f8-9439-3146f26b4cd8 | instance-0000000e | 1             | qa4                 |</div>
<div>| 3eadf190-465b-4e90-ba49-7bc8ce7f12b9 | instance-0000000f | 1             | qa4                 |</div>
<div>| 056d4ad2-e081-4706-b7d1-84ee281e65fc | instance-00000010 | 2             | qa5                 |</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>localadmin@qa4:~/devstack$ nova list</div>
<div>+--------------------------------------+------+--------+------------+-------------+---------------------------------+</div>
<div>| ID                                   | Name | Status | Task State | Power State | Networks                        |</div>
<div>+--------------------------------------+------+--------+------------+-------------+---------------------------------+</div>
<div>| 3eadf190-465b-4e90-ba49-7bc8ce7f12b9 | vm1  | ACTIVE | -          | Running     | private=10.0.0.17               |</div>
<div>| 48b16e7c-0a17-42f8-9439-3146f26b4cd8 | vm2  | ACTIVE | -          | Running     | private=10.0.0.16, 172.29.173.4 |</div>
<div>| 056d4ad2-e081-4706-b7d1-84ee281e65fc | vm3  | ACTIVE | -          | Running     | private=10.0.0.18, 172.29.173.5 |</div>
<div>+--------------------------------------+------+--------+------------+-------------+---------------------------------+</div>
<div>localadmin@qa4:~/devstack$ nova get-vnc-console vm3 novnc</div>
<div>ERROR (CommandError): No server with a name or ID of 'vm3' exists.      <<<<<<<[ERROR]</div>
<div></div>
<div></div>
<div>This does not happen if the VM resides at the Controlller (qa5).</div>
<div></div>
<div>localadmin@qa4:~/devstack$ nova get-vnc-console vm2 novnc</div>
<div>+-------+-------------------------------------------------------------------------------------+</div>
<div>| Type  | Url                                                                                 |</div>
<div>+-------+-------------------------------------------------------------------------------------+</div>
<div>| novnc | <a href="http://172.29.172.161:6080/vnc_auto.html?token=f556dea2-125d-49ed-bfb7-55a9a7714b2e">http://172.29.172.161:6080/vnc_auto.html?token=f556dea2-125d-49ed-bfb7-55a9a7714b2e</a> |</div>
<div>+-------+-------------------------------------------------------------------------------------+</div>
<div></div>
<div>Is this expected behavior?</div>
<div></div>
<div>Thanks,</div>
<div>Danny</div>
<div>_______________________________________________</div>
<div>OpenStack-dev mailing list</div>
<div><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a></div>
<div><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div>
<div><br>
</div>
</blockquote>
</div>
</body>
</html>