Ubuntu14.04, Linux kernel 4.2.0-19.20-generic, ThunderX 48 cores
ansible-2.1.2.0-1ppa~trusty
Installing MCORD by single-node-pod.sh
master, e003c8989e2
Error:
TASK [prereqs-common : CPU quantity Check] *************************************
Wednesday 26 October 2016 14:46:20 -0700 (0:00:00.335) 0:00:21.442 *****
fatal: [localhost]: FAILED! => {"assertion": "ansible_processor_vcpus >= 12", "changed": false, "evaluated_to": false, "failed": true}
FIX:
"ansible_processor_count" and "ansible_processor_vcpus" reported as 0 · Issue #16533 · ansible/ansible
https://github.com/ansible/ansible/issues/16533
This indicate the cause, but not the fix. This is my fix:
facts.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/facts.py b/facts.py
index e93757b..89b66bf 100644
--- a/facts.py
+++ b/facts.py
@@ -1005,13 +1005,12 @@ class LinuxHardware(Hardware):
# model name is for Intel arch, Processor (mind the uppercase P)
# works for some ARM devices, like the Sheevaplug.
- if key in ['model name', 'Processor', 'vendor_id', 'cpu', 'Vendor']:
+ if key in ['model name', 'Processor', 'vendor_id', 'cpu', 'Vendor','processor']:
if 'processor' not in self.facts:
self.facts['processor'] = []
self.facts['processor'].append(data[1].strip())
- if key == 'vendor_id':
+ if key == 'processor':
vendor_id_occurrence += 1
- if key == 'model name':
model_name_occurrence += 1
i += 1
elif key == 'physical id':
--
1.9.1
cpuinfo
processor : 0
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 1
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 2
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 3
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 4
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 5
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 6
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 7
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 8
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 9
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 10
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 11
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 12
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 13
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 14
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 15
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 16
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 17
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 18
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 19
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 20
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 21
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 22
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 23
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 24
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 25
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 26
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 27
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 28
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 29
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 30
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 31
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 32
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 33
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 34
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 35
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 36
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 37
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 38
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 39
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 40
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 41
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 42
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 43
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 44
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 45
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 46
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
processor : 47
Features : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x43
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x0a1
CPU revision : 0
沒有留言:
張貼留言