Univention Bugzilla – Bug 34826
CLI tools should deactivate univention-directory-notifier during import
Last modified: 2014-06-12 09:20:59 CEST
This change should also be done for the CLI tools. +++ This bug was initially created as a clone of Bug #34825 +++ To prevent problems with the sync between LDAP and S4, the CSV-Import should deactivate univention-directory-notifier during import.
Used with stopped_notifier(): "main()" so that it is done for every function (import_user, import_computer, but also export_computer). Stops and restarts the notifier even when the function is not really called but just parser.print_help() sys.exit(1) after initial argument checks. Done it this way to not miss anything, while stopping the notifier for some time is safe as far as I understand it, even when it has been unnecessary. Only errors are logged.
The notifier is restarted if the notifier was running before. The ucs-test script seem to be unimpressed by the change (not all tests have run through, but keep on going). Starting any CLI command takes now up to 5 seconds before any output is shown on the command line. Seems to be ok for now.
Changelog entry has been added.
It shows that the waiting time is too long. The notifier should be stopped after parsing the command line arguments. The CLI tools should also print a progress message. E.g. Stopping Univention Directory Notifier... Univention Directory Notifier stopped. [...CLI tool output...] Starting Univention Directory Notifier... Univention Directory Notifier started.
*** Bug 34876 has been marked as a duplicate of this bug. ***
(In reply to Sönke Schwardt-Krummrich from comment #4) > It shows that the waiting time is too long. The notifier should be stopped > after parsing the command line arguments. This change was much bigger than the original one. > The CLI tools should also print a progress message. E.g. > > Stopping Univention Directory Notifier... > Univention Directory Notifier stopped. > [...CLI tool output...] > Starting Univention Directory Notifier... > Univention Directory Notifier started. Improved stopped_notifier() in ucs-school-lib. ucs-school-lib (5.0.39-1) unstable; urgency=low ucs-school-import (10.0.18-1) unstable; urgency=low
(In reply to Sönke Schwardt-Krummrich from comment #6) > Improved stopped_notifier() in ucs-school-lib. Partly reverted. Improved add_stream_logger_to_schoollib() instead
OK, UDN is stopped while the script runs and outputs log messages. Changelog OK
UCS@school 3.2 R2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2-de.html If this error occurs again, please use "Clone This Bug".