|
|
@ -1164,7 +1164,7 @@ outputs: |
|
|
|
register: iha_nodes |
|
|
|
- name: If instance HA is enabled on the node activate the evacuation completed check |
|
|
|
file: path=/var/lib/nova/instanceha/enabled state=touch |
|
|
|
when: iha_nodes.stdout|lower is search('"'+ansible_hostname|lower+'"') |
|
|
|
when: iha_nodes.stdout|lower is search('"'+ansible_facts['hostname']|lower+'"') |
|
|
|
- name: Is irqbalance enabled |
|
|
|
set_fact: |
|
|
|
compute_irqbalance_disabled: {get_attr: [RoleParametersValue, value, compute_disable_irqbalance]} |
|
|
@ -1253,21 +1253,21 @@ outputs: |
|
|
|
name: qemu-kvm-common-ev |
|
|
|
state: present |
|
|
|
when: |
|
|
|
- ansible_distribution == 'CentOS' |
|
|
|
- ansible_distribution_major_version == '7' |
|
|
|
- ansible_facts['distribution'] == 'CentOS' |
|
|
|
- ansible_facts['distribution_major_version'] is version('7', '==') |
|
|
|
- name: make sure package providing ksmtuned is installed (RHEL7) |
|
|
|
package: |
|
|
|
name: qemu-kvm-common-rhev |
|
|
|
state: present |
|
|
|
when: |
|
|
|
- ansible_distribution == 'RedHat' |
|
|
|
- ansible_distribution_major_version == '7' |
|
|
|
- ansible_facts['distribution'] == 'RedHat' |
|
|
|
- ansible_facts['distribution_major_version'] is version('7', '==') |
|
|
|
- name: make sure package providing ksmtuned is installed (RHEL8 or CentOS8) |
|
|
|
package: |
|
|
|
name: qemu-kvm-common |
|
|
|
state: present |
|
|
|
when: |
|
|
|
- ansible_distribution_major_version == '8' |
|
|
|
- ansible_facts['distribution_major_version'] is version('8', '==') |
|
|
|
- name: enable ksmtunded |
|
|
|
service: |
|
|
|
name: "{{ item }}" |
|
|
@ -1410,13 +1410,13 @@ outputs: |
|
|
|
is_additional_cell: {get_param: NovaAdditionalCell} |
|
|
|
- name: Set fact for nova_compute services |
|
|
|
set_fact: |
|
|
|
nova_compute_service: "{{ nova_compute_service_result.stdout | from_yaml | selectattr('Host', 'match', ansible_fqdn ~ '.*') | list }}" |
|
|
|
nova_compute_service: "{{ nova_compute_service_result.stdout | from_yaml | selectattr('Host', 'match', ansible_facts['fqdn'] ~ '.*') | list }}" |
|
|
|
delegate_to: localhost |
|
|
|
check_mode: no |
|
|
|
- name: Check search output |
|
|
|
fail: |
|
|
|
msg: >- |
|
|
|
Found multiple `{{ ansible_fqdn }}`, which is unexpected. |
|
|
|
Found multiple `{{ ansible_facts['fqdn'] }}`, which is unexpected. |
|
|
|
This means that the FQDN of the selected device to disable is |
|
|
|
either wrong or is sharing a name with another host, which is |
|
|
|
also wrong. Please correct this issue before continuing. Nova |
|
|
|