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 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 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/91ebf98b-e9b4-432d-a6fe-24876c8e3356n%40googlegroups.com.
