Files
kayobe/playbooks/kayobe-overcloud-base/run.yml
Pierre Riteau 59eb49f88e Remove ironic-inspector support
The ironic-inspector service has been replaced by built-in in-band
inspection in ironic [1].

This change disables and removes enough code to allow CI tests to pass.
Migration to the built-in in-band inspection will be done separately.

[1] https://docs.openstack.org/ironic/latest/admin/inspection/migration.html

Change-Id: I8caa8ea763fe5aee9d356850378db770cdbf2ccd
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
2025-09-09 09:58:16 +00:00

60 lines
2.4 KiB
YAML

---
- hosts: primary
environment:
KAYOBE_CONFIG_SOURCE_PATH: "{{ kayobe_config_src_dir }}"
KAYOBE_OVERCLOUD_GENERATE_CERTIFICATES: "{{ tls_enabled | ternary(1, 0) }}"
KAYOBE_VAULT_PASSWORD: 'test-password'
# TODO(mgoddard): Remove this when libvirt on host is used by default.
TENKS_CONFIG_PATH: "dev/tenks-deploy-config-compute{% if tls_enabled %}-libvirt-on-host{% endif %}.yml"
tasks:
- name: Ensure overcloud is deployed
shell:
cmd: "{{ kayobe_src_dir }}/dev/overcloud-deploy.sh &> {{ logs_dir }}/ansible/overcloud-deploy"
executable: /bin/bash
# Check that passwords are Vault encrypted.
- name: View passwords.yml using Ansible Vault
vars:
kayobe_venv: "{{ ansible_env.HOME }}/kayobe-venv"
command: >-
{{ kayobe_venv }}/bin/ansible-vault
view
--vault-password-file {{ kayobe_venv }}/bin/kayobe-vault-password-helper
{{ kayobe_config_src_dir }}/etc/kayobe/kolla/passwords.yml
- name: Ensure test Tenks cluster is deployed
shell:
# Pass absolute source directory, since otherwise the `chdir` will
# cause this to fail.
cmd: dev/tenks-deploy-compute.sh '{{ tenks_src_dir }}' &> {{ logs_dir }}/ansible/tenks-deploy
chdir: "{{ kayobe_src_dir }}"
executable: /bin/bash
- name: Perform testing of the virtualized machines
shell:
cmd: dev/overcloud-test-vm.sh &> {{ logs_dir }}/ansible/overcloud-test-vm
chdir: "{{ kayobe_src_dir }}"
executable: /bin/bash
- name: Perform testing of the baremetal machines
shell:
cmd: dev/overcloud-test-baremetal.sh &> {{ logs_dir }}/ansible/overcloud-test-baremetal
chdir: "{{ kayobe_src_dir }}"
executable: /bin/bash
when: false # TODO(priteau): Re-enable with built-in inspection
- name: Register dummy baremetal compute nodes
shell:
cmd: >
source {{ kayobe_src_dir }}/dev/environment-setup.sh &&
source "${KOLLA_CONFIG_PATH:-/etc/kolla}/admin-openrc.sh" &&
kayobe baremetal compute register &> {{ logs_dir }}/ansible/baremetal-compute-register
executable: /bin/bash
- name: Perform database backup
shell:
cmd: >
source {{ kayobe_src_dir }}/dev/environment-setup.sh &&
kayobe overcloud database backup &> {{ logs_dir }}/ansible/database-backup
executable: /bin/bash