# potential Ansible os\_image module keystone v3 compatibility issue

**URL:** <https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355>\
**Category:** Ansible Project\
**Created:** [December 21, 2017, 4:39am UTC](https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355 "2017-12-21T04:39:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gu\_Hang](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@Gu\_Hang](https://forum.ansible.com/u/Gu_Hang)\
**Post date:** [December 21, 2017, 4:39am UTC](https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355/1 "2017-12-21T04:39:13Z")

</div>

Hi I am using ansible os\_image module to upload images to my openstack instance

My yml looks like this:

- os\_image:  
auth:  
auth\_url: “{{auth\_url}}”  
username: “{{username}}”  
password: “{{password}}”  
project\_name: “{{project\_name}}”  
name: “test\_image\_1”  
container\_format: “{{container\_format}}”  
disk\_format: “{{disk\_format}}”  
state: “{{state}}”  
filename: “/home/qa/images/build/amd64/develop/apu/cdrom-FreeBSD-11.1-stable-20170908-64bit-5.3.1.1712210800-develop\_apu.qcow2”  
properties:  
cpu\_arch: x86\_64  
distro: freebsd

and my auth endpoint is : [http://10.2.1.183:5000/v3](http://10.2.1.183:5000/v3)

However then executed, the following exception is triggered:  
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: keystoneauth1.exceptions.http.BadRequest: 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)

Is this a compatibility issue with keystone v3? and how do I mitigate it?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![user110](https://avatars.discourse-cdn.com/v4/letter/u/edb3f5/32.png) [@user110](https://forum.ansible.com/u/user110)\
**Post date:** [January 4, 2018, 1:29am UTC](https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355/2 "2018-01-04T01:29:19Z")

</div>

I also encountered the same problem. test environment passed, I found wrong use it again.

try other endpoint ,like this ,it’s OK

[![](https://lh3.googleusercontent.com/-tBLVThk3iEg/Wk2DDM6d0lI/AAAAAAAAAB0/ZP2zPiz4ckMER9wMZRWx53ruHfBk6VJ8QCLcBGAs/s1600/%25E5%25BE%25AE%25E4%25BF%25A1%25E5%259B%25BE%25E7%2589%2587_20180104092716.png)](https://lh3.googleusercontent.com/-tBLVThk3iEg/Wk2DDM6d0lI/AAAAAAAAAB0/ZP2zPiz4ckMER9wMZRWx53ruHfBk6VJ8QCLcBGAs/s1600/%25E5%25BE%25AE%25E4%25BF%25A1%25E5%259B%25BE%25E7%2589%2587_20180104092716.png)

在 2017年12月21日星期四 UTC+8下午12:39:13，Gu Hang写道：
