Bug 1940836

Summary: [OSP16.1] test_novnc fails with "Token must be invalid because the connection closed"
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: openstack-tripleo-heat-templatesAssignee: Martin Schuppert <mschuppe>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: acanan, amodi, dasmith, dvd, dwilde, eglynn, jhakimra, kchamart, mburns, mgarciac, mschuppe, nova-maint, oblaut, owalsh, sbauza, sgordon, vromanso
Target Milestone: z7Keywords: Patch, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210720153309.29a02c1, puppet-tripleo-11.5.0-1.20210622133307.f716ef5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1940834 Environment:
Last Closed: 2021-12-09 20:18:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: Train
Embargoed:
Bug Depends On: 1879609, 1940834    
Bug Blocks:    

Description Martin Schuppert 2021-03-19 10:22:18 UTC
+++ This bug was initially created as a clone of Bug #1940834 +++

+++ This bug was initially created as a clone of Bug #1879609 +++

Description of problem: RHOS 13 TLS E deployment with the following extra THT param deploy, fails test_novnc test with mentioned error:
ServiceNetMap.NovaLibvirtNetwork=ctlplane

How reproducible: always

Steps to Reproduce:
1. Deploy RHOS 13 with TLS Everywhere and following THT parameter:
    ServiceNetMap
        NovaLibvirtNetwork=ctlplane
2. Run tempest test tempest.api.compute.servers.test_novnc.NoVNCConsoleTestJSON.test_novnc
3. Test fails

Actual results:
       Body: {"os-getVNCConsole": {"type": "novnc"}}
    Response - Headers: {'status': '200', u'content-length': '144', 'content-location': 'https://overcloud.redhat.local:13774/v2.1/servers/21a9b536-1162-43d5-8e38-4f4d68bbf788/action', u'x-compute-request-id': 'req-80c6f4bd-9aab-4c50-8db8-d46da77d930e', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 16 Sep 2020 14:38:46 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-80c6f4bd-9aab-4c50-8db8-d46da77d930e'}
        Body: {"console": {"url": "https://overcloud.redhat.local:13080/vnc_auto.html?path=%3Ftoken%3D885cd4b8-3c0a-487c-91b8-33fe326bc9f1", "type": "novnc"}}
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/api/compute/servers/test_novnc.py", line 188, in test_novnc
    self._validate_rfb_negotiation()
  File "/usr/lib/python2.7/site-packages/tempest/api/compute/servers/test_novnc.py", line 91, in _validate_rfb_negotiation
    'Token must be invalid because the connection '
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 672, in assertFalse
    raise self.failureException(msg)
AssertionError: True is not false : Token must be invalid because the connection closed.

Expected results:
Test passed

Additional info:
Logs and job in #c1

Comment 27 errata-xmlrpc 2021-12-09 20:18:11 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 (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement 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://access.redhat.com/errata/RHBA-2021:3762