Unable to launch VM consoles due to incorrect vnc proxy server port

Bug #1546385 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Critical
Ignatious Johnson Christopher
Trunk
Fix Committed
Critical
Ignatious Johnson Christopher

Bug Description

R3.0 Build 2713 Ubuntu 14.04 Kilo multi-node setup

This is a setup with only contrail having HA configured, and openstack is running on a separate node

testbed.py has this :
env.ha = {
    'contrail_internal_vip' : '192.168.1.31',
    'contrail_external_vip' : '10.204.217.38',
    'internal_virtual_router_id' : 200,
    'external_virtual_router_id' : 201,
}

When a VM's console is launched, user gets connection refused error since no one is listening on 6080

http://10.204.217.147:6080/vnc_auto.html?token=e38010b6-15ff-4201-b6a8-c7b184bb5eee&title=custom-svm1-1(55ac7a67-316b-40cb-b206-5436fc205ea3)

On the compute node, below changes needed to be made for the console to work (change from 6080 to 5999)
novncproxy_base_url = http://10.204.217.147:6080/vnc_auto.html
novncproxy_port = 6080

Looks like in our provisioning, vnc proxy port is configured incorrectly. On the nova server, we configure 5999, and on compute, we set 6080

On server :
root@nodei35:/etc/nova# netstat -anp |grep 5999
tcp 0 0 0.0.0.0:5999 0.0.0.0:* LISTEN 29154/python
root@nodei35:/etc/nova#

novncproxy_port needs to be set to 6080 in nova server's nova.conf

Setup :
======

env.roledefs = {
    'all': [host1, host2, host3, host4, host5, host6, host7, host8, host9, host10, host11, host12, host13],
    'cfgm': [host1, host2, host3],
    'openstack': [host4],
    'webui': [host3],
    'control': [host1, host2, host3 ],
    'compute': [host5, host6, host7, host8, host9, host10, host11, host12, host13],
    'collector': [host1, host2, host3],
    'database': [host1, host2, host3 ],
# 'toragent': [host5, host6, host7, host9],
# 'tsn': [host5, host6, host7, host9],
    'build': [host_build],
}

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17857
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17858
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17858
Committed: http://github.org/Juniper/contrail-provisioning/commit/da9558eeb4d158913f615edd80edd7bc9e99e3d5
Submitter: Zuul
Branch: master

commit da9558eeb4d158913f615edd80edd7bc9e99e3d5
Author: Ignatious Johnson Christopher <email address hidden>
Date: Thu Feb 25 13:50:05 2016 -0800

In contrail only HA enviroinment, we make vncserver listen on 5999
However in comopute node vnc url is set to port 6080.
Changing it to 5999 only in cas of contrail only HA case.

Change-Id: I37e12c4e6deb429bf205ab694959b36db68143e6
Closes-Bug: 1546385

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/17857
Committed: http://github.org/Juniper/contrail-provisioning/commit/3f6ef04974b6b5c5c5343796d0e1c27fe1e8fd0c
Submitter: Zuul
Branch: R3.0

commit 3f6ef04974b6b5c5c5343796d0e1c27fe1e8fd0c
Author: Ignatious Johnson Christopher <email address hidden>
Date: Thu Feb 25 13:50:05 2016 -0800

In contrail only HA enviroinment, we make vncserver listen on 5999
However in comopute node vnc url is set to port 6080.
Changing it to 5999 only in cas of contrail only HA case.

Change-Id: I37e12c4e6deb429bf205ab694959b36db68143e6
Closes-Bug: 1546385

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.