Bug 43579 - UCS@school: Migrate ucs-overview entries to new 4.2 portal entries
UCS@school: Migrate ucs-overview entries to new 4.2 portal entries
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.2 v1
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 42231 43932
Blocks: 42233
  Show dependency treegraph
 
Reported: 2017-02-18 04:34 CET by Florian Best
Modified: 2017-04-11 17:45 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
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 Florian Best univentionstaff 2017-02-18 04:34:51 CET
Also for UCS@school 4.2.
+++ This bug was initially created as a clone of Bug #42231 +++

We will need to migrate UCR variable entries for ucs-overview page to new UCS 4.2 portal entries.
Comment 1 Daniel Tröder univentionstaff 2017-03-07 10:27:48 CET
_Local_ portal entries will been created on multi-master, single-master and edu-slaves.

r77398: migrate ucs-overview entries to 4.2 portal entries, advisory

Package: ucs-school-metapackage
Version: 10.0.0-3A~4.2.0.201703071015
Branch: ucs_4.2-0
Scope: ucs-school-4.2
Comment 2 Florian Best univentionstaff 2017-03-07 11:50:36 CET
Please unset the old variables.
The commit was done with the wrong bug number.
Comment 3 Daniel Tröder univentionstaff 2017-03-07 12:27:14 CET
r77411: unset deprecated UCR variables

Version: 10.0.0-4A~4.2.0.201703071225
Comment 4 Daniel Tröder univentionstaff 2017-03-07 12:48:59 CET
r77414: fix UCR unset in wrong file, unset ../link/de

Version: 10.0.0-5A~4.2.0.201703071246
Comment 5 Daniel Tröder univentionstaff 2017-03-15 10:56:07 CET
The portal concept works completely different to what I had thought. The current solution will create portal links also on non-edu and non-school slaves and member servers.

I propose to create a separate settings/portal object for edu-slaves. Then add the UMC-link to that one and to the "domain" portal object. This way there will be UCS@school-links only on the master (for admins) and on edu-slaves (for teachers).
It also means, that all other links that would be shown (belonging to the "local" portal) will not be shown anymore. Apps should register to the "domain" portal, so they will not be affected. They will also be shown on the host they are installed on, as the app center creates separate links for them if "showApps=True" is set on the edu-slaves settings/portal object.
Comment 6 Daniel Tröder univentionstaff 2017-03-17 09:14:46 CET
r77868: create separate portal 'school-edu' only for edu-slaves

The "teacherconsole" entry ("UCS@school modules in the Univention Management Console") is now only created on edu-slaves. No other roles get any entry.

This is implemented by creating a new portal "school-edu" and configuring it on the hosts computer object.

To test on exiting UCS@school 4.2 installations, you'll have to:
$ udm settings/portal_entry remove --dn="cn=teacherconsole,cn=portal,cn=univention,$(ucr get ldap/base)"
$ univention-run-join-scripts --run-scripts --force 63ucs-school-portal-entry.inst

Package: ucs-school-metapackage
Version: 10.0.0-6A~4.2.0.201703170909
Branch: ucs_4.2-0
Scope: ucs-school-4.2
Comment 7 Florian Best univentionstaff 2017-03-17 13:06:16 CET
How do you achieve that this portal is displayed on edu slaves?
Why isn't there a own portal for each server created? I don't understand that concept.
Comment 8 Daniel Tröder univentionstaff 2017-03-17 14:14:55 CET
(In reply to Florian Best from comment #7)
> How do you achieve that this portal is displayed on edu slaves?
Only in edu-slaves join script the portal is created and the hosts computer object bound to it.

> Why isn't there a own portal for each server created? I don't understand
> that concept.
What for?
When needed, admins can still do that.
Comment 9 Florian Best univentionstaff 2017-03-20 14:25:04 CET
r77981 | Bug #43579: remove variables dynamically
Comment 10 Daniel Tröder univentionstaff 2017-03-22 14:38:46 CET
r78137: only create portal 'school-edu' on edu-slaves, use 'domain' portal on single-master

ucs-school-metapackage 10.0.1-1.1A~4.2.0.201703221438
Comment 11 Daniel Tröder univentionstaff 2017-03-22 16:18:03 CET
r78144:
 - handle custom computer portal
 - allow portal_entry to be appended to multiple portals
r78149:
 - don't append to custom portal
 - don't change portal on single-master

ucs-school-metapackage 10.0.1-3A~4.2.0.201703221616
Comment 12 Sönke Schwardt-Krummrich univentionstaff 2017-04-10 01:19:57 CEST
UCS@school is nowhere shown on master or slave in my environment → REOPEN
Comment 13 Daniel Tröder univentionstaff 2017-04-10 13:08:18 CEST
r78711: install portal_entry on multi-master too

ucs-school-metapackage 10.0.2-2A~4.2.0.201704101304


Final situation:
* The portal 'school-edu' is installed on edu slaves only.
* On all roles except non-edu slaves a portal_entry is created.
* On edu slaves the portal_entry is added to the portal 'school-edu'.
* On single-master and multi-master (and backup) the portal_entry is added to the portal 'domain'.
* Only non-edu slaves do not have a portal_entry.
Comment 14 Sönke Schwardt-Krummrich univentionstaff 2017-04-11 17:44:25 CEST
OK: functional test
Comment 15 Sönke Schwardt-Krummrich univentionstaff 2017-04-11 17:45:36 CEST
UCS@school 4.2 v1 has been released.

http://docs.software-univention.de/release-notes-ucsschool-4.2v1-de.html

If this error occurs again, please clone this bug.