Skip to content
Snippets Groups Projects
Commit ee0754b6 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Introduce max fail percentage to playbooks"

parents e8adce40 6c54ce4d
No related branches found
No related tags found
No related merge requests found
Showing
with 99 additions and 0 deletions
--- ---
- name: Ensure AppArmor is disabled for containerised libvirt - name: Ensure AppArmor is disabled for containerised libvirt
hosts: compute hosts: compute
max_fail_percentage: >-
{{ apparmor_libvirt_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- apparmor-libvirt - apparmor-libvirt
vars: vars:
......
--- ---
- name: Ensure APT is configured - name: Ensure APT is configured
hosts: seed-hypervisor:seed:overcloud:infra-vms hosts: seed-hypervisor:seed:overcloud:infra-vms
max_fail_percentage: >-
{{ apt_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
tags: tags:
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
- name: Ensure baremetal compute nodes are inspected in ironic - name: Ensure baremetal compute nodes are inspected in ironic
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_inspect_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
......
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
- name: Ensure the baremetal compute nodes' hardware introspection data is saved - name: Ensure the baremetal compute nodes' hardware introspection data is saved
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_introspection_data_save_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
venv: "{{ virtualenv_path }}/openstack-cli" venv: "{{ virtualenv_path }}/openstack-cli"
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
- name: Ensure baremetal compute nodes are manageable in ironic - name: Ensure baremetal compute nodes are manageable in ironic
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_manage_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
ansible_python_interpreter: "{{ venv }}/bin/python" ansible_python_interpreter: "{{ venv }}/bin/python"
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
- name: Ensure baremetal compute nodes are available in ironic - name: Ensure baremetal compute nodes are available in ironic
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_provide_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
venv: "{{ virtualenv_path }}/openstacksdk" venv: "{{ virtualenv_path }}/openstacksdk"
ansible_python_interpreter: "{{ venv }}/bin/python" ansible_python_interpreter: "{{ venv }}/bin/python"
......
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
- name: Ensure baremetal compute nodes are registered in ironic - name: Ensure baremetal compute nodes are registered in ironic
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: false gather_facts: false
max_fail_percentage: >-
{{ baremetal_compute_register_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- baremetal - baremetal
vars: vars:
......
...@@ -21,6 +21,11 @@ ...@@ -21,6 +21,11 @@
- name: Rename baremetal compute nodes - name: Rename baremetal compute nodes
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_rename_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
venv: "{{ virtualenv_path }}/openstack-cli" venv: "{{ virtualenv_path }}/openstack-cli"
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
......
...@@ -53,6 +53,11 @@ ...@@ -53,6 +53,11 @@
- name: Enable serial console - name: Enable serial console
hosts: "{{ console_compute_node_limit | default('baremetal-compute') }}" hosts: "{{ console_compute_node_limit | default('baremetal-compute') }}"
gather_facts: False gather_facts: False
max_fail_percentage: >-
{{ baremetal_compute_serial_console_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
venv: "{{ virtualenv_path }}/openstack-cli" venv: "{{ virtualenv_path }}/openstack-cli"
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
......
--- ---
- name: Ensure the libvirt daemon is configured - name: Ensure the libvirt daemon is configured
hosts: compute hosts: compute
max_fail_percentage: >-
{{ compute_libvirt_host_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- libvirt-host - libvirt-host
tasks: tasks:
......
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
- name: Ensure baremetal compute nodes are PXE booted - name: Ensure baremetal compute nodes are PXE booted
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: no gather_facts: no
max_fail_percentage: >-
{{ compute_node_discovery_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
tasks: tasks:
......
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
- name: Ensure Dell baremetal compute nodes boot mode is set - name: Ensure Dell baremetal compute nodes boot mode is set
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: no gather_facts: no
max_fail_percentage: >-
{{ dell_compute_node_boot_mode_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
# Set this to the required boot mode. One of 'bios' or 'uefi'. # Set this to the required boot mode. One of 'bios' or 'uefi'.
drac_boot_mode: "bios" drac_boot_mode: "bios"
......
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
- name: Ensure Dell baremetal compute nodes are PXE booted - name: Ensure Dell baremetal compute nodes are PXE booted
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: no gather_facts: no
max_fail_percentage: >-
{{ dell_compute_node_discovery_max_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
# Set this to the index of the inteface on which to enable PXE. # Set this to the index of the inteface on which to enable PXE.
drac_pxe_interface: 1 drac_pxe_interface: 1
......
...@@ -28,6 +28,11 @@ ...@@ -28,6 +28,11 @@
- name: Ensure Dell baremetal compute nodes are present in the Ansible inventory - name: Ensure Dell baremetal compute nodes are present in the Ansible inventory
hosts: baremetal-compute hosts: baremetal-compute
gather_facts: no gather_facts: no
max_fail_percentage: >-
{{ dell_compute_node_inventory_fail_percentage |
default(baremetal_compute_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
compute_node_limit: "" compute_node_limit: ""
compute_node_limit_list: "{{ compute_node_limit.split(':') }}" compute_node_limit_list: "{{ compute_node_limit.split(':') }}"
......
--- ---
- name: Ensure development tools are installed - name: Ensure development tools are installed
hosts: seed-hypervisor:seed:overcloud:infra-vms hosts: seed-hypervisor:seed:overcloud:infra-vms
max_fail_percentage: >-
{{ dev_tools_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- dev-tools - dev-tools
roles: roles:
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
# and cause some issues in network configuration # and cause some issues in network configuration
- name: Disable Cloud-init service - name: Disable Cloud-init service
hosts: overcloud:infra-vms hosts: overcloud:infra-vms
max_fail_percentage: >-
{{ disable_cloud_init_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- disable-cloud-init - disable-cloud-init
roles: roles:
......
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
# interfaces. In some cases this can lead to timeouts. # interfaces. In some cases this can lead to timeouts.
- name: Ensure Glean is disabled and its artifacts are removed - name: Ensure Glean is disabled and its artifacts are removed
hosts: seed:overcloud:infra-vms hosts: seed:overcloud:infra-vms
max_fail_percentage: >-
{{ disable_glean_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- disable-glean - disable-glean
roles: roles:
......
--- ---
- name: Ensure DNF repos are configured - name: Ensure DNF repos are configured
hosts: seed-hypervisor:seed:overcloud:infra-vms hosts: seed-hypervisor:seed:overcloud:infra-vms
max_fail_percentage: >-
{{ dnf_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
tags: tags:
......
--- ---
- name: Ensure docker is configured - name: Ensure docker is configured
hosts: docker hosts: docker
max_fail_percentage: >-
{{ docker_max_fail_percentage |
default(host_configure_max_fail_percentage) |
default(kayobe_max_fail_percentage) |
default(100) }}
tags: tags:
- docker - docker
tasks: tasks:
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
- name: Ensure that overcloud nodes' BIOS are configured - name: Ensure that overcloud nodes' BIOS are configured
hosts: overcloud hosts: overcloud
gather_facts: no gather_facts: no
max_fail_percentage: >-
{{ drac_bios_max_fail_percentage |
default(kayobe_max_fail_percentage) |
default(100) }}
vars: vars:
bios_config: bios_config:
OneTimeBootMode: "OneTimeBootSeq" OneTimeBootMode: "OneTimeBootSeq"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment