当前位置:网站首页>salt常见问题
salt常见问题
2022-07-25 09:25:00 【温殿飞】
常见问题解决
1. 为保险起见,执行测试命令前可先测试salt服务器到目标机器的连通性,如:
sudo salt -C '[email protected],gslbprdapp215' test.ping
2. 如果此命令长时间无输出,可ctrl+c终止命令,并尝试重新执行。
3.test.ping输出Minion did not return. [No response]问题:
依次尝试下述方法,然后再次使用
sudo salt -C '[email protected],gslbprdapp215' test.ping 进行测试
a. 方法一:重启salt-master
salt-master(10.108.43.38)上执行:/etc/init.d/salt-master restart
b. 方法二:master上重新认证minion
salt-master(10.108.43.38)上删除minion:salt-key -d gslbprdapp222,输入y确认删除。gslbprdapp222是要删除的minion id。
salt-minon上执行:rm -rf /etc/salt/pki;rm -rf /etc/salt/minion_id;rm -rf /var/cache/salt/*;service salt-minion restart;
c. 方法三:salt-master删除历史jobs后重启
salt-master(10.108.43.38)上执行:rm -rf /var/cache/salt/master/jobs/* 然后重启 /etc/init.d/salt-master restart
d. 方法四:salt-master上检查minion的id是否已被Accepted
如果minion的id在Denied Keys、Unaccepted Keys或Rejected Keys下,重新执行方法二
e. 方法五:salt-minon debug方式启动分析定位
salt-minon上执行:/etc/init.d/salt-minion stop && salt-minion -l debug
salt-master上执行: satl gslbprdapp222 test.ping
minion上查看debug信息中是否有明显异常,如果有解决。
salt-master上日志路径:/data/salt/log/master
f. 方法六:检查salt及依赖软件版本
上述五种方法都不行的话,对比test.ping失败和成功的2台minion端salt及其依赖软件版本是否一致,不一致则删除后重新安装
rpm -qa | grep salt
rpm -qa | grep python-crypto
rpm -qa | grep python-zmq
边栏推荐
- MLX90640 红外热成像仪测温模块开发笔记(四)
- Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (III)
- ¥ 1-2 example 2.2 put the union of two sets into the linear table
- Coredata storage to do list
- Eco introduction
- CCF 201503-3 Festival
- ESP32定时中断实现单、双击、长按等功能的按键状态机Arduino代码
- 代码整洁之道--直击痛点
- MLX90640 红外热成像仪测温模块开发说明
- Segmentation based deep learning approach for surface defect detection
猜你喜欢

Mlx90640 infrared thermal imager temperature measurement module development notes (I)

rospy Odometry天坑小计

Exciting method and voltage of vibrating wire sensor by hand-held vibrating wire acquisition instrument

看一个双非二本(0实习)大三学生如何拿到阿里、腾讯的offer

First knowledge of opencv4.x ---- mean filtering

【RNN】剖析RNN 之 从RNN-(Simple|LSTM) 到 序列生成 再到 seq2seq框架(encoder-decoder,或称为seq2seq)

SD/SDIO/EMMC

安装 oh my zsh

TensorFlow raw_ RNN - implement the seq2seq mode to take the output of the previous time as the input of the next time

@5-1 CCF 2019-12-1 reporting
随机推荐
First knowledge of opencv4.x ---- mean filtering
Mlx90640 infrared thermal imager temperature measurement module development notes (V)
ROS分布式操作--launch文件启动多个机器上的节点
SD/SDIO/EMMC
@5-1 CCF 2019-12-1 reporting
js利用requestAnimationFrame实时检测当前动画的FPS帧率
TensorFlow raw_ RNN - implement the seq2seq mode to take the output of the previous time as the input of the next time
NPM详解
ADC介绍
[Android studio] batch data import to Android local database
Introduction to arm GIC
概率论与数理统计 4 Continuous Random Variables and Probability Distributions(连续随机变量与概率分布)(上篇)
看一个双非二本(0实习)大三学生如何拿到阿里、腾讯的offer
Linked list -- basic operation
CCF 201509-4 Expressway
CCF 201503-4 network delay
MVC三层架构理解
严重 [main] org.apache.catalina.util.LifecycleBase.handleSubClassException 初始化组件
Eco introduction
小程序调起微信支付