Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system lets me try to create two snapshots at the same time #5695

Closed
Tracked by #5876
ericpromislow opened this issue Oct 10, 2023 · 6 comments · Fixed by #6059
Closed
Tracked by #5876

The system lets me try to create two snapshots at the same time #5695

ericpromislow opened this issue Oct 10, 2023 · 6 comments · Fixed by #6059
Assignees
Labels
Milestone

Comments

@ericpromislow
Copy link
Contributor

ericpromislow commented Oct 10, 2023

Problem Description

Run rdctl snapshot create NAME

Now use the UI to create a snapshot named SOME-OTHER-NAME.
Bug 1: The UI should disable snaphost creation
Bug 2: When the UI tries to create snapshot SOME-OTHER-NAME, it should report the failure (it didn't create the snapshot)

Proposed Solution

I assue the UI needs to be aware of the state of the snapshot lockfile.

@jandubois jandubois added this to the 1.11 milestone Oct 10, 2023
@gaktive gaktive added kind/bug Something isn't working and removed kind/enhancement New feature or request labels Oct 16, 2023
@gaktive
Copy link
Contributor

gaktive commented Oct 17, 2023

Should be addressed by recent PRs by @adamkpickering

@adamkpickering
Copy link
Member

To clarify, I think this issue is about the UI not being disabled when a snapshot is being created/restored via rdctl (i.e. "bug 1"). I don't think bug 2 is a problem anymore - a suitable error dialog and message are displayed.

That means this is more of a UI issue - @torchiaf would you agree?

It would be nice to get this in for 1.11, but it could also be pushed to 1.12... @jandubois?

@adamkpickering adamkpickering removed their assignment Oct 23, 2023
@gaktive
Copy link
Contributor

gaktive commented Oct 23, 2023

If we can't anything by Tuesday, we can push this to 1.12.

@gaktive gaktive assigned jandubois and unassigned torchiaf Oct 24, 2023
@jandubois jandubois modified the milestones: 1.11, 1.12 Oct 26, 2023
@gaktive gaktive added the triage/need-to-repro Needs to be reproduced by dev team label Nov 15, 2023
@gaktive gaktive assigned rak-phillip and unassigned jandubois Nov 15, 2023
@rak-phillip
Copy link
Contributor

Bug 2: When the UI tries to create snapshot SOME-OTHER-NAME, it should report the failure (it didn't create the snapshot)

We do get a failure message, although it's rendered as a banner in the "Create Snapshot" dialog

Pasted image 20231117140546

I think that the pattern can be improved, but this is no longer an issue given the scope of this bug.

@rak-phillip
Copy link
Contributor

Bug 1: The UI should disable snaphost creation

My expectation is that the blocking dialog is raised regardless of the snapshot process being initiated from the frontend or the backend

image

The current behavior only raises the dialog when the creates a snapshot.

@rak-phillip rak-phillip removed the triage/need-to-repro Needs to be reproduced by dev team label Nov 17, 2023
@gaktive
Copy link
Contributor

gaktive commented Nov 17, 2023

Let's look at this again after we change the lock mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants