将节点升级到 Ubuntu 24.04 后,Rundeck 命令不再起作用

问题描述 投票:0回答:1

我使用 rundeck(安装在 Ubuntu 22.04 服务器上)在一些远程节点上运行命令。 不幸的是,计划的作业在已从 Ubuntu 22.04 升级到 Ubuntu 24.04 的节点上不再工作

我已经测试过在远程 Ubuntu 24.04 节点上运行简单的“uname -a”命令并收到以下错误:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' node01 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "module_stderr": "Shared connection to node01 closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 102, in <module>\r\n    _ansiballz_main()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 94, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 37, in invoke_module\r\n    from ansible.module_utils import basic\r\n  File \"/tmp/ansible_ansible.legacy.command_payload_11u5rz__/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/basic.py\", line 176, in <module>\r\nModuleNotFoundError: No module named 'ansible.module_utils.six.moves'\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1 } Failed: AnsibleError: ERROR: Ansible execution returned with non zero code. Execution failed: 1194949 in project Systems: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [node01: AnsibleError: ERROR: Ansible execution returned with non zero code. + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {node01=[AnsibleError: ERROR: Ansible execution returned with non zero code. + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, status: failed]

rundeck 服务器运行 Rundeck 版本 5.6.0、Ansible 版本 2.10.8 和 Python 3.10.12。
node01服务器运行Python 3.12.3

python ansible rundeck
1个回答
0
投票

你面临着这个。降级您的 Python 版本或尝试升级 Ansible 版本。

© www.soinside.com 2019 - 2024. All rights reserved.