Bug 1321056

Summary: REST API: Can't add NFS or iSCSI storage (in v3 compatibility mode at least) - "No enum constant org.ovirt.engine.api.model.StorageType.nfs"
Product: [oVirt] ovirt-engine Reporter: Yaniv Kaul <ykaul>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED UPSTREAM QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0.0CC: bugs
Target Milestone: ovirt-4.0.0-alphaKeywords: AutomationBlocker, Regression
Target Release: ---Flags: ykaul: ovirt-4.0.0?
ykaul: blocker?
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-27 06:55:02 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:

Description Yaniv Kaul 2016-03-24 14:48:50 UTC
Description of problem:
2016-03-24 10:09:26,872 ERROR [io.undertow.request] (default task-18) UT005023: Exception handling request to /ovirt-engine/api/v3/storagedomains: java.lang.RuntimeException: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: No enum constant org.ovirt.engine.api.model.StorageType.nfs
        at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:217) [undertow-servlet-1.3.15.Final.jar:1.3.15.Final]
        at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106) [undertow-servlet-1.3.15.Final.jar:1.3.15.Final]
        at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilter(VersionFilter.java:139) [restapi-jaxrs.jar:]
        at org.ovirt.engine.api.restapi.invocation.VersionFilter.doFilter(VersionFilter.java:68) [restapi-jaxrs.jar:]


Test (Lago) tries to add a storage domain, via 3.6 Python SDK's api.storagedomains.add(p)  

Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.0.0-0.0.master.20160323171719.git71fa3c8.el7.centos.noarch
ovirt-engine-4.0.0-0.0.master.20160323171719.git71fa3c8.el7.centos.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Yaniv Kaul 2016-03-24 16:13:49 UTC
Ay, same for iSCSI:
2016-03-24 11:44:01,476 ERROR [io.undertow.request] (default task-19) UT005023: Exception handling request to /ovirt-engine/api/v3/storagedomains: java.lang.RuntimeException: org.jboss.resteasy.spi.UnhandledExce
ption: java.lang.IllegalArgumentException: No enum constant org.ovirt.engine.api.model.StorageType.iscsi

Comment 2 Juan Hernández 2016-03-24 18:40:58 UTC
The issue causing this is the same causing bug 1320964. I'm leaving it open so you can decide to close it as duplicate, maybe after verifying that the fix actually works.

Comment 3 Yaniv Kaul 2016-03-27 06:55:02 UTC
Verified - fix is working.