Fails with HTTP 500 when attempting to create baymodel with user without project and/or catalog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When attempting to create a baymodel with an authenticated user who does not have a project and/or service catalog, Request fails with a non-specific error:
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Server\", \"faultstring\": \"'NoneType' object has no attribute '__getitem__'\"}"}
To reproduce:
- Create a user without a service catalog:
- Retrieve token
- Make a post request against magnum:
curl -X POST -H "X-Auth-Token: $AUTH_TOKEN" -H "Content-Type: application/json" -d '{"name": "test", "coe": "swarm", "image_id": "image", "keypair_id": "test"}' http://
RESPONSE:
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Server\", \"faultstring\": \"'NoneType' object has no attribute '__getitem__'\"}"}
To reproduce a valid response:
- Create a user with a service catalog:
- Retrieve token
- Make a post request against magnum:
curl -X POST -H "X-Auth-Token: $AUTH_TOKEN" -H "Content-Type: application/json" -d '{"name": "test", "coe": "swarm", "image_id": "image", "keypair_id": "test"}' http://
RESPONSE:
{"no_proxy": null, "ssh_authorized
Changed in magnum: | |
milestone: | none → mitaka-1 |
Changed in magnum: | |
status: | New → Invalid |
Change abandoned by Adrian Otto (<email address hidden>) on branch: master /review. openstack. org/219508
Review: https:/
Reason: Abandoned in accordance with Dimitry's remarks.