Bug 1515153

Summary: cephmetrics-ansible iSCSI gateway not installed properly
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Lubos Trilety <ltrilety>
Component: Ceph-MetricsAssignee: Zack Cerza <zcerza>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact: Bara Ancincova <bancinco>
Priority: unspecified    
Version: 3.0CC: ceph-eng-bugs, dn-infra-peta-pers, edonnell, gmeno, hnallurv, zcerza
Target Milestone: rc   
Target Release: 3.*   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.The Red Hat Ceph Storage Dashboard cannot monitor iSCSI gateway nodes The `cephmetrics-ansible` playbook does not install required Red Hat Ceph Storage Dashboard packages on iSCSI gateway nodes. As a consequence, the Red Hat Ceph Storage Dashboard cannot monitor the iSCSI gateways, and the "iSCSI Overview" dashboard is empty.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-09 23:02:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1494421    

Description Lubos Trilety 2017-11-20 09:28:14 UTC
Description of problem:
cephmetrics-ansible playbook.yml does not install required packages on machines, where ceph iSCSI gateways are. 

Version-Release number of selected component (if applicable):
cephmetrics-ansible-1.0-7.el7cp.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare some ceph cluster with iSCSI gateways
2. Try to install ceph-metrics
3.

Actual results:
ceph-metrics is installed however ceph iSCSI gateway machines are not monitored as no cephmetrics packages are installed on them.
'iSCSI Overview' dashboard in Grafana is empty.

Expected results:
ceph-metrics is working and 'iSCSI Overview' dashboard in Grafana shows correct data.

Additional info:

Comment 6 dn-infra-peta-pers 2018-11-09 14:44:16 UTC
Hi guys,

The issue seems to be that cephmetrics-ansible is expecting a [iscsis] section in ansible inventory file while the RHCS block device guide states this section should be called [iscsigws]. Adding a [iscsis] section is enough to have the prometheus-node-exporter package correctly installed on iSCSI targets and metrics recorded and exposed on iSCSI Grafana dashboards.

You can refer to these 2 commits from Zack:
https://github.com/ceph/cephmetrics/commit/a99fdea00f19bedb8093484330a34619d7e682dd
https://github.com/ceph/cephmetrics/commit/9b5dafd45d22769fb6c33a93df2d31d363d6c673

And the RHCS block device guide: 
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/block_device_guide/#iscsi-config-target-ansible

Regards,
Frédéric.

Comment 7 Christina Meno 2019-01-09 23:02:14 UTC

*** This bug has been marked as a duplicate of bug 1595288 ***