flavor list not working in osc-lib.py example fails (havana cluster)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Invalid
|
Low
|
Unassigned |
Bug Description
Using a havana openstack cluster openstack flavor list works but the osc-lib.py example fails with
Authorizatio
Steps to reproduce:
* virtualenv virtualenv
* . virtualenv/
* pip install python-
* wget -O /tmp/common.py 'https:/
* wget -O /tmp/osc-lib.py 'https:/
* 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 as follows
DEBUG: root defaults: {'auth_type': 'password', 'compute_
dpoint_type': 'public', 'floating_
y_api_version': '2', 'volume_
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: stevedore.extension found extension EntryPoint.
DEBUG: root cloud cfg: {'auth_type': 'password', 'compute_
'image_
oject_id': 'a5fa44393fbf4a
i_use_tasks': False, 'endpoint_type': 'public', 'floating_
ource': 'neutron', 'debug': True, 'disable_
AAAA {'compute': '2', 'network': '2', 'image': '1', 'volume': '1', 'identity': '2', 'object_store': '1'}
DEBUG: openstackclient
ERROR: common Traceback (most recent call last):
File "/tmp/common.py", line 261, in main
return run(opts)
File "/tmp/osc-lib.py", line 102, in run
flavor_list = client_
File "/home/
return self._list(
File "/home/
_resp, body = self.api.
File "/home/
return self._cs_
File "/home/
self.
File "/home/
raise exceptions.
AuthorizationFa
(virtualenv)
openstack 1.3.0
summary: |
- penstack flavor list works but the osc-lib.py example fails (havana - cluster) + flavor list works in osc-lib.py example fails (havana cluster) |
summary: |
- flavor list works in osc-lib.py example fails (havana cluster) + flavor list not working in osc-lib.py example fails (havana cluster) |
Changed in python-openstackclient: | |
importance: | Undecided → Low |
Changed in python-openstackclient: | |
status: | In Progress → Confirmed |
Does it still fail if you 'pip install --upgrade python-novaclient'?