MAAS 3.0 fails to initialize regiond when an IPoIB device is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Adam Collard |
Bug Description
I decided to give MaaS 3.0 a spin the other day, followed the docs to "maas init region+rack", but while the script said all was ok, I couldn't open the web UI on port 5240. Which was no surprise, as there was no process listening to port 5240.
Searching the logs it appeared regiond had some trouble starting:
2021-08-07 12:14:01 maasserver.
Traceback (most recent call last):
File "/snap/
return self.cursor.
psycopg2.
LINE 1: ...ss" IN ('44:a8:
The (long) MAC address belongs to an infiniband interface created by IPoIB module. The error comes from Postgresql refusing to store an address not conforming to type 'macaddr', but shouldn't regiond have the capacity to handle this error gracefully and continue, something like ignoring the problematic interface altogether.
To get regiond started, I had to remove the IPoIB driver.
Re-enabling IPoIB later afterwards isn't an option, as even though regiond started ok, it still had trouble running 50-maas-
A full trace of the regiond start up problem is attached.
I am new to MaaS but if guided I can provide any additional information required as well as test fixes.
Thanks,
-K.
Related branches
- MAAS Lander: Approve
- Alberto Donato (community): Approve
-
Diff: 98 lines (+28/-1)5 files modifiedsrc/maasserver/api/tests/test_nodes.py (+1/-1)
src/maasserver/fields.py (+4/-0)
src/maasserver/tests/test_fields.py (+4/-0)
src/metadataserver/builtin_scripts/network.py (+4/-0)
src/metadataserver/builtin_scripts/tests/test_network.py (+15/-0)
- Alberto Donato (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 470 lines (+399/-2)4 files modifiedsrc/metadataserver/builtin_scripts/hooks.py (+4/-1)
src/metadataserver/builtin_scripts/tests/test_hooks.py (+360/-0)
src/provisioningserver/utils/ipaddr.py (+21/-1)
src/provisioningserver/utils/tests/test_ipaddr.py (+14/-0)
summary: |
- MaaS 3.0 fails to initialize regiond when an IPoIB device is present + MAAS 3.0 fails to initialize regiond when an IPoIB device is present |
Changed in maas: | |
assignee: | nobody → Adam Collard (adam-collard) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 3.2.0 → 3.2.0-beta5 |
status: | Fix Committed → Fix Released |
can you get the output of sudo /snap/maas/ current/ usr/share/ maas/machine- resources/ amd64? it would help.