# Ansible Devstack Integration

**URL:** <https://forum.ansible.com/t/ansible-devstack-integration/33804>\
**Category:** Ansible Project\
**Created:** [September 14, 2020, 11:43am UTC](https://forum.ansible.com/t/ansible-devstack-integration/33804 "2020-09-14T11:43:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yantram\_Cloud](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yantram\_Cloud](https://forum.ansible.com/u/Yantram_Cloud)\
**Post date:** [September 14, 2020, 11:43am UTC](https://forum.ansible.com/t/ansible-devstack-integration/33804/1 "2020-09-14T11:43:14Z")

</div>

I am currently working on an devstack integration with ansible,  
The authentication seems to be an issue. i get this error.

generic/base.py", line 208, in get\_auth\_ref\n return self.\_plugin.get\_auth\_ref(session, \*\*kwargs)\n File "/home/rashmi/anaconda3/lib/python3.7/site-packages/keystoneauth1/identity/v3/base.py", line 188, in get\_auth\_ref\n authenticated=False, log=False, \*\*rkwargs)\n File "/home/rashmi/anaconda3/lib/python3.7/site-packages/keystoneauth1/session.py", line 1139, in post\n return self.request(url, ‘POST’, \*\*kwargs)\n File "/home/rashmi/anaconda3/lib/python3.7/site-packages/keystoneauth1/session.py", line 976, in request\n raise exceptions.from\_response(resp, method, url)\nkeystoneauth1.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) (Request-ID: req-e2c70466-ae34-40a5-9dbb-037e55c24ea0)\n",

here is my playbook.

- name: Deploy on OpenStack Server  
hosts: localhost  
gather\_facts: false  
vars:  
username: admin  
password: iddddddd  
project: admin  
auth\_url: [http://192.168.0.100/identity](http://192.168.0.100/identity)  
image\_name: centos-7-x86\_64-genericcloud  
key\_name: root  
wait\_for: 200  
name: webserver  
flavor\_id: 2  
auto\_floating\_ip: yes  
tasks:
- name: Create a new instance and attaches to a network and passes metadata to the instance  
os\_server:  
state: present  
auth:  
auth\_url: “{{ auth\_url }}”  
username: “{{ username }}”  
password: “{{ password }}”  
project\_name: “{{ project }}”

# domain\_name: default

name: vm1  
image: 4f905f38-e52a-43d2-b6ec-754a13ffb529  
key\_name: ansible\_key  
timeout: 200  
flavor: 4  
nics:

- net-id: 34605f38-e52a-25d2-b6ec-754a13ffb723
- net-name: another\_network  
meta:  
hostname: test1  
group: uge\_master

“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

Thanks,  
Yantram
