Skip to content

No way to get disk out of bulk import state #1568

Open

Description

@david-crespo

If I capriciously close the tab in the middle of image upload, I'm left with this undeleteable demon haunting me. We could add a button only for disks in this godforsaken state that lets you call diskBulkWriteImportStop, which would put the image back in ImportReady state, and then call diskFinalize, which puts the disk in Detached state and does not create a snapshot as long as you leave off the snapshot name param. We could call that "reset" or something stupid. OR, we could just enable the delete button and do all that as part of delete.

image

Activity

  1. changed the title [-]No way to get image out of bulk import state[/-] [+]No way to get disk out of bulk import state[/+] on Jun 9, 2023
  2. added this to the MVP milestone on Apr 14, 2025
  3. augustuswm commented on Sep 9, 2026

    @augustuswm

    Wanted to bump this. it would be really nice to have console based transition for sorting out that various import states a disk can be in. In particular when helping a preview user get a disk they attempted to create unstuck (so they dont have to go to the CLI)

  4. modified the milestones: MVP, 23 on Sep 9, 2026
  5. david-crespo commented on Sep 9, 2026

    @david-crespo
    CollaboratorAuthor

    I think I'm in favor of "we could add a button only for disks in this godforsaken state" as the easy approach.

  6. fakemonster commented on Sep 9, 2026

    @fakemonster
    Contributor

    How godforsaken is this state, really? A user could load the disks page while someone else's upload is occurring and see this.

    On toying with it, I think part of the orchestration here that's notable is that it's plenty easy to also abandon an upload before the actual upload begins:

    Image

    That second one was my initial attempt to get into this state where I was a little overeager. I don't know if we need to force people to click their way through the state machine of "stop import" "finalize import" "delete disk" but maybe both cases could just be addressed with a "Cancel import" button and we'll deal with the footwork. Unfortunate that this is handled in the disk view and not the images view, but it is correct...

  7. david-crespo commented on Sep 9, 2026

    @david-crespo
    CollaboratorAuthor

    It's true that it's not that rare. Yeah, I think we would want to do both calls in one action and leave the disk detached.

  8. self-assigned this
    on Sep 9, 2026
  9. augustuswm commented on Sep 9, 2026

    @augustuswm

    Yeah I should have been clearer, the case we actually see this more commonly is that someone starts an upload via the CLI / SDK but fails to complete for some reason. Which definitely leaves disks in interesting states. I think it would be fine if we follow the state graphs that are currently available for disks

  10. modified the milestones: 23, 24 on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions