Reviewed: https://review.openstack.org/599861 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a4f1274f40513d0a350a38c6e389c9a76c272379 Submitter: Zuul Branch: master
commit a4f1274f40513d0a350a38c6e389c9a76c272379 Author: Matt Riedemann <[email protected]> Date: Tue Sep 4 18:28:21 2018 -0400 Fix TypeError in nova-manage cell_v2 list_cells Cell mappings don't require a name, so when listing cells, if any mappings don't have a name, the sorted function will fail with a TypeError since you can't compare None to a string. This fixes the issue by using the empty string if the cell mapping name is None. Change-Id: I4fc9d8d1a96f1ec722c2c92dead3f5c4c94d4382 Closes-Bug: #1790695 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1790695 Title: TypeError in nova-manage cell_v2 list_cells if a cell does not have a name Status in OpenStack Compute (nova): Fix Released Status in OpenStack Compute (nova) ocata series: New Status in OpenStack Compute (nova) pike series: New Status in OpenStack Compute (nova) queens series: New Status in OpenStack Compute (nova) rocky series: New Bug description: This was reported in IRC: nova-manage cell_v2 list_cells An error has occurred: Traceback (most recent call last): File "/usr/lib64/python3.5/site-packages/nova/cmd/manage.py", line 2303, in main ret = fn(*fn_args, **fn_kwargs) File "/usr/lib64/python3.5/site-packages/nova/cmd/manage.py", line 1484, in list_cells for cell in sorted(cell_mappings, key=lambda _cell: _cell.name): TypeError: unorderable types: NoneType() < str() That happened because one of the cells didn't have a name and --name is optional in the create_cell command. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1790695/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

