[labkey] d05-2 IP address is not access expectedly (IndexError: list index out of range)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
canonical-server-hwe-utils |
New
|
Undecided
|
Unassigned |
Bug Description
"labkey ssh d05-2" won't get a valid (not empty machine.
Comparing to a valid connection, machine.
>>> mm = labmaas.
>>> mm
<Machine hostname='segers' system_id='cre4mw'>
>>> machine
<Machine hostname='d05-2' system_id='78g4hm'>
>>> mm.boot_
<InterfaceLinks
>>> machine.
<InterfaceLinks
[1] length of machine.
>>> machine.
<InterfaceLinks
[2] Traceback:
$ labkey ssh d05-2
Launching labkey...
pipenv run ./labkey ssh d05-2
Traceback (most recent call last):
File "./labkey", line 401, in <module>
m.ssh()
File "./labkey", line 309, in ssh
ip = machine.
File "/home/
return self._items[spec]
IndexError: list index out of range
labkey completed.
If we check the web UI page of d05-2 network[1], its default type of the default connection interface is "Bridge" instead of "Physical". My gut feeling shows this is the root cause: labkey currently only parse the information of physical NIC.
I am not sure if the bridge setup of d05-2 is on purpose or not. Let' aligned the configuration in Friday's meeting if no further response from the team internally.
[1] d05-2 network maas web page http:// 10.228. 68.5:5240/ MAAS/l/ machine/ 78g4hm? area=network