Description of problem: Cockpit wizard skips many lines from the ansible callback output. Parsing the ansible callback file with jq we see: [root@c74he20180302h1 ~]# cat /tmp/initial_clean_out.json | jq -r '. | select(."OVEHOSTED_AC/type"=="OVEHOSTED_AC/info") | ."OVEHOSTED_AC/body"' TASK [Gathering Facts] ok: [localhost] TASK [Stop libvirt] changed: [localhost] TASK [Drop vdsm config statements] TASK [Restore initial abrt config files] TASK [Restart abrtd] changed: [localhost] TASK [Drop libvirt sasl2 configuration by vdsm] changed: [localhost] TASK [Stop and disable services] TASK [Start libvirt] changed: [localhost] TASK [Check for leftover local engine VM] changed: [localhost] TASK [Destroy leftover local engine VM] changed: [localhost] TASK [Check for leftover defined local engine VM] changed: [localhost] TASK [Undefine leftover local engine VM] changed: [localhost] TASK [Remove eventually entries for the local VM from known_hosts file] changed: [localhost] While on cockpit we got just: [ INFO ] TASK [Gathering Facts] [ INFO ] ok: [localhost] [ INFO ] TASK [Stop libvirt] [ INFO ] changed: [localhost] [ INFO ] TASK [Drop vdsm config statements] [ INFO ] TASK [Restore initial abrt config files] [ INFO ] TASK [Restart abrtd] [ INFO ] TASK [Drop libvirt sasl2 configuration by vdsm] [ INFO ] TASK [Stop and disable services] [ INFO ] TASK [Start libvirt] [ INFO ] TASK [Check for leftover local engine VM] [ INFO ] TASK [Destroy leftover local engine VM] [ INFO ] TASK [Check for leftover defined local engine VM] [ INFO ] TASK [Undefine leftover local engine VM] [ INFO ] TASK [Remove eventually entries for the local VM from known_hosts file] According to what got skipped, it can misses task results and values for the next steps. Version-Release number of selected component (if applicable): 0.11.17 How reproducible: 100% Steps to Reproduce: 1. deploy hosted-engine from cockpit 2. compare the output of the json callback with what reaches cockpit 3. Actual results: some lines are randomly skipped, according to what got skipped we can see many different side effects on UX side. Expected results: all the lines are correctly processed. Additional info:
Tested with 11.17, can reproduce this issue. It misses task results and values for the next steps. # cat initial_clean_out.json | jq -r '. | select(."OVEHOSTED_AC/type"=="OVEHOSTED_AC/info") | ."OVEHOSTED_AC/body"' TASK [Gathering Facts] ok: [localhost] TASK [Stop libvirt] changed: [localhost] TASK [Drop vdsm config statements] TASK [Restore initial abrt config files] TASK [Restart abrtd] changed: [localhost] TASK [Drop libvirt sasl2 configuration by vdsm] changed: [localhost] TASK [Stop and disable services] TASK [Start libvirt] changed: [localhost] TASK [Check for leftover local engine VM] changed: [localhost] TASK [Destroy leftover local engine VM] skipping: [localhost] TASK [Check for leftover defined local engine VM] changed: [localhost] TASK [Undefine leftover local engine VM] skipping: [localhost] TASK [Remove eventually entries for the local VM from known_hosts file] ok: [localhost] From the cockpit : [ INFO ] TASK [Gathering Facts] [ INFO ] ok: [localhost] [ INFO ] TASK [Stop libvirt] [ INFO ] changed: [localhost] [ INFO ] TASK [Drop vdsm config statements] [ INFO ] TASK [Restore initial abrt config files] [ INFO ] TASK [Restart abrtd] [ INFO ] TASK [Drop libvirt sasl2 configuration by vdsm] [ INFO ] TASK [Stop and disable services] [ INFO ] TASK [Start libvirt] [ INFO ] TASK [Check for leftover local engine VM] [ INFO ] TASK [Destroy leftover local engine VM] [ INFO ] skipping: [localhost] [ INFO ] TASK [Check for leftover defined local engine VM] [ INFO ] TASK [Undefine leftover local engine VM] [ INFO ] TASK [Remove eventually entries for the local VM from known_hosts file]
*** Bug 1558888 has been marked as a duplicate of this bug. ***
Tested with cockpit-ovirt-dashboard-0.11.18-1.el7ev.noarch, compare all the files under /tmp/*.json to the lines from cockpit, they are the same , and not skip any lines from the ansible callback output. So, change the bug's status to verified.
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 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.