Hi,
After fresh Devstack install I've tried get a new token, forgetting add the 'content-type' header and resulting on a 500 Internal Server Error:
curl -X POST 192.168.27.100:5000/v2.0/tokens -d '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "demo", "password": "secrete"}}}'
{"error": {"message": "An unexpected error prevented the server from fulfilling your request. argument of type 'NoneType' is not iterable", "code": 500, "title": "Internal Server Error"}}
After adding the header everything works as expected:
curl -X POST 192.168.27.100:5000/v2.0/tokens -d '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "demo", "password": "secrete"}}}' -H "content-type: application/json"
{"access": {"token": {"expires": "2012-06-13T17:23:02Z", "id": "2aad440e21ed47dcbae9c8123161665d", "tenant": {"enabled": true, "id": "12242928b55c4d02b2604ca13fb272d5", "name": "demo", "description": null}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.27.100:8774/v2/12242928b55c4d02b2604ca13fb272d5", "region": "RegionOne", "publicURL": "http://192.168.27.100:8774/v2/12242928b55c4d02b2604ca13fb272d5", "internalURL": "http://192.168.27.100:8774/v2/12242928b55c4d02b2604ca13fb272d5"}], "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": [{"adminURL": "http://192.168.27.100:3333", "region": "RegionOne", "publicURL": "http://192.168.27.100:3333", "internalURL": "http://192.168.27.100:3333"}], "endpoints_links": [], "type": "s3", "name": "S3 Service"}, {"endpoints": [{"adminURL": "http://192.168.27.100:9292", "region": "RegionOne", "publicURL": "http://192.168.27.100:9292", "internalURL": "http://192.168.27.100:9292"}], "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": [{"adminURL": "http://192.168.27.100:8776/v1/12242928b55c4d02b2604ca13fb272d5", "region": "RegionOne", "publicURL": "http://192.168.27.100:8776/v1/12242928b55c4d02b2604ca13fb272d5", "internalURL": "http://192.168.27.100:8776/v1/12242928b55c4d02b2604ca13fb272d5"}], "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": [{"adminURL": "http://192.168.27.100:8773/services/Admin", "region": "RegionOne", "publicURL": "http://192.168.27.100:8773/services/Cloud", "internalURL": "http://192.168.27.100:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": [{"adminURL": "http://192.168.27.100:35357/v2.0", "region": "RegionOne", "publicURL": "http://192.168.27.100:5000/v2.0", "internalURL": "http://192.168.27.100:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": {"username": "demo", "roles_links": [], "id": "85673f58d7f54f84ac788776f81a094a", "roles": [{"id": "71e1b82f2bc24db7834747dbe42ac811", "name": "Member"}, {"id": "df9f5612961d49a7bb3e5d6e5837ff29", "name": "anotherrole"}], "name": "demo"}}}
Fix proposed to branch: master /review. openstack. org/8563
Review: https:/