[Pkg-freeipa-devel] Bug#925221: python3-lib389: Instance removal fails due to hard-coded path

Jörg Behrmann behrmann at physik.fu-berlin.de
Thu Mar 21 12:25:47 GMT 2019


Package: python3-lib389
Version: 1.4.0.21-1
Severity: normal
Tags: patch upstream

Running "dsctil <instance> remove --do-it" or "dsctl --remove-all" fail fails
in lib389/instance/remove.py:remove_ds_instance when asserting the existence
of its marker file, which on RH systems is in /etc/sysconfig/dirsrv-<instance>,
but in Debian is in /etc/default/dirsrv-<instance>. Unfortunately this path
is hard-coded.

A patch is attached and will be submitted upstream.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-lib389 depends on:
ii  python3                   3.7.2-1
ii  python3-argcomplete       1.8.1-1
ii  python3-argparse-manpage  1.1-1
ii  python3-dateutil          2.7.3-3
ii  python3-ldap              3.1.0-2
ii  python3-pyasn1            0.4.2-3
ii  python3-pyasn1-modules    0.2.1-0.2
ii  python3-pytest            3.10.1-2
ii  python3-six               1.12.0-1

python3-lib389 recommends no packages.

python3-lib389 suggests no packages.

-- no debconf information
-------------- next part --------------
--- remove.py	2019-03-21 11:37:29.093572057 +0100
+++ remove.py.fixed	2019-03-21 11:36:23.389675946 +0100
@@ -39,7 +39,7 @@
     remove_paths['tmpfiles_d'] = dirsrv.ds_paths.tmpfiles_d + "/dirsrv-" + dirsrv.serverid + ".conf"
     remove_paths['inst_dir'] = dirsrv.ds_paths.inst_dir
 
-    marker_path = "%s/sysconfig/dirsrv-%s" % (dirsrv.ds_paths.sysconf_dir, dirsrv.serverid)
+    marker_path = "%s/dirsrv-%s" % (dirsrv.ds_paths.initconfig_dir, dirsrv.serverid)
     etc_dirsrv_path = os.path.join(dirsrv.ds_paths.sysconf_dir, 'dirsrv/')
     ssca_path = os.path.join(etc_dirsrv_path, 'ssca/')
 


More information about the Pkg-freeipa-devel mailing list