Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1559901 - Use "integration_id" instead of "cluster_id"
Use "integration_id" instead of "cluster_id"
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: web-admin-tendrl-monitoring-integration (Show other bugs)
3.4
Unspecified Unspecified
unspecified Severity unspecified
: ---
: RHGS 3.4.0
Assigned To: gowtham
Daniel Horák
:
Depends On:
Blocks: 1503137
  Show dependency treegraph
 
Reported: 2018-03-23 10:09 EDT by gowtham
Modified: 2018-09-04 03:04 EDT (History)
6 users (show)

See Also:
Fixed In Version: tendrl-monitoring-integration-1.6.1-3.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 03:03:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github Tendrl/monitoring-integration/issues/341 None None None 2018-03-28 12:04 EDT
Red Hat Product Errata RHSA-2018:2616 None None None 2018-09-04 03:04 EDT

  None (edit)
Description gowtham 2018-03-23 10:09:14 EDT
Description of problem:

It is seen that many places in monitoring-integration code the term "cluster_id" is used, It should be renamed as "integration_id", there is no such thing as cluster_id.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Martin Bukatovic 2018-03-28 04:35:11 EDT
Could you provide more details about:

* Are you asking us for a code review here?
* Link to upstream merge request.
* Do I understand it right that all occurrences of "cluster_id" should be replaced?
  If not, how should I know which occurrences should be replaced and which not?
Comment 3 gowtham 2018-03-28 12:03:00 EDT
Yes, it is a code review, Inside code, in all tendrl components we used a variable called cluster_id, But there is no cluster_id in tendrl. So a variable "cluster_id" is replaced by a name "integration_id". It just a code change.
Comment 4 Martin Bukatovic 2018-03-29 09:37:00 EDT
I provide conditional qe_ack with following assumptions:

* dev team must have done code walkthrough or sanity unit validation of
  the change described in this BZ
* qe team will verify this BZ by running general regression tests

Nishanth agreed with this solution during "RHGS WA Team status meeting"
on 2018-03-29.
Comment 7 Daniel Horák 2018-05-28 09:17:40 EDT
@gowtham, It looks, like "cluster_id" was replaced in all python files,
but there are number of references in following json files:
  /etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-at-a-glance.json
  /etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-bricks.json
  /etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-hosts.json
  /etc/tendrl/monitoring-integration/grafana/dashboards/tendrl-gluster-volumes.json

Is this expected, or is there a plan to remove/replace cluster_id reference also
in those json files?
Comment 8 Ankush Behl 2018-06-04 06:25:14 EDT
@dahorak@redhat.com cluster_id is just a variable name used in the dashboard json files to pass the cluster_name and it's an implementation level detail.

The variable name(cluster_id) was introduced when there was not cluster_name property present.

We can do it while refactoring the code also I think these changes are not related to this current issue.
Comment 9 Daniel Horák 2018-06-05 04:28:01 EDT
Verifying on tendrl-monitoring-integration-1.6.3-4.el7rhgs.noarch.
* based on comment 7 and 8.
* and also general regression test cases are passing.

>> VERIFIED
Comment 11 errata-xmlrpc 2018-09-04 03:03:18 EDT
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

Note You need to log in before you can comment on or make changes to this bug.