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: 200passing the following variables
$cat vars/main.yml
---
url: http://url:5000/v2.0/
user: user
pass: mypass
pname: project_name
region: CAP2
az: 1
image: image_id
nic1: nic_ideverything 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 localhost
TASK [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.retry
PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1so 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