We have just deployed a new openstack (HP HELION) enviroment and trying to use ansible to createa project but getting an error “Could not find a suitable endpoint for client version: 2.0”.
ansible version: 2.0.0.2
These are the enviroment settings to be used with openstack:
export OS_AUTH_URL=http://:35357/v3
export OS_TENANT_NAME=“”
export OS_PROJECT_NAME=“”
export OS_DOMAIN_NAME=“default”
export OS_USERNAME=“ansible”
export OS_PASSWORD=
export OS_REGION_NAME=“region1”
Ansible role code:
- os_project:
state: present
name: “{{projectName}}”
description: “{{projectDescription}}”
validate_certs: False
enabled: True
Ansible output
localhost EXEC ( umask 22 && mkdir -p “$( echo $HOME/.ansible/tmp/ansible-tmp-1454921235.76-802231271404 )” && echo “$( echo $HOME/.ansible/tmp/ansible-tmp-1454921235.76-802231271404 )” )
localhost PUT /tmp/tmpituEhC TO /home/vagrant/.ansible/tmp/ansible-tmp-1454921235.76-802231271404/os_project
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1454921235.76-802231271404/os_project; rm -rf “/home/vagrant/.ansible/tmp/ansible-tmp-1454921235.76-802231271404/” > /dev/null 2>&1
fatal: [localhost]: FAILED! => {“changed”: false, “extra_data”: null, “failed”: true, “invocation”: {“module_args”: {“api_timeout”: null, “auth”: null, “auth_type”: null, “availability_zone”: null, “cacert”: null, “cert”: null, “cloud”: null, “description”: “This is a sample Project”, “domain_id”: null, “enabled”: true, “endpoint_type”: “admin”, “key”: null, “name”: “sampleProject”, “region_name”: null, “state”: “present”, “timeout”: 180, “validate_certs”: false, “verify”: false, “wait”: true}, “module_name”: “os_project”}, “msg”: “Could not find a suitable endpoint for client version: 2.0”}
I can create the resouce using the same credentials using the openstackclient cli so credentials appear to be OK. I have tried changing the endpoint_type to internal and admin with no difference in error output. Unsure why endpoint is returning 2.0 when auth URL is V3 supplied though. I did try changing the URL to the V2.0 entry but errors on domain name. We use domains and belive API V2.0 doesn’t support them.
Any help on this would be appreciated.