Bug 2158380 - tripleo container image prepare TypeError: 'NoneType' object is not iterable
Summary: tripleo container image prepare TypeError: 'NoneType' object is not iterable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 17.1
Assignee: Brendan Shephard
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-05 09:13 UTC by Attila Fazekas
Modified: 2023-08-16 01:13 UTC (History)
7 users (show)

Fixed In Version: python-tripleoclient-16.5.1-1.20230322223905.1908ed1.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:13:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 869526 0 None MERGED Add handling for no -e param in CIP 2023-06-27 12:54:11 UTC
Red Hat Issue Tracker OSP-21187 0 None None None 2023-01-05 09:28:35 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:13:31 UTC

Description Attila Fazekas 2023-01-05 09:13:11 UTC
[stack@undercloud-0 ~]$ openstack tripleo container image prepare
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/cliff/command.py", line 186, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.9/site-packages/tripleoclient/v1/container_image.py", line 1074, in take_action
    env_files = [os.path.abspath(x)
TypeError: 'NoneType' object is not iterable
'NoneType' object is not iterable
[stack@undercloud-0 ~]$ rpm -qf /usr/lib/python3.9/site-packages/tripleoclient/v1/container_image.py
python3-tripleoclient-16.5.1-1.20221203011301.5d0e0fd.el9ost.noarch

Likely bad user input (no parameter), but it should be a handled exception.

Comment 2 Brendan Shephard 2023-01-08 08:05:59 UTC
Yeah, agreed. It can be improved, let's just make that param required:
https://review.opendev.org/c/openstack/python-tripleoclient/+/869526

Comment 3 Brendan Shephard 2023-01-27 05:01:59 UTC
Wallaby backport for 17.1:
https://review.opendev.org/c/openstack/python-tripleoclient/+/871903

Comment 15 errata-xmlrpc 2023-08-16 01:13:10 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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-2023:4577


Note You need to log in before you can comment on or make changes to this bug.