Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1525596 - [REST] entrypoint for events returns Blank template element without href nor id
[REST] entrypoint for events returns Blank template element without href nor id
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.2.0
Unspecified Unspecified
unspecified Severity low
: ovirt-4.2.2
: ---
Assigned To: Ori Liel
Radim Hrazdil
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-13 11:11 EST by Gonza
Modified: 2018-05-15 13:48 EDT (History)
13 users (show)

See Also:
Fixed In Version: ovirt-engine-4.2.2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-05-15 13:46:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 86970 master MERGED restapi: Missing ID For Blank Template In Event 2018-02-13 07:21 EST
oVirt gerrit 87561 ovirt-engine-4.2 MERGED restapi: Missing ID For Blank Template In Event 2018-02-14 03:45 EST
Red Hat Product Errata RHEA-2018:1488 None None None 2018-05-15 13:48 EDT

  None (edit)
Description Gonza 2017-12-13 11:11:18 EST
Description of problem:
When accessing the events entrypoint (ovirt-engine/api/events), if one of the events is related to the Blank template, this element is returned with no href nor id.

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.6.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Access events entrypoint @ovirt-engine/api/events
2. Search for Blank template element
3. Check that nor href nor id is present in the element

Actual results:
<event href="..." id="...">
  ...
  <template>
    <name>Blank</name>
  </template>
  ...
</event>

Expected results:
<event href="..." id="...">
  ...
  <template href="/ovirt-engine/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
    <name>Blank</name>
  </template>
  ...
</event>


Additional info:
This is only occurring with the Blank template all other template elements are returned correctly
Comment 1 Juan Hernández 2017-12-13 12:02:57 EST
Ori, can you take a look at this? And maybe assign to yourself?

I think that the problem is that the id of the blank template is all zeros, and we assume that that means that there is no template.
Comment 2 Yaniv Kaul 2017-12-17 06:49:22 EST
severity?
Comment 3 Ori Liel 2017-12-25 02:45:30 EST
Can you please provide an example of a flow, that will result in an event that relates to the blank template?
Comment 4 Gonza 2018-01-05 06:23:14 EST
(In reply to Ori Liel from comment #3)
> Can you please provide an example of a flow, that will result in an event
> that relates to the blank template?

Same workflow as in original description with VM creation from Blank template.
Comment 5 Radim Hrazdil 2018-02-26 05:38:58 EST
Verified that events related to Blank template have <template> element with both, href and id.

Version RHV 4.2.2
Comment 6 RHV Bugzilla Automation and Verification Bot 2018-03-16 11:03:10 EDT
INFO: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Tag 'ovirt-engine-4.2.2.4' doesn't contain patch 'https://gerrit.ovirt.org/87561']
gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.2.2.4

For more info please contact: rhv-devops@redhat.com
Comment 10 errata-xmlrpc 2018-05-15 13:46:56 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:1488

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