Project

General

Profile

Actions

Bug #5092

closed

Rudder role is not displayed in the web interface if a node is a server component but neither relay nor root server

Added by Jonathan CLARKE about 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
2
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Regression:

Description

Server roles are now sent via the inventory, and can include roles such as rudder-db, rudder-ldap, etc.

On a server with the rudder-db, rudder-reports roles, it is displayed as a "Rudder node" in the web interface.

This shuold be "Rudder server (rudder-db, rudder-reports)".

This comes from the code logic in https://github.com/Normation/rudder/blob/branches/rudder/2.11/rudder-web/src/main/scala/com/normation/rudder/web/services/DisplayNode.scala#L400, which is basically:

if (isPolicyServer)
    if (root)
        work out server-roles and display them
    else # is a relay server
        display "I'm a relay server" 
else
    display "I'm a node" 
endif

Obviously, we should display "Rudder {type} server ({roles})" if any roles are defined, and with "type"=relay or "type"=root

Actions

Also available in: Atom PDF