| 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: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED UPSTREAM | QA Contact: | Pavel Stehlik <pstehlik> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 4.0.0 | CC: | bugs |
| Target Milestone: | ovirt-4.0.0-alpha | Keywords: | 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: | |
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 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. Verified - fix is working. |
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: