output of rpm -qa | grep lib389 ==> python-lib389-1.0.2-3.fc25.noarch I followed your steps mentioned above but got the same error while running ==> sudo PYTHONPATH=`pwd` py.test -s lib389/tests/cli/conf_backend.py. Then I cloned the latest lib389-master and build the rpm, installed both rpm python2 as well as python3, still got the same error while running ==> sudo PYTHONPATH=`pwd` py.test -s lib389/tests/cli/conf_backend.py To describe the error I have copy pasted the terminal output ***********************************************************Terminal text starts here *************************************************************** ➜ lib389 git:(ankit) sudo PYTHONPATH=`pwd` py.test -s lib389/tests/cli/conf_backend.py [sudo] password for ankit: ==================================================================================== test session starts ===================================================================================== platform linux2 -- Python 2.7.13, pytest-2.9.2, py-1.4.32, pluggy-0.3.1 rootdir: /home/ankit/projects/lib389, inifile: collected 1 items lib389/tests/cli/conf_backend.py DEBUG:lib389:Instance allocated INFO:lib389:Allocate <class 'lib389.DirSrv'> with localhost:54321 INFO:lib389:Allocate <class 'lib389.DirSrv'> with localhost:54321 INFO:lib389:dir (sys) : /etc/sysconfig INFO:lib389:dir (priv): /root/.dirsrv INFO:lib389:List from /root/.dirsrv INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone', 'hostname': 'localhost.localdomain', 'ldap-port': 54321, 'ldap-secureport': None, 'ldapi_autobind': None, 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/var/lib/dirsrv/slapd-standalone', 'SERVER_DIR': '/usr/lib64', 'server-id': 'standalone', 'ldapi_enabled': None, 'ldapi_socket': None, 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone', 'PRODUCT_NAME': 'slapd', 'suffix': None} INFO:lib389:dir (sys) : /etc/sysconfig INFO:lib389:dir (priv): /root/.dirsrv INFO:lib389:List from /root/.dirsrv INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'local', 'hostname': 'local.com', 'ldap-port': 389, 'ldap-secureport': None, 'ldapi_autobind': 'off', 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/usr/lib64/dirsrv/slapd-local', 'SERVER_DIR': '/usr/lib64/dirsrv', 'server-id': 'local', 'ldapi_enabled': 'off', 'ldapi_socket': '/var/run/slapd-local.socket', 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-local', 'PRODUCT_NAME': 'slapd', 'suffix': 'dc=local'} INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone2', 'hostname': 'localhost', 'ldap-port': 54322, 'ldap-secureport': None, 'ldapi_autobind': 'off', 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/usr/lib64/dirsrv/slapd-standalone2', 'SERVER_DIR': '/usr/lib64/dirsrv', 'server-id': 'standalone2', 'ldapi_enabled': 'off', 'ldapi_socket': '/var/run/slapd-standalone2.socket', 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone2', 'PRODUCT_NAME': 'slapd', 'suffix': 'dc=example,dc=com'} INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone_1', 'hostname': 'localhost.localdomain', 'ldap-port': 38901, 'ldap-secureport': None, 'ldapi_autobind': None, 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/var/lib/dirsrv/slapd-standalone_1', 'SERVER_DIR': '/usr/lib64', 'server-id': 'standalone_1', 'ldapi_enabled': None, 'ldapi_socket': None, 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone_1', 'PRODUCT_NAME': 'slapd', 'suffix': None} INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone', 'hostname': 'localhost.localdomain', 'ldap-port': 54321, 'ldap-secureport': None, 'ldapi_autobind': None, 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/var/lib/dirsrv/slapd-standalone', 'SERVER_DIR': '/usr/lib64', 'server-id': 'standalone', 'ldapi_enabled': None, 'ldapi_socket': None, 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone', 'PRODUCT_NAME': 'slapd', 'suffix': None} INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'master', 'hostname': 'localhost', 'ldap-port': 40389, 'ldap-secureport': None, 'ldapi_autobind': 'off', 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/usr/lib64/dirsrv/slapd-master', 'SERVER_DIR': '/usr/lib64/dirsrv', 'server-id': 'master', 'ldapi_enabled': 'off', 'ldapi_socket': '/var/run/slapd-master.socket', 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-master', 'PRODUCT_NAME': 'slapd', 'suffix': 'dc=example,dc=com'} INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'localhost', 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/usr/lib64/dirsrv/slapd-localhost', 'SERVER_DIR': '/usr/lib64/dirsrv', 'server-id': 'localhost', 'SERVERBIN_DIR': '/usr/sbin', 'CONFIG_DIR': '/etc/dirsrv/slapd-localhost', 'PRODUCT_NAME': 'slapd'} INFO:lib389:dir (sys) : /etc/sysconfig INFO:lib389:dir (priv): /root/.dirsrv INFO:lib389:List from /root/.dirsrv INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone', 'hostname': 'localhost.localdomain', 'ldap-port': 54321, 'ldap-secureport': None, 'ldapi_autobind': None, 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/var/lib/dirsrv/slapd-standalone', 'SERVER_DIR': '/usr/lib64', 'server-id': 'standalone', 'ldapi_enabled': None, 'ldapi_socket': None, 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone', 'PRODUCT_NAME': 'slapd', 'suffix': None} DEBUG:lib389:running: /usr/sbin/remove-ds.pl -i slapd-standalone Instance slapd-standalone removed. INFO:LogCapture.SetupDs:Running setup with verbose INFO:LogCapture.SetupDs:READY: preparing installation for standalone INFO:LogCapture.SetupDs:PASSED: using config settings 999999999 INFO:LogCapture.SetupDs:PASSED: user / group checking INFO:LogCapture.SetupDs:PASSED: Hostname strict checking INFO:LogCapture.SetupDs:PASSED: prefix checking INFO:lib389:dir (sys) : /etc/sysconfig INFO:lib389:dir (priv): /root/.dirsrv INFO:LogCapture.SetupDs:PASSED: instance checking INFO:LogCapture.SetupDs:PASSED: root user checking INFO:LogCapture.SetupDs:PASSED: network avaliability checking INFO:LogCapture.SetupDs:READY: beginning installation for standalone INFO:LogCapture.SetupDs:ACTION: creating /var/lib/dirsrv/slapd-standalone/bak INFO:LogCapture.SetupDs:ACTION: creating /etc/dirsrv/slapd-standalone INFO:LogCapture.SetupDs:ACTION: creating /etc/dirsrv/slapd-standalone INFO:LogCapture.SetupDs:ACTION: creating /var/lib/dirsrv/slapd-standalone/db INFO:LogCapture.SetupDs:ACTION: creating /var/lib/dirsrv/slapd-standalone/ldif INFO:LogCapture.SetupDs:ACTION: creating /var/lock/dirsrv/slapd-standalone INFO:LogCapture.SetupDs:ACTION: creating /var/log/dirsrv/slapd-standalone INFO:LogCapture.SetupDs:ACTION: creating /var/run/dirsrv INFO:LogCapture.SetupDs:ACTION: Creating certificate database is /etc/dirsrv/slapd-standalone INFO:LogCapture.SetupDs:ACTION: Creating dse.ldif INFO:lib389:Allocate <class 'lib389.DirSrv'> with localhost:54321 INFO:lib389:Allocate <class 'lib389.DirSrv'> with localhost:54321 INFO:lib389:dir (sys) : /etc/sysconfig INFO:lib389:dir (priv): /root/.dirsrv INFO:lib389:List from /root/.dirsrv INFO:lib389:list instance {'RUN_DIR': '/var/run/dirsrv', 'SERVER_ID': 'standalone', 'hostname': 'localhost.localdomain', 'ldap-port': 54321, 'ldap-secureport': None, 'ldapi_autobind': None, 'DS_ROOT': '', 'deployed-dir': '/usr', 'INST_DIR': '/var/lib/dirsrv/slapd-standalone', 'SERVER_DIR': '/usr/lib64', 'server-id': 'standalone', 'ldapi_enabled': None, 'ldapi_socket': None, 'SERVERBIN_DIR': '/usr/sbin', 'root-dn': 'cn=Directory Manager', 'user-id': 'dirsrv', 'CONFIG_DIR': '/etc/dirsrv/slapd-standalone', 'PRODUCT_NAME': 'slapd', 'suffix': None} DEBUG:lib389:nss cmd: ['/usr/bin/certutil', '-N', '-d', '/etc/dirsrv/slapd-standalone', '-f', '/etc/dirsrv/slapd-standalone/pwdfile.txt'] DEBUG:lib389:nss output: E =========================================================================================== ERRORS =========================================================================================== _____________________________________________________________________________ ERROR at setup of test_backend_cli _____________________________________________________________________________ request = <SubRequest 'topology' for <Function 'test_backend_cli'>> @pytest.fixture def topology(request): lc = LogCapture() instance = DirSrv(verbose=DEBUGGING) instance.log.debug("Instance allocated") args = {SER_PORT: INSTANCE_PORT, SER_SERVERID_PROP: INSTANCE_SERVERID} instance.allocate(args) if instance.exists(): instance.delete() # This will need to change to instance.create in the future # when it's linked up! sds = SetupDs(verbose=DEBUGGING, dryrun=False, log=lc.log) # Get the dicts from Type2Base, as though they were from _validate_ds_2_config # IE get the defaults back just from Slapd2Base.collect # Override instance name, root password, port and secure port. general_options = General2Base(lc.log) general_options.verify() general = general_options.collect() # Need an args -> options2 ... slapd_options = Slapd2Base(lc.log) slapd_options.set('instance_name', INSTANCE_SERVERID) slapd_options.set('port', INSTANCE_PORT) slapd_options.set('root_password', PW_DM) slapd_options.verify() slapd = slapd_options.collect() > sds.create_from_args(general, slapd, {}, None) lib389/tests/cli/__init__.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib389/instance/setup.py:297: in create_from_args self._install_ds(general, slapd, backends) lib389/instance/setup.py:424: in _install_ds ds_instance.start(timeout=60) lib389/__init__.py:1169: in start if self.status() is True: lib389/__init__.py:1270: in status pid = pid_from_file(self.ds_paths.pid_file) lib389/paths.py:153: in __getattr__ return self._config.get(SECTION, name).format(instance_name=self._serverid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ConfigParser.SafeConfigParser instance at 0x7ff7d92e37e8>, section = 'slapd', option = 'pid_file', raw = False, vars = None def get(self, section, option, raw=False, vars=None): """Get an option value for a given section. If `vars' is provided, it must be a dictionary. The option is looked up in `vars' (if provided), `section', and in `defaults' in that order. All % interpolations are expanded in the return values, unless the optional argument `raw' is true. Values for interpolation keys are looked up in the same manner as the option. The section DEFAULT is special. """ sectiondict = {} try: sectiondict = self._sections[section] except KeyError: if section != DEFAULTSECT: raise NoSectionError(section) # Update with the entry specific variables vardict = {} if vars: for key, value in vars.items(): vardict[self.optionxform(key)] = value d = _Chainmap(vardict, sectiondict, self._defaults) option = self.optionxform(option) try: value = d[option] except KeyError: > raise NoOptionError(option, section) E NoOptionError: No option 'pid_file' in section: 'slapd' /usr/lib64/python2.7/ConfigParser.py:618: NoOptionError ================================================================================== 1 error in 0.69 seconds =================================================================================== ************************************************************Terminal text ends here *************************************************************** _______________________________________________ 389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx