Fails with HTTP 500 when attempting to create baymodel with user without project and/or catalog

Bug #1491176 reported by Dimitry Ushakov
6
This bug affects 1 person
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://localhost:9511/baymodels

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://localhost:9511/baymodels

RESPONSE:

{"no_proxy": null, "ssh_authorized_key": null, "updated_at": null, "apiserver_port": null, "uuid": "95611cd1-61ef-4845-adab-65617f9e7d87", "docker_volume_size": null, "https_proxy": null, "keypair_id": "test", "external_network_id": null, "created_at": "2015-09-01T21:12:53.159119+00:00", "http_proxy": null, "links": [{"href": "http://localhost:9511/v1/baymodels/95611cd1-61ef-4845-adab-65617f9e7d87", "rel": "self"}, {"href": "http://localhost:9511/baymodels/95611cd1-61ef-4845-adab-65617f9e7d87", "rel": "bookmark"}], "cluster_distro": "debian", "name": "test", "fixed_network": null, "image_id": "image", "coe": "swarm", "flavor_id": null, "dns_nameserver": null, "master_flavor_id": null}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Adrian Otto (<email address hidden>) on branch: master
Review: https://review.openstack.org/219508
Reason: Abandoned in accordance with Dimitry's remarks.

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Changed in magnum:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.