Preseed disk layout not showing in deployed machine

Hello

I created /var/snap/maas/current/preseeds/curtin_userdata_ubuntu_amd64_generic_focal with custom disk layout. My machines, when “deploying”, successfully get the disk layout from preseed file, but when changing the status to “deployed”, MaaS does not show the new disk layout.
How to sync the real disk layuot machine and MaaS info about the machine?

Hi, could you please explain what are you trying to achieve with customizing the preseed?

You can configure the storage for machines directly in MAAS as desired.

With the preseed file, I get custom disk layouts for my various types of machines.
The MaaS GUI and CLI does not support a custom disk layout template.

Also, a preseed file saves from losing disk partitioning when deleting and re-adding a machine

I see. Unfortunately MAAS doesn’t really know what is defined in the preseed, so the storage information comes form what is defined pre-deploy in MAAS itself, thus changes to storage defined in preseed won’t be visible.

We’re currently working on an expansion of the feature that allows to update hardware information which will eventually also update storage configuration after deployment, based on what’s currently found on the machine.
This should be available in the next release.

I ran maas-run-script and got weird results.
MaaS assigned maas server config to machine1. Storage layot not changed and missing ip-address
maas
ubuntu@maas:~/maas$ ./maas-run-scripts report-results --config machine1-cred.yaml

  • Fetching scripts from http://maas_ip:port/MAAS/metadata/2012-03-01/ to /tmp/tmpn7l_eraf/scripts
  • Running ‘40-maas-01-machine-resources’… success
  • Running ‘50-maas-01-commissioning’… success
  • Running ‘maas-list-modaliases’… success
  • Running ‘maas-lshw’… success
  • Running ‘maas-serial-ports’… success
  • Running ‘maas-support-info’… success

Currently, runining maas-run-script doesn’t report filesystems on the machine, so the layout is not updated.
What I mentioned before is a feature that’s not yet available.

WRT the changes you saw in storage and IPs, it’d be useful to see the output of maas $profile machine read $system_id before and after the change.

I have two identical machine, so machine2 will be before and machine1 will be after. Ok?

ruined machine1
{
    "system_id": "pth7ry",
    "pod": null,
    "boot_interface": {
        "system_id": "pth7ry",
        "firmware_version": null,
        "interface_speed": 10000,
        "link_connected": true,
        "mac_address": "00:50:56:81:ee:34",
        "tags": [],
        "type": "physical",
        "numa_node": 0,
        "links": [
            {
                "id": 413,
                "mode": "static",
                "ip_address": "10.145.197.129",
                "subnet": {
                    "name": "infra-vms",
                    "description": "",
                    "vlan": {
                        "vid": 0,
                        "mtu": 1500,
                        "dhcp_on": true,
                        "external_dhcp": null,
                        "relay_vlan": null,
                        "fabric_id": 0,
                        "primary_rack": "fn83sr",
                        "name": "untagged",
                        "space": "infra-vms",
                        "secondary_rack": "7m38nh",
                        "id": 5001,
                        "fabric": "fabric-0",
                        "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                    },
                    "cidr": "10.145.197.128/26",
                    "rdns_mode": 2,
                    "gateway_ip": "10.145.197.190",
                    "dns_servers": [],
                    "allow_dns": true,
                    "allow_proxy": true,
                    "active_discovery": false,
                    "managed": true,
                    "disabled_boot_architectures": [],
                    "space": "infra-vms",
                    "id": 8,
                    "resource_uri": "/MAAS/api/2.0/subnets/8/"
                }
            },
            {
                "id": 414,
                "mode": "static",
                "ip_address": "10.145.197.133",
                "subnet": {
                    "name": "infra-vms",
                    "description": "",
                    "vlan": {
                        "vid": 0,
                        "mtu": 1500,
                        "dhcp_on": true,
                        "external_dhcp": null,
                        "relay_vlan": null,
                        "fabric_id": 0,
                        "primary_rack": "fn83sr",
                        "name": "untagged",
                        "space": "infra-vms",
                        "secondary_rack": "7m38nh",
                        "id": 5001,
                        "fabric": "fabric-0",
                        "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                    },
                    "cidr": "10.145.197.128/26",
                    "rdns_mode": 2,
                    "gateway_ip": "10.145.197.190",
                    "dns_servers": [],
                    "allow_dns": true,
                    "allow_proxy": true,
                    "active_discovery": false,
                    "managed": true,
                    "disabled_boot_architectures": [],
                    "space": "infra-vms",
                    "id": 8,
                    "resource_uri": "/MAAS/api/2.0/subnets/8/"
                }
            }
        ],
        "children": [],
        "id": 200,
        "vlan": {
            "vid": 0,
            "mtu": 1500,
            "dhcp_on": true,
            "external_dhcp": null,
            "relay_vlan": null,
            "fabric_id": 0,
            "primary_rack": "fn83sr",
            "name": "untagged",
            "space": "infra-vms",
            "secondary_rack": "7m38nh",
            "id": 5001,
            "fabric": "fabric-0",
            "resource_uri": "/MAAS/api/2.0/vlans/5001/"
        },
        "discovered": null,
        "sriov_max_vf": 0,
        "vendor": "VMware",
        "link_speed": 10000,
        "effective_mtu": 1500,
        "parents": [],
        "name": "ens192",
        "params": "",
        "product": "VMXNET3 Ethernet Controller",
        "enabled": true,
        "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/interfaces/200/"
    },
    "network_test_status_name": "Unknown",
    "status_message": "Deployed",
    "boot_disk": {
        "firmware_version": "2.0",
        "system_id": "pth7ry",
        "path": "/dev/disk/by-dname/sda",
        "tags": [
            "ssd"
        ],
        "partitions": [
            {
                "uuid": "4916a8f2-c842-47f2-8570-3628638f389e",
                "size": 536870912,
                "bootable": true,
                "tags": [],
                "system_id": "pth7ry",
                "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                "device_id": 10,
                "path": "/dev/disk/by-dname/sda-part1",
                "filesystem": {
                    "fstype": "fat32",
                    "label": "efi",
                    "uuid": "daf92fe0-df34-49f0-8465-8fde85b04a39",
                    "mount_point": "/boot/efi",
                    "mount_options": null
                },
                "type": "partition",
                "id": 99,
                "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/99"
            },
            {
                "uuid": "b1581e12-9934-49c8-a05d-49a9ac9e792a",
                "size": 106828922880,
                "bootable": false,
                "tags": [],
                "system_id": "pth7ry",
                "used_for": "ext4 formatted filesystem mounted at /",
                "device_id": 10,
                "path": "/dev/disk/by-dname/sda-part2",
                "filesystem": {
                    "fstype": "ext4",
                    "label": "root",
                    "uuid": "ffc4a465-f27e-43c0-ac14-4844c6cd5787",
                    "mount_point": "/",
                    "mount_options": null
                },
                "type": "partition",
                "id": 100,
                "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/100"
            }
        ],
        "type": "physical",
        "used_size": 107371036672,
        "numa_node": 0,
        "used_for": "GPT partitioned with 2 partitions",
        "size": 536870912000,
        "available_size": 429496729600,
        "storage_pool": null,
        "serial": "",
        "id": 10,
        "filesystem": null,
        "id_path": "/dev/sda",
        "name": "sda",
        "partition_table_type": "GPT",
        "block_size": 512,
        "uuid": null,
        "model": "Virtual disk",
        "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/"
    },
    "cpu_count": 8,
    "disable_ipv4": false,
    "commissioning_status_name": "Passed",
    "default_gateways": {
        "ipv4": {
            "gateway_ip": "10.145.197.190",
            "link_id": null
        },
        "ipv6": {
            "gateway_ip": null,
            "link_id": null
        }
    },
    "virtualblockdevice_set": [],
    "fqdn": "machine1",
    "status": 6,
    "tag_names": [
        "virtual",
        "juju"
    ],
    "zone": {
        "name": "default",
        "description": "",
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/zones/default/"
    },
    "status_name": "Deployed",
    "node_type": 0,
    "special_filesystems": [],
    "owner": "admin",
    "osystem": "ubuntu",
    "network_test_status": -1,
    "storage": 536870.912,
    "testing_status_name": "Passed",
    "memory_test_status_name": "Unknown",
    "blockdevice_set": [
        {
            "id_path": "/dev/sda",
            "size": 536870912000,
            "block_size": 512,
            "tags": [
                "ssd"
            ],
            "system_id": "pth7ry",
            "path": "/dev/disk/by-dname/sda",
            "partitions": [
                {
                    "uuid": "4916a8f2-c842-47f2-8570-3628638f389e",
                    "size": 536870912,
                    "bootable": true,
                    "tags": [],
                    "system_id": "pth7ry",
                    "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                    "device_id": 10,
                    "path": "/dev/disk/by-dname/sda-part1",
                    "filesystem": {
                        "fstype": "fat32",
                        "label": "efi",
                        "uuid": "daf92fe0-df34-49f0-8465-8fde85b04a39",
                        "mount_point": "/boot/efi",
                        "mount_options": null
                    },
                    "type": "partition",
                    "id": 99,
                    "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/99"
                },
                {
                    "uuid": "b1581e12-9934-49c8-a05d-49a9ac9e792a",
                    "size": 106828922880,
                    "bootable": false,
                    "tags": [],
                    "system_id": "pth7ry",
                    "used_for": "ext4 formatted filesystem mounted at /",
                    "device_id": 10,
                    "path": "/dev/disk/by-dname/sda-part2",
                    "filesystem": {
                        "fstype": "ext4",
                        "label": "root",
                        "uuid": "ffc4a465-f27e-43c0-ac14-4844c6cd5787",
                        "mount_point": "/",
                        "mount_options": null
                    },
                    "type": "partition",
                    "id": 100,
                    "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/100"
                }
            ],
            "type": "physical",
            "used_size": 107371036672,
            "numa_node": 0,
            "used_for": "GPT partitioned with 2 partitions",
            "available_size": 429496729600,
            "storage_pool": null,
            "serial": "",
            "id": 10,
            "filesystem": null,
            "name": "sda",
            "partition_table_type": "GPT",
            "uuid": null,
            "model": "Virtual disk",
            "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/"
        }
    ],
    "distro_series": "focal",
    "ip_addresses": [
        "10.145.197.129",
        "10.145.197.133"
    ],
    "domain": {
        "authoritative": true,
        "ttl": null,
        "name": "infra.dvs1ent.openstack.mts.ru",
        "is_default": false,
        "resource_record_count": 0,
        "id": 2,
        "resource_uri": "/MAAS/api/2.0/domains/2/"
    },
    "description": "",
    "interface_set": [
        {
            "system_id": "pth7ry",
            "firmware_version": null,
            "interface_speed": 10000,
            "link_connected": true,
            "mac_address": "00:50:56:81:ee:34",
            "tags": [],
            "type": "physical",
            "numa_node": 0,
            "links": [
                {
                    "id": 413,
                    "mode": "static",
                    "ip_address": "10.145.197.129",
                    "subnet": {
                        "name": "infra-vms",
                        "description": "",
                        "vlan": {
                            "vid": 0,
                            "mtu": 1500,
                            "dhcp_on": true,
                            "external_dhcp": null,
                            "relay_vlan": null,
                            "fabric_id": 0,
                            "primary_rack": "fn83sr",
                            "name": "untagged",
                            "space": "infra-vms",
                            "secondary_rack": "7m38nh",
                            "id": 5001,
                            "fabric": "fabric-0",
                            "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                        },
                        "cidr": "10.145.197.128/26",
                        "rdns_mode": 2,
                        "gateway_ip": "10.145.197.190",
                        "dns_servers": [],
                        "allow_dns": true,
                        "allow_proxy": true,
                        "active_discovery": false,
                        "managed": true,
                        "disabled_boot_architectures": [],
                        "space": "infra-vms",
                        "id": 8,
                        "resource_uri": "/MAAS/api/2.0/subnets/8/"
                    }
                },
                {
                    "id": 414,
                    "mode": "static",
                    "ip_address": "10.145.197.133",
                    "subnet": {
                        "name": "infra-vms",
                        "description": "",
                        "vlan": {
                            "vid": 0,
                            "mtu": 1500,
                            "dhcp_on": true,
                            "external_dhcp": null,
                            "relay_vlan": null,
                            "fabric_id": 0,
                            "primary_rack": "fn83sr",
                            "name": "untagged",
                            "space": "infra-vms",
                            "secondary_rack": "7m38nh",
                            "id": 5001,
                            "fabric": "fabric-0",
                            "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                        },
                        "cidr": "10.145.197.128/26",
                        "rdns_mode": 2,
                        "gateway_ip": "10.145.197.190",
                        "dns_servers": [],
                        "allow_dns": true,
                        "allow_proxy": true,
                        "active_discovery": false,
                        "managed": true,
                        "disabled_boot_architectures": [],
                        "space": "infra-vms",
                        "id": 8,
                        "resource_uri": "/MAAS/api/2.0/subnets/8/"
                    }
                }
            ],
            "children": [],
            "id": 200,
            "vlan": {
                "vid": 0,
                "mtu": 1500,
                "dhcp_on": true,
                "external_dhcp": null,
                "relay_vlan": null,
                "fabric_id": 0,
                "primary_rack": "fn83sr",
                "name": "untagged",
                "space": "infra-vms",
                "secondary_rack": "7m38nh",
                "id": 5001,
                "fabric": "fabric-0",
                "resource_uri": "/MAAS/api/2.0/vlans/5001/"
            },
            "discovered": null,
            "sriov_max_vf": 0,
            "vendor": "VMware",
            "link_speed": 10000,
            "effective_mtu": 1500,
            "parents": [],
            "name": "ens192",
            "params": "",
            "product": "VMXNET3 Ethernet Controller",
            "enabled": true,
            "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/interfaces/200/"
        }
    ],
    "architecture": "amd64/generic",
    "hostname": "machine1",
    "bios_boot_method": "uefi",
    "current_installation_result_id": 149,
    "pool": {
        "name": "default",
        "description": "Default pool",
        "id": 0,
        "resource_uri": "/MAAS/api/2.0/resourcepool/0/"
    },
    "physicalblockdevice_set": [
        {
            "firmware_version": "2.0",
            "system_id": "pth7ry",
            "path": "/dev/disk/by-dname/sda",
            "tags": [
                "ssd"
            ],
            "partitions": [
                {
                    "uuid": "4916a8f2-c842-47f2-8570-3628638f389e",
                    "size": 536870912,
                    "bootable": true,
                    "tags": [],
                    "system_id": "pth7ry",
                    "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                    "device_id": 10,
                    "path": "/dev/disk/by-dname/sda-part1",
                    "filesystem": {
                        "fstype": "fat32",
                        "label": "efi",
                        "uuid": "daf92fe0-df34-49f0-8465-8fde85b04a39",
                        "mount_point": "/boot/efi",
                        "mount_options": null
                    },
                    "type": "partition",
                    "id": 99,
                    "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/99"
                },
                {
                    "uuid": "b1581e12-9934-49c8-a05d-49a9ac9e792a",
                    "size": 106828922880,
                    "bootable": false,
                    "tags": [],
                    "system_id": "pth7ry",
                    "used_for": "ext4 formatted filesystem mounted at /",
                    "device_id": 10,
                    "path": "/dev/disk/by-dname/sda-part2",
                    "filesystem": {
                        "fstype": "ext4",
                        "label": "root",
                        "uuid": "ffc4a465-f27e-43c0-ac14-4844c6cd5787",
                        "mount_point": "/",
                        "mount_options": null
                    },
                    "type": "partition",
                    "id": 100,
                    "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/partition/100"
                }
            ],
            "type": "physical",
            "used_size": 107371036672,
            "numa_node": 0,
            "used_for": "GPT partitioned with 2 partitions",
            "size": 536870912000,
            "available_size": 429496729600,
            "storage_pool": null,
            "serial": "",
            "id": 10,
            "filesystem": null,
            "id_path": "/dev/sda",
            "name": "sda",
            "partition_table_type": "GPT",
            "block_size": 512,
            "uuid": null,
            "model": "Virtual disk",
            "resource_uri": "/MAAS/api/2.0/nodes/pth7ry/blockdevices/10/"
        }
    ],
    "interface_test_status": -1,
    "cpu_test_status_name": "Unknown",
    "bcaches": [],
    "volume_groups": [],
    "other_test_status": -1,
    "other_test_status_name": "Unknown",
    "interface_test_status_name": "Unknown",
    "memory": 65536,
    "address_ttl": null,
    "cache_sets": [],
    "owner_data": {
        "juju-controller-uuid": "4c25bd7c-a504-4c4f-820a-511f1f38c51d",
        "juju-is-controller": "true",
        "juju-model-uuid": "d1d9b6a4-b797-4a07-8d74-5ed853bc2ec7"
    },
    "storage_test_status": 2,
    "workload_annotations": {
        "juju-controller-uuid": "4c25bd7c-a504-4c4f-820a-511f1f38c51d",
        "juju-is-controller": "true",
        "juju-model-uuid": "d1d9b6a4-b797-4a07-8d74-5ed853bc2ec7"
    },
    "current_commissioning_result_id": 147,
    "locked": false,
    "testing_status": 2,
    "power_type": "vmware",
    "hwe_kernel": "hwe-20.04",
    "storage_test_status_name": "Passed",
    "node_type_name": "Machine",
    "current_testing_result_id": 148,
    "virtualmachine_id": null,
    "hardware_uuid": null,
    "commissioning_status": 2,
    "swap_size": null,
    "cpu_test_status": -1,
    "status_action": "",
    "min_hwe_kernel": "hwe-20.04",
    "netboot": false,
    "raids": [],
    "hardware_info": {
        "system_vendor": "VMware, Inc.",
        "system_product": "VMware7,1",
        "system_family": "Unknown",
        "system_version": "Unknown",
        "system_sku": "Unknown",
        "system_serial": "Unknown",
        "cpu_model": "Intel(R) Xeon(R) Gold 6248R CPU",
        "mainboard_vendor": "Intel Corporation",
        "mainboard_product": "440BX Desktop Reference Platform",
        "mainboard_serial": "Unknown",
        "mainboard_version": "Unknown",
        "mainboard_firmware_vendor": "VMware, Inc.",
        "mainboard_firmware_date": "06/25/2021",
        "mainboard_firmware_version": "VMW71.00V.18227214.B64.2106252220",
        "chassis_vendor": "No Enclosure",
        "chassis_type": "Other",
        "chassis_serial": "Unknown",
        "chassis_version": "N/A"
    },
    "cpu_speed": 3000,
    "memory_test_status": -1,
    "numanode_set": [
        {
            "index": 0,
            "memory": 65536,
            "cores": [
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7
            ],
            "hugepages_set": [
                {
                    "page_size": 2097152,
                    "total": 0
                }
            ]
        }
    ],
    "power_state": "on",
    "resource_uri": "/MAAS/api/2.0/machines/pth7ry/"
clean machine2
{
    "network_test_status_name": "Unknown",
    "storage_test_status_name": "Passed",
    "osystem": "ubuntu",
    "memory": 24576,
    "current_commissioning_result_id": 53,
    "hostname": "machine2",
    "physicalblockdevice_set": [
        {
            "firmware_version": "2.0",
            "uuid": null,
            "id_path": "/dev/sda",
            "block_size": 512,
            "tags": [
                "ssd"
            ],
            "size": 107374182400,
            "id": 19,
            "partitions": [
                {
                    "uuid": "b14f1245-1df9-48df-bc09-8b99afe50324",
                    "size": 536870912,
                    "bootable": true,
                    "tags": [],
                    "system_id": "n83tdm",
                    "path": "/dev/disk/by-dname/sda-part1",
                    "type": "partition",
                    "device_id": 19,
                    "filesystem": {
                        "fstype": "fat32",
                        "label": "efi",
                        "uuid": "a00dbb2f-b4e7-4e46-82fc-20aabbf4a478",
                        "mount_point": "/boot/efi",
                        "mount_options": null
                    },
                    "id": 35,
                    "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                    "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/35"
                },
                {
                    "uuid": "9f4a04bd-0681-4cd1-8a4c-415717597b64",
                    "size": 106828922880,
                    "bootable": false,
                    "tags": [],
                    "system_id": "n83tdm",
                    "path": "/dev/disk/by-dname/sda-part2",
                    "type": "partition",
                    "device_id": 19,
                    "filesystem": {
                        "fstype": "ext4",
                        "label": "root",
                        "uuid": "e7b6654c-e495-4cfa-b47a-e332968ebbcb",
                        "mount_point": "/",
                        "mount_options": null
                    },
                    "id": 36,
                    "used_for": "ext4 formatted filesystem mounted at /",
                    "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/36"
                }
            ],
            "system_id": "n83tdm",
            "serial": "",
            "numa_node": 0,
            "name": "sda",
            "model": "Virtual disk",
            "path": "/dev/disk/by-dname/sda",
            "available_size": 0,
            "partition_table_type": "GPT",
            "used_size": 107371036672,
            "storage_pool": null,
            "type": "physical",
            "filesystem": null,
            "used_for": "GPT partitioned with 2 partitions",
            "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/"
        }
    ],
    "testing_status": 2,
    "description": "",
    "current_installation_result_id": 150,
    "other_test_status": -1,
    "network_test_status": -1,
    "workload_annotations": {
        "juju-controller-uuid": "4c25bd7c-a504-4c4f-820a-511f1f38c51d",
        "juju-is-controller": "true",
        "juju-machine-id": "controller-machine-1",
        "juju-model-uuid": "d1d9b6a4-b797-4a07-8d74-5ed853bc2ec7",
        "juju-units-deployed": "controller/1"
    },
    "status_action": "",
    "hwe_kernel": "hwe-20.04",
    "distro_series": "focal",
    "testing_status_name": "Passed",
    "commissioning_status_name": "Passed",
    "cpu_count": 8,
    "tag_names": [
        "virtual",
        "juju"
    ],
    "storage_test_status": 2,
    "netboot": false,
    "pool": {
        "name": "default",
        "description": "Default pool",
        "id": 0,
        "resource_uri": "/MAAS/api/2.0/resourcepool/0/"
    },
    "boot_disk": {
        "firmware_version": "2.0",
        "uuid": null,
        "id_path": "/dev/sda",
        "block_size": 512,
        "tags": [
            "ssd"
        ],
        "size": 107374182400,
        "id": 19,
        "partitions": [
            {
                "uuid": "b14f1245-1df9-48df-bc09-8b99afe50324",
                "size": 536870912,
                "bootable": true,
                "tags": [],
                "system_id": "n83tdm",
                "path": "/dev/disk/by-dname/sda-part1",
                "type": "partition",
                "device_id": 19,
                "filesystem": {
                    "fstype": "fat32",
                    "label": "efi",
                    "uuid": "a00dbb2f-b4e7-4e46-82fc-20aabbf4a478",
                    "mount_point": "/boot/efi",
                    "mount_options": null
                },
                "id": 35,
                "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/35"
            },
            {
                "uuid": "9f4a04bd-0681-4cd1-8a4c-415717597b64",
                "size": 106828922880,
                "bootable": false,
                "tags": [],
                "system_id": "n83tdm",
                "path": "/dev/disk/by-dname/sda-part2",
                "type": "partition",
                "device_id": 19,
                "filesystem": {
                    "fstype": "ext4",
                    "label": "root",
                    "uuid": "e7b6654c-e495-4cfa-b47a-e332968ebbcb",
                    "mount_point": "/",
                    "mount_options": null
                },
                "id": 36,
                "used_for": "ext4 formatted filesystem mounted at /",
                "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/36"
            }
        ],
        "system_id": "n83tdm",
        "serial": "",
        "numa_node": 0,
        "name": "sda",
        "model": "Virtual disk",
        "path": "/dev/disk/by-dname/sda",
        "available_size": 0,
        "partition_table_type": "GPT",
        "used_size": 107371036672,
        "storage_pool": null,
        "type": "physical",
        "filesystem": null,
        "used_for": "GPT partitioned with 2 partitions",
        "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/"
    },
    "cpu_test_status_name": "Unknown",
    "system_id": "n83tdm",
    "status_message": "Deployed",
    "memory_test_status_name": "Unknown",
    "hardware_uuid": "99f80142-b3ea-6bc7-8c2f-44b880781565",
    "memory_test_status": -1,
    "hardware_info": {
        "system_vendor": "VMware, Inc.",
        "system_product": "VMware7,1",
        "system_family": "Unknown",
        "system_version": "Unknown",
        "system_sku": "Unknown",
        "system_serial": "VMware-42 01 f8 99 ea b3 c7 6b-8c 2f 44 b8 80 78 15 65",
        "cpu_model": "Intel(R) Xeon(R) CPU E5-2680 v3",
        "mainboard_vendor": "Intel Corporation",
        "mainboard_product": "440BX Desktop Reference Platform",
        "mainboard_serial": "Unknown",
        "mainboard_version": "Unknown",
        "mainboard_firmware_vendor": "VMware, Inc.",
        "mainboard_firmware_date": "08/07/2020",
        "mainboard_firmware_version": "VMW71.00V.16707776.B64.2008070230",
        "chassis_vendor": "No Enclosure",
        "chassis_type": "Other",
        "chassis_serial": "Unknown",
        "chassis_version": "N/A"
    },
    "cache_sets": [],
    "address_ttl": null,
    "blockdevice_set": [
        {
            "id_path": "/dev/sda",
            "size": 107374182400,
            "block_size": 512,
            "tags": [
                "ssd"
            ],
            "uuid": null,
            "id": 19,
            "partitions": [
                {
                    "uuid": "b14f1245-1df9-48df-bc09-8b99afe50324",
                    "size": 536870912,
                    "bootable": true,
                    "tags": [],
                    "system_id": "n83tdm",
                    "path": "/dev/disk/by-dname/sda-part1",
                    "type": "partition",
                    "device_id": 19,
                    "filesystem": {
                        "fstype": "fat32",
                        "label": "efi",
                        "uuid": "a00dbb2f-b4e7-4e46-82fc-20aabbf4a478",
                        "mount_point": "/boot/efi",
                        "mount_options": null
                    },
                    "id": 35,
                    "used_for": "fat32 formatted filesystem mounted at /boot/efi",
                    "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/35"
                },
                {
                    "uuid": "9f4a04bd-0681-4cd1-8a4c-415717597b64",
                    "size": 106828922880,
                    "bootable": false,
                    "tags": [],
                    "system_id": "n83tdm",
                    "path": "/dev/disk/by-dname/sda-part2",
                    "type": "partition",
                    "device_id": 19,
                    "filesystem": {
                        "fstype": "ext4",
                        "label": "root",
                        "uuid": "e7b6654c-e495-4cfa-b47a-e332968ebbcb",
                        "mount_point": "/",
                        "mount_options": null
                    },
                    "id": 36,
                    "used_for": "ext4 formatted filesystem mounted at /",
                    "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/partition/36"
                }
            ],
            "system_id": "n83tdm",
            "serial": "",
            "numa_node": 0,
            "name": "sda",
            "model": "Virtual disk",
            "path": "/dev/disk/by-dname/sda",
            "available_size": 0,
            "partition_table_type": "GPT",
            "used_size": 107371036672,
            "storage_pool": null,
            "type": "physical",
            "filesystem": null,
            "used_for": "GPT partitioned with 2 partitions",
            "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/blockdevices/19/"
        }
    ],
    "disable_ipv4": false,
    "node_type": 0,
    "virtualmachine_id": null,
    "min_hwe_kernel": "hwe-20.04",
    "boot_interface": {
        "children": [],
        "mac_address": "00:50:56:81:c0:df",
        "tags": [],
        "enabled": true,
        "id": 102,
        "links": [
            {
                "id": 179,
                "mode": "static",
                "ip_address": "10.145.197.161",
                "subnet": {
                    "name": "infra-vms",
                    "description": "",
                    "vlan": {
                        "vid": 0,
                        "mtu": 1500,
                        "dhcp_on": true,
                        "external_dhcp": null,
                        "relay_vlan": null,
                        "space": "infra-vms",
                        "name": "untagged",
                        "secondary_rack": "7m38nh",
                        "fabric_id": 0,
                        "primary_rack": "fn83sr",
                        "id": 5001,
                        "fabric": "fabric-0",
                        "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                    },
                    "cidr": "10.145.197.128/26",
                    "rdns_mode": 2,
                    "gateway_ip": "10.145.197.190",
                    "dns_servers": [],
                    "allow_dns": true,
                    "allow_proxy": true,
                    "active_discovery": false,
                    "managed": true,
                    "disabled_boot_architectures": [],
                    "space": "infra-vms",
                    "id": 8,
                    "resource_uri": "/MAAS/api/2.0/subnets/8/"
                }
            }
        ],
        "sriov_max_vf": 0,
        "interface_speed": 10000,
        "vlan": {
            "vid": 0,
            "mtu": 1500,
            "dhcp_on": true,
            "external_dhcp": null,
            "relay_vlan": null,
            "space": "infra-vms",
            "name": "untagged",
            "secondary_rack": "7m38nh",
            "fabric_id": 0,
            "primary_rack": "fn83sr",
            "id": 5001,
            "fabric": "fabric-0",
            "resource_uri": "/MAAS/api/2.0/vlans/5001/"
        },
        "system_id": "n83tdm",
        "numa_node": 0,
        "discovered": [],
        "name": "ens192",
        "effective_mtu": 1500,
        "link_speed": 10000,
        "vendor": "VMware",
        "product": "VMXNET3 Ethernet Controller",
        "link_connected": true,
        "parents": [],
        "params": {},
        "type": "physical",
        "firmware_version": null,
        "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/interfaces/102/"
    },
    "special_filesystems": [],
    "node_type_name": "Machine",
    "other_test_status_name": "Unknown",
    "cpu_speed": 2500,
    "bios_boot_method": "uefi",
    "interface_test_status": -1,
    "owner_data": {
        "juju-controller-uuid": "4c25bd7c-a504-4c4f-820a-511f1f38c51d",
        "juju-is-controller": "true",
        "juju-machine-id": "controller-machine-1",
        "juju-model-uuid": "d1d9b6a4-b797-4a07-8d74-5ed853bc2ec7",
        "juju-units-deployed": "controller/1"
    },
    "bcaches": [],
    "power_type": "vmware",
    "swap_size": null,
    "owner": "admin",
    "ip_addresses": [
        "10.145.197.161"
    ],
    "pod": null,
    "numanode_set": [
        {
            "index": 0,
            "memory": 24576,
            "cores": [
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7
            ],
            "hugepages_set": []
        }
    ],
    "raids": [],
    "virtualblockdevice_set": [],
    "architecture": "amd64/generic",
    "default_gateways": {
        "ipv4": {
            "gateway_ip": "10.145.197.190",
            "link_id": null
        },
        "ipv6": {
            "gateway_ip": null,
            "link_id": null
        }
    },
    "status_name": "Deployed",
    "interface_test_status_name": "Unknown",
    "power_state": "on",
    "domain": {
        "authoritative": true,
        "ttl": null,
        "resource_record_count": 0,
        "name": "infra.dvs1ent.openstack.mts.ru",
        "is_default": false,
        "id": 2,
        "resource_uri": "/MAAS/api/2.0/domains/2/"
    },
    "cpu_test_status": -1,
    "status": 6,
    "commissioning_status": 2,
    "locked": false,
    "current_testing_result_id": 57,
    "fqdn": "machine2",
    "volume_groups": [],
    "interface_set": [
        {
            "children": [],
            "mac_address": "00:50:56:81:c0:df",
            "tags": [],
            "enabled": true,
            "id": 102,
            "links": [
                {
                    "id": 179,
                    "mode": "static",
                    "ip_address": "10.145.197.161",
                    "subnet": {
                        "name": "infra-vms",
                        "description": "",
                        "vlan": {
                            "vid": 0,
                            "mtu": 1500,
                            "dhcp_on": true,
                            "external_dhcp": null,
                            "relay_vlan": null,
                            "space": "infra-vms",
                            "name": "untagged",
                            "secondary_rack": "7m38nh",
                            "fabric_id": 0,
                            "primary_rack": "fn83sr",
                            "id": 5001,
                            "fabric": "fabric-0",
                            "resource_uri": "/MAAS/api/2.0/vlans/5001/"
                        },
                        "cidr": "10.145.197.128/26",
                        "rdns_mode": 2,
                        "gateway_ip": "10.145.197.190",
                        "dns_servers": [],
                        "allow_dns": true,
                        "allow_proxy": true,
                        "active_discovery": false,
                        "managed": true,
                        "disabled_boot_architectures": [],
                        "space": "infra-vms",
                        "id": 8,
                        "resource_uri": "/MAAS/api/2.0/subnets/8/"
                    }
                }
            ],
            "sriov_max_vf": 0,
            "interface_speed": 10000,
            "vlan": {
                "vid": 0,
                "mtu": 1500,
                "dhcp_on": true,
                "external_dhcp": null,
                "relay_vlan": null,
                "space": "infra-vms",
                "name": "untagged",
                "secondary_rack": "7m38nh",
                "fabric_id": 0,
                "primary_rack": "fn83sr",
                "id": 5001,
                "fabric": "fabric-0",
                "resource_uri": "/MAAS/api/2.0/vlans/5001/"
            },
            "system_id": "n83tdm",
            "numa_node": 0,
            "discovered": [],
            "name": "ens192",
            "effective_mtu": 1500,
            "link_speed": 10000,
            "vendor": "VMware",
            "product": "VMXNET3 Ethernet Controller",
            "link_connected": true,
            "parents": [],
            "params": {},
            "type": "physical",
            "firmware_version": null,
            "resource_uri": "/MAAS/api/2.0/nodes/n83tdm/interfaces/102/"
        }
    ],
    "storage": 107374.1824,
    "zone": {
        "name": "default",
        "description": "",
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/zones/default/"
    },
    "resource_uri": "/MAAS/api/2.0/machines/n83tdm/"

I just change strategy :smile:

  • I set the global storage config to LVM
  • after the machine is commissioning I delete the machine’s default VG and LV via CLI
  • and create a new LVM layout via maas cli+jq

a set of commands can be saved in a text file in the same way as in the preseed :sunglasses:

1 Like

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