6a2fb44a78
If the ironic_config field is not present in a node definition, then that node should not be registered with ironic. In this case we also don't need to query glance for images or wait for resources to appear in placement. If nova_flavors is empty, we do not need to register flavors, so no need to install the client or check for OS_USERNAME. Also fixes an issue in the action plugin where it would fail if ironic_config field is not present in a node definition. Finally, in CI deploy/teardown tests, rather than skipping tasks, we now remove the ironic_config field from the node definition, and set nova_flavors to empty, such that we exercise these code paths. Change-Id: I29b42665f1609c99e80f12ab6f3815d0e0918dae Story: 2004412 Task: 28056
33 lines
993 B
YAML
33 lines
993 B
YAML
---
|
|
- hosts: all
|
|
vars:
|
|
ansible_playbook_bin: "{{ tenks_venv }}/bin/ansible-playbook"
|
|
tasks:
|
|
- name: Include common variables
|
|
include_vars: common.yml
|
|
|
|
- name: Deploy tenks cluster
|
|
shell:
|
|
cmd: >-
|
|
{{ ansible_playbook_bin }} -vvv
|
|
--inventory ansible/inventory
|
|
--extra-vars=@{{ tenks_overrides_path }}
|
|
ansible/deploy.yml > {{ logs_dir }}/ansible/tenks-deploy
|
|
chdir: "{{ tenks_src_dir }}"
|
|
|
|
- name: Get some diagnostic info for the tenks cluster
|
|
include_role:
|
|
name: tenks-diagnostics
|
|
vars:
|
|
tenks_diagnostics_phase: "created"
|
|
tenks_diagnostics_log_dir: "{{ logs_dir }}"
|
|
|
|
- name: Teardown tenks cluster
|
|
shell:
|
|
cmd: >-
|
|
{{ ansible_playbook_bin }} -vvv
|
|
--inventory ansible/inventory
|
|
--extra-vars=@{{ tenks_overrides_path }}
|
|
ansible/teardown.yml > {{ logs_dir }}/ansible/tenks-teardown
|
|
chdir: "{{ tenks_src_dir }}"
|