Bug 45009 - server overview entry for portal not created in domain without a UCS backup
server overview entry for portal not created in domain without a UCS backup
Status: NEW
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-15 14:12 CEST by Tobias Birkefeld
Modified: 2021-05-03 21:32 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Birkefeld univentionstaff 2017-07-15 14:12:03 CEST
If no UCS backup is installed in a domain, the server overview entry will not be created.
This bug is because of the join script 35univention-server-overview.inst and the restriction in this join script: 

if [ "$role" != "domaincontroller_master" ]; then
        # make sure that entry for server overview does not exist on a single server domain
        # (i.e., which only contains a DC master instance)

Join script is from the package univention-server-overview:

root@master:~# apt-cache rdepends univention-server-overview 
univention-server-overview
Reverse Depends:
  univention-server-backup
  univention-server-master


Workaround:
execute the following commands:

eval $(ucr shell)
univention-directory-manager settings/portal_entry create "$@" --ignore_exists \
--position "cn=portal,cn=univention,$ldap_base" \
--set name=server-overview \
--append displayName='"en_US" "Server overview"' \
--append displayName='"de_DE" "Serverübersicht"' \
--append displayName='"fr_FR" "Vue d'"'"'ensemble de serveurs"' \
--append description='"en_US" "Provide an overview of all UCS server in the domain"' \
--append description='"de_DE" "Zeigt eine Übersicht aller UCS Server in der Domäne"' \
--append description='"fr_FR" "Vue d'"'"'ensemble de tous les serveurs UCS du domaine"' \
--append link=/univention/server-overview/ \
--set category=admin \
--set authRestriction=authenticated \
--set icon="$(base64 /usr/share/univention-management-console-frontend/js/dijit/themes/umc/icons/scalable/serveroverview.svg)" \
--set portal="cn=domain,cn=portal,cn=univention,$ldap_base"
Comment 1 Alexander Kläser univentionstaff 2017-08-09 16:56:00 CEST
The problem here is that univention-server-overview is only installed on DC Master and DC Backup. As the package will not be installed on DC Slave or a member server, the portal entry will never be created.

Possible solution: Two packages with one containing only the join script and which is then installed on all roles.
Comment 2 Johannes Keiser univentionstaff 2018-09-06 10:33:51 CEST
If this bug is fixed please revert these changes on 86_selenium/180_portal_entries

diff --git a/test/ucs-test/tests/86_selenium/180_portal_entries b/test/ucs-test/tests/86_selenium/180_portal_entries
index 48e3b1ecc2..743631ccd6 100755
--- a/test/ucs-test/tests/86_selenium/180_portal_entries
+++ b/test/ucs-test/tests/86_selenium/180_portal_entries
@@ -1,8 +1,9 @@
 #!/usr/share/ucs-test/runner /usr/share/ucs-test/selenium
 # -*- coding: utf-8 -*-
 ## desc: Test the 'System diagnostic' module
-## roles-not:
-##  - basesystem
+## roles:
+##  - domaincontroller_master
+##  - domaincontroller_backup
 ## tags:
 ##  - skip_admember
 ## join: true