centos - salt-minion 启动报错“ global name 'RSA' is not defined”

 c23235857 发布于 2022-10-29 19:54

最近折腾 salt-minion ,用的是综合安装(胡乱安装,有些是源码,有些是 RPM 包安装),终于装完所有包,启动的时候却提示
salt-minion -l debug 提示:
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: GDZJ-MS-MMDS-SV04-GET04
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO ] Setting up the Salt Minion "GDZJ-MS-MMDS-SV04-GET04"
[DEBUG ] Created pidfile: /var/run/salt-minion.pid
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Attempting to authenticate with the Salt Master at 192.168.70.1
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'GDZJ-MS-MMDS-SV04-GET04', 'tcp://192.168.70.1:4506')
[INFO ] Generating keys: /etc/salt/pki/minion
[INFO ] The salt minion is shut down
[ERROR ] global name 'RSA' is not defined
[WARNING ] Restarting minion
[INFO ] Sleeping random_reauth_delay of 6 seconds
日志的提示:
016-02-24 15:08:26,229 salt.scripts [162651] global name 'RSA' is not defined
2016-02-24 15:08:26,229 salt.scripts [162651] Restarting minion
2016-02-24 15:08:33,523 salt.scripts [162671] global name 'RSA' is not defined
2016-02-24 15:08:33,523 salt.scripts [162671] Restarting minion
2016-02-24 15:08:34,811 salt.scripts [162692] global name 'RSA' is not defined
2016-02-24 15:08:34,812 salt.scripts [162692] * Restarting minion ^C
2016-02-24 15:08:44,104 salt.scripts [162712] global name 'RSA' is not defined
2016-02-24 15:08:44,105 salt.scripts [162712] Restarting minion *
2016-02-24 15:08:50,394 salt.scripts [162732] global name 'RSA' is not defined
2016-02-24 15:08:50,394 salt.scripts [162732] Restarting minion
求破!

1 个回答
  • salt-minion启动时需要使用到RSA,可以测试一下:

    #python
    >>>from M2Crypto import RSA

    是否一样的报错,如果是,请安装

    yum install m2crypto

    ,如果已经安装,可能是你python的环境发生了变化,请测试好m2crypto模块就可以了

    2022-10-31 01:15 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有