I have a single machine installation of OpenStack Mitaka on a Fedora 24 server VM that includes Keystone and Swift. I went through the OpenStack installation instructions and got the v3 keystone API working but some other software I'm installing depends on v2. I am unable to authenticate with the v2 API and get a token, even though the equivalent request to the v3 API works correctly. Here are the two requests I'm making:
V3:
curl -i -H "Content-Type: application/json" -d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "name": "default" },
"password": "PASSWORD"
}
}
}
}
}' http://SERVER:35357/v3/auth/tokens
V2:
curl -d -H "Content-Type: application/json"
'{"auth": {
"passwordCredentials": {
"useame": "admin",
"password": "PASSWORD"
},
"tenantName": "admin"
}
}' http://SERVER:35357/v2.0/tokens
The V3 request retus a token, but the V2 request fails with:
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
Are these API requests equivalent? Are there keystone.conf settings that need to be changed in order to make the V2 API work?
