Keystone 'user' commands fail with `HTTP 500 Internal Server Error`
I'm running through a Havana install on Ubuntu 12.04 and I am unable to modify users. Most of the keystone
commands work, but any command that require modifying the db (such as user-delete
or user-role-add
) fail with Internal Server Error (HTTP 500)
.
I'm using MariaDB as the backend. No errors in syslog or query-log.
I do see a lot of rollback
queries in the query-log, but I assume that's normal?
keystone --debug user-role-add --user=glance --tenant=service --role=admin
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://10.204.112.58:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "openstack"}}}'
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.204.112.58
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 None
DEBUG:keystoneclient.session:RESP: [200] CaseInsensitiveDict({'date': 'Mon, 07 Apr 2014 21:16:59 GMT', 'transfer-encoding': 'chunked', 'vary': 'X-Auth-Token', 'content-type': 'application/json'})
RESP BODY: {"access": {"token": {"expires": "2014-04-08T21:16:59Z", "id": "7fcb3d62905347ad8160d244c06fdd19", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "654a42abfa354f1bac6abb82b8a62b88", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.204.112.58:35357/v2.0", "region": "regionOne", "internalURL": "http://10.204.112.58:5000/v2.0", "publicURL": "http://10.204.112.58:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "7a7616fbbcf64f5cbe9be8f0c60498eb", "roles": [{"id": "324aa65afb4e4249a0522a8e117b604e", "name": "admin"}], "name": "admin"}}}
DEBUG:iso8601.iso8601:Parsed 2014-04-08T21:16:59Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'21', 'daydash': u'08', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'59', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'monthdash': u'04', 'day': None, 'minute': u'16'} with default timezone <iso8601.iso8601.Utc object at 0x1f97b10>
DEBUG:iso8601.iso8601:Got u'2014' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'04' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 4 for 'month' with default 4
DEBUG:iso8601.iso8601:Got u'08' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 8 for 'day' with default 8
DEBUG:iso8601.iso8601:Got u'21' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'16' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'59' for 'second' with default None
DEBUG:keystoneclient.session:REQ: curl -i -X GET http://10.204.112.58:35357/v2.0/users/glance -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: 7fcb3d62905347ad8160d244c06fdd19"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.204.112.58
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2.0/users/glance HTTP/1.1" 404 None
DEBUG:keystoneclient.session:RESP: [404] CaseInsensitiveDict({'date': 'Mon, 07 Apr 2014 21:16:59 GMT', 'transfer-encoding': 'chunked', 'vary': 'X-Auth-Token', 'content-type': 'application/json'})
RESP BODY: {"error": {"message": "Could not find user: glance", "code": 404, "title": "Not Found"}}
DEBUG:keystoneclient.session:Request returned failure status: 404
DEBUG:iso8601.iso8601:Parsed 2014-04-08T21:16:59Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'21', 'daydash': u'08', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'59', 'tz_minute ...