Bug 1002549
| Summary: | [RESTAPI] API return operation failed for restoring snapshot, even when action succeed. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ondra Machacek <omachace> | ||||
| Component: | ovirt-engine-restapi | Assignee: | Arik <ahadas> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | meital avital <mavital> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.3.0 | CC: | acathrow, bazulay, iheim, michal.skrivanek, omachace, oramraz, Rhev-m-bugs, scohen, yeylon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.5.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | virt | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-03-31 08:29:41 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
logs? Created attachment 794043 [details] engine.log actual result is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <async>false</async> <grace_period> <expiry>10</expiry> </grace_period> <status> <state>failed</state> </status> <fault> <reason>Operation Failed</reason> <detail>[Cannot revert to Snapshot. At least one of the VMs is not down.]</detail> </fault> </action> the one I provide in comment 1 is wrong, sorry. seems to be working now, couldn't reproduce. Using the functionality often… please reopen if you happen to reproduce |
Description of problem: Version-Release number of selected component (if applicable): is11 How reproducible: always Steps to Reproduce: 1. Create vm with disk and create snapshot. 2. Assing user1 UserVmManger on this vm. 3. Via api call restore command curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: $filter"\ -d "<action><async>false</async><grace_period><expiry>10</expiry></grace_period></action>" \ -u $U $URL/vms/01f36034-01d3-4f34-9aa7-b2cdcab3210e/snapshots/2c6838c2-7aa9-4588-9c58-e9a3ff7099bd/restore Actual results: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <async>false</async> <grace_period> <expiry>10</expiry> </grace_period> <status> <state>failed</state> </status> <fault> <reason>Operation Failed</reason> <detail>[Cannot preview Snapshot. VM is previewing a Snapshot.]</detail> </fault> </action> Expected results: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <async>false</async> <grace_period> <expiry>10</expiry> </grace_period> <status> <state>complete</state> </status> </action> Additional info: