Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: load_plugins() called twice #4

Open
dominikl opened this issue Mar 1, 2024 · 1 comment
Open

RuntimeError: load_plugins() called twice #4

dominikl opened this issue Mar 1, 2024 · 1 comment

Comments

@dominikl
Copy link
Member

dominikl commented Mar 1, 2024

Currently testing this with deploy-idr.sh script ./playbooks/deploy-idr.sh pilot-rocky9 deploy-pre, failing with:

...
PLAY [pilot-rocky9-omeroreadwrite-hosts] **************************************************************************************************************************************************

TASK [ome.storage_volume_initialise : storage volume | install xfs] ***********************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: RuntimeError: load_plugins() called twice
fatal: [2f5d1f82-2aad-433b-ab9f-98c5fe25ffa5]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3.9"}, "changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"master:/Users/dom/other/management_tools/mitogen/ansible_mitogen/runner.py\", line 978, in _run\n    self._run_code(code, mod)\n  File \"master:/Users/dom/other/management_tools/mitogen/ansible_mitogen/runner.py\", line 942, in _run_code\n    exec(code, vars(mod))\n  File \"master:/Users/dom/micromamba/envs/ansible/lib/python3.9/site-packages/ansible/modules/dnf.py\", line 1427, in <module>\n  File \"master:/Users/dom/micromamba/envs/ansible/lib/python3.9/site-packages/ansible/modules/dnf.py\", line 1416, in main\n  File \"master:/Users/dom/micromamba/envs/ansible/lib/python3.9/site-packages/ansible/modules/dnf.py\", line 1382, in run\n  File \"master:/Users/dom/micromamba/envs/ansible/lib/python3.9/site-packages/ansible/modules/dnf.py\", line 700, in _base\n  File \"/usr/lib/python3.9/site-packages/dnf/base.py\", line 307, in init_plugins\n    self._plugins._load(self.conf, disabled_glob, enable_plugins)\n  File \"/usr/lib/python3.9/site-packages/dnf/plugin.py\", line 134, in _load\n    raise RuntimeError(\"load_plugins() called twice\")\nRuntimeError: load_plugins() called twice\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP ********************************************************************************************************************************************************************************
2f5d1f82-2aad-433b-ab9f-98c5fe25ffa5 : ok=12   changed=0    unreachable=0    failed=1    skipped=5    rescued=0    ignored=0
@sbesson
Copy link
Member

sbesson commented Mar 1, 2024

Looking around, I found it is likekl related to our usage of mitogen in IDR rather than the role itself - see mitogen-hq/mitogen#832.

Looks like this has been addressed in mitogen 0.3.4 and we are using 0.3.3 so unless you object, I'd propose to
1- fetch the last tags in /~https://github.com/ome/mitogen
2- bump our submodule to use mitogen 0.3.4
3- see if the deployment goes beyond this task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants