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://<fqdn of server>:35357/v3
export OS_TENANT_NAME="<a tenant name>"
export OS_PROJECT_NAME="<a projetc name  same as tenant>"
export OS_DOMAIN_NAME="default"
export OS_USERNAME="ansible"
export OS_PASSWORD=<some 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.

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e7146892-efad-46b1-8e67-c74e51dfc96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to