Bug 1499716

Summary: Event properties show empty fields
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: RestAPIAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, lsvaty, mperina, oourfali
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:45:21 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:
Bug Depends On: 1456711    
Bug Blocks:    

Description Petr Matyáš 2017-10-09 09:46:12 UTC
Description of problem:
Trying the new event properties (cluster, dc, vm...) some of these items show empty attributes/name

    <event href="/ovirt-engine/api/events/7138" id="7138">
        <description>User admin@internal-authz connecting from 'IP' using session 'tQ24/Ee7SIGp2nZ1TL4eTANVcp5ocwwF8WibiYrckeDUFdsUpzS58Cf2qT9keJjF3qvmhtLraQWQlCel/+OwFA==' logged in.</description>
        <code>30</code>
        <correlation_id>7f198146</correlation_id>
        <custom_id>-1</custom_id>
        <flood_rate>0</flood_rate>
        <index>7138</index>
        <origin>oVirt</origin>
        <severity>normal</severity>
        <time>2017-10-09T11:31:07.749+02:00</time>
        <cluster>
            <name></name>
        </cluster>
        <data_center>
            <name></name>
        </data_center>
        <storage_domain>
            <name></name>
        </storage_domain>
        <user href="/ovirt-engine/api/users/594a5de6-0313-01b8-01cc-0000000001cc" id="594a5de6-0313-01b8-01cc-0000000001cc">
            <name>admin@internal-authz</name>
        </user>
    </event>

I can see this only for logging in messages.

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20171006152719.gitbc9a33d.el7.centos.noarch

How reproducible:
always

Steps to Reproduce:
1. curl -v -u "user@domain:password" -H "Content-type: application/xml" --insecure -X GET https://fqdn/ovirt-engine/api/events
2.
3.

Actual results:
some event properties miss attributes and name for the property

Expected results:
property is either filled correctly or not visible at all

Additional info:

Comment 1 rhev-integ 2017-11-02 13:38:31 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[No relevant external trackers attached]

For more info please contact: infra

Comment 2 Petr Matyáš 2017-11-06 16:38:47 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20171106114404.git605a12f.el7.centos.noarch

Comment 3 Sandro Bonazzola 2017-12-20 11:45:21 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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