[Bug 1736696] Re: "openstack image list" fails when any images lack names

Timothy Rice 1736696 at bugs.launchpad.net
Wed Dec 6 10:13:20 UTC 2017


** Description changed:

  Some of our older images have their name field set to null. When I run
  "openstack image list" I only get the unhelpful response:
  
-    '<' not supported between instances of 'NoneType' and 'str'
+    '<' not supported between instances of 'NoneType' and 'str'
  
  Running "glance image-list" instead works correctly. Other openstack-
  client commands I run also execute correctly. I am running openstack-
  client version 3.12.0 on an Arch Linux box in a virtualenv.
  
  The error occurs in "lib/python3.6/site-packages/osc_lib/utils.py", line
  531, in sort_items. My osc_lib is version 1.7.0.
  
  It seems to be caused by an attempt to sort the output by names,
  ascending:
  
  run(Namespace(columns=[], fit_width=False, formatter='table', limit=None, long=False, marker=None, max_width=0, name=None, noindent=False, page_size=None, print_empty=False, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort='name:asc', status=None))
-    data = utils.sort_items(data, parsed_args.sort)
-  File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items
-    data = utils.sort_items(data, parsed_args.sort)
-  File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items
+    data = utils.sort_items(data, parsed_args.sort)
+  File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items
+    data = utils.sort_items(data, parsed_args.sort)
+  File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items
  
  Personally, I don't mind using "glance image-list", but we are updating
- our documentation to tell users to user openstack-client. It would be
+ our documentation to tell users to use openstack-client. It would be
  best if they didn't receive cryptic failures when doing what we tell
  them to do :)

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1736696

Title:
  "openstack image list" fails when any images lack names

Status in python-openstackclient package in Ubuntu:
  New

Bug description:
  Some of our older images have their name field set to null. When I run
  "openstack image list" I only get the unhelpful response:

     '<' not supported between instances of 'NoneType' and 'str'

  Running "glance image-list" instead works correctly. Other openstack-
  client commands I run also execute correctly. I am running openstack-
  client version 3.12.0 on an Arch Linux box in a virtualenv.

  The error occurs in "lib/python3.6/site-packages/osc_lib/utils.py",
  line 531, in sort_items. My osc_lib is version 1.7.0.

  It seems to be caused by an attempt to sort the output by names,
  ascending:

  run(Namespace(columns=[], fit_width=False, formatter='table', limit=None, long=False, marker=None, max_width=0, name=None, noindent=False, page_size=None, print_empty=False, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort='name:asc', status=None))
     data = utils.sort_items(data, parsed_args.sort)
   File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items
     data = utils.sort_items(data, parsed_args.sort)
   File "/home/my_cool_username/src/openstack-client/3.12.0/lib/python3.6/site-packages/osc_lib/utils.py", line 531, in sort_items

  Personally, I don't mind using "glance image-list", but we are
  updating our documentation to tell users to use openstack-client. It
  would be best if they didn't receive cryptic failures when doing what
  we tell them to do :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1736696/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list