Warm tip: This article is reproduced from serverfault.com, please click

OVH "get_version_v3() got an unexpected keyword argument 'auth'"

发布于 2020-11-08 19:07:31

I'm trying to switch from openStack v2 to v3 but I'm having trouble requesting a token.

here is the POST request

         {
            "auth": {
            "identity": {
              "methods": [
                  "password"
              ],
              "password": {
                  "user": {
                      "id": my_id,
                      "domain": {
                          "id": "default"
                      },
                      "password": my_password
                  }
              }
          },
          "scope": {
            "project": {
              "name": my_tenant_name,
              "domain": { "id": "default" }
            }
          }
        }
        }

the endpoint used to be https://auth.cloud.ovh.net/v2/tokens and I'm now trying with https://auth.cloud.ovh.net/v3 as https://auth.cloud.ovh.net/v3/tokens sends back a 404.

here is the response

{
    "error": {
        "message": "get_version_v3() got an unexpected keyword argument 'auth'",
        "code": 400,
        "title": "Bad Request"
    }
}
Questioner
Mel
Viewed
11
Tony 2020-11-12 17:07:07

Make sure endpoint https://auth.cloud.ovh.net/v3 as https://auth.cloud.ovh.net/v3/auth/tokens please also try without scope parameter.

 {
     "auth": {
         "identity": {
             "methods": [
                 "password"
             ],
             "password": {
                 "user": {
                     "name": "my_id",
                     "domain": {
                         "name": "Default"
                     },
                     "password": "my_password"
                 }
             }
         }
     }
 }