Ansible integration openstack gives 400 error

Hello Team,

Ansible integrates with OpenStack instance creation gave 400 error. I didn’t understand what is happening here. I have installed openstack along with all python based dependencies. I am using CentOS VM. I have admin-opensource.sh and all the required environment variables set fine.

The error is below. Please help me to resolve the errors.

fatal: [localhost]: FAILED! => {“changed”: false, “extra_data”: null, “failed”: true, “msg”: “Error fetching server list on envvars:RegionOne: (Inner Exception: 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 be in error. (HTTP 400) (Request-ID: req-37e3f0b2-955c-4845-bd31-08dd7e24dcc9))”}

Thanks in advance.

Yes, Error Resolved.

I didn’t put the openstack controller IP address into /etc/hosts file.
After put the IP the Openstack instance created well.