[Bug 1664507] Re: python-novaclient throws unhelpful error message when talking to really old openstack deployments

James Page james.page at ubuntu.com
Thu Oct 26 13:51:45 UTC 2017


Lets ask ;)

** Summary changed:

- python-novaclient can't boot Canonistack instances any more
+ python-novaclient throws unhelpful error message when talking to really old openstack deployments

** Also affects: python-novaclient
   Importance: Undecided
       Status: New

** Information type changed from Private to Public

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

Title:
  python-novaclient throws unhelpful error message when talking to
  really old openstack deployments

Status in python-novaclient:
  New
Status in python-novaclient package in Ubuntu:
  Invalid

Bug description:
  This is a private bug because I think the attached information is
  confidential - feel free to delete it and make the bug public if you
  want.

  python-novaclient in Zesty can't boot images in Canonistack. It gets a
  404 when looking up images:

  DEBUG (session:347) REQ: curl -g -i -X GET http://abcdef/v1/v2/images/ghijkl -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token:foo"
  INFO (connectionpool:213) Starting new HTTP connection (1): 10.55.58.1
  DEBUG (connectionpool:395) "GET /v1/v2/images/ghijkl HTTP/1.1" 404 52
  DEBUG (session:395) RESP: [404] Content-Length: 52 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-72636f70-1873-4df7-b326-7e34278de28c Date: Tue, 14 Feb 2017 10:25:12 GMT Connec
  tion: keep-alive 
  RESP BODY: Omitted, Content-Type is set to text/plain; charset=UTF-8. Only application/json responses have their bodies logged.

  DEBUG (session:640) GET call to image for http://abcdef/v1/v2/images/ghijkl used request id req-72636f70-1873-4df7-b326-7e34278de28c
  DEBUG (client:85) GET call to image for http://abcdef/v1/v2/images/ghijkl used request id req-72636f70-1873-4df7-b326-7e34278de28c
  DEBUG (shell:984) Not found (HTTP 404)
  Traceback (most recent call last):
    File "/home/laney/temp/python-novaclient/local/lib/python2.7/site-packages/novaclient/shell.py", line 982, in main
      OpenStackComputeShell().main(argv)
    File "/home/laney/temp/python-novaclient/local/lib/python2.7/site-packages/novaclient/shell.py", line 909, in main
      args.func(self.cs, args)
    File "/home/laney/temp/python-novaclient/local/lib/python2.7/site-packages/novaclient/v2/shell.py", line 606, in do_boot
      boot_args, boot_kwargs = _boot(cs, args)
    File "/home/laney/temp/python-novaclient/local/lib/python2.7/site-packages/novaclient/v2/shell.py", line 227, in _boot
      image = _find_image(cs, args.image)
    File "/home/laney/temp/python-novaclient/local/lib/python2.7/site-packages/novaclient/v2/shell.py", line 2262, in _find_image
      raise exceptions.CommandError(six.text_type(e))
  CommandError: Not found (HTTP 404)
  ERROR (CommandError): Not found (HTTP 404)

  I'm guessing that the "/v1/v2" is related here.

  I bisected this for you, and came up with
  f839cf1625714c2e159631c56560d9d92eb9964f as the bad commit. It looks
  like it makes sense.

  (python-novaclient) laney at nightingale (:f839cf1|…)> git tag --contains f839cf1625714c2e159631c56560d9d92eb9964f
  5.1.0
  6.0.0
  7.0.0
  7.1.0

  Is this a bug in the client, or is it saying that Canonistack needs to
  be upgraded?

  If the latter, the error message could be better - or maybe it could
  fall back to the old way.

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



More information about the Ubuntu-openstack-bugs mailing list