Comment 1 for bug 1223934

Revision history for this message
kesten broughton (dathomir) wrote :

I see the same error in the terminal output of the savanna process when I try to launch the cluster:

-- commandline output
stack@vmware-controller:~/savanna-venv$ http $SAVANNA_URL/clusters X-Auth-Token:$AUTH_TOKEN < cluster_create.json
HTTP/1.1 500 INTERNAL SERVER ERROR
Content-Length: 111
Content-Type: application/json
Date: Mon, 16 Sep 2013 05:08:10 GMT

{
    "error_code": 500,
    "error_message": "Error occurred during validation",
    "error_name": "INTERNAL_SERVER_ERROR"
}

--- 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'
2013-09-15 21:50:52.608 23743 ERROR savanna.utils.api [-] Traceback (most recent call last):
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/savanna/service/validation.py", line 37, in handler
    validator(**kwargs)
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/savanna/service/validations/clusters.py", line 53, in check_cluster_create
    b.check_keypair_exists(data['user_keypair_id'])
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/savanna/service/validations/base.py", line 162, in check_keypair_exists
    nova.client().keypairs.get(keypair)
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/novaclient/v1_1/keypairs.py", line 55, in get
    return self._get("/os-keypairs/%s" % base.getid(keypair), "keypair")
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/novaclient/base.py", line 140, in _get
    return self.resource_class(self, body[response_key], loaded=True)
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/novaclient/base.py", line 387, in __init__
    self._add_details(info)
  File "/home/stack/savanna-venv/local/lib/python2.7/site-packages/novaclient/v1_1/keypairs.py", line 35, in _add_details
    setattr(self, k, v)
AttributeError: can't set attribute