Skip to content

No way to tell which is the boot disk #1417

@david-crespo

Description

@david-crespo

In the console we currently rely on the order of disks to mark out the boot disk for an instance. The boot disk is supposed to be the first disk (or at least I thought it was — will try to find relevant discussion). However, the disks come back in alphabetical order, which makes our UI wrong.

2022-07-13-disk-order-bug

We are explicitly sorting instance disks by name.

paginated(dsl::disk, dsl::name, &pagparams)

I didn't call this issue "the order is wrong" because ultimately that's not a very good API for this and I would rather have a more reliable property on the response. Maybe this should be stored as part of the disk state: in addition to the ID of the instance it's a attached to, a boolean indicating whether it is the boot disk.

I don't have a strong opinion on how important it is to say which disk is the boot disk — if it's not that important, it would be a lot easier not to bother making the distinction in the UI than it would be to make the necessary API changes to reliably make said distinction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    virtualizationPropolis Integration & VM Management

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions