keypair-show fails with "ERROR: can't set attribute"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
High
|
Sergey Lukjanov | ||
python-novaclient |
Fix Released
|
Undecided
|
Roman Podoliaka |
Bug Description
Steps to reproduce on a clean DevStack deployment:
1. Create a new key pair:
malor@devstack:
...
2. Show details about the given key pair:
malor@devstack:
ERROR: can't set attribute
Running nova client with --debug allows to see the actual trace back:
DEBUG (shell:740) can't set attribute
Traceback (most recent call last):
File "/opt/stack/
OpenStackCo
File "/opt/stack/
args.
File "/opt/stack/
keypair = cs.keypairs.
File "/opt/stack/
return self._get(
File "/opt/stack/
return self.resource_
File "/opt/stack/
self.
File "/opt/stack/
setattr(self, k, v)
AttributeError: can't set attribute
ERROR: can't set attribute
Changed in python-novaclient: | |
assignee: | nobody → Roman Podolyaka (rpodolyaka) |
Changed in savanna: | |
importance: | Undecided → High |
milestone: | none → 0.3a1 |
status: | New → Confirmed |
Changed in savanna: | |
status: | Confirmed → Triaged |
Changed in savanna: | |
assignee: | nobody → Sergey Lukjanov (slukjanov) |
status: | Triaged → In Progress |
Changed in savanna: | |
status: | Fix Committed → Fix Released |
Changed in savanna: | |
milestone: | 0.3a1 → 0.3 |
I see the same error in the terminal output of the savanna process when I try to launch the cluster:
-- commandline output controller: ~/savanna- venv$ http $SAVANNA_ URL/clusters X-Auth- Token:$ AUTH_TOKEN < cluster_create.json
stack@vmware-
HTTP/1.1 500 INTERNAL SERVER ERROR
Content-Length: 111
Content-Type: application/json
Date: Mon, 16 Sep 2013 05:08:10 GMT
{ message" : "Error occurred during validation", SERVER_ ERROR"
"error_code": 500,
"error_
"error_name": "INTERNAL_
}
--- term output
2013-09-15 21:50:52.608 23743 ERROR savanna.utils.api [-] Request aborted with status code 500 and message 'Error occurred during validation' stack/savanna- venv/local/ lib/python2. 7/site- packages/ savanna/ service/ validation. py", line 37, in handler **kwargs) stack/savanna- venv/local/ lib/python2. 7/site- packages/ savanna/ service/ validations/ clusters. py", line 53, in check_cluster_ create keypair_ exists( data['user_ keypair_ id']) stack/savanna- venv/local/ lib/python2. 7/site- packages/ savanna/ service/ validations/ base.py" , line 162, in check_keypair_ exists client( ).keypairs. get(keypair) stack/savanna- venv/local/ lib/python2. 7/site- packages/ novaclient/ v1_1/keypairs. py", line 55, in get "/os-keypairs/ %s" % base.getid( keypair) , "keypair") stack/savanna- venv/local/ lib/python2. 7/site- packages/ novaclient/ base.py" , line 140, in _get class(self, body[response_key], loaded=True) stack/savanna- venv/local/ lib/python2. 7/site- packages/ novaclient/ base.py" , line 387, in __init__ _add_details( info) stack/savanna- venv/local/ lib/python2. 7/site- packages/ novaclient/ v1_1/keypairs. py", line 35, in _add_details
2013-09-15 21:50:52.608 23743 ERROR savanna.utils.api [-] Traceback (most recent call last):
File "/home/
validator(
File "/home/
b.check_
File "/home/
nova.
File "/home/
return self._get(
File "/home/
return self.resource_
File "/home/
self.
File "/home/
setattr(self, k, v)
AttributeError: can't set attribute