Bug 1221986

Summary: openstack-nova-novncproxy fails to start
Product: [Community] RDO Reporter: Marius Cornea <mcornea>
Component: rdo-managerAssignee: Ben Nemec <bnemec>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: bnemec, madko, mburns
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:43:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
novncproxy.error none

Description Marius Cornea 2015-05-15 12:12:12 UTC
Created attachment 1025818 [details]
novncproxy.error

Description of problem:
openstack-nova-novncproxy fails to start because it's trying to listen on all interfaces on port 6080 which conflicts with haproxy.

Version-Release number of selected component (if applicable):
CentOS 7.1
instack-0.0.6-post6.el7.centos.noarch
openstack-tripleo-heat-templates-0.8.6-dev5.el7.centos.noarch
openstack-tripleo-puppet-elements-0.0.1-dev63.el7.centos.noarch
openstack-puppet-modules-2015.1.0-2.el7.noarch

How reproducible:
TripleO installation on virtual env according to https://repos.fedorapeople.org/repos/openstack-m/docs/master/

Steps to Reproduce:
1. Follow steps in the docs to get the overcloud deployed on CentOS 7.1
2. Log in the overcloud controller node
3. systemctl status openstack-nova-novncproxy.service 

Actual results:
Service fails to start. Log shows error: [Errno 98] Address already in us

Expected results:
The openstack-nova-novncproxy service starts.

Additional info:

The nova-novncproxy is trying to listen on all interfaces port 6080 and haproxy is already using 2 IP addresses to listen on port 6080. 

[root@ov-3sumit5kzsi-0-pvuhwrt7pa3y-controller-e6ywftkcqchy ~]# grep -v '^$\|^\s*\#' /etc/nova/nova.conf | grep novnc
novncproxy_host=0.0.0.0
novncproxy_port=6080
novncproxy_base_url=http://0.0.0.0:6080/vnc_auto.html

[root@ov-3sumit5kzsi-0-pvuhwrt7pa3y-controller-e6ywftkcqchy ~]# grep -A4 nova_novncproxy /etc/haproxy/haproxy.cfg 
listen nova_novncproxy
  bind 192.0.2.10:6080 
  bind 192.0.2.11:6080 
  option httpchk GET /
  server 192.0.2.13 192.0.2.13:6080 check fall 5 inter 2000 rise 2

Replacing novncproxy_host=0.0.0.0 with novncproxy_host=192.0.2.13 in /etc/nova/nova.conf makes it start up successfully. 

Log is attached.

Comment 1 Ben Nemec 2015-05-15 17:57:23 UTC
I believe https://review.openstack.org/#/c/183630 should fix this.

Comment 4 Chandan Kumar 2016-05-19 15:43:06 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.