← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1790695] [NEW] TypeError in nova-manage cell_v2 list_cells if a cell does not have a name

 

Public bug reported:

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.

** Affects: nova
     Importance: High
         Status: Triaged

** Affects: nova/ocata
     Importance: Undecided
         Status: New

** Affects: nova/pike
     Importance: Undecided
         Status: New

** Affects: nova/queens
     Importance: Undecided
         Status: New

** Affects: nova/rocky
     Importance: Undecided
         Status: New


** Tags: cells low-hanging-fruit nova-manage

** Also affects: nova/queens
   Importance: Undecided
       Status: New

** Also affects: nova/rocky
   Importance: Undecided
       Status: New

** Also affects: nova/ocata
   Importance: Undecided
       Status: New

** Also affects: nova/pike
   Importance: Undecided
       Status: New

-- 
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):
  Triaged
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


Follow ups