noVNCproxy is not work with vCenter

Bug #1368745 reported by Andrey Danin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Igor Gajsin
5.1.x
Fix Released
Medium
Igor Gajsin
6.0.x
Fix Released
Medium
Igor Gajsin

Bug Description

Affected release: Fuel 5.1

When trying to access to a console via Horizon, it redirects to localhost:6080

It seems that there is a misconfiguration for Nova. nova.conf should be:
root@node-1:/etc/init.d# grep vnc /etc/nova/nova.conf | grep -ivE "(^#|^$)"
novncproxy_host=<Controller public IP or VIP>
novncproxy_base_url=http://<Controller public IP or VIP>:6080/vnc_auto.html
vncserver_listen=0.0.0.0
novncproxy_port=6080

But now it:
admins-MacBook-Air-2:Downloads adanin$ grep -i vnc nova.conf
novncproxy_host=<Controller public IP or VIP>
novncproxy_port=6080

Revision history for this message
Andrey Danin (gcon-monolake) wrote :

It's not obvious what parameters should be added to nova.conf. A current nova.conf from vCenter environment should be provided.

Revision history for this message
Andrey Danin (gcon-monolake) wrote :

Also, for 5.1, it should be documented at least as a known issue.

description: updated
Revision history for this message
Irina Povolotskaya (ipovolotskaya) wrote :

I'll add it to Release Notes.
Is there any workaround?

tags: added: release-notes
Revision history for this message
Andrey Danin (gcon-monolake) wrote :

Irina, workaround is described in bug description:

nova.conf should be:
root@node-1:/etc/init.d# grep vnc /etc/nova/nova.conf | grep -ivE "(^#|^$)"
novncproxy_host=<Controller public IP or VIP>
novncproxy_base_url=http://<Controller public IP or VIP>:6080/vnc_auto.html
vncserver_listen=0.0.0.0
novncproxy_port=6080

So, to workaround this, a user should add these lines to /etc/nova/nova.conf on all the Controller nodes:
novncproxy_base_url=http://<Controller public IP or VIP>:6080/vnc_auto.html
vncserver_listen=0.0.0.0

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/125425

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/125425
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=3ec2725c6f3dbd04045934f79bba87895ac4627a
Submitter: Jenkins
Branch: master

commit 3ec2725c6f3dbd04045934f79bba87895ac4627a
Author: Igor Gajsin <email address hidden>
Date: Wed Oct 1 20:56:15 2014 +0400

    Setting correct parameter for working vnc console via browser

    Fix puppet manifest which set novncproxy_base_url into vmware vcenter
    environmen.

    Change-Id: Id004b84cb6ec4079906dd390107ca529e440caa7
    Closes-Bug: #1368745

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.1)

Fix proposed to branch: stable/5.1
Review: https://review.openstack.org/131092

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/5.1)

Reviewed: https://review.openstack.org/131092
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=580a46860dc328a8e4232dee171a9ceb34b933bb
Submitter: Jenkins
Branch: stable/5.1

commit 580a46860dc328a8e4232dee171a9ceb34b933bb
Author: Igor Gajsin <email address hidden>
Date: Wed Oct 1 20:56:15 2014 +0400

    Setting correct parameter for working vnc console via browser

    Fix puppet manifest which set novncproxy_base_url into vmware vcenter
    environmen.

    Change-Id: Id004b84cb6ec4079906dd390107ca529e440caa7
    Closes-Bug: #1368745
    (cherry picked from commit 3ec2725c6f3dbd04045934f79bba87895ac4627a)

Revision history for this message
Tatyana Dubyk (tdubyk) wrote :

For 6.0 I've already verified this bug on:

[root@nailgun ~]# fuel --fuel-version
api: '1.0'
astute_sha: c15623d05ccdf7ac10873e7a90df954de8726280
auth_required: true
build_id: 2014-11-23_10-54-46
build_number: '130'
feature_groups:
- mirantis
fuellib_sha: 2bfa9431a4839efae9c75d6b133df24c0f11c868
fuelmain_sha: 0dd338b6280843b4c45b46635528a6c43939c772
nailgun_sha: 7196c478bfe0b5cff97077c1829009b9dbc3ee92
ostf_sha: a35f516f1606b0d03d51ff63bfe3fbe23de4b622
production: docker
release: '6.0'
release_versions:
  2014.2-6.0:
    VERSION:
      api: '1.0'
      astute_sha: c15623d05ccdf7ac10873e7a90df954de8726280
      build_id: 2014-11-23_10-54-46
      build_number: '130'
      feature_groups:
      - mirantis
      fuellib_sha: 2bfa9431a4839efae9c75d6b133df24c0f11c868
      fuelmain_sha: 0dd338b6280843b4c45b46635528a6c43939c772
      nailgun_sha: 7196c478bfe0b5cff97077c1829009b9dbc3ee92
      ostf_sha: a35f516f1606b0d03d51ff63bfe3fbe23de4b622
      production: docker
      release: '6.0'

Revision history for this message
Tatyana Dubyk (tdubyk) wrote :

6.0:
[root@node-1 ~]# . openrc
[root@node-1 ~]# nova get-vnc-console tatka novnc
+-------+---------------------------------------------------------------------------------+
| Type | Url |
+-------+---------------------------------------------------------------------------------+
| novnc | http://172.16.0.2:6080/vnc_auto.html?token=f0e292c9-5256-4c3b-abb5-12c4d8f03c3e |
+-------+---------------------------------------------------------------------------------+

as expected

Revision history for this message
Tatyana Dubyk (tdubyk) wrote :

in nova.conf:
novncproxy_base_url=http://172.16.0.2:6080/vnc_auto.html
so it is expected that we get after: nova get-vnc-console tatka novnc

Revision history for this message
Tatyana Dubyk (tdubyk) wrote :

Verification on 5.1.1:
===================================================================
[root@nailgun ~]# fuel --fuel-version
api: '1.0'
astute_sha: dade74af41d4972fe05a1c16ae1db2a2e60c6715
auth_required: true
build_id: 2014-11-23_21-01-00
build_number: '34'
feature_groups:
- mirantis
fuellib_sha: 444339cae21c369c1d95e96c1059d4099077138e
fuelmain_sha: 0fe3db7475b9f8b287c5b59cba94c9a40a8d8101
nailgun_sha: 7580f6341a726c2019f880ae23ff3f1c581fd850
ostf_sha: 64cb59c681658a7a55cc2c09d079072a41beb346
production: docker
release: 5.1.1
release_versions:
  2014.1.3-5.1.1:
    VERSION:
      api: '1.0'
      astute_sha: dade74af41d4972fe05a1c16ae1db2a2e60c6715
      build_id: 2014-11-23_21-01-00
      build_number: '34'
      feature_groups:
      - mirantis
      fuellib_sha: 444339cae21c369c1d95e96c1059d4099077138e
      fuelmain_sha: 0fe3db7475b9f8b287c5b59cba94c9a40a8d8101
      nailgun_sha: 7580f6341a726c2019f880ae23ff3f1c581fd850
      ostf_sha: 64cb59c681658a7a55cc2c09d079072a41beb346
      production: docker
      release: 5.1.1
========================================================================
On Controller 3:
[root@nailgun ~]# . openrc
root@node-3:~# nova get-vnc-console belka novnc
+-------+---------------------------------------------------------------------------------+
| Type | Url |
+-------+---------------------------------------------------------------------------------+
| novnc | http://172.16.0.2:6080/vnc_auto.html?token=a3a4ae5c-95bb-4b39-afc1-ab99c67d54af |
+-------+---------------------------------------------------------------------------------+

On Controller 1:
========================================================================
root@node-1:~# nova get-vnc-console belka novnc
+-------+---------------------------------------------------------------------------------+
| Type | Url |
+-------+---------------------------------------------------------------------------------+
| novnc | http://172.16.0.2:6080/vnc_auto.html?token=41294592-bdce-455b-b697-a5c6e48e6708 |
+-------+---------------------------------------------------------------------------------+

and the same On Controller 2
all as expected

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.