Bug 1318589

Summary: [GSS] Calamari sends GET requests every 20 seconds
Product: Red Hat Ceph Storage Reporter: Vimal Kumar <vikumar>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED INSUFFICIENT_DATA Docs Contact:
Severity: medium    
Priority: medium CC: ceph-eng-bugs, kdreyer, vikumar
Version: 1.3.2Flags: gmeno: needinfo? (vikumar)
Target Milestone: rc   
Target Release: 1.3.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-28 15:38:27 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:

Description Vimal Kumar 2016-03-17 10:11:32 UTC
1) Description of problem:

Calamri logs at /var/log/calamari/httpd_access.log show GET access calls going at two different time intervals.

The first GET request from graphite happens at every 60 seconds.
~~~
127.0.0.1 - - [10/Mar/2016:08:17:49 +0100] "GET /graphite/render/?format=json-array&from=-1d&target=sumSeries(ceph.cluster.9bae8150-fab6-4a95-8b17-f6e4bbd9eb36.pool.all.num_read,ceph.cluster.9bae8150-fab6-4a95-8b17-f6e4bbd9eb36.pool.all.num_write) HTTP/1.1" 200 3666 
~~~

while the normal GET requests for other stats such as 'osd', 'server', 'pool', 'health', 'health_counters' etc.. is sent every 20 seconds.

~~~
127.0.0.1 - - [10/Mar/2016:08:17:49 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/osd HTTP/1.1" 200 5093
127.0.0.1 - - [10/Mar/2016:08:17:49 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/server HTTP/1.1" 200 599
127.0.0.1 - - [10/Mar/2016:08:17:49 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/pool HTTP/1.1" 200 400
127.0.0.1 - - [10/Mar/2016:08:17:50 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36 HTTP/1.1" 200 143
127.0.0.1 - - [10/Mar/2016:08:17:50 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/health HTTP/1.1" 200 547
127.0.0.1 - - [10/Mar/2016:08:17:51 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/health_counters HTTP/1.1" 200 234
127.0.0.1 - - [10/Mar/2016:08:17:51 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/space HTTP/1.1" 200 105

127.0.0.1 - - [10/Mar/2016:08:18:09 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/osd HTTP/1.1" 200 5093
127.0.0.1 - - [10/Mar/2016:08:18:09 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/server HTTP/1.1" 200 599
127.0.0.1 - - [10/Mar/2016:08:18:09 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/pool HTTP/1.1" 200 400
127.0.0.1 - - [10/Mar/2016:08:18:10 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/health HTTP/1.1" 200 548
127.0.0.1 - - [10/Mar/2016:08:18:11 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/health_counters HTTP/1.1" 200 234
127.0.0.1 - - [10/Mar/2016:08:18:11 +0100] "GET /api/v1/cluster/9bae8150-fab6-4a95-8b17-f6e4bbd9eb36/space HTTP/1.1" 200 
~~~

It seems that the GET requests sent every 20 seconds may cause spurious traffic. Is there a specific reason for the GET requests to be sent every 20 seconds rather than the 60 seconds period?

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

RHCS1.3.2

3) How reproducible:

Always

4) Steps to Reproduce:

a) Install a Calamari node.
b) Add the OSD and MON nodes to the Calamari interface
c) Watch the GET traffic going on from the Calamari node using :

# tailf /var/log/calamari/httpd_access.log

Comment 3 Christina Meno 2017-04-24 17:47:11 UTC
This is the configured behavior. If there is not specific concern, I'm going to close this.