Bug 1321056 - 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"
Summary: REST API: Can't add NFS or iSCSI storage (in v3 compatibility mode at least) ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent vote
Target Milestone: ovirt-4.0.0-alpha
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-24 14:48 UTC by Yaniv Kaul
Modified: 2016-03-27 06:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-27 06:55:02 UTC
oVirt Team: Infra
ykaul: ovirt-4.0.0?
ykaul: blocker?
rule-engine: planning_ack+
juan.hernandez: devel_ack+
rule-engine: testing_ack?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 55230 0 master MERGED restapi: Use "fromValue" in V3 adapters 2016-03-24 19:31:55 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.