Run kolla-ansible limit on compute node cause creating Nova databases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I would like to let kolla-ansible run plays for compute nodes only without touching existing control nodes(which are not deployed by kolla-ansible).
But if I run kolla-ansible with --limit compute_node, The ansible tasks of creating Nova databases still run which seems wrong, and I got failure like the following if I erase all control nodes from inventory file.
TASK [nova : include] *******
included: /home/huzhj/
TASK [nova : Creating Nova databases] *******
fatal: [tanabata]: FAILED! => {"failed": true, "msg": "list object has no element 0"}
NO MORE HOSTS LEFT *******
to retry, use: --limit @/home/
PLAY RECAP *******
localhost : ok=1 changed=0 unreachable=0 failed=0
tanabata : ok=30 changed=19 unreachable=0 failed=1
Command failed ansible-playbook -i ./ansible/
My inventory file is like this:
[control]
[network]
[compute]
tanabata
[monitoring]
[storage]
[deployment]
localhost ansible_
...
I took a look at ansible/
- include: bootstrap.yml
when: inventory_hostname in groups['nova-api'] or
we may should add "when" to creating database tasks.