Hi all, is there an option to get a machine user_data file with all the network and storage configuration?
hi, @roei-pliops,
if you just want the network and storage configuration, you can probably get that with the CLI by typing the following at the command line:
maas $PROFILE machine read $SYSTEM_ID
That should give you JSON output which details information about the machine, similar to this output:
Success.
Machine-readable output follows:
{
"architecture": "amd64/generic",
"memory": 0,
"zone": {
"name": "default",
"description": "",
"id": 1,
"resource_uri": "/MAAS/api/2.0/zones/default/"
},
"owner_data": {},
"physicalblockdevice_set": [],
"raids": [],
"other_test_status_name": "Unknown",
"ip_addresses": [],
"domain": {
"authoritative": true,
"ttl": null,
"resource_record_count": 0,
"id": 0,
"name": "maas",
"is_default": true,
"resource_uri": "/MAAS/api/2.0/domains/0/"
},
"network_test_status_name": "Unknown",
"hwe_kernel": null,
"default_gateways": {
"ipv4": {
"gateway_ip": null,
"link_id": null
},
"ipv6": {
"gateway_ip": null,
"link_id": null
}
},
"current_testing_result_id": 20,
"distro_series": "",
"osystem": "",
"netboot": true,
"storage": 0.0,
"locked": false,
"fqdn": "vm1.maas",
"tag_names": [],
"owner": "admin",
"blockdevice_set": [],
"hostname": "vm1",
"network_test_status": -1,
"system_id": "dqf4cq",
"description": "",
"storage_test_status_name": "Failed",
"power_type": "virsh",
"boot_disk": null,
"current_installation_result_id": null,
"boot_interface": {
"interface_speed": 0,
"tags": [],
"enabled": true,
"vlan": null,
"vendor": null,
"mac_address": "52:54:00:4b:75:76",
"effective_mtu": 1500,
"system_id": "dqf4cq",
"parents": [],
"name": "eth0",
"discovered": null,
"params": "",
"children": [],
"link_connected": true,
"id": 28,
"sriov_max_vf": 0,
"link_speed": 0,
"numa_node": 0,
"type": "physical",
"firmware_version": null,
"product": null,
"links": [],
"resource_uri": "/MAAS/api/2.0/nodes/dqf4cq/interfaces/28/"
},
"other_test_status": -1,
"storage_test_status": 3,
"interface_test_status_name": "Unknown",
"bios_boot_method": null,
"status_action": "",
"hardware_uuid": null,
"swap_size": null,
"testing_status_name": "Failed",
"pool": {
"name": "default",
"description": "Default pool",
"id": 0,
"resource_uri": "/MAAS/api/2.0/resourcepool/0/"
},
"cpu_count": 0,
"cache_sets": [],
"cpu_speed": 0,
"pod": null,
"node_type_name": "Machine",
"virtualmachine_id": null,
"special_filesystems": [],
"commissioning_status_name": "Failed",
"interface_test_status": -1,
"numanode_set": [
{
"index": 0,
"memory": 0,
"cores": [],
"hugepages_set": []
}
],
"min_hwe_kernel": "",
"testing_status": 3,
"cpu_test_status_name": "Unknown",
"current_commissioning_result_id": 19,
"address_ttl": null,
"interface_set": [
{
"interface_speed": 0,
"tags": [],
"enabled": true,
"vlan": null,
"vendor": null,
"mac_address": "52:54:00:4b:75:76",
"effective_mtu": 1500,
"system_id": "dqf4cq",
"parents": [],
"name": "eth0",
"discovered": null,
"params": "",
"children": [],
"link_connected": true,
"id": 28,
"sriov_max_vf": 0,
"link_speed": 0,
"numa_node": 0,
"type": "physical",
"firmware_version": null,
"product": null,
"links": [],
"resource_uri": "/MAAS/api/2.0/nodes/dqf4cq/interfaces/28/"
}
],
"disable_ipv4": false,
"virtualblockdevice_set": [],
"status_message": "Failed to query node's BMC - Failed to login to virsh console.",
"node_type": 0,
"volume_groups": [],
"cpu_test_status": -1,
"memory_test_status_name": "Unknown",
"commissioning_status": 3,
"memory_test_status": -1,
"hardware_info": {
"system_vendor": "Unknown",
"system_product": "Unknown",
"system_family": "Unknown",
"system_version": "Unknown",
"system_sku": "Unknown",
"system_serial": "Unknown",
"cpu_model": "Unknown",
"mainboard_vendor": "Unknown",
"mainboard_product": "Unknown",
"mainboard_serial": "Unknown",
"mainboard_version": "Unknown",
"mainboard_firmware_vendor": "Unknown",
"mainboard_firmware_date": "Unknown",
"mainboard_firmware_version": "Unknown",
"chassis_vendor": "Unknown",
"chassis_type": "Unknown",
"chassis_serial": "Unknown",
"chassis_version": "Unknown"
},
"bcaches": [],
"status": 2,
"workload_annotations": {},
"status_name": "Failed commissioning",
"power_state": "error",
"resource_uri": "/MAAS/api/2.0/machines/dqf4cq/"
}
Sounds like you might be wanting something else. Let me know if this answers your query?