Bug 1391125

Summary: noVNC ports are not allowed on compute firewalls breaking console access
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: rhosp-directorAssignee: Angus Thomas <athomas>
Status: CLOSED DUPLICATE QA Contact: Omri Hochman <ohochman>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: dbecker, jslagle, mburns, morazi, rhel-osp-director-maint
Target Milestone: ga   
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-02 15:55:43 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:

Description Marius Cornea 2016-11-02 15:35:34 UTC
Description of problem:
noVNC ports are not allowed on compute firewalls breaking console access

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-5.0.0-0.9.0rc3.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud 
2. Launch instance and open VNC console in browser


Actual results:
Fails with: Failed to connect to server (code: 1006)

/var/log/nova/nova-novncproxy.log 
16-11-02 15:23:40.748 30106 INFO nova.console.websocketproxy [req-8ecf72e0-48ae-47e6-bfae-09c01530027d - - - - -]  12: connect info: {u'instance_uuid': u'd6bffac1-0b3a-415e-a880-6f4ba39a6c2d', u'internal_access_path': None, u'last_activity_at': 1478100203.924124, u'console_type': u'novnc', u'host': u'10.0.0.20', u'token': u'5d970455-cf65-4b3b-b451-b47e598c0b6a', u'access_url': u'http://172.16.18.33:6080/vnc_auto.html?token=5d970455-cf65-4b3b-b451-b47e598c0b6a', u'port': u'5905'}
2016-11-02 15:23:40.748 30106 INFO nova.console.websocketproxy [req-8ecf72e0-48ae-47e6-bfae-09c01530027d - - - - -]  12: connecting to: 10.0.0.20:5905
2016-11-02 15:23:40.756 30106 INFO nova.console.websocketproxy [req-8ecf72e0-48ae-47e6-bfae-09c01530027d - - - - -] handler exception: [Errno 113] EHOSTUNREACH


Expected results:
Connection to VNC ports on compute nodes coming from the nodes running the novncproxy service should be allowed. 

Additional info:

Comment 1 James Slagle 2016-11-02 15:43:41 UTC
11:42 <    slagle> mcornea: if you manually add the iptables rule, does it start working?
11:42 <    slagle> just curious...so we can know if there are other issues
11:42 <   mcornea> slagle: yes, it does
11:42 <    slagle> mcornea: ok, cool. so you just opened up 5905?
11:43 <   mcornea> slagle: yes - iptables -I INPUT -p tcp -m multiport --dports 5905 -m comment --comment "instance console" -m state --state NEW -j ACCEPT

Comment 2 James Slagle 2016-11-02 15:55:43 UTC

*** This bug has been marked as a duplicate of bug 1387914 ***