Bug 1338503 - Failed to remove watchdog device from template via REST
Summary: Failed to remove watchdog device from template via REST
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ovirt-4.0.0-rc
: 4.0.0
Assignee: Juan Hernández
QA Contact: Shira Maximov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-22 07:18 UTC by Artyom
Modified: 2016-07-05 08:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-05 08:05:00 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)
engine log (9.51 MB, text/plain)
2016-05-23 08:41 UTC, Artyom
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 58251 0 master MERGED restapi: Fix remove of template watchdog 2016-05-30 15:20:57 UTC
oVirt gerrit 58282 0 ovirt-engine-4.0 MERGED restapi: Fix remove of template watchdog 2016-05-30 19:18:44 UTC

Description Artyom 2016-05-22 07:18:06 UTC
Description of problem:
Failed to remove watchdog device from template via REST

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

How reproducible:
Always

Steps to Reproduce:
1. Add watchdog to template
2. Try to remove watchdog device via REST(DELETE request on specific watchdog link)
3.

Actual results:
<fault>
<detail>[Cannot ${action} ${type}. VM is not found.]</detail>
<reason>Operation Failed</reason>
</fault>

Expected results:
Delete action succeed and watchdog device removed from VM

Additional info:
bug relevant for both API versions

Comment 1 Michal Skrivanek 2016-05-23 06:08:45 UTC
logs?

Comment 2 Yaniv Kaul 2016-05-23 06:47:02 UTC
1. Please open an additional bug on the text 'VM is not found' (should be without 'is' at least). Another one on 'Cannot ${action} ${type}' ...
2. You added it to a template and tried to remove from a VM? Reproduction steps would have helped here.
3. Is it a regression? Did it work in the past (3.6.x)  - you've marked it as such - in which version?
4. Lowered severity to medium. This is not a very common task.

Comment 3 Doron Fediuck 2016-05-23 07:09:13 UTC
I'm not aware of users who are actually using the watchdog device (it's off by default) and drivers are missing. Hence this should be in a low priority.
Also, concurring Yaniv's regression question- are you sure this was working in previous versions?

Comment 4 Artyom 2016-05-23 08:28:01 UTC
To Michael:
What log do you want, engine log does not really show much info about REST requests

To Yaniv:
1) Add watchdog to template
2) Try to remove watchdog from template
Failed with error 
<fault>
<detail>[Cannot ${action} ${type}. VM is not found.]</detail>
<reason>Operation Failed</reason>
</fault>
3) Yes it worked under 3.6, rhevm-3.6.5.3-0.1.el6.noarch

Comment 5 Michal Skrivanek 2016-05-23 08:31:20 UTC
at the very least your REST query, then engine.log. Ideally with debug level enabled

Comment 6 Artyom 2016-05-23 08:41:10 UTC
Created attachment 1160479 [details]
engine log

Comment 7 Doron Fediuck 2016-05-30 08:07:07 UTC
Artyom,
is this 3.6.z or 4.0 only?

Comment 8 Red Hat Bugzilla Rules Engine 2016-05-30 08:07:14 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 9 Juan Hernández 2016-05-30 09:42:12 UTC
This regression was introduced as part of the changes to introduce the new API model in version 4 of the engine. It doesn't affect version 3 of the engine. I'm moving to the infra team.

Comment 10 Artyom 2016-05-30 11:53:03 UTC
Bug relevant only for ovirt 4.0, under rhevm-3.6.7-0.1.el6.noarch delete template watchdog works fine.

Comment 11 Artyom 2016-05-30 11:53:04 UTC
Bug relevant only for ovirt 4.0, under rhevm-3.6.7-0.1.el6.noarch delete template watchdog works fine.

Comment 12 Juan Hernández 2016-06-07 21:45:28 UTC
As this only affects version 4 of the API, which is seldom used at the moment, I'm removing the regression keyworkd and blocker flag.

Comment 13 Martin Perina 2016-06-13 14:02:37 UTC
Merged long time ago and definitely part of 4.0.0.4 build

Comment 14 Shira Maximov 2016-06-13 14:47:15 UTC
verified on :
oVirt Engine Version: 4.1.0-0.0.master.20160609051254.gita18ebb1.el7.centos

verification steps:
1. Add watchdog to template
2. Try to remove watchdog device via REST(DELETE request on specific watchdog link)

Comment 15 Sandro Bonazzola 2016-07-05 08:05:00 UTC
oVirt 4.0.0 has been released, closing current release.


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