#7046 missing default basedn causes failure during initialization of multi host tests
Closed: fixed 6 years ago Opened 6 years ago by tkrizek.

When attempting to run integration tests, the initialization fails with the following traceback (on controller):

ipa-run-tests test_integration/test_simple_replication.py --verbose --logging-level=debug --logfile-dir=/vagrant/ --junit-xml=/vagrant/results.xml"
2017-07-04 15:17:01,135    DEBUG  Traceback (most recent call last):
2017-07-04 15:17:01,136    DEBUG    File "/usr/bin/ipa-run-tests", line 49, in <module>
2017-07-04 15:17:01,136    DEBUG      sys.exit(pytest.main(args))
2017-07-04 15:17:01,136    DEBUG    File "/usr/lib/python2.7/site-packages/_pytest/config.py", line 49, in main
2017-07-04 15:17:01,141    DEBUG      return config.hook.pytest_cmdline_main(config=config)
2017-07-04 15:17:01,141    DEBUG    File "/usr/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 724, in __call__
2017-07-04 15:17:01,297    DEBUG      return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
2017-07-04 15:17:01,298    DEBUG    File "/usr/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
2017-07-04 15:17:01,298    DEBUG      return self._inner_hookexec(hook, methods, kwargs)
2017-07-04 15:17:01,298    DEBUG    File "/usr/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
2017-07-04 15:17:01,299    DEBUG      _MultiCall(methods, kwargs, hook.spec_opts).execute()
2017-07-04 15:17:01,299    DEBUG    File "/usr/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
2017-07-04 15:17:01,300    DEBUG      res = hook_impl.function(*args)
2017-07-04 15:17:01,300    DEBUG    File "/usr/lib/python2.7/site-packages/ipatests/conftest.py", line 109, in pytest_cmdline_main
2017-07-04 15:17:01,301    DEBUG      api.finalize()
2017-07-04 15:17:01,301    DEBUG    File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 714, in finalize
2017-07-04 15:17:01,302    DEBUG      self.__do_if_not_done('load_plugins')
2017-07-04 15:17:01,302    DEBUG    File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 421, in __do_if_not_done
2017-07-04 15:17:01,303    DEBUG      getattr(self, name)()
2017-07-04 15:17:01,303    DEBUG    File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 593, in load_plugins
2017-07-04 15:17:01,304    DEBUG      self.add_package(package)
2017-07-04 15:17:01,304    DEBUG    File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 620, in add_package
2017-07-04 15:17:01,305    DEBUG      module = importlib.import_module(name)
2017-07-04 15:17:01,305    DEBUG    File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
2017-07-04 15:17:01,314    DEBUG      __import__(name)
2017-07-04 15:17:01,315    DEBUG    File "/usr/lib/python2.7/site-packages/ipaserver/plugins/aci.py", line 143, in <module>
2017-07-04 15:17:01,315    DEBUG      'user': 'ldap:///' + str(DN(('uid', '*'), api.env.container_user, api.env.basedn)),
2017-07-04 15:17:01,316    DEBUG  AttributeError: 'Env' object has no attribute 'basedn'

This issue is not present in 4.5.2. I suspect https://github.com/freeipa/freeipa/pull/492 might be the cause.


Intgration tests are also broken in jenkins.

Metadata Update from @tkrizek:
- Issue priority set to: critical
- Issue set to the milestone: FreeIPA 4.6

6 years ago

Metadata Update from @tkrizek:
- Issue assigned to tkrizek

6 years ago

master:

  • d2b87f80c5859877b4dfaef19f6fd68f38ea9679 ipatests: do not finalize api when IPA is not configured

Metadata Update from @tkrizek:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Please ignore the commits above, I accidentally pushed the code into a mirror repo instead of upstream. Sorry about that.

Metadata Update from @tkrizek:
- Issue status updated to: Open (was: Closed)

6 years ago

master:

  • 7f8d79f ipatests: do not finalize api when IPA is not configured

Metadata Update from @tkrizek:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata