Bug 36418 - system-setup doesn't run cleanup scripts
system-setup doesn't run cleanup scripts
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Florian Best
Alexander Kramer
: interim-4
Depends on:
Blocks: 37021
  Show dependency treegraph
 
Reported: 2014-11-04 13:43 CET by Stefan Gohmann
Modified: 2014-11-26 07:14 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
setup.log Backup (184.50 KB, text/x-log)
2014-11-06 14:46 CET, Alexander Kramer
Details
setup.log Member (145.35 KB, text/x-log)
2014-11-06 14:46 CET, Alexander Kramer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-11-04 13:43:47 CET
The UCS setup wizard module is still available on a joined DC backup.
Comment 1 Florian Best univentionstaff 2014-11-04 15:05:43 CET
Well, on DC backups no cleanup scripts are ever executed.

=== Cleanup (2014-11-04 11:03:28) ===


=== Running cleanup-pre scripts (2014-11-04 11:03:28) ===

=== done (2014-11-04 11:03:28) ===
Restarting Univention Management Console Server.
done.
Restarting Univention Management Console Web Server.
done.
Restarting web server: apache2 ... waiting .

=== Running cleanup-post scripts (2014-11-04 11:03:32) ===

=== done (2014-11-04 11:03:32) ===

=== DONE (2014-11-04 11:03:32) ===
Comment 2 Florian Best univentionstaff 2014-11-04 15:10:19 CET
root@backup4:/var/log# ls /usr/lib/univention-system-setup/cleanup-post.d
root@backup4:/var/log# ls /usr/lib/univention-system-setup/cleanup-pre.d/
root@backup4:/var/log# 

empty ...
Comment 3 Florian Best univentionstaff 2014-11-04 15:12:09 CET
On every DC role.
Comment 4 Florian Best univentionstaff 2014-11-04 15:15:50 CET
debian/univention-system-setup-boot.install:usr/lib/univention-system-setup/cleanup-post.d
debian/univention-system-setup.dirs:usr/lib/univention-system-setup/cleanup-post.d
debian/univention-system-setup.dirs:usr/lib/univention-system-setup/cleanup-pre.d
Comment 5 Florian Best univentionstaff 2014-11-04 15:51:37 CET
Probably this is the case:
1) system setup runs + finishes
2) apt-get autoremove removes univention-system-setup-boot
3) session timeout / cleanup scripts will run → don't exists anymore

Would it be ok, if univention-system-setup instead of univention-system-setup-boot ships the cleanup-post.d and cleanup-pre.d scripts?
Comment 6 Florian Best univentionstaff 2014-11-04 20:49:46 CET
While joining into the domain the Package univention-system-setup-bootm is already removed.
# dpkg -l univention-system-setup-boot
rc  univention-system-setup-boot

→ cleanup-post.d was removed, too.

I moved all the cleanup scripts into univention-system-setup package. They will only be executed in appliance/installer/wizard mode.

In theory this is a duplicate of Bug #35727 (which is already VERIFIED, so setting this to RESOLVED).
Comment 7 Alexander Kramer univentionstaff 2014-11-06 14:46:31 CET
Created attachment 6317 [details]
setup.log Backup
Comment 8 Alexander Kramer univentionstaff 2014-11-06 14:46:52 CET
Created attachment 6318 [details]
setup.log Member
Comment 9 Alexander Kramer univentionstaff 2014-11-06 14:49:29 CET
As you can see inside the logs the cleanup scripts have been called, so the wizard module is disabled.

OK - backup
OK - member
Comment 10 Stefan Gohmann univentionstaff 2014-11-26 06:55:06 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

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