Project

General

Profile

Actions

Feature #51408

closed

mgr/dashboard: Add configurable MOTD or wall notification

Added by Volker Theile almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
UI
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
octopus, pacific
Reviewed:
Affected Versions:
Pull request ID:

Description

Sometimes there is the need to inform the Ceph Dashboard users about latest news and information. The plan is to allow the administrator to configure a MOTD (message of the day) via CLI which is shown when the user is logging into the UI.

The name was choosen by intention because it is not planned to support multiple messages displayed at the same time in the UI, this will overload the user experience and annoy the user. Instead, HTML can be used to structure the message.

The notification will be displayed at the top of the page, same like it is done by the already existing popup for the telemetry module.

A command line to configure the MOTD may look like:

$ ceph dashboard motd set <severity> <expire> <repetitive> <message>
$ ceph dashboard motd clear

where <severity> is something like 'info' | 'low' | 'high' which is represented by different colors in the UI. <expire> is the time when the notification expires. Until this time the noification is shown in the UI. This can be e.g. '7d' and will be a unix timestamp internally like 'now + expire'. If <repetitive> is set TRUE, the notification will be displayed on every log in until it expires. If set to FALSE, it will only be displayed once. The <message> will contain the text to be displayed. HTML code will be supported, thus links to external sources are possible.


Related issues 2 (0 open2 closed)

Copied to Dashboard - Backport #51730: octopus: mgr/dashboard: Add configurable MOTD or wall notificationResolvedVolker TheileActions
Copied to Dashboard - Backport #51731: pacific: mgr/dashboard: Add configurable MOTD or wall notificationResolvedVolker TheileActions
Actions

Also available in: Atom PDF