6c54ce4d3b
This allows us to continue execution until a certain proportion of hosts fail. This can be useful at scale, where failures are common, and restarting a deployment is time-consuming. The default max failure percentage is 100, keeping the default behaviour. A global max failure percentage may be set via kayobe_max_fail_percentage, and individual playbooks may define a max failure percentage via <playbook>_max_fail_percentage. Related Kolla Ansible patch: https://review.opendev.org/c/openstack/kolla-ansible/+/805598 Change-Id: Ib81c72b63be5765cca664c38141ffc769640cf07
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
---
|
|
- name: Ensure that overcloud nodes' boot order is configured
|
|
hosts: overcloud
|
|
gather_facts: no
|
|
max_fail_percentage: >-
|
|
{{ drac_boot_order_max_fail_percentage |
|
|
default(kayobe_max_fail_percentage) |
|
|
default(100) }}
|
|
vars:
|
|
ansible_host: "{{ ipmi_address }}"
|
|
ansible_user: "{{ ipmi_username }}"
|
|
ansible_ssh_pass: "{{ ipmi_password }}"
|
|
drac_pxe_interface: 3
|
|
drac_interfaces: [1, 2, 3, 4]
|
|
tasks:
|
|
- name: Ensure NIC boot protocol is configured
|
|
raw: "racadm set Nic.NICConfig.{{ item }}.LegacyBootProto {% if item == drac_pxe_interface %}PXE{% else %}NONE{% endif %}"
|
|
with_items: "{{ drac_interfaces }}"
|
|
|
|
- name: Ensure NIC configuration jobs are created
|
|
raw: "racadm jobqueue create NIC.Integrated.1-{{ item }}-1 -s TIME_NOW"
|
|
with_items: "{{ drac_interfaces }}"
|
|
|
|
- name: Ensure BIOS boot sequence is configured
|
|
raw: "racadm set BIOS.BiosBootSettings.bootseq NIC.Integrated.1-{{ drac_pxe_interface }}-1,HardDisk.List.1-1,Optical.SATAEmbedded.J-1"
|
|
|
|
- name: Ensure BIOS configuration job is created
|
|
raw: "racadm jobqueue create BIOS.Setup.1-1"
|
|
|
|
- name: Ensure server is rebooted
|
|
raw: "racadm serveraction powercycle"
|