Comment 3 for bug 2050058

Revision history for this message
Stamatis Katsaounis (skatsaounis) wrote :

Hi Kevin, my initial comment was not 100% accurate so let me clarify the situation better. While performing commissioning, MAAS is using this binary to detect the machine characteristics. This binary is produced by this Go https://github.com/maas/maas/blob/3.2.6/src/host-info/go.mod#L5. As you can see, it is using the LXD Go API as a dependency, which in turn runs the GetResources function. So apparently my fix is not included in that version we fetch from go.mod and as such, machines with wwan devices will receive errors when this binary runs during their commissioning. I confirmed with a run on my laptop:

skatsaounis@skatsaounis-x1:~/Downloads$ ./amd64
ERROR: Failed to retrieve network information: Failed to add device information for "/sys/class/net/wwan0/device": Failed to read "/sys/class/net/wwan0/device/device": read /sys/class/net/wwan0/device/device: is a directory

And with another run from a VM (which does not have a wwan interface):

ubuntu@maas-dev:~$ ./amd64

{
    "resources": {
        "cpu": {
            "architecture": "x86_64",
            "sockets": [
                {
...

My kernel version is 6.1.0-1028-oem

Based on the above, I can confirm this is a bug.