potential Ansible os_image module keystone v3 compatibility issue

223 views
Skip to first unread message

Gu Hang

unread,
Dec 20, 2017, 11:39:13 PM12/20/17
to Ansible Project
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

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 

王进

unread,
Jan 3, 2018, 8:29:19 PM1/3/18
to Ansible Project

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


 try other endpoint ,like this ,it's OK 





在 2017年12月21日星期四 UTC+8下午12:39:13,Gu Hang写道:
Reply all
Reply to author
Forward
0 new messages