Source from 50913406
Error:
Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to being in error. (HTTP 400) (request-id:req-84bd7283-6fd4-4623-9480-5f3c74177820)
The Keystone Service will load v2.0 and V3 's Api,v3 API when it starts, adding the concept of domain, two versions can exist simultaneously
There are also differences when using the client, in the CLI client, the Keystone command only supports access to the V2.0 version API, while the OpenStack CLI can support both V2.0 and v3.0.
My environment variable file is as follows:
Export Os_auth_url=http://192.168.57.3:35357/v3
Export Os_username=admin
Export Os_password=openstack
Export Os_project_name=admin
Using the Keystone CLI will make an error, but if Os_auth_url is v2.0, then there is no problem.
However, when accessing with the OpenStack CLI, an error is also encountered, as follows:
Expecting to find domain in Project-the server could not comply with the request since it's either malformed or Otherwi Se incorrect. The client is assumed to being in error. (HTTP 400) (request-id:req-b100e261-a02a-4dc0-9dbf-d7ee20a215cc)
That is a feature of V3, which requires the following environment variables to be set:
Export Os_user_domain_name=default
Export Os_project_domain_name=default
Keystone's Compatible API