Error: Cannot deploy as a VM host for ephemeral deployments


Tried to follow instructions here, but since recently, I noticed mounting the images doesn’t help so I chose the appropriate minimum kernel from Settings > Commissioning.

I am able to successfully commission all RPIs with ubuntu 20.04.3 LTS using focal(hwe-20.04) but after that when I try to acquire and deploy machines as KVM host I keep receiving this error. Even when i attempt to deploy via command line I get same error.

https://termbin.com/s0dw
cloudop@cloudoperator:~$ export PROFILE="ronin"; export SYSTEM_ID="gfqk8y"; maas $PROFILE machine deploy $SYSTEM_ID install_kvm=True; Cannot deploy as a VM host for ephemeral deployments.

Any idea how I can resolve this?

Hi, can you please confirm that MAAS has detected disks for that machine (from the storage tab on the machine details page)?

If not, you could try re-commissioning the machine first.

MaaS has not detected any storage information even after I recommission the cluster of machines.


It used to work fine for me some time ago, but recently I’ve been having lots of problems in between steps just to get the RPI cluster running on KVM Pods as per several other members’ instructions. Any idea what it happening here?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

Can you please attach the output of the 50-maas-01-commissioning commissioning script for that machine?

Hey @ack I have attached below the requested script logs. Sorry for the late reply, I was a bit busy and preoccupied with other matters.
This is the combined output from previous time this script was run successfully.


https://ezbin.net/?706f78ddcf65cb5d#B6VH97UX9sHqKAG838C2ND3BtmAaEAoPPNMq1ymBUuQx
I have pasted the link above as well as pasted it below but it doesn’t seem to get formatted by the code quote apostrophe marks.

{
  "api_extensions": [
    "resources",
    "resources_cpu_socket",
    "resources_gpu",
    "resources_numa",
    "resources_v2",
    "resources_disk_sata",
    "resources_network_firmware",
    "resources_disk_id",
    "resources_usb_pci",
    "resources_cpu_threads_numa",
    "resources_cpu_core_die",
    "api_os",
    "resources_system",
    "resources_pci_iommu",
    "resources_network_usb",
    "resources_disk_address"
  ],
  "api_version": "1.0",
  "environment": {
    "kernel": "Linux",
    "kernel_architecture": "aarch64",
    "kernel_version": "5.13.0-27-generic",
    "os_name": "ubuntu",
    "os_version": "20.04",
    "server": "maas-machine-resources",
    "server_name": "clever-poodle",
    "server_version": "4.12"
  },
  "resources": {
    "cpu": {
      "architecture": "aarch64",
      "sockets": [
        {
          "name": "BCM2711 (ARM Cortex-A72)",
          "vendor": "Broadcom",
          "socket": 36,
          "cache": [
            {
              "level": 1,
              "type": "Data",
              "size": 32768
            },
            {
              "level": 1,
              "type": "Instruction",
              "size": 49152
            },
            {
              "level": 2,
              "type": "Unified",
              "size": 1048576
            }
          ],
          "cores": [
            {
              "core": 0,
              "die": 0,
              "threads": [
                {
                  "id": 0,
                  "numa_node": 0,
                  "thread": 0,
                  "online": true,
                  "isolated": false
                }
              ]
            },
            {
              "core": 1,
              "die": 0,
              "threads": [
                {
                  "id": 1,
                  "numa_node": 0,
                  "thread": 0,
                  "online": true,
                  "isolated": false
                }
              ]
            },
            {
              "core": 2,
              "die": 0,
              "threads": [
                {
                  "id": 2,
                  "numa_node": 0,
                  "thread": 0,
                  "online": true,
                  "isolated": false
                }
              ]
            },
            {
              "core": 3,
              "die": 0,
              "threads": [
                {
                  "id": 3,
                  "numa_node": 0,
                  "thread": 0,
                  "online": true,
                  "isolated": false
                }
              ]
            }
          ]
        }
      ],
      "total": 4
    },
    "memory": {
      "nodes": [
        {
          "numa_node": 0,
          "hugepages_used": 0,
          "hugepages_total": 0,
          "used": 1297817600,
          "total": 8589934592
        }
      ],
      "hugepages_total": 0,
      "hugepages_used": 0,
      "hugepages_size": 2097152,
      "used": 688930816,
      "total": 8589934592
    },
    "gpu": {
      "cards": [],
      "total": 0
    },
    "network": {
      "cards": [
        {
          "driver": "bcmgenet",
          "driver_version": "5.13.0-27-generic",
          "ports": [
            {
              "id": "enabcm6e4ei0",
              "address": "dc:a6:32:d9:fd:8e",
              "port": 0,
              "protocol": "ethernet",
              "supported_modes": [
                "10baseT/Half",
                "10baseT/Full",
                "100baseT/Half",
                "100baseT/Full",
                "1000baseT/Half",
                "1000baseT/Full"
              ],
              "supported_ports": [
                "twisted pair",
                "media-independent"
              ],
              "port_type": "twisted pair",
              "transceiver_type": "external",
              "auto_negotiation": true,
              "link_detected": true,
              "link_speed": 1000,
              "link_duplex": "full"
            }
          ],
          "numa_node": 0
        }
      ],
      "total": 1
    },
    "storage": {
      "disks": [
        {
          "id": "sda",
          "device": "8:0",
          "model": "SanDisk 3.2Gen1",
          "type": "usb",
          "read_only": false,
          "size": 61530439680,
          "removable": true,
          "numa_node": 0,
          "device_path": "platform-PNP0D10:00-usb-0:1:1.0-scsi-0:0:0:0",
          "block_size": 512,
          "firmware_version": "1.00",
          "rpm": 0,
          "serial": "01013eb6c1b4e717ae4763bdc4654793740da209bfd4211dd80d53daade467043e5c000000000000000000008ada746300152e008355810768aa99ed",
          "device_id": "usb-USB_SanDisk_3.2Gen1_01013eb6c1b4e717ae4763bdc4654793740da209bfd4211dd80d53daade467043e5c000000000000000000008ada746300152e008355810768aa99ed-0:0",
          "partitions": [
            {
              "id": "sda1",
              "device": "8:1",
              "read_only": false,
              "size": 61529391104,
              "partition": 1
            }
          ],
          "usb_address": "3:2"
        }
      ],
      "total": 2
    },
    "usb": {
      "devices": [
        {
          "bus_address": 3,
          "device_address": 2,
          "interfaces": [
            {
              "class": "Mass Storage",
              "class_id": 8,
              "driver": "usb-storage",
              "driver_version": "5.13.0-27-generic",
              "number": 0,
              "subclass": "SCSI",
              "subclass_id": 6
            }
          ],
          "vendor": "SanDisk Corp.",
          "vendor_id": "0781",
          "product": "SanDisk 3.2Gen1",
          "product_id": "5583",
          "speed": 5000
        }
      ],
      "total": 1
    },
    "pci": {
      "devices": [],
      "total": 0
    },
    "system": {
      "uuid": "00d03114-0000-0000-0000-dca632d9fd8e",
      "vendor": "Raspberry Pi Foundation",
      "product": "Raspberry Pi 4 Model B",
      "family": "Raspberry Pi",
      "version": "D03114",
      "sku": "0000000000D03114",
      "serial": "0000DCA632D9FD8E",
      "type": "physical",
      "firmware": {
        "vendor": "https://github.com/pftf/RPi4",
        "date": "10/19/2021",
        "version": "UEFI Firmware v1.32"
      },
      "chassis": {
        "vendor": "Sony UK",
        "type": "Embedded PC",
        "serial": "0000DCA632D9FD8E",
        "version": "Raspberry Pi 4 Model B"
      },
      "motherboard": {
        "vendor": "Sony UK",
        "product": "Raspberry Pi 4 Model B",
        "serial": "0000DCA632D9FD8E",
        "version": "D03114"
      }
    }
  },
  "networks": {
    "enabcm6e4ei0": {
      "addresses": [
        {
          "family": "inet",
          "address": "192.168.20.160",
          "netmask": "24",
          "scope": "global"
        },
        {
          "family": "inet6",
          "address": "fe80::dea6:32ff:fed9:fd8e",
          "netmask": "64",
          "scope": "link"
        }
      ],
      "counters": {
        "bytes_received": 414422936,
        "bytes_sent": 8850345,
        "packets_received": 274895,
        "packets_sent": 130824
      },
      "hwaddr": "dc:a6:32:d9:fd:8e",
      "mtu": 1500,
      "state": "up",
      "type": "broadcast",
      "bond": null,
      "bridge": null,
      "vlan": null
    },
    "lo": {
      "addresses": [
        {
          "family": "inet",
          "address": "127.0.0.1",
          "netmask": "8",
          "scope": "local"
        },
        {
          "family": "inet6",
          "address": "::1",
          "netmask": "128",
          "scope": "local"
        }
      ],
      "counters": {
        "bytes_received": 10332,
        "bytes_sent": 10332,
        "packets_received": 128,
        "packets_sent": 128
      },
      "hwaddr": "",
      "mtu": 65536,
      "state": "up",
      "type": "loopback",
      "bond": null,
      "bridge": null,
      "vlan": null
    }
  }
}

This is quite strange. The script output does show the "sda" disk, so maas should report it.

Could you try to recommission the machine, see if that script succeeds and check the regiond.log file for tracebacks during commissioning?

I ended up recommissioning and redeploying and it seems all worked out fine. I have several KVM pods, so I shall try adding machines to see if it can actually work with some charms maybe.

Here are the requested logs for `regiond.log’