Bug 1568696

Summary: Failed to convert app: [[Ljava.lang.Object;] warning appear in engine.log
Product: [oVirt] vdsm Reporter: Mor <mkalfon>
Component: CoreAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED CURRENTRELEASE QA Contact: Vitalii Yerys <vyerys>
Severity: low Docs Contact:
Priority: medium    
Version: ---CC: bugs, fromani, michal.skrivanek, mkalfon, mlehrer, tgolembi
Target Milestone: ovirt-4.2.4Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.20.28-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:44:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Mor 2018-04-18 07:02:34 UTC
Created attachment 1423364 [details]
engine.log

Description of problem:
Engine vds scheduled task fails to convert application name to string type. 
Warning appears in engine.log:
2018-04-18 06:43:25,893Z WARN  [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedThreadFactory-engineScheduled-Thread-81) [] Failed to convert app: [[Ljava.lang.Object;] is not a string

Version-Release number of selected component (if applicable):
RHV 4.2.3-0.1.el7

How reproducible:
100%

Steps to Reproduce:
Appear during scheduled thread. Seems to be host related.

Actual results:
Failure in conversion.

Expected results:
Success.

Additional info:

Comment 1 Michal Skrivanek 2018-04-19 07:01:12 UTC
please attach vdsm logs, ideally in debug

Comment 2 Mor 2018-04-22 11:26:36 UTC
From which host do you need the logs?

Comment 3 Michal Skrivanek 2018-04-22 17:13:03 UTC
any host which talks to this engine and triggers the err

Comment 4 Michal Skrivanek 2018-04-24 08:53:50 UTC
seems the list is reported wrongly once guest agent stops reporting data
reporduced by running ovirt-ga to get appsList [...] and then stop it while VM is still running, you get [[...]] which breaks engine assumption

Comment 5 Yaniv Kaul 2018-04-24 11:05:01 UTC
This is not a blocker nor an exception, yet it is targeted for 4.2.3?

Comment 6 Michal Skrivanek 2018-04-24 13:16:25 UTC
it' minor, but raising a lot of false alarms. 
Same for the exception on vdsm side about onLibvirtLifecycleEvent. If they can make it in in time then they should

Comment 7 Francesco Romani 2018-04-24 13:34:17 UTC
vdsm patch ready to merge if exception flag approved

Comment 8 Vitalii Yerys 2018-06-18 17:50:48 UTC
Verified with:  vdsm-4.20.31-1.el7ev.x86_64

Steps to reproduce on vdsm-4.20.27.1-1.el7ev.x86_64:
1. start vm with guest agent.
2. On the vm stop the GA service (systemctl stop ovirt-guest-agent.service)
3. In this point it is required to wait for few min till engine tries to update info on GA. (in my case ~3min)
4. Verify engine log:

2018-06-18 20:47:01,678+03 WARN  [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedThreadFactory-engineScheduled-Thread-47) [] Failed to convert app: [[Ljava.lang.Object;] is not a string

5. Get vm stats on the host (appslist is in double list [[...]]):

vdsm-client VM getStats vmID='{vm_id}' | grep appsList -A 6
        "appsList": [
            [
                "kernel-3.10.0-693.11.1.el7", 
                "ovirt-guest-agent-common-1.0.14-3.el7ev", 
                "kernel-3.10.0-693.el7"
            ]
        ], 


Result: Bug is no longer present in vdsm-4.20.31-1.el7ev.x86_64, resolution - Verified.

Comment 9 Sandro Bonazzola 2018-06-26 08:44:31 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

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