Bug 44221 - Self service upgrate cleanup operation creates high IO and daunting error messages
Self service upgrate cleanup operation creates high IO and daunting error mes...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Self Service
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Daniel Tröder
Erik Damrose
: interim-2
Depends on: 42132 42267 43486 43565 43811 44189
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-03 12:27 CEST by Daniel Tröder
Modified: 2017-04-04 18:29 CEST (History)
6 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 Daniel Tröder univentionstaff 2017-04-03 12:27:40 CEST
+++ This bug was initially created as a clone of Bug #43565 +++

==========================================================
Suche Dateien zum Sichern/Löschen ...
/usr/sbin/deluser: Die spezielle Datei /proc/1126/task/1126/fd/0 kann nicht bearbeitet werden
/usr/sbin/deluser: Die spezielle Datei /proc/1126/task/1126/fd/1 kann nicht bearbeitet werden
/usr/sbin/deluser: Die spezielle Datei /proc/1126/task/1126/fd/2 kann nicht bearbeitet werden
[..]
/usr/sbin/deluser: Die spezielle Datei /dev/input/by-id/usb-QEMU_1.1.2_QEMU_USB_Tablet_42-event-mouse kann nicht bearbeitet werden
/usr/sbin/deluser: Die spezielle Datei /dev/cpu/microcode kann nicht bearbeitet werden
/usr/sbin/deluser: Die spezielle Datei /dev/cpu/0/cpuid kann nicht bearbeitet werden
Dateien werden gelöscht ...
==========================================================

The removal of the unused self-service user in r77499 using 

deluser --system --remove-home --remove-all-files self-service

makes deluser walk the entire file system including /dev and /proc creating a deluge of error messages and high IO in case of a file server with millions of files.
Comment 1 Daniel Tröder univentionstaff 2017-04-03 12:31:38 CEST
r78613: delete only home of unused user, don't walk entire filesystem

Package: univention-self-service
Version: 2.0.16-4A~4.2.0.201704031229
Branch: ucs_4.2-0
Scope:
Comment 2 Erik Damrose univentionstaff 2017-04-03 18:39:45 CEST
Bug was not tagged to ucs 4.2.

OK: remove --remove-all-files option from deleteuser
OK: Update to 4.2
Verified
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:24 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

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