Skip to content

Choose existing disk as a boot disk on instance create #1060

Closed

Description

@smklein

... but I should be able to, right?

Steps to repro:

  • Create an instance, use an existing image as the disk of choice (I used debian, you can use whatever)
  • Observe the disk and instance exist
  • Stop the instance, delete it
  • Observe the boot disk still exists
  • Try to create a new instance using the old boot disk
  • Observe that "boot disk" requires one of "{distros, images, snapshots}". Old boot disks do not show up here. Notably it can be attached as an "additional disk", but not as an old boot disk.

Activity

  1. smklein commented on Jul 20, 2022

    @smklein
    Author

    FWIW I consider this relatively low-priority, but wanted to flag it regardless.

  2. just-be-dev commented on Jul 21, 2022

    @just-be-dev
    Contributor

    Yeah, we're aware of this. It's relatively low priority in the sense of UI functionality, but it's technically rather easy to accommodate. Boot disk creation / configuration is still the area that needs the most work in instance creation.

  3. modified the milestones: , Guided Demo on Jul 21, 2022
  4. self-assigned this
    on Jul 21, 2022
  5. modified the milestones: Guided Demo, on Jul 27, 2022
  6. just-be-dev commented on Jul 27, 2022

    @just-be-dev
    Contributor

    I've pushed this issue off to the next milestone. The UI pattern for implementing this feature exists but there's a bit of a larger question around data. Ultimately this relies on the disks list endpoint but will need to be filtered down to unattached disks.

    Currently the notion of filtering doesn't exist in our API. We'd need to figure out a way of requesting unattached disks. That could be /disks/unattached or /disks?instance_id=null... something like that. Idk, we'll need to figure it out.

  7. removed this from the milestone on Oct 24, 2022
  8. david-crespo commented on Feb 8, 2023

    @david-crespo
    Collaborator

    How important is API support @zephraph? Could we fudge it by filtering on the client?

  9. just-be-dev commented on Feb 8, 2023

    @just-be-dev
    Contributor

    Potentially. @ahl wants to change the part of the instance create API around disks, images, etc so it could impact this.

  10. added this to the 8 milestone on Mar 9, 2024
  11. added
    known issue
    on Mar 9, 2024
  12. david-crespo commented on Mar 11, 2024

    @david-crespo
    Collaborator

    The problem here is we always insert a created disk from the "boot disk" section as the first element in the list of disks. I think in order to solve this properly we need to rework these two sections so that we are not introducing an artificial concept of boot disk. We do have that concept in the API in that the first disk in the list is treated as the boot disk, but there is otherwise nothing special about it. The Boot Disk section of the form is a helper to make clear that you almost certainly want at least one disk attached to your instance so you can boot from it.

    Maybe we can keep the boot disk section but add a kind of toggle that lets you choose between creating a new disk and attaching an existing one. The thing I don't like about that is that it duplicates the distinction we already make under additional disks between create and attach. Maybe that's fine.

    disks: [
    {
    type: 'create',
    // TODO: Determine the pattern of the default boot disk name
    name: bootDiskName,
    description: `Created as a boot disk for ${values.name}`,
    // Minimum size as greater than the image is validated
    // directly on the boot disk size input
    size: values.bootDiskSize * GiB,
    diskSource: {
    type: 'image',
    imageId: values.image,
    },
    },
    ...values.disks,
    ],

    image
  13. benjaminleonard commented on Mar 12, 2024

    @benjaminleonard
    Contributor

    Can we just add "Disk" as a tab under boot disk. That way it's extendable and we can use snapshots in the future too. That tab can contain a listbox with all the disks (another motivation for #1942).

  14. david-crespo commented on Mar 12, 2024

    @david-crespo
    Collaborator

    That’s just the kind of inside-the-box thinking we need.

  15. modified the milestones: 8, 7 on Mar 12, 2024
  16. benjaminleonard commented on Mar 12, 2024

    @benjaminleonard
    Contributor

    I only occasionally suggest the most convoluted solution

  17. modified the milestones: 7, 8 on Mar 25, 2024
  18. changed the title [-]Cannot use an existing disk as a boot image[/-] [+]Use existing disk as a boot image[/+] on Mar 25, 2024
  19. changed the title [-]Use existing disk as a boot image[/-] [+]Use existing disk as a boot disk on instance create[/+] on Mar 25, 2024
  20. changed the title [-]Use existing disk as a boot disk on instance create[/-] [+]Choose existing disk as a boot disk on instance create[/+] on Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

known issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions