Score:1

OpenStack cinder api - Malformed request url

ao flag

I Have an issue using Cinder API v3, ended getting below error

http://openstack_api:8776/v3/project_ID/volumes/detail


{
    "badRequest": {
        "code": 400,
        "message": "Malformed request url"
    }
}

Note that I was able to query Keystone to get token and used the token in Nova and it returns a result, unlike cinder.

Tried to debug from openstack client and result returned successfully using the same query I'm using in api, the only difference is that in openstack stack client the token in header is using {SHA256} and mine that extracted from keynote does not.

any help is appreciated.

berndbausch avatar
us flag
What do you do to get this error?
ao flag
I was using wrong tenant ID, check my answer
Score:2
ao flag

Ok, the issue resolved, after running a debug from openstack client using -vvv so this trick leads to what API call performed to list volumes

the issue was that token generated was from admin project, and I put in volumes API another project, the error message was misleading ! changed api call to admin project and it was successfull

to list all volumes for all tenants use http://:8776/v3//volumes/detail?all_tenants=True

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.