Bug 1102660 - Instance console does not work via Horizon instance console tab
Summary: Instance console does not work via Horizon instance console tab
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Julie Pichon
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-29 12:07 UTC by Nir Magnezi
Modified: 2019-09-10 14:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-03 09:56:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nir Magnezi 2014-05-29 12:07:11 UTC
Description of problem:
=======================
Instance console does not work via Horizon instance console tab.

Version-Release number of selected component (if applicable):
=============================================================
python-django-horizon-2014.1-6.el6ost.noarch
openstack-dashboard-2014.1-6.el6ost.noarch
openstack-dashboard-theme-2014.1-6.el6ost.noarch

How reproducible:
=================
100%
Tested both with RHEL6 and RHEL7

Steps to Reproduce:
===================
1. Install OpenStack via openstack-packstack-2014.1.1-0.13.dev1068
2. Browse to: https://<FQDN>/dashboard/project/instances/<INSTANCE_UUID>/

Actual results:
===============
The following text (the actual console is absent):

If console is not responding to keyboard input: click the grey status bar below. Click here to show only console
To exit the fullscreen mode, click the browser's back button.

Expected results:
=================
Instance console should work OK.

Additional info:
================
You may click the "Click here to show only console" and than the console works OK.

Comment 2 Lon Hohberger 2014-05-29 15:33:49 UTC
Confirmed.  Workaround is to click 'Click here to show only console' link.

Comment 3 Julie Pichon 2014-05-29 16:08:05 UTC
Could you confirm a couple of things like:

1. Which browser(s) are you seeing this behaviour with?
2. Is nova-vnc set up to work with SSL as well? Some browsers will block http content from being displayed within a https page.

If there's any error message in the console logs for the browser, feel free to include it as well, thank you. I'll check in my RHOS environment tomorrow as well.

Comment 4 Julie Pichon 2014-05-30 10:27:10 UTC
Using python-django-horizon-2014.1-6.el7ost and Firefox (29.0.1) and Chrome (35.0), the console is displayed correctly in the tab for me. However both my dashboard and novnc are running using http.

Could you answer the two questions in comment 3? Thank you.

Comment 5 Nir Magnezi 2014-06-01 05:36:00 UTC
(In reply to Julie Pichon from comment #3)
> Could you confirm a couple of things like:
> 
> 1. Which browser(s) are you seeing this behaviour with?

Firefox 29.0.1

> 2. Is nova-vnc set up to work with SSL as well? Some browsers will block
> http content from being displayed within a https page.

Yes.

> 
> If there's any error message in the console logs for the browser, feel free
> to include it as well, thank you. I'll check in my RHOS environment tomorrow
> as well.

Sorry that setup is not live anymore, but I did search for clues in the logs and did not find any.

Comment 6 Julie Pichon 2014-06-03 16:13:23 UTC
Hi Nir,

(In reply to Nir Magnezi from comment #5)
> (In reply to Julie Pichon from comment #3)
> > 2. Is nova-vnc set up to work with SSL as well? Some browsers will block
> > http content from being displayed within a https page.
> 
> Yes.

Could you or someone who can reproduce the problem provide the output of `nova get-vnc-console <server_id> novnc`?

When I set CONFIG_HORIZON_SSL=y in Packstack only Horizon gets set up with SSL, novnc doesn't. I can reproduce the problem only if I leave the system like this (Horizon on SSL, novnc without). However once I set up Nova to provide the VNC console with SSL (updating the baseurl etc in /etc/nova/nova.conf), it gets displayed correctly in Horizon.

At this point I'm fairly confident this is a configuration issue due to browsers not allowing displaying http content within https pages and not something that can be resolved from the Horizon side...

Comment 7 Nir Magnezi 2014-06-09 07:46:26 UTC
Ido, since you are already looking into it, can you please check?

Comment 8 Ido Ovadia 2014-07-03 08:51:18 UTC
(In reply to Julie Pichon from comment #6)
> Hi Nir,
> 
> (In reply to Nir Magnezi from comment #5)
> > (In reply to Julie Pichon from comment #3)
> > > 2. Is nova-vnc set up to work with SSL as well? Some browsers will block
> > > http content from being displayed within a https page.
> > 
> > Yes.
> 
> Could you or someone who can reproduce the problem provide the output of
> `nova get-vnc-console <server_id> novnc`?
> 
> When I set CONFIG_HORIZON_SSL=y in Packstack only Horizon gets set up with
> SSL, novnc doesn't. I can reproduce the problem only if I leave the system
> like this (Horizon on SSL, novnc without). However once I set up Nova to
> provide the VNC console with SSL (updating the baseurl etc in
> /etc/nova/nova.conf), it gets displayed correctly in Horizon.
> 
> At this point I'm fairly confident this is a configuration issue due to
> browsers not allowing displaying http content within https pages and not
> something that can be resolved from the Horizon side...

+-------+------------------------------------------------------------------------------------+
| Type  | Url                                                                                |
+-------+------------------------------------------------------------------------------------+
| novnc | http://10.35.160.115:6080/vnc_auto.html?token=2c4c7e40-b04e-42df-a27d-25d8e04a7e4b |
+-------+------------------------------------------------------------------------------------+

Comment 9 Julie Pichon 2014-07-03 08:55:17 UTC
Thanks for the data, this is a configuration issue. Novnc should also be configured to run with https. I'm not sure if this bug should be closed as not a bug or moved to the installer that was used to create this setup?

Comment 10 Julie Pichon 2014-07-03 09:56:49 UTC
I opened bug 1115896 against packstack to track this. Thanks!


Note You need to log in before you can comment on or make changes to this bug.