Bug 1572216

Summary: tendrl-monitoring-integration.service fails to start
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: stianfp <sfp>
Component: web-admin-tendrl-monitoring-integrationAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Daniel Horák <dahorak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dahorak, gshanmug, mbukatov, nthomas, rhs-bugs, sankarshan
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tendrl-monitoring-integration-1.6.1-1.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 07:05:15 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: 1503137    

Description stianfp 2018-04-26 12:30:59 UTC
Description of problem:

tendrl-monitoring-integration.service fails to start with:
ImportError: No module named cliutils.cliutils

Version-Release number of selected component (if applicable):
rpm -qa | grep gluster
glusterfs-cli-3.8.4-54.6.el7rhgs.x86_64
glusterfs-api-3.8.4-54.6.el7rhgs.x86_64
gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
glusterfs-fuse-3.8.4-54.6.el7rhgs.x86_64
glusterfs-geo-replication-3.8.4-54.6.el7rhgs.x86_64
tendrl-gluster-integration-1.5.4-14.el7rhgs.noarch
glusterfs-events-3.8.4-54.6.el7rhgs.x86_64
glusterfs-libs-3.8.4-54.6.el7rhgs.x86_64
vdsm-gluster-4.17.33-1.2.el7rhgs.noarch
glusterfs-rdma-3.8.4-54.6.el7rhgs.x86_64
gluster-block-0.2.1-14.1.el7rhgs.x86_64
gluster-nagios-common-0.2.4-1.el7rhgs.noarch
glusterfs-client-xlators-3.8.4-54.6.el7rhgs.x86_64
glusterfs-3.8.4-54.6.el7rhgs.x86_64
libvirt-daemon-driver-storage-gluster-3.9.0-14.el7_5.2.x86_64
python-gluster-3.8.4-54.6.el7rhgs.noarch
glusterfs-server-3.8.4-54.6.el7rhgs.x86_64

rpm -qa | grep tendrl
tendrl-selinux-1.5.4-2.el7rhgs.noarch
tendrl-node-agent-1.5.4-16.el7rhgs.noarch
tendrl-monitoring-integration-1.5.4-14.el7rhgs.noarch
tendrl-api-1.5.4-4.el7rhgs.noarch
tendrl-gluster-integration-1.5.4-14.el7rhgs.noarch
tendrl-ui-1.5.4-6.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
tendrl-notifier-1.5.4-6.el7rhgs.noarch
tendrl-ansible-1.5.4-7.el7rhgs.noarch
tendrl-api-httpd-1.5.4-4.el7rhgs.noarch
tendrl-commons-1.5.4-9.el7rhgs.noarch
tendrl-grafana-plugins-1.5.4-14.el7rhgs.noarch
tendrl-collectd-selinux-1.5.4-2.el7rhgs.noarch

How reproducible:

Unknown

Steps to Reproduce:
1. Follow the install guide for gluster web Administration
2. Fix ansible script to your enviroment
3. Run and install Web Administration

Actual results:

All services start and work, except: 

tendrl-monitoring-integration.service fails to start with:
ImportError: No module named cliutils.cliutils


Expected results:

grafana dashboard works, and every service starts

Additional info:

Running on RHEL 7.5
Python 2.7.5

Comment 2 Martin Bukatovic 2018-04-27 16:40:01 UTC
This looks similar to this upstream issue:

https://github.com/Tendrl/monitoring-integration/issues/281

gowtham, could you check if this is actually the same problem?

Comment 4 stianfp 2018-04-30 09:02:14 UTC
I tested to manually rename the dir /usr/lib/python2.7/site-packages/tendrl/monitoring_integration/alert/handlers/cluster/gluster to /usr/lib/python2.7/site-packages/tendrl/monitoring_integration/alert/handlers/cluster/gluster_handler


and it worked fine. I have latest packages installed, so, bug is kinda fixed, but packages should be updated.

Comment 5 gowtham 2018-04-30 13:35:45 UTC
Yes, Martin, this is same, but this is fixed, is this still valid issue?

Comment 6 Martin Bukatovic 2018-04-30 15:37:18 UTC
(In reply to gowtham from comment #5)
> Yes, Martin, this is same, but this is fixed, is this still valid issue?

It is a valid issue, as the current version tendrl-monitoring-integration
1.5.4-14.el7rhgs.noarch is still affected.

But since it is fixed in upstream already, you could update the BZ accordingly,
linking upstream issue/fix and setting the state of the BZ to POST.

Comment 7 gowtham 2018-05-02 08:20:47 UTC
This issue is fixed Tendrl/monitoring-integration/pull/323

Comment 8 gowtham 2018-05-02 08:22:07 UTC
Please verify with the latest build

Comment 12 Daniel Horák 2018-05-30 12:59:35 UTC
Reproduced with:
# rpm -qa | grep -e tendrl -e gluster | sort
  glusterfs-3.12.2-12.el7rhgs.x86_64
  glusterfs-api-3.12.2-12.el7rhgs.x86_64
  glusterfs-cli-3.12.2-12.el7rhgs.x86_64
  glusterfs-client-xlators-3.12.2-12.el7rhgs.x86_64
  glusterfs-fuse-3.12.2-12.el7rhgs.x86_64
  glusterfs-geo-replication-3.12.2-12.el7rhgs.x86_64
  glusterfs-libs-3.12.2-12.el7rhgs.x86_64
  glusterfs-rdma-3.12.2-12.el7rhgs.x86_64
  glusterfs-server-3.12.2-12.el7rhgs.x86_64
  gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
  gluster-nagios-common-0.2.4-1.el7rhgs.noarch
  libvirt-daemon-driver-storage-gluster-3.9.0-14.el7_5.5.x86_64
  python2-gluster-3.12.2-12.el7rhgs.x86_64
  tendrl-ansible-1.5.4-7.el7rhgs.noarch
  tendrl-api-1.5.4-4.el7rhgs.noarch
  tendrl-api-httpd-1.5.4-4.el7rhgs.noarch
  tendrl-commons-1.5.4-9.el7rhgs.noarch
  tendrl-grafana-plugins-1.5.4-14.el7rhgs.noarch
  tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-monitoring-integration-1.5.4-14.el7rhgs.noarch
  tendrl-node-agent-1.5.4-16.el7rhgs.noarch
  tendrl-notifier-1.5.4-6.el7rhgs.noarch
  tendrl-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-ui-1.5.4-6.el7rhgs.noarch
  vdsm-gluster-4.19.43-2.3.el7rhgs.noarch

Tested and Verified with:
# rpm -qa | grep -e tendrl -e gluster | sort
  glusterfs-3.12.2-12.el7rhgs.x86_64
  glusterfs-api-3.12.2-12.el7rhgs.x86_64
  glusterfs-cli-3.12.2-12.el7rhgs.x86_64
  glusterfs-client-xlators-3.12.2-12.el7rhgs.x86_64
  glusterfs-fuse-3.12.2-12.el7rhgs.x86_64
  glusterfs-geo-replication-3.12.2-12.el7rhgs.x86_64
  glusterfs-libs-3.12.2-12.el7rhgs.x86_64
  glusterfs-rdma-3.12.2-12.el7rhgs.x86_64
  glusterfs-server-3.12.2-12.el7rhgs.x86_64
  gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
  gluster-nagios-common-0.2.4-1.el7rhgs.noarch
  libvirt-daemon-driver-storage-gluster-3.9.0-14.el7_5.5.x86_64
  python2-gluster-3.12.2-12.el7rhgs.x86_64
  tendrl-ansible-1.6.3-4.el7rhgs.noarch
  tendrl-api-1.6.3-3.el7rhgs.noarch
  tendrl-api-httpd-1.6.3-3.el7rhgs.noarch
  tendrl-commons-1.6.3-5.el7rhgs.noarch
  tendrl-grafana-plugins-1.6.3-3.el7rhgs.noarch
  tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-monitoring-integration-1.6.3-3.el7rhgs.noarch
  tendrl-node-agent-1.6.3-5.el7rhgs.noarch
  tendrl-notifier-1.6.3-3.el7rhgs.noarch
  tendrl-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-ui-1.6.3-2.el7rhgs.noarch
  vdsm-gluster-4.19.43-2.3.el7rhgs.noarch

Module
   .../tendrl/monitoring_integration/alert/handlers/cluster/gluster
was renamed to
  .../tendrl/monitoring_integration/alert/handlers/cluster/gluster_handler

>> VERIFIED

Comment 13 Martin Bukatovic 2018-06-18 12:06:28 UTC
*** Bug 1548054 has been marked as a duplicate of this bug. ***

Comment 14 Martin Bukatovic 2018-06-18 12:10:08 UTC
*** Bug 1527615 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2018-09-04 07:05:15 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, 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-2018:2616