Bug 33807 - Transfer UCS component installation status
Transfer UCS component installation status
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.2
Other Linux
: P5 enhancement (vote)
: UCS 3.2-2-errata
Assigned To: Janek Walkenhorst
Stefan Gohmann
:
: 31813 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-30 09:31 CET by Stefan Gohmann
Modified: 2014-07-31 12:41 CEST (History)
2 users (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
Testcase (1.33 KB, text/plain)
2014-02-14 13:29 CET, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-12-30 09:31:46 CET
The user agent string of the univention-updater should be extended by the information which UCS components are installed. To save bandwidth the information should be transmitted via a bit field.

Therefore the bit position should be added to the UCS component app center ini files.

For example:
 dhcp-server.ini: bitpostion=1
 samba4.ini: bitpostion=2
 fetchmail.ini: bitpostion=5

If fetchmail an samba4 are installed the number 18 is transferred (10010), if fetchmail and dhcp-server are installed 17 is transferred.

The value should be saved in a UCR variable and this variable should be set through an apt-get hook.
Comment 1 Stefan Gohmann univentionstaff 2014-01-07 11:48:09 CET
We discussed it again and we would also be nice to transfer the installation status of the apps. But in this case the value gets very big. Maybe we find a better way to save bandwidth.
Comment 2 Moritz Muehlenhoff univentionstaff 2014-01-07 12:34:52 CET
Maybe the existing Debian solution would be an option:
http://packages.qa.debian.org/p/popularity-contest.html

popcon supports vendor profiles to submit to hosts other than popcon.debian.org

It already features mechanisms to differentiate between packages which are solely installed and actively used:

http://popcon.debian.org/:
inst     : number of people who installed this package;
vote     : number of people who use this package regularly;
old      : number of people who installed, but don't use this package regularly;
recent   : number of people who upgraded this package recently;

Die Verwendung wird anhand der atime der Dateien geprüft.
Comment 3 Philipp Hahn univentionstaff 2014-02-14 13:29:44 CET
Created attachment 5795 [details]
Testcase

Create Single- and Multi-Template-File in all combinations → ucs-test?
Comment 4 Philipp Hahn univentionstaff 2014-02-14 13:31:05 CET
Comment on attachment 5795 [details]
Testcase

Wrong Bug #33842
Comment 5 Stefan Gohmann univentionstaff 2014-06-19 11:13:26 CEST
A better solution would be:

- adding a 2 char acronym to every ini file

- adding a test case to ensure the acronyms are unique

- the app center sets an UCR variable with the installed apps

- the updater adds these list as comma separate list to the user agent string
Comment 6 Stefan Gohmann univentionstaff 2014-06-23 06:47:13 CEST
(In reply to Stefan Gohmann from comment #5)
> A better solution would be:
> 
> - adding a 2 char acronym to every ini file
> 
> - adding a test case to ensure the acronyms are unique
> 
> - the app center sets an UCR variable with the installed apps

See Bug #35177

> - the updater adds these list as comma separate list to the user agent string

At this bug the user agent string should be extended, see 
conffiles/etc/apt/apt.conf.d/55user_agent.
Comment 7 Janek Walkenhorst univentionstaff 2014-07-04 15:35:32 CEST
The component status is read from the UCRV and sent via the apt-get user agent:
univention-updater (9.0.41-4)

Advisory updated: 2014-06-18-univention-updater.yaml
Comment 8 Stefan Gohmann univentionstaff 2014-07-07 07:38:52 CEST
OK, that works. The components are not registered during the update, see Bug #35271.

I've made small changes to the YAML file.
Comment 9 Moritz Muehlenhoff univentionstaff 2014-07-08 16:12:43 CEST
http://errata.univention.de/ucs/3.2/137.html
Comment 10 Nico Gulden univentionstaff 2014-07-31 12:41:58 CEST
*** Bug 31813 has been marked as a duplicate of this bug. ***