Univention Bugzilla – Bug 40247
20univention-directory-policy.inst joinscript doesn't fail on errors
Last modified: 2017-08-02 14:34:11 CEST
No error handling in 20univention-directory-policy.inst e.g. if wrong machine.secret / LDAP server down / etc. Configure 20univention-directory-policy.inst Mon Dec 14 13:56:49 CET 2015 2015-12-14 13:56:49.354967924+01:00 (in joinscript_init) could not open policy for cn=slave52,cn=dc,cn=server,cn=computers,ou=oldschool,dc=ucs40,dc=school could not open policy for cn=slave52,cn=dc,cn=server,cn=computers,ou=oldschool,dc=ucs40,dc=school failed to execute univention_policy_result run-parts: /usr/lib/univention-directory-policy/univention-policy-maintenance exited with return code 1 could not open policy for cn=slave52,cn=dc,cn=server,cn=computers,ou=oldschool,dc=ucs40,dc=school failed to execute univention_policy_result run-parts: /usr/lib/univention-directory-policy/univention-policy-repository-sync exited with return code 1 could not open policy for cn=slave52,cn=dc,cn=server,cn=computers,ou=oldschool,dc=ucs40,dc=school univention-policy-set-repository-server: FAIL: failed to execute `univention_policy_result' run-parts: /usr/lib/univention-directory-policy/univention-policy-set-repository-server exited with return code 1 could not open policy for cn=slave52,cn=dc,cn=server,cn=computers,ou=oldschool,dc=ucs40,dc=school run-parts: /usr/lib/univention-directory-policy/univention-policy-update-config-registry exited with return code 1 2015-12-14 13:56:49.777204702+01:00 (in joinscript_save_current_version)
Created attachment 7828 [details] patch
univention-directory-policy (8.0.0-3): r81536 | Bug #40247: let joinscript fail if errors happen r81535 | Bug #40247: handle errors in the joinscript univention-directory-policy.yaml: r81536 | Bug #40247: let joinscript fail if errors happen
OK 20univention-directory-policy.inst fails instead of saying it was successful on error YAML: OK -> verified
<http://errata.software-univention.de/ucs/4.2/122.html>