
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>
58 lines
2.0 KiB
YAML
58 lines
2.0 KiB
YAML
---
|
|
- name: Check whether Ironic is enabled
|
|
hosts: controllers
|
|
gather_facts: False
|
|
tags:
|
|
- introspection-rules
|
|
tasks:
|
|
- name: Create controllers group with ironic enabled
|
|
group_by:
|
|
key: "controllers_for_introspection_rules_{{ kolla_enable_ironic | bool }}"
|
|
changed_when: false
|
|
|
|
- name: Ensure introspection rules are registered in Ironic Inspector
|
|
# Only required to run on a single host.
|
|
hosts: controllers_for_introspection_rules_True[0]
|
|
tags:
|
|
- introspection-rules
|
|
vars:
|
|
venv: "{{ virtualenv_path }}/openstacksdk"
|
|
pre_tasks:
|
|
- name: Validate OpenStack password authentication parameters
|
|
fail:
|
|
msg: >
|
|
Required OpenStack authentication parameter {{ item }} is
|
|
{% if item in openstack_auth %}empty{% else %}not present{% endif %}
|
|
in openstack_auth. Have you sourced the environment file?
|
|
when:
|
|
- openstack_auth_type == 'password'
|
|
- item not in openstack_auth or not openstack_auth[item]
|
|
with_items: "{{ openstack_auth_password_required_params }}"
|
|
tags:
|
|
- config-validation
|
|
|
|
- name: Ensure the openstack client is installed
|
|
include_role:
|
|
name: stackhpc.openstack.os_openstackclient
|
|
vars:
|
|
os_openstackclient_venv: "{{ venv }}"
|
|
os_openstackclient_install_epel: "{{ dnf_install_epel }}"
|
|
os_openstackclient_state: latest
|
|
os_openstackclient_upper_constraints_file: "{{ pip_upper_constraints_file }}"
|
|
|
|
- name: Retrieve the IPA kernel Glance image UUID
|
|
shell: >
|
|
. {{ venv }}/bin/activate &&
|
|
openstack image show '{{ ipa_images_kernel_name }}' -f value -c id
|
|
changed_when: False
|
|
register: ipa_kernel_id
|
|
environment: "{{ openstack_auth_env }}"
|
|
|
|
- name: Retrieve the IPA ramdisk Glance image UUID
|
|
shell: >
|
|
. {{ venv }}/bin/activate &&
|
|
openstack image show '{{ ipa_images_ramdisk_name }}' -f value -c id
|
|
changed_when: False
|
|
register: ipa_ramdisk_id
|
|
environment: "{{ openstack_auth_env }}"
|