Bug 1888354

Summary: rhv-log-collector-analyzer 0.2.16 from RHV 4.3 and up does not gather information about storage domains or LUN.
Product: Red Hat Enterprise Virtualization Manager Reporter: Federico Sun <fsun>
Component: rhv-log-collector-analyzerAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: Guilherme Santos <gdeolive>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.2CC: bdolezal, gdeolive, lveyde, michal.skrivanek, sbonazzo
Target Milestone: ovirt-4.4.7Keywords: FieldEngineering, Regression
Target Release: ---   
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: 2021-07-22 15:12:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Federico Sun 2020-10-14 16:14:27 UTC
Description of problem:

Back in RHV 4.2, rhv-log-collector-analyzer used to gather information about storage domains and LUNs. This is not the case anymore starting from RHV 4.3 and up. 

Is there a way to restore this functionality? 

I looked at `/etc/ovirt-engine/rhv-log-collector-analyzer/rhv-log-collector-analyzer.conf` but it seems to be just a config file for Insight.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. run `rhv-log-collector-analyzer --live`
2. open the html file


Actual results:

no information regarding storage domains and LUNs.

Expected results:

a list of storage domains and its type.
a list of LUNs used by block storage domains.

Comment 2 Douglas Schilling Landgraf 2021-01-29 20:37:33 UTC
Hi Federico,

(In reply to Federico Sun from comment #0)
> Description of problem:
> 
> Back in RHV 4.2, rhv-log-collector-analyzer used to gather information about
> storage domains and LUNs. This is not the case anymore starting from RHV 4.3
> and up. 
> 
> Is there a way to restore this functionality? 
> 
> I looked at
> `/etc/ovirt-engine/rhv-log-collector-analyzer/rhv-log-collector-analyzer.
> conf` but it seems to be just a config file for Insight.
> 
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1. run `rhv-log-collector-analyzer --live`
> 2. open the html file
> 
> 
> Actual results:
> 
> no information regarding storage domains and LUNs.
> 
> Expected results:
> 
> a list of storage domains and its type.
> a list of LUNs used by block storage domains.

Thanks for the report.
Could you please confirm if adding "storage_domain.show_all," to /etc/rhv-log-collector-analyzer/rhv-log-collector-analyzer.conf is what you are looking for?


Example:
# white list - the list of functions allowed to run and collect information for Red Hat Insights
whitelist=
    cluster.show_all,
    cluster.policy_custom_properties_empty_in_cluster,
    cluster.check_legacy_policy_in_cluster,
    cluster.check_deprecated_CPUs_in_cluster_4_3_or_higher,
    cluster.check_no_datacenter_assigned_in_cluster,
    datacenter.show_all,
    datacenter.check_vdc_options_non_default_value_datacenter,
    datacenter.check_minimum_compat_version_datacenter,
    dwh.show_all,
    engine.current_version,
    engine.check_compensation_tasks_in_engine,
    external_provider.show_all,
    hosts.check_health_hosts,
    hosts.check_pretty_name_hosts,
    hosts.check_tls_disabled_hosts,
    imageproxy.check_address_as_localhost,
    iptables.check_double_quotes,
    mac_pools.show_all,
    network.show_all,
    network.check_config_dirty,
    network.check_slaves_are_same_aggregation_groups_as_bond,
    network.check_bond_with_adpartner_mac_null_or_zero,
    power_management.check_ip_not_null_and_pm_user_null,
    storage_domain.check_domains_failing,
    storage_domain.show_all,      <----------------------------- HERE
    vms.check_unmanaged_devices,
    vms.check_unknown_hypervisor,
    vms.check_snapshot_id_zero,
    vms.check_health_vms,
    vms.total_vms_windows,
    vms.total_vms_linux_and_otherOS,
    vms.total_vms_engine,
    vms.check_linux_and_others_with_incorrect_timezone,
    vms.check_outdated_config_3months,
    vms.check_unmanaged_disks_or_interfaces_plugged,
    engine.check_api_basic_auth_thrash,
    engine.check_deprecated_api


After that, re-run the tool.

# rhv-log-collector-analyzer --live

Comment 4 Federico Sun 2021-02-15 15:25:45 UTC
Hello Douglas,

Sorry for the delay. The `storage_domain.show_all` indeed shows the storage domain infos. But it does not show the LUN wwn_id for each storage domain. Is there another option we can add to the .conf file to display this information? 

thanks!

Comment 11 Guilherme Santos 2021-05-04 16:33:28 UTC
Failed on:
rhv-log-collector-analyzer-1.0.8-1.el8ev.noarch

Steps:
1. # rhv-log-collector-analyzer

Results:
storage domains information present in the generated report, LUNs information missing

Comment 19 Guilherme Santos 2021-06-28 17:52:17 UTC
Verified on:
ovirt-engine-4.4.7.4-0.9.el8ev.noarch
rhv-log-collector-analyzer-1.0.10-1.el8ev.noarch

Steps:
1. # rhv-log-collector-analyzer

Results:
storage domains and LUNS information present in the generated report

Comment 24 errata-xmlrpc 2021-07-22 15:12:18 UTC
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 (Moderate: RHV Manager (ovirt-engine) security update [ovirt-4.4.7]), 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/RHSA-2021:2865