MAAS API does not allow changing an fstype or mount_point on LVM volume-groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned | ||
3.4 |
Won't Fix
|
Medium
|
Unassigned | ||
3.5 |
Won't Fix
|
Medium
|
Unassigned | ||
3.6 |
Triaged
|
Medium
|
Unassigned |
Bug Description
The MAAS CLI provides methods to set the fstype and mount_point of a normal partition:
maas $PROFILE partition format $SYSTEM_ID $DEVICE_ID $PARTITION_ID fstype=fat32
maas $PROFILE partition mount $SYSTEM_ID $DEVICE_ID $PARTITION_ID mount_point=
However, if this is an LVM logical volume you can't. You can create one with:
maas $PROFILE volume-groups create $SYSTEM_ID partitions=
maas $PROFILE volume-group create-
But when trying to set the fstype or mount_point with the partition command with the CLI you need a partition_id but the blockdevice is doesn't contain one:
{
"id_path": null,
"size": 32103202816,
"block_size": 4096,
"tags": [],
"partition_
"partitions": [],
"uuid": "002df611-
"path": "/dev/disk/
"used_size": 0,
"numa_node": null,
"used_for": "Unused",
"filesystem": null,
"serial": null,
"id": 413,
"available_size": 32103202816,
"storage_pool": null,
"type": "virtual",
"name": "vgtest-lvtest",
"model": null,
"system_id": "p6fhme",
"resource_uri": "/MAAS/
}
I grabbed a tcpdump from UI and it passes null to the WebSocket for the partition_id:
Line-based text data (1 lines)
{"type"
There doesn't seem to be a way to pass null to either the CLI or the API.
tags: | added: cli |
tags: | added: api |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
milestone: | 3.4.x → 3.5.x |
The inconsistency between what's possible via the UI vs API/CLI is unintentional.