Bug 1223335 - 1.3.0: Calamari UI: calamari UI-> Graph -> Selecting a mon from host list does not display any graph.
Summary: 1.3.0: Calamari UI: calamari UI-> Graph -> Selecting a mon from host list doe...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.4
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1230323 ceph131rn 1299303 1372735
TreeView+ depends on / blocked
 
Reported: 2015-05-20 11:11 UTC by Harish NV Rao
Modified: 2022-02-21 18:19 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2018-02-20 20:57:38 UTC
Embargoed:


Attachments (Terms of Use)
salt '*' state.highstate command output (9.62 KB, text/plain)
2015-05-29 14:30 UTC, Harish NV Rao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3349 0 None None None 2022-02-21 18:19:29 UTC

Description Harish NV Rao 2015-05-20 11:11:16 UTC
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 Christina Meno 2015-05-20 17:18:39 UTC
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 17:40:44 UTC
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 05:22:17 UTC
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 22:35:40 UTC
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 07:30:21 UTC
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 Christina Meno 2015-05-22 18:15:49 UTC
I am looking to reproduce this now.

Comment 8 Christina Meno 2015-05-22 21:54:25 UTC
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 Christina Meno 2015-05-22 22:47:55 UTC
working on a fix for this now

Comment 10 Ken Dreyer (Red Hat) 2015-05-26 21:21:03 UTC
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 Christina Meno 2015-05-26 21:40:04 UTC
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 14:28:29 UTC
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 14:30:36 UTC
Created attachment 1032124 [details]
salt '*' state.highstate command output

Comment 15 Federico Lucifredi 2015-07-11 00:26:14 UTC
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-11 00:26:40 UTC
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 21:33:01 UTC
Gregory, should we have "calamari-ctl initialize" run salt '*' state.highstate ? Or make it part of the RPM's %postinstall operation?

Comment 18 Christina Meno 2015-07-22 22:33:25 UTC
Ken This is the fix I expect to downstream https://github.com/ceph/calamari/commit/1d16be88aa6e672a4e7825051c10951cc52fa9a4

Comment 21 Christina Meno 2015-08-14 22:34:40 UTC
picked and pushed onto ceph-1.3-rhel-patches

Comment 22 Christina Meno 2015-08-14 22:35:28 UTC
well I guess it can't go ON_QA till it's built

Comment 25 Ken Dreyer (Red Hat) 2015-08-20 14:44:44 UTC
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 14:07:34 UTC
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 Christina Meno 2015-10-21 18:43:12 UTC
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.