# ANsible Opestack integration give 400 error.

**URL:** <https://forum.ansible.com/t/ansible-opestack-integration-give-400-error/23924>\
**Category:** Ansible Project\
**Created:** [March 9, 2017, 5:58pm UTC](https://forum.ansible.com/t/ansible-opestack-integration-give-400-error/23924 "2017-03-09T17:58:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![balubhai555](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Post date:** [March 9, 2017, 5:58pm UTC](https://forum.ansible.com/t/ansible-opestack-integration-give-400-error/23924/1 "2017-03-09T17:58:22Z")

</div>

Hello Team,

I am trying to do integration of Ansible with OpenStack. I got the below error. So please help me to solve this error.

error:

TASK [launch an instance] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
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-fba6a8d8-05f9-4c28-9b7b-1923b12fa60e))”}  
to retry, use: --limit @/root/balu/ans\_playbooks/openstack/openstack.retry

The playbook is below.

# automatically assigns a floating IP

- name: launch a compute instance  
hosts: all  
sudo: yes  
tasks:

- name: echo PATH into bashrc  
action: lineinfile dest=~/.bash\_profile line=‘export user\_domain\_name=default’ insertafter=‘EOF’ regexp=‘export user\_domain\_name.\*’ state=present

- name: launch an instance  
os\_server:  
state: present  
auth:  
auth\_url: [http://controller:5000/v3/](http://controller:5000/v3/)  
username: \*\*\*\*\*\*\*\*  
password: \*\*\*\*\*\*\*\*\*  
project\_name: Sample  
name: vm1  
region\_name: RegionOne  
availability\_zone: nova  
image: 34d91b63-ffa5-4601-b3cf-e04deaac8dec  
key\_name: ubuntutestkeypair1  
timeout: 200  
flavor: m1.medium  
security\_groups: default  
auto\_ip: yes

Please help me. Thanks in advance.
