Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1223335 - 1.3.0: Calamari UI: calamari UI-> Graph -> Selecting a mon from host list does not display any graph.
1.3.0: Calamari UI: calamari UI-> Graph -> Selecting a mon from host list doe...
Status: CLOSED WONTFIX
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari (Show other bugs)
1.3.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 1.3.4
Assigned To: Gregory Meno
ceph-qe-bugs
Bara Ancincova
: Reopened
Depends On:
Blocks: 1230323 ceph131rn 1299303 1372735
  Show dependency treegraph
 
Reported: 2015-05-20 07:11 EDT by Harish NV Rao
Modified: 2018-02-20 15:57 EST (History)
5 users (show)

See Also:
Fixed In Version: calamari-server-1.3-10.el7cp
Doc Type: Known Issue
Doc Text:
.Graphs for monitor hosts are not displayed Graphs for monitor hosts are not displayed in the Calamari server GUI when selecting them from the *Graphs* drop-down menu.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-20 15:57:38 EST
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)
salt '*' state.highstate command output (9.62 KB, text/plain)
2015-05-29 10:30 EDT, Harish NV Rao
no flags Details

  None (edit)
Description Harish NV Rao 2015-05-20 07:11:16 EDT
Description of problem:
----------------------
calamari UI-> Graph -> Selecting a mon from host list does not display any graph.


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


How reproducible:always


Steps to Reproduce:
1. open calamari UI
2. click on Graph
3. from the drop down box, select a mon host

Actual results:
No graph shown

Expected results:
Graph related to mon shown

Additional info:
Comment 2 Gregory Meno 2015-05-20 13:18:39 EDT
fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1215802

*** This bug has been marked as a duplicate of bug 1215802 ***
Comment 3 Harish NV Rao 2015-05-20 13:40:44 EDT
Hi Gregory,

This BZ is marked as dup of 1215802. 1215802 has following update:

"Status: ASSIGNED → MODIFIED
Fixed In Version: calamari-server-1.3-5.el7cp diamond-3.4.67-4.el7cp → calamari-server-1.3-7.el7cp diamond-3.4.67-4.el7cp"

This BZ (1223335) was observed on the Admin host which has above packages.

[cephuser@Admin ~]$ rpm -qa | grep diamond
diamond-3.4.67-4.el7cp.noarch
[cephuser@Admin ~]$ rpm -qa | grep calamari
calamari-clients-1.3-2.el7cp.x86_64
calamari-server-1.3-5.el7cp.x86_64

The above packages should have fixed the issue. Right?

Also, please note that only when mon hosts are selected, the corresponding graph is not shown. Graph is shown for rest of the hosts.

Harish
Comment 4 Harish NV Rao 2015-05-21 01:22:17 EDT
Hi Gregory,

I am re-opening this bug as per my above comment. Once clarified, I will take it to closure. Please check my above comment.

Thanks,
Harish
Comment 5 Ken Dreyer (Red Hat) 2015-05-21 18:35:40 EDT
Hi Harish, originally we thought bz 1215802 was fixed by calamari-server-1.3-5.el7cp, but then later we found that we needed to use a different patch set for calamari-server-1.3-7.el7cp .

So the old server package is "1.3-5", the new one is "1.3-7".

Could you please test with 1.3-7? It is available in the latest Puddle.
Comment 6 Harish NV Rao 2015-05-22 03:30:21 EDT
Hi Ken, I installed 1.3-7. Issue still not resolved. Mon graph is not displayed.

I feel if this was related to package then it should not have displayed any graph. GUI displays graph for cluster, pool and osds but not for mon. 

Here is the installation log:

[cephuser@Admin ~]$ sudo yum update calamari-server 
Loaded plugins: product-id, subscription-manager
lab-extras                                                                                                                                                                                  |  951 B  00:00:00     
rhel-7-fcgi-ceph                                                                                                                                                                            |  951 B  00:00:00     
rhel-7-server-ceph-1.3-calamari-test                                                                                                                                                        | 1.2 kB  00:00:00     
rhel-7-server-ceph-1.3-installer-test                                                                                                                                                       | 1.2 kB  00:00:00     
rhel-7-server-ceph-1.3-mon-test                                                                                                                                                             | 1.2 kB  00:00:00     
rhel-7-server-ceph-1.3-osd-test                                                                                                                                                             | 1.2 kB  00:00:00     
rhel-7-server-extras-rpms                                                                                                                                                                   | 2.9 kB  00:00:00     
rhel-7-server-optional-rpms                                                                                                                                                                 | 2.9 kB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                          | 3.7 kB  00:00:00     
(1/4): rhel-7-server-ceph-1.3-calamari-test/primary                                                                                                                                         | 5.8 kB  00:00:00     
(2/4): rhel-7-server-ceph-1.3-installer-test/primary                                                                                                                                        | 1.0 kB  00:00:00     
(3/4): rhel-7-server-ceph-1.3-mon-test/primary                                                                                                                                              | 8.9 kB  00:00:00     
(4/4): rhel-7-server-ceph-1.3-osd-test/primary                                                                                                                                              | 7.7 kB  00:00:00     
rhel-7-server-ceph-1.3-calamari-test                                                                                                                                                                         15/15
rhel-7-server-ceph-1.3-installer-test                                                                                                                                                                          2/2
rhel-7-server-ceph-1.3-mon-test                                                                                                                                                                              26/26
rhel-7-server-ceph-1.3-osd-test                                                                                                                                                                              23/23
Resolving Dependencies
--> Running transaction check
---> Package calamari-server.x86_64 0:1.3-5.el7cp will be updated
---> Package calamari-server.x86_64 0:1.3-7.el7cp will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                          Arch                                    Version                                      Repository                                                             Size
===================================================================================================================================================================================================================
Updating:
 calamari-server                                  x86_64                                  1.3-7.el7cp                                  rhel-7-server-ceph-1.3-calamari-test                                   19 M

Transaction Summary
===================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
calamari-server-1.3-7.el7cp.x86_64.rpm                                                                                                                                                      |  19 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : calamari-server-1.3-7.el7cp.x86_64                                                                                                                                                              1/2 
mv: cannot stat ‘/etc/httpd/conf.d/welcome.conf’: No such file or directory
Redirecting to /bin/systemctl restart  salt-master.service
Redirecting to /bin/systemctl stop  supervisord.service
Redirecting to /bin/systemctl start  supervisord.service
Redirecting to /bin/systemctl stop  httpd.service
Redirecting to /bin/systemctl start  httpd.service
Thank you for installing Calamari.

Please run 'calamari-ctl initialize' as root to complete the installation.
  Cleanup    : calamari-server-1.3-5.el7cp.x86_64                                                                                                                                                              2/2 
  Verifying  : calamari-server-1.3-7.el7cp.x86_64                                                                                                                                                              1/2 
  Verifying  : calamari-server-1.3-5.el7cp.x86_64                                                                                                                                                              2/2 

Updated:
  calamari-server.x86_64 0:1.3-7.el7cp                                                                                                                                                                             

Complete!
[cephuser@Admin ~]$ sudo calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Updating database...
[INFO] Initializing web interface...
[INFO] Starting/enabling services...
[INFO] Restarting services...
[INFO] Complete.
[cephuser@Admin ~]$ rpm -qa| grep calamari-server
calamari-server-1.3-7.el7cp.x86_64
[cephuser@Admin ~]$ 
[cephuser@Admin ~]$ 
[cephuser@Admin ~]$ sudo yum update calamari-clients
Loaded plugins: product-id, subscription-manager
No packages marked for update
[cephuser@Admin ~]$
Comment 7 Gregory Meno 2015-05-22 14:15:49 EDT
I am looking to reproduce this now.
Comment 8 Gregory Meno 2015-05-22 17:54:25 EDT
I setup a 1.3 cluster based on Ceph-1.3-RHEL-7-20150520.t.0-x86_64-dvd.iso and found that if I upgrade I need to run salt '*' state.highstate to get it to.
I assume that this won't happen on a new install AND I think I need to find a way to either document this command as a requirement or make it happen when the package installs.
Comment 9 Gregory Meno 2015-05-22 18:47:55 EDT
working on a fix for this now
Comment 10 Ken Dreyer (Red Hat) 2015-05-26 17:21:03 EDT
Based on our discussions, Gregory, we were simply going to document that users must run "salt '*' state.highstate" after each RPM update (until we can make calamari-ctl do this automatically). Is that right?
Comment 11 Gregory Meno 2015-05-26 17:40:04 EDT
Yes Ken,

I think that is best. I will propose this as a fix for 1.3.1 and work with John Wilkins to get that extra step documented.
Comment 13 Harish NV Rao 2015-05-29 10:28:29 EDT
I upgraded to latest Puddle. Then did following:

1. Opened calamari GUI -> Graphs -> OSD host and went through all the graphs displayed by pressing the buttons "system->summary, system->All CPUs, Disks->bytes....etc"
2. then selected Graphs -> Mon host.
3. The buttons "system->summary, system->All CPUs, Disks->bytes....etc" were displayed. Upon clicking the buttons graph displayed for all buttons except: "system->summary, Disks -> capacities, Disks -> Inodes"
4. As I had upgraded to latest build, ran "salt '*' state.highstate" with expectation that Graphs will be displayed for Mon by clicking on all the buttons.
5. The above command completed.
6. Re-logged-in to GUI
7. Directly selected Graphs->Mon Host. 
8. No Graphs were displayed. No buttons "system->summary, system->All CPUs, Disks->bytes....etc" displayed.
9. Then selected some other OSD and found buttons are getting displayed and Graphs also.
10. Again selected Graphs-> Mon Host
11. The buttons "system->summary, system->All CPUs, Disks->bytes....etc" were displayed. Upon clicking the buttons graph displayed for all buttons except: "system->summary, Disks -> capacities, Disks -> Inodes"

Summary of Observations:
------------------------
1. Selecting the Graph -> Mon host first time (without accessing graphs of other hosts via buttons displayed for them) will not show any graph 
    - This is still an issue which is not resolved by "salt '*' state.highstate"
    - Do we have to restart calamari (calamari-ctl initialize) after "salt '*' state.highstate' is run??

2. Selecting the Graph -> Mon host after viewing the graphs for OSDs, shows the graphs for Mon for all buttons except: "system->summary, Disks -> capacities, Disks -> Inodes"
    - Are these not supposed to be displayed? (i don't think so...)

I will attach the output of "salt '*' state.highstate" command. 

If you want to take a look at logs: Admin/calamari IP: 10.16.184.71, user= cephuser, password=junk123. To login to GUI, user name= tester1, password=junk123.
Comment 14 Harish NV Rao 2015-05-29 10:30:36 EDT
Created attachment 1032124 [details]
salt '*' state.highstate command output
Comment 15 Federico Lucifredi 2015-07-10 20:26:14 EDT
Looking at #10, #11, would that action not be suitable for the RPM's postnatal script?

Anyway, PM Ack +
Comment 16 Federico Lucifredi 2015-07-10 20:26:40 EDT
Looking at #10, #11, would that action not be suitable for the RPM's postinstall script?

Anyway, PM Ack +
Comment 17 Ken Dreyer (Red Hat) 2015-07-13 17:33:01 EDT
Gregory, should we have "calamari-ctl initialize" run salt '*' state.highstate ? Or make it part of the RPM's %postinstall operation?
Comment 18 Gregory Meno 2015-07-22 18:33:25 EDT
Ken This is the fix I expect to downstream https://github.com/ceph/calamari/commit/1d16be88aa6e672a4e7825051c10951cc52fa9a4
Comment 21 Gregory Meno 2015-08-14 18:34:40 EDT
picked and pushed onto ceph-1.3-rhel-patches
Comment 22 Gregory Meno 2015-08-14 18:35:28 EDT
well I guess it can't go ON_QA till it's built
Comment 25 Ken Dreyer (Red Hat) 2015-08-20 10:44:44 EDT
The patches in calamari-server-1.3-9.el7cp were found to be incorrect

calamari-server-1.3-10.el7cp has the right patches.
Comment 26 Harish NV Rao 2015-10-12 10:07:34 EDT
Re-tested on new ceph 1.3.1 RHEL ISO:

1. Opened GUI
2. Directly selected Graphs->Mon Host. 
3. No Graphs were displayed. No buttons "system->summary, system->All CPUs, Disks->bytes....etc" displayed.
4. Then selected some other OSD and found buttons are getting displayed and Graphs also.
5. Again selected Graphs-> Mon Host
6. The buttons "system->summary, system->All CPUs, Disks->bytes....etc" were displayed. But, upon clicking the buttons graph displayed for all buttons except for: "system->summary, Disks -> capacities, Disks -> Inodes"

Summary of Observations:
------------------------
1. Selecting the Graph -> Mon host first time (without accessing graphs of other hosts via buttons displayed for them) will not show any graph 

2. Selecting the Graph -> Mon host after viewing the graphs for OSDs, shows the graphs for Mon for all buttons except for: "system->summary, Disks -> capacities, Disks -> Inodes"
Comment 28 Gregory Meno 2015-10-21 14:43:12 EDT
I can reproduce this.
there is data
http://10.8.128.6/render?from=-2hours&until=now&width=400&height=250&target=servers.mon.cpu.cpu0.idle&_uniq=0.3413959049472296&title=servers.mon.cpu.cpu0.idle

but the UI is not displaying it properly.

I think this will have to wait till 1.3.2

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