Do not configure smt disabling init scripts always
The error "Machine is not SMT capable" is seen on VMs which are of ppc64le architecture. So the init script/conf should be configured only when disabling SMT task succeeds. Change-Id: I399b523a2b7e271b8ebf225299c81cb166321118 Closes-Bug: #1640733
This commit is contained in:
parent
c39e415b5e
commit
159b50b70d
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
- name: Disable SMT
|
- name: Disable SMT
|
||||||
command: /usr/sbin/ppc64_cpu --smt=off
|
command: /usr/sbin/ppc64_cpu --smt=off
|
||||||
|
register: smt_disable_result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
tags:
|
tags:
|
||||||
@ -29,6 +30,8 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
when:
|
when:
|
||||||
- ansible_service_mgr == 'systemd'
|
- ansible_service_mgr == 'systemd'
|
||||||
|
- smt_disable_result.rc is defined
|
||||||
|
- smt_disable_result.rc == 0
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd daemon
|
- Reload systemd daemon
|
||||||
|
|
||||||
@ -38,5 +41,7 @@
|
|||||||
dest: "/etc/init/smt.conf"
|
dest: "/etc/init/smt.conf"
|
||||||
when:
|
when:
|
||||||
- ansible_service_mgr != 'systemd'
|
- ansible_service_mgr != 'systemd'
|
||||||
|
- smt_disable_result.rc is defined
|
||||||
|
- smt_disable_result.rc == 0
|
||||||
notify:
|
notify:
|
||||||
- Reload upstart init scripts
|
- Reload upstart init scripts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user