Bug 44048 - "domain" portal is used on DC slave after update
"domain" portal is used on DC slave after update
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Alexander Kläser
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-23 16:01 CET by Alexander Kläser
Modified: 2017-04-04 18:30 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.514
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2017-03-23 16:01:58 CET
A DC slave has been updated to 4.2. Afterwards, the computers object did have an empty entry for portal:

> root@master:~# udm computers/domaincontroller_slave list | grep -e DN: -e portal:
> DN: cn=slave,cn=dc,cn=computers,dc=w2k12,dc=test
>   portal: None

However, the given portal was the domain portal:

> python -c '
>   import json
>   d=json.load(open("/var/www/univention/portal/portal.json"))
>   print d["portal"]["dn"]'
> cn=domain,cn=portal,cn=univention,dc=w2k12,dc=test
Comment 1 Alexander Kläser univentionstaff 2017-03-23 16:20:50 CET
The corresponding 35univention-portal join script had not been executed on the slave. I changed the fallback to the "local" portal to avoid problems like this on systems with pending join scripts.

univention-portal (1.0.10-6):
r78215 | Bug #44048: Use the local portal as fallback
Comment 2 Stefan Gohmann univentionstaff 2017-03-23 19:08:19 CET
OK, it works.
Comment 3 Stefan Gohmann univentionstaff 2017-03-23 19:31:16 CET
As discussed, the UMC link is only available after running the join scripts.
Comment 4 Alexander Kläser univentionstaff 2017-03-23 23:16:20 CET
Fixed. Both portal objects as well as both UMC portal entries are now created in the join script for the role DC master. This should do the trick.

In addition, I adjusted the server overview entry to be created (via the join script) on roles != DC master. That prevents one from having a link to the server overview on a single server domain.


univention-portal (1.0.10-9):
r78244 | Bug #44048: Create all portal objects at once on DC master

univention-server-overview (0.0.3-8):
r78245 | Bug #44048: Only create portal entry in a multi-sever domain
Comment 5 Stefan Gohmann univentionstaff 2017-03-24 07:42:31 CET
OK, it works now in a new installed domain and on an updated domain.
Comment 6 Stefan Gohmann univentionstaff 2017-04-04 18:30:07 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".