Bug 27962 - Leere /etc/logrotate.d/univention-config-registry-replog nach der Installation
Leere /etc/logrotate.d/univention-config-registry-replog nach der Installation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Felix Botner
Sönke Schwardt-Krummrich
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-17 16:51 CEST by Janek Walkenhorst
Modified: 2012-12-12 21:10 CET (History)
3 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

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Walkenhorst univentionstaff 2012-07-17 16:51:04 CEST
Die /etc/logrotate.d/univention-config-registry-replog ist nach der Installation von 3.0-2 Master/Backup/Slave/Member/Basissystemen leer:

$ less /etc/logrotate.d/univention-config-registry-replog
# [UCR Warnung entfernt]
#       /etc/univention/templates/files/etc/logrotate.d/univention-config-registry-replog
#


Nach einem UCR commit jedoch nicht:
$ ucr commit /etc/logrotate.d/univention-config-registry-replog
File: /etc/logrotate.d/univention-config-registry-replog
$ less /etc/logrotate.d/univention-config-registry-replog
# [UCR Warnung entfernt]
#       /etc/univention/templates/files/etc/logrotate.d/univention-config-registry-replog
#

/var/log/univention/config-registry.replog {
        weekly
        rotate 12
        create 640 root adm
        compress
        missingok
        notifempty
}
/var/log/univention/dpkg-divert.log {
        weekly
        rotate 12
        create 640 root adm
        compress
        missingok
        notifempty
}


In der installation.log findet sich:

File: /etc/logrotate.d/univention-config-registry-replog
Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
ImportError: No module named lib.ucrLogrotate


Hier scheint eine Abhängigkeit auf python-univention-lib zu fehlen.
Comment 1 Philipp Hahn univentionstaff 2012-08-16 11:06:31 CEST
(In reply to comment #0)
> File: /etc/logrotate.d/univention-config-registry-replog
> Traceback (most recent call last):
>   File "<stdin>", line 7, in <module>
> ImportError: No module named lib.ucrLogrotate
> 
> 
> Hier scheint eine Abhängigkeit auf python-univention-lib zu fehlen.

Es darf nicht ohne Weiteres eine Abhängigkeit von univention-base-files auf python-univention-lib hinzugefügt werden, weil ansonsten univention-base-files wegen der vielen Abhängigkeiten auf andere Pakete viel zu spät konfiguriert wird; siehe entsprechender Kommentar in univention-base-files/debian/control. Das wurde erxtra für UCS-3.0 so umgebaut, weil es davor massive Probleme gab.

Insbesondere muß man auf Zyklen zwischen univention-config, univention-base-files, python-univention* aufpassen.

Als Work-Around sollte ein ucr commit auf die Datei durchgeführt werden.
Comment 2 Felix Botner univentionstaff 2012-08-29 13:44:47 CEST
Da dies ja nur bei Installationen auftreten kann, wird python-univention-lib nun im Installer vor univention-base-files und univention-config-registry installiert. 

Nach der Installation gibt es dann eine vollständige /etc/logrotate.d/univention-config-registry-replog und keine entsprechenden Tracebacks in der installation.log.

Changelog nicht notwendig, da es bei früheren Installationen wohl geklappt hat.
Comment 3 Felix Botner univentionstaff 2012-08-29 13:52:38 CEST
Doch noch ein Eintrag im Changelog erstellt.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2012-09-14 12:26:48 CEST
(In reply to comment #2)
> Da dies ja nur bei Installationen auftreten kann, wird python-univention-lib
> nun im Installer vor univention-base-files und univention-config-registry
> installiert. 

→ OK, Installationsreihenfolge wurde geändert
 
> Nach der Installation gibt es dann eine vollständige
> /etc/logrotate.d/univention-config-registry-replog und keine entsprechenden
> Tracebacks in der installation.log.

→ Datei ist nach der Installation nicht leer; Tracebacks treten nicht auf

> Changelog nicht notwendig, da es bei früheren Installationen wohl geklappt hat.

→ OK

→ VERIFIED
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:10:58 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

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