Bug 1649729

Summary: In Dashboard, log hyperlink is not working for Block manager user
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Uday kurundwade <ukurundw>
Component: Ceph-DashboardAssignee: Alfonso Martínez <almartin>
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2CC: ceph-eng-bugs, mkasturi, sangadi, tserlin
Target Milestone: rc   
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-31 12:44:53 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:
Attachments:
Description Flags
Screenshot of block manager page none

Description Uday kurundwade 2018-11-14 11:47:23 UTC
Created attachment 1505620 [details]
Screenshot of block manager page

Description of problem:
In Dashboard, log hyperlink is not working for Block manager user

Version-Release number of selected component (if applicable):
ceph-common-12.2.8-23.el7cp.x86_64
ceph-ansible-3.2.0-0.1.beta9.el7cp.noarch
ceph-mgr-12.2.8-23.el7cp.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Install ceph storage
2.Install "dashboard v2" by running ansible playbook
3.Login to dashboard after installation of dashboard v2
4.Create new user and assign "Block manager" role to that user. 
5.Log in with newly created Block manager user.
6.In Home page, click on Cluster status-> Logs

Actual results:
Not displaying logs

Expected results:
It should display logs


Additional info:

Comment 3 Ernesto Puerta 2018-11-16 18:36:45 UTC
Alfonso: you know better thanme about the status of the Logs refactoring. This issue could be easily fixed by an NgIf/else, replacing the link to logs with a message "Please report your administrator", or simply nothing else. But let's see if the log refactor gets merged before this one.

Comment 4 Alfonso Martínez 2018-11-22 12:52:03 UTC
If the user doe not have permissions to see Logs,
the "Logs" link should not appear:

Upstream issue:
https://tracker.ceph.com/issues/37371

Comment 8 Sunil Angadi 2019-12-09 04:27:57 UTC
ceph version 14.2.4-68.el8cp (56dc8251bc571344bddddfabebcc93abd10c4f4a) nautilus (stable)
ceph-ansible-4.0.5-1.el8cp.noarch

In the above version, It's working as new feature in 4.0 with separate log section
and both cluster logs and audit logs showing the logs appropriately

Moving BZ to verified state.

Comment 10 errata-xmlrpc 2020-01-31 12:44:53 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/RHBA-2020:0312