Bug 1646417
| Summary: | Can't restore snapshot with disks as user | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | biakymet |
| Component: | Backend.Core | Assignee: | biakymet |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.3.0 | CC: | bugs, gshereme, lleistne, michal.skrivanek, rbarry, tjelinek, vnastasache |
| Target Milestone: | ovirt-4.2.8 | Flags: | rule-engine:
ovirt-4.2+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.2.8.2 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-22 10:23:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | UX | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
biakymet
2018-11-05 14:32:00 UTC
I still was not able to restore snapshot. 2018-12-13 17:45:52,640+01 ERROR [org.ovirt.engine.core.bll.GetJobByJobIdQuery] (default task-15) [242aca10-bd1b-466d-8a16-4c823526849a] Query execution failed due to insufficient permissions. 2018-12-13 17:45:52,710+01 WARN [org.ovirt.engine.core.bll.snapshots.RestoreAllSnapshotsCommand] (default task-15) [242aca10-bd1b-466d-8a16-4c823526849a] Validation of action 'RestoreAllSnapshots' failed for user test@internal-authz. Reasons: VAR__ACTION__REVERT_TO,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST 2018-12-13 17:45:52,740+01 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-15) [] Operation Failed: [Cannot revert to Snapshot. VM's Snapshot does not exist.] Steps to reproduce: 1. have non-admin user, add UserVmManager permissions to VM 2. log into VM portal with non-admin user 3. run the VM 4. go to dashboard view, create snapshot 5. stop VM 6. restore snapshot tested in ovirt-engine-4.2.8.1-0.1.el7ev.noarch with ovirt-web-ui-1.4.4-2.el7ev.noarch The backport patch did not make it into ovirt-engine-4.2.8.1-0.1.el7ev.noarch (bot shouldn't have moved this to ON_QA) Please retest with the next 4.2.8 build We are also affected by this bug. Until a new 4.2.8 build is released, we gave the SuperUser role to one of our Jenkins users for a specific VM. I could restore being logged in in the Administration Portal, but not from the REST API. Is there a workaround for this? (In reply to vnastasache from comment #3) > Is there a workaround for this? Granting admin permissions is the only thing I can think of. 4.2.8 is finishing up. Snapshot from running VM was successfully restored with non-admin user. verified in ovirt-web-ui-1.4.5-1.el7ev.noarch with ovirt-engine-4.2.8.2-0.1.el7ev.noarch This bugzilla is included in oVirt 4.2.8 release, published on January 22nd 2019. Since the problem described in this bug report should be resolved in oVirt 4.2.8 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |