Hi,
this is my first playbook, so please be gentle (I'm pretty sure I've
depleted my google searches for 1 month)
I'm trying to create an image with the os_server module
*$cat tasks/main.yml---- name: create instance os_server: state:
present auth: auth_url: " {{ url }}" username: "{{ user
}}" password: "{{ pass }}" project_name: "{{ pname }}"
region_name: "{{ region }}" auto_ip: false #availability_zone: "{{
region }}-{{ az }}" flavor: "{{ fla }}" image: "{{ image }}" name:
"test_vm_{{ fla }}_az0{{ az }}" nics: "{{ nic1 }}" timeout: 200*
passing the following variables
*$cat vars/main.yml---url: http://url:5000/v2.0/user: userpass:
mypasspname: project_nameregion: CAP2az: 1image: image_idnic1: nic_id*
everything seems to be fine, i pass the flavor as an extra variable,
however, when executing i get the following error
*$ ansible-playbook -i tests/inventory init.yml --extra-vars="fla=A1"PLAY
[all]
*********************************************************************TASK
[setup]
*******************************************************************ok:
[localhost]TASK [include]
*****************************************************************included:
~/tasks/main.yml for localhostTASK [create instance]
*********************************************fatal: [localhost]: FAILED! =>
{"changed": false, "extra_data": null, "failed": true, "msg": "Error
fetching server list on defaults:CAP2: (Inner Exception: Could not find
requested endpoint in Service Catalog.)"} to retry, use: --limit
@init.retryPLAY RECAP
*********************************************************************localhost
: ok=2 changed=0 unreachable=0 failed=1*
so there's an issue with the authentication against openstack, i'm pretty
sure i'm using the right parameters, but i have no idea what could possibly
be wrong, this is just a test to try and create an instance
--
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/d4aebce2-fd99-44e8-a394-e49a5b522327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.