Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 882649

Summary: Cannot remove the payload via REST
Product: Red Hat Enterprise Virtualization Manager Reporter: Oved Ourfali <oourfali>
Component: ovirt-engineAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Barak Dagan <bdagan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: dyasny, iheim, italkohe, lpeer, michal.skrivanek, mkenneth, pstehlik, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: ZStream
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: sf1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 883881 (view as bug list) Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 883881, 915537    

Description Oved Ourfali 2012-12-02 13:28:36 UTC
Description of problem:
When trying to remove an existing VM payload, the request ends successfully, but the payload isn't removed.


How reproducible:
Always

Steps to Reproduce:
1. Add a VM payload via REST
2. Try to remove it via REST (PUT + <vm><payloads/></vm>)
  
Actual results:
Succeeds, but payload is still there.

Expected results:
Succeeds, payload is deleted.

Comment 1 Shahar Havivi 2012-12-03 12:07:02 UTC
Posted at: http://gerrit.ovirt.org/#/c/9665/

Comment 4 Barak Dagan 2013-05-20 13:41:44 UTC
Verified SF17:

PUT /api/vms/bae28aa8-6c26-415a-bce4-b72a2dda1688

<vm>
    <payloads>
        <payload type="floppy">
            <file name="file.create.floppy">
                <content>floppy create payload!</content>
            </file>
        </payload>
    </payloads>
</vm>

GET /api/vms/bae28aa8-6c26-415a-bce4-b72a2dda1688

...
    <stateless>false</stateless>
    <delete_protected>false</delete_protected>
    <payloads>
        <payload type="floppy">
            <file name="file.create.floppy">
                <content>floppy create payload!</content>
            </file>
        </payload>
    </payloads>
    <placement_policy>
        <affinity>migratable</affinity>
    </placement_policy>

....


After VM is up and down:

PUT /api/vms/bae28aa8-6c26-415a-bce4-b72a2dda1688

<vm><payloads/></vm>

GET /api/vms/bae28aa8-6c26-415a-bce4-b72a2dda1688
...
    <delete_protected>false</delete_protected>
    <placement_policy>
        <affinity>migratable</affinity>
    </placement_policy>
    <memory_policy>
...

Comment 5 Itamar Heim 2013-06-11 08:41:42 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 08:41:42 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 08:41:44 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 08:49:05 UTC
3.2 has been released