glance client return error unless using '-A token' option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Eoghan Glynn |
Bug Description
Hi,
Running glance installed from 2012.1~
$ export OS_AUTH_URL=http://
$ export OS_PASSWORD=pass
$ export OS_TENANT_
$ export OS_USERNAME=glance
$ glance index
Failed to show index. Got error:
__init__() takes at least 6 arguments (3 given)
$ glance --username=glance --password=pass --tenant=
Failed to show index. Got error:
__init__() takes at least 6 arguments (3 given)
$ glance -A 9841b5bc284d478
ID Name Disk Format Container Format Size
-------
3b6b1c8d-
32b2d20f-
The token is gotten using the same credentials as the other requests, actually I've taken it from second keystone response tcpflow.
Changed in glance: | |
milestone: | none → essex-rc1 |
status: | New → In Progress |
assignee: | nobody → Eoghan Glynn (eglynn) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-rc1 → 2012.1 |
Using debug option:
glance --username=glance --password=pass --tenant= service_ tenant --auth_url=http:// 192.168. 100.25: 5000/v2. 0 -d index header= True) get_images( **parameters) python2. 7/dist- packages/ glance/ client. py", line 60, in get_images request( "GET", "/images", params=params) python2. 7/dist- packages/ glance/ common/ client. py", line 58, in wrapped python2. 7/dist- packages/ glance/ common/ client. py", line 390, in do_request headers) python2. 7/dist- packages/ glance/ common/ client. py", line 75, in wrapped python2. 7/dist- packages/ glance/ common/ client. py", line 445, in _do_request type(url. hostname, url.port, **self. connect_ kwargs)
Traceback (most recent call last):
File "/usr/bin/glance", line 1056, in <module>
result = command(options, args)
File "/usr/bin/glance", line 63, in wrapper
ret = func(*args, **kwargs)
File "/usr/bin/glance", line 549, in images_index
print_
File "/usr/bin/glance", line 495, in _images_index
images = client.
File "/usr/lib/
res = self.do_
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
headers=
File "/usr/lib/
return func(self, method, url, body, headers)
File "/usr/lib/
c = connection_
TypeError: __init__() takes at least 6 arguments (3 given)