quipucords / rho

A tool for scanning a network, logging into systems using SSH, and retrieving information about available Unix and Linux servers.
https://quipucords.github.io/rho/
GNU General Public License v2.0
5 stars 7 forks source link

Scan breaks because of template error #501

Closed kdelee closed 6 years ago

kdelee commented 6 years ago

Specify type:

Bug severity (if applicable):

Description:

Scan breaks completely and stops when it encounters this template error.


Bug Report

Version of rho:

[99219caa7082d543b7f4e9ab0a70c6eeda7683f6] (in master)

 $ rho --version
version: 0.0.31
    ansible: 2.3.2.0
    python: 3.6.3 (default, Oct  9 2017, 12:11:29) 
[GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]

Expected behavior:

Scan should complete and produce a report, skipping over facts it was unable to collect.

Actual behavior:

Scan breaks and stops and does not produce report.

Produces following error message:

/ TASK [brms : create list if eap_home_candidates is not \
\ empty]                                                 /
fatal: [0.0.0.0]: FAILED! => {"failed": true, "msg": "template error while templating string: no filter named 'zip_longest'. String: {{ eap_home_candidates | zip_longest([], fillvalue='/standalone/deployments/business-central.war') | map('join') | list }}"}

Steps to reproduce:

I encountered this while scanning a Fedora 26 (scanning the same host running the scan) system using rho installed in python 3.6 virtual environment.

Environment information:

Provide detailed information on the scanning and target systems (if applicable); see example below.

Type Operating System OS Version Python Version Virtualization
Scanning System Fedora 26 3.6 Bare Metal
Target System same as above
kdelee commented 6 years ago

507 appears to have fixed this so I'm going to close this

@chambridge let me know if this is not the right procedure