openstack image save gets 'Client_v1' object has no attribute 'get'

asked 2015-01-22 16:03:20 -0600

neerbeer gravatar image

I've got a working juno/ceph deployment and I can spin up images just fine. I started out using Keystone v2 and switched to keystone v3 once all was working . I can spin up VMs from images via horizon w/ keystone v3 and I can list images from via the openstack cli tool , but I'm not able to upload images using

openstack --debug  --os-identity-api-version=3 --os-url http://<my keystone ip>:35357/v3  image save --file test  test

This command gives the following error. I don't see any exeptions in glance's logs. What am I doing wrong ?

ERROR: openstack 'Client_v1' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 50, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/v1/image.py", line 273, in take_action
    parsed_args.image,
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 67, in find_resource
    return manager.find(display_name=name_or_id)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/client.py", line 88, in find
    rl = self.findall(**kwargs)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/client.py", line 107, in findall
    for obj in self.list():
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 196, in paginate
    images, resp = self._list(url, "images")
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 62, in _list
    resp, body = self.client.get(url)
AttributeError: 'Client_v1' object has no attribute 'get'
ERROR: openstackclient.shell Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 125, in run
    return super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 215, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 50, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/v1/image.py", line 273, in take_action
    parsed_args.image,
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 67, in find_resource
    return manager.find(display_name=name_or_id)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/client.py", line 88, in find
    rl = self.findall(**kwargs)
  File "/usr/lib/python2.7/dist-packages/openstackclient/image/client.py", line 107, in findall
    for obj in self.list():
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 196, in paginate
    images, resp = self._list(url, "images")
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 62, in _list
    resp, body = self.client.get(url)
AttributeError: 'Client_v1' object has no attribute 'get'
edit retag flag offensive close merge delete