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

2017-12-06 Thread Jake Yip
** Package changed: python-openstackclient (Ubuntu) => python-
openstackclient

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

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2017-12-06 Thread Timothy Rice
** 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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1736696

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs