Bug 1953425

Summary: [OSP16.2] UseTLSTransportForNbd check can fail with TypeError: 'NoneType' object is not subscriptable
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: python-tripleoclientAssignee: David Vallee Delisle <dvd>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: drosenfe, dvd, hbrock, jslagle, mburns, owalsh
Target Milestone: betaKeywords: Patch, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.5.1-2.20210426005751.0dd3892.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1952017 Environment:
Last Closed: 2021-09-15 07:14:29 UTC Type: ---
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: 1952017    
Bug Blocks:    

Description Martin Schuppert 2021-04-26 05:51:26 UTC
+++ This bug was initially created as a clone of Bug #1952017 +++

If the initial deployment fails in heat the next run fails with:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 1022, in take_action
    self._update_parameters(parsed_args, stack)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_deploy.py", line 123, in _update_parameters                                                                                                     
    if nbd_tls_key in roledata[key]['config_settings']:
TypeError: 'NoneType' object is not subscriptable
'NoneType' object is not subscriptable

Deleting the stack and redeploying works.

Comment 6 errata-xmlrpc 2021-09-15 07:14:29 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 (RHOSP) 16.2 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/RHEA-2021:3483