Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1340475

Summary: Nova novnc console doesn't load 2/3 times: Failed to connect to server (code: 1006)
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Sven Anderson <svanders>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: dbecker, emacchi, iovadia, jason.dobies, jcoufal, jjoyce, markmc, mburns, morazi, rhel-osp-director-maint, svanders, tvignaud
Target Milestone: gaKeywords: Regression
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-2.0.0-27.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1361301 (view as bug list) Environment:
Last Closed: 2016-08-11 11:31:34 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:
Bug Depends On: 1361301    
Bug Blocks:    

Description Marius Cornea 2016-05-27 13:42:59 UTC
Description of problem:
Nova novnc console fails to load 2/3 requests in an HA environment with 3 controllers. The issue seems pretty much the same as the one reported in BZ#1238336

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-2.0.0-8.el7ost.noarch


How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud 
2. Log in to Horizon
3. Access instance console

Actual results:
2/3 times you get the following message:
Failed to connect to server (code: 1006)

Expected results:
The noVNC console always gets loaded.

Additional info:
The memcached servers are set in nova.conf:
[root@overcloud-controller-0 heat-admin]# grep memcached_servers /etc/nova/nova.conf 
# "memcached_servers" opt is deprecated in Mitaka. In Newton release oslo.cache
#memcached_servers=<None>
#memcached_servers=<None>
memcached_servers=10.0.0.15:11211,10.0.0.14:11211,10.0.0.13:11211

Comment 2 Marius Cornea 2016-06-09 20:29:15 UTC
In Mitaka the memcached_servers option got deprecated:
http://docs.openstack.org/releasenotes/nova/mitaka.html

I tried the following workaround on master and it fixed the issue for me:

On controller nodes in /etc/nova/nova.conf add this cache section:

[cache]
backend = oslo_cache.memcache_pool
enabled = true
memcache_servers = 10.0.0.15:11211,10.0.0.14:11211,10.0.0.13:11211

Comment 8 errata-xmlrpc 2016-08-11 11:31:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1599.html