openstack flavor list works but the osc-lib.py example fails

asked 2015-06-09 14:52:04 -0600

ldachary gravatar image

Using a havana openstack cluster openstack flavor list works but the osc-lib.py example fails with

AuthorizationFailure: Authentication requires 'auth_url', which should be specified in 'HTTPClient'

Steps to reproduce:

  • virtualenv virtualenv
  • . virtualenv/bin/activate
  • pip install python-openstackclient
  • wget -O /tmp/common.py 'https://git.openstack.org/cgit/openstack/python-openstackclient/plain/examples/common.py?id=e8655f44f07db36d05043ef8e15796e75ec380ba'
  • wget -O /tmp/osc-lib.py 'https://git.openstack.org/cgit/openstack/python-openstackclient/plain/examples/osc-lib.py?id=e8655f44f07db36d05043ef8e15796e75ec380ba'
  • comment out the part that list the objectstore, only keep the flavors in osc-lib.py
  • . openstack.sh # to get credentials
  • openstack --version # shows 1.3.0
  • openstack flavor list # works as expected
  • python /tmp/osc-lib.py --debug # fails with AuthorizationFailure: Authentication requires 'auth_url', which should be specified in 'HTTPClient'

I have filed a bug report at https://bugs.launchpad.net/python-openstackclient/+bug/1463535 (https://bugs.launchpad.net/python-ope...) but I'm not even sure that's a bug. It looks like a trivial misconfiguration with a hard to read manifestation.

edit retag flag offensive close merge delete