Ansible Throws Error On Bootstrap (AIO-SX)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
New
|
Undecided
|
Unassigned |
Bug Description
Brief Description
-----------------
At step 4 (Run the Ansible bootstrap playbook) of AIO-SX bootstrapping, Ansible throws error. Error is:
/tmp/.
part = pyudev.
/
if part.parent:
grep: /var/log/
Traceback (most recent call last):
File "/tmp/.
File "/tmp/.
raise e
File "/tmp/.
File "/usr/lib/
return self._create(
File "/usr/lib/
_, body = self.api.
File "/usr/lib/
resp = self._http_
File "/usr/lib/
raise exceptions.
cgtsclien
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
result = functor(
File "/usr/lib/
return self._functor(
File "/usr/lib/
retval = getattr(
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
node, vswitch_size * 1024, vswitch_pages)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
Severity
--------
Critical
Steps to Reproduce
------------------
1. Follow the steps on https:/
2. Use this Ansible overwrite file:
system_mode: simplex
dns_servers:
- 8.8.8.8
- 8.8.4.4
external_
external_
external_
admin_username: admin
admin_password: ***
ansible_
Expected Behavior
------------------
Run Ansible playbook, provided by StarlingX and finish succesfuly.
Actual Behavior
----------------
Ansible won't finish and can't continue to the next steps.
Reproducibility
---------------
Reproducible
This error is seen after the fresh install. After running Ansible playbook once, error will change slightly:
Traceback (most recent call last):
File "/tmp/.
File "/tmp/.
File "/tmp/.
File "/usr/lib/
return self._delete(
File "/usr/lib/
File "/usr/lib/
return self._http_
File "/usr/lib/
raise exceptions.
cgtsclien
System Configuration
-------
AIO-SX system (only one server).
sysadmin@
enp61s0f3: flags=4163<
inet 192.168.1.200 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::200:
ether 00:00:00:00:03:17 txqueuelen 1000 (Ethernet)
RX packets 2236 bytes 238268 (232.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4031 bytes 3279448 (3.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28196 bytes 2133499 (2.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28196 bytes 2133499 (2.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vlan103: flags=4163<
inet6 fe80::200:
ether 00:00:00:00:03:17 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13 bytes 1938 (1.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vlan163: flags=4163<
inet6 fe80::200:
ether 00:00:00:00:03:17 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15 bytes 2098 (2.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sysadmin@
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 48
On-line CPU(s) list: 0-47
Thread(s) per core: 2
Core(s) per socket: 12
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Silver 4116T CPU @ 2.10GHz
Stepping: 4
CPU MHz: 902.523
CPU max MHz: 3000,0000
CPU min MHz: 800,0000
BogoMIPS: 4200.00
Virtualization: VT-x
L1d cache: 768 KiB
L1i cache: 768 KiB
L2 cache: 24 MiB
L3 cache: 33 MiB
NUMA node0 CPU(s): 0-11,24-35
NUMA node1 CPU(s): 12-23,36-47
Vulnerability Itlb multihit: KVM: Mitigation: VMX disabled
Vulnerability L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown: Vulnerable
Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed: Vulnerable
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers
Vulnerability Spectre v2: Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; Clear CPU buffers; SMT vulnerable
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon
sysadmin@
Mem: 38413196 928868 34957548 10484 2526780 37096192
Swap: 0 0 0
sysadmin@
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 0,63811 s, 1,7 GB/s
Branch/Pull Time/Commit
-------
StarlingX r8.0 iso is used.
Last Pass
---------
-
Timestamp/Logs
--------------
-
Test Activity
-------------
-
Workaround
----------
-
Turns out, no memory on second RAM bank causes this problem:
https:/ /opendev. org/starlingx/ config/ src/branch/ r/stx.8. 0/sysinv/ sysinv/ sysinv/ sysinv/ agent/node. py#L344 looks to sysfs for hugepages. But when there is no second RAM on the second RAM bank on my motherboard, Linux won't create hugepage directories. Then this code will just leave second NUMA node's hugepage entries `None`. Lastly, puppet tries to do some arithmetic on None values and throws exceptions.
As I said, connecting second RAM to second RAM bank on my motherboard fixed the problem. This bug can be closed.