Bug 32416 - AppCenter should register apps in UDM
AppCenter should register apps in UDM
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Dirk Wiesenthal
Arvid Requate
: interim-2
Depends on: 32414
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-28 15:56 CEST by Arvid Requate
Modified: 2013-11-19 06:41 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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
member join.log (24.34 KB, text/plain)
2013-09-18 14:42 CEST, Arvid Requate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2013-08-28 15:56:30 CEST
The AppCenter should register apps in UDM using the module implemented via Bug 32414.

The library code for this
* should be usable also via CLI
* stores descriptions in english and german into multivalued UDM properties
* suggested object name convention is  <AppID>_<AppVersion>

* On App installation:
1. Create the object with "ignore exists"
2. Register FQDN of local server on the object

* On App de-installation:
1. Remove FQDN of local server from the object
2. Remove the object if no server is registered any longer

* On App upgrade:
1. Installation of new App (see above)
2. Deinstallation of old App (see above)

Probably some form of race prevention (locking) is required.
Comment 1 Dirk Wiesenthal univentionstaff 2013-09-16 14:54:43 CEST
Apps register themselves in

  univentionAppID=${app_id}-${app_version},cn=$app_id,cn=apps,cn=univention,$ldap_base

Apps remove the appcenter/app object if not necessary anymore after un-registration. Containers stay in the directory (empty).

Already installed apps (UCS 3.1) are registered by the join script.

Locking not implemented.

  univention-management-console-module-appcenter 3.0.33-1.191.201309161441
Comment 2 Arvid Requate univentionstaff 2013-09-18 14:33:53 CEST
Personally I'd prefer a more visual and Debian-like separation between AppID and Version,   like   samba4_4.1  instead of samba4-4.1.

The regsitration and deregistration/object removal works and the changelog is ok.
Comment 3 Arvid Requate univentionstaff 2013-09-18 14:42:59 CEST
Created attachment 5440 [details]
member join.log

The UCS memberserver does not register his Samba (at least not in a Samba4/AD-Domain). The join.log shows a traceback, maybe that's related.
Comment 4 Stefan Gohmann univentionstaff 2013-11-19 06:41:28 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

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