Bug 1250046
Summary: | internal error when deleting watchdog device from REST api | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Shira Maximov <mshira> | ||||
Component: | ovirt-engine-api | Assignee: | Juan Hernández <juan.hernandez> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Shira Maximov <mshira> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.6 | CC: | bugs, ecohen, gklein, lsurette, michal.skrivanek, mshira, rbalakri, yeylon | ||||
Target Milestone: | --- | Keywords: | Automation | ||||
Target Release: | 3.6.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | 3.6.0-10 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-04 11:16:52 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: | |||||||
Attachments: |
|
Description
Shira Maximov
2015-08-04 12:16:20 UTC
please attach engine log Created attachment 1059380 [details] rhevm logs adding the logs. and also link of the test : https://rhev-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/3.6-GE-Tier0/64/testReport/junit/rhevmtests.sla.watchdog.watchdog_test/045-TestWatchdogCRUD_REST;test_remove_watchdog/TestWatchdogCRUD_REST_test_remove_watchdog/ the bug occur in 22:04 can't see anything suspicious in the engine.log, it seems the delete of the watchdog works ok but for some reason the test fails when reading the response This happens because the client is sending a request without including the "Accept" content header. In this situation the application server doesn't know how to convert the result to something that the client will understand, resulting in this error message: Could not find MessageBodyWriter for response object of type: org.ovirt.engine.api.model.Action of media type: application/octet-stream The best way to solve this problem is to modify the client so that it explicitly sends the "Accept" header: DELETE /vms/{vm:id}/wathdogs/{watchdog:id} Accept: application/xml It is also possible to modify the "BackendWatchdogResource" interface so that it explicitly includes the @Produces annotation with the supported media types. This will make the server consider those media types. For sake of backwards compatibility we will do that. verified on 3.6.0-10 oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue. If problems still persist, please open a new BZ and reference this one. |