After https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/852675 when we try to run tempest with both barbican tempest plugin and cinder tempest plugin installed i get following error.
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins oslo_config.cfg.DuplicateOptError: duplicate option: barbican
Se full log with tempest init:
[root@ddf7647ef105 test]# tempest init
2022-09-28 08:09:14.911 5682 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2022-09-28 08:09:14.971 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: heat
2022-09-28 08:09:14.972 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: networking_l2gw_tempest_plugin
2022-09-28 08:09:14.972 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: designate
2022-09-28 08:09:14.972 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: kuryr_tempest_tests
2022-09-28 08:09:14.973 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: octavia-tempest-plugin
2022-09-28 08:09:14.973 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: watcher_tests
2022-09-28 08:09:14.974 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: telemetry_tests
2022-09-28 08:09:14.974 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: manila_tests
2022-09-28 08:09:14.975 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: ironic_tests
2022-09-28 08:09:14.976 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: keystone_tests
2022-09-28 08:09:14.976 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: neutron_tests
2022-09-28 08:09:14.976 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: murano_tests
2022-09-28 08:09:14.977 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: trove_tests
2022-09-28 08:09:14.977 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: mistral_test
2022-09-28 08:09:14.977 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: barbican_tests
2022-09-28 08:09:14.978 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: cinder_tests
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins [-] Plugin cinder_tests raised an exception trying to run register_opts: oslo_config.cfg.DuplicateOptError: duplicate option: barbican
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins Traceback (most recent call last):
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/tempest/test_discover/plugins.py", line 204, in register_plugin_opts
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins plug.obj.register_opts(conf)
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/cinder_tempest_plugin/plugin.py", line 49, in register_opts
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins config.register_opt_group(conf, config.service_available_group,
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/tempest/config.py", line 40, in register_opt_group
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins conf.register_opt(opt, group=getattr(opt_group, 'name', None))
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/oslo_config/cfg.py", line 2077, in __inner
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins result = f(self, *args, **kwargs)
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/oslo_config/cfg.py", line 2315, in register_opt
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins return group._register_opt(opt, cli)
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/oslo_config/cfg.py", line 1519, in _register_opt
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins if _is_opt_registered(self._opts, opt):
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins File "/usr/lib/python3.9/site-packages/oslo_config/cfg.py", line 356, in _is_opt_registered
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins raise DuplicateOptError(opt.name)
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins oslo_config.cfg.DuplicateOptError: duplicate option: barbican
2022-09-28 08:09:14.978 5682 ERROR tempest.test_discover.plugins
2022-09-28 08:09:14.981 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: patrole_tests
2022-09-28 08:09:14.981 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: vitrage_tests
2022-09-28 08:09:14.982 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: sahara_tempest_tests
2022-09-28 08:09:14.982 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: novajoin_tests
2022-09-28 08:09:14.982 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: zaqar_tests
2022-09-28 08:09:14.982 5682 INFO tempest.test_discover.plugins [-] Register additional config options from Tempest plugin: magnum_tests
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: heat
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: networking_l2gw_tempest_plugin
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: designate
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: kuryr_tempest_tests
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: octavia-tempest-plugin
2022-09-28 08:09:14.983 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: watcher_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: telemetry_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: manila_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: ironic_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: keystone_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: neutron_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: murano_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: trove_tests
2022-09-28 08:09:14.984 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: mistral_test
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: barbican_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: cinder_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: patrole_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: vitrage_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: sahara_tempest_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: novajoin_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: zaqar_tests
2022-09-28 08:09:14.985 5682 INFO tempest.test_discover.plugins [-] List additional config options registered by Tempest plugin: magnum_tests
2022-09-28 08:09:15.004 5682 ERROR tempest [-] Directory you are trying to initialize already exists and is not empty: /tmp/test: OSError: Directory you are trying to initialize already exists and is not empty: /tmp/test
This issue was fixed in the openstack/ cinder- tempest- plugin 1.7.2 release.