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

Bug 1985164: Regular user cannot restore VM snapshot #9693

Merged
merged 1 commit into from Aug 2, 2021

Conversation

avivtur
Copy link
Contributor

@avivtur avivtur commented Aug 2, 2021

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1985164

Analysis / Root cause:
According to snapshot docs: https://docs.openshift.com/container-platform/4.7/virt/virtual_machines/virtual_disks/virt-managing-offline-vm-snapshots.html#virt-restoring-vm-from-snapshot-cli_virt-managing-offline-vm-snapshots
there is no need to pre-define owner reference, when doing so for a regular user it causes to permissions issues when trying to restore a snapshot.

Solution Description:
removing pre-defined owner reference, allowing to receive automated values

Screen shots / Gifs for design review:
before:
screencapture-console-openshift-console-apps-uit-02-cnv-qe-rhcloud-com-k8s-ns-test-virtualmachines-rhel6-itchy-quail-snapshots-1627011546126 (1)

after:
bz_1985164_after

Signed-off-by: Aviv Turgeman aturgema@redhat.com

Signed-off-by: Aviv Turgeman <aturgema@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 2, 2021

@avivtur: This pull request references Bugzilla bug 1985164, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @gouyang

In response to this:

Bug 1985164: Regular user cannot restore VM snapshot

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 2, 2021
@openshift-ci openshift-ci bot added the component/kubevirt Related to kubevirt-plugin label Aug 2, 2021
@yaacov
Copy link
Member

yaacov commented Aug 2, 2021

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avivtur, yaacov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 2, 2021
@openshift-ci openshift-ci bot merged commit 4708952 into openshift:master Aug 2, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 2, 2021

@avivtur: All pull requests linked via external trackers have merged:

Bugzilla bug 1985164 has been moved to the MODIFIED state.

In response to this:

Bug 1985164: Regular user cannot restore VM snapshot

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@spadgett spadgett added this to the v4.9 milestone Aug 3, 2021
@yaacov
Copy link
Member

yaacov commented Nov 10, 2021

/cherry-pick release-4.8

@openshift-cherrypick-robot

@yaacov: #9693 failed to apply on top of branch "release-4.8":

Applying: Bug 1985164: Regular user cannot restore VM snapshot
Using index info to reconstruct a base tree...
M	frontend/packages/kubevirt-plugin/src/components/modals/snapshot-restore-modal/snapshot-restore-modal.tsx
Falling back to patching base and 3-way merge...
Auto-merging frontend/packages/kubevirt-plugin/src/components/modals/snapshot-restore-modal/snapshot-restore-modal.tsx
CONFLICT (content): Merge conflict in frontend/packages/kubevirt-plugin/src/components/modals/snapshot-restore-modal/snapshot-restore-modal.tsx
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Bug 1985164: Regular user cannot restore VM snapshot
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/kubevirt Related to kubevirt-plugin lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants