Bug 1317281

Summary: Import disk as template in v3 fails with http 500
Product: [oVirt] ovirt-engine Reporter: Nelly Credi <ncredi>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0.0CC: amureini, bugs, ncredi
Target Milestone: ovirt-4.0.0-alphaKeywords: AutomationBlocker
Target Release: ---Flags: juan.hernandez: ovirt-4.0.0?
rule-engine: planning_ack+
juan.hernandez: devel_ack+
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-14 11:49:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nelly Credi 2016-03-13 17:53:37 UTC
Description of problem:
Import disk as template in v3 fails with http 500

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.connect glance
2.try to import image as template with v3:
/ovirt-engine/api/storagedomains/b9f6c2a0-41de-4afb-a9aa-6c19fbbd4d4d/images/d7eafdaa-f5fd-48fa-991d-1c51b15a243d/import

body:
<action>
    <async>false</async>
    <grace_period>
        <expiry>10</expiry>
    </grace_period>
    <storage_domain>
        <name>nfs_2</name>
    </storage_domain>
    <cluster>
        <name>golden_env_mixed_1</name>
    </cluster>
    <template>
        <name>golden_mixed_virtio_template</name>
    </template>
    <import_as_template>true</import_as_template>
    <disk>
        <name>golden_mixed_virtio_template</name>
    </disk>
</action>
3.

Actual results:
HTTP 500

Expected results:
HTTP 200

Additional info:
It is working with v4

Comment 1 Yaniv Kaul 2016-03-13 21:13:58 UTC
Engine and server log? (please always attach them)

Comment 2 Juan Hernández 2016-03-13 21:30:36 UTC
I'm almost 100% sure that this is the same that bug 1317279, however I won't close it as duplicated yet. I will once I confirm it completely.

Comment 3 Juan Hernández 2016-03-14 11:47:41 UTC
This is caused by missing V4 adapters for the "Action" type. The proposed patch fixes the issue.

Comment 4 Juan Hernández 2016-03-14 11:49:29 UTC
As the root cause of this bug is the same that bug 1317279 I'm closing this as duplicate.

*** This bug has been marked as a duplicate of bug 1317279 ***

Comment 5 Nelly Credi 2016-03-28 11:58:03 UTC
this was already fixed removing the need info