saltstack 执行cp.get_file没有反应,salt-minion-The Salt Master has rejected this minion's
2017-03-21 19:48
591 查看
本来很感谢互联网,在实际工作中,互联网帮助了我解决了好多工作中遇到的问题,无论是交换网络、软件技术等等。
但是,真如也是其他说的,中国大陆的学习资料都是你抄我我抄你的,网上一大抄,所以基于这个,我自己发布文章也是根据网上没有的,但自己又你能解决的。
首先,安装好了salt-master之后,自己测试的6台macmini改造的centos6.5的系统,都已经成功对接成功了。
但是,问题就来了,其他命令,例如 salt “*” cmd.run "date"这些命令都正常,salt “*” cp.get_url这个也正常,就是 salt “*” cp.get_file和cp.get_url怎么尝试,salt “*” cp.get_file salt://helloworld.sh /root/helloworld.sh
都只是返回空消息。。
/etc/salt/master里面的file_roots也设置好了 /srv/salt这个文件夹,里面也放置了文件,就是怎么操作,都没反应。
后来,用yum remove 删除了salt-master,然后删除好所有与salt的文件之后,然后重新安装就可以了。
还有,如果突然间,换了salt-master服务器的话,salt-minion如果不修改,只是修改/etc/salt/minion里面的master:IP地址的话,会出现salt-minion-The Salt Master has rejected this minion's 提示。
这个时候,你得到你的/etc/salt/pki/minion文件夹里面,删除minion_master.pub,然后重新开启salt-minion服务就可以了。
另外,我自己犯的错,就是错在,我不知道如何锁住了/etc/salt/minion里面的minion.pub文件,我自己打开这个文件的时候是一篇空白的,所以每次虽然在master端,可以收到minion发过来的验证要求,并且提示成功接收,但是用 salt “*” test.ping命令却提示no response。
所以,这个时候,把minion.pub和minion.pem删除,然后用命令 salt-minion -l debug运行一次,然后服务端这个是接受minion的请求,minion端就成功了。
但是,真如也是其他说的,中国大陆的学习资料都是你抄我我抄你的,网上一大抄,所以基于这个,我自己发布文章也是根据网上没有的,但自己又你能解决的。
首先,安装好了salt-master之后,自己测试的6台macmini改造的centos6.5的系统,都已经成功对接成功了。
但是,问题就来了,其他命令,例如 salt “*” cmd.run "date"这些命令都正常,salt “*” cp.get_url这个也正常,就是 salt “*” cp.get_file和cp.get_url怎么尝试,salt “*” cp.get_file salt://helloworld.sh /root/helloworld.sh
都只是返回空消息。。
/etc/salt/master里面的file_roots也设置好了 /srv/salt这个文件夹,里面也放置了文件,就是怎么操作,都没反应。
后来,用yum remove 删除了salt-master,然后删除好所有与salt的文件之后,然后重新安装就可以了。
还有,如果突然间,换了salt-master服务器的话,salt-minion如果不修改,只是修改/etc/salt/minion里面的master:IP地址的话,会出现salt-minion-The Salt Master has rejected this minion's 提示。
这个时候,你得到你的/etc/salt/pki/minion文件夹里面,删除minion_master.pub,然后重新开启salt-minion服务就可以了。
另外,我自己犯的错,就是错在,我不知道如何锁住了/etc/salt/minion里面的minion.pub文件,我自己打开这个文件的时候是一篇空白的,所以每次虽然在master端,可以收到minion发过来的验证要求,并且提示成功接收,但是用 salt “*” test.ping命令却提示no response。
所以,这个时候,把minion.pub和minion.pem删除,然后用命令 salt-minion -l debug运行一次,然后服务端这个是接受minion的请求,minion端就成功了。
相关文章推荐
- FCKeditor关于图片上传出现错误“ 提示没有权限 Type=Image” 以及出现"this connector is disabled Please check the"editor/filemanager/connectors/aspx/conf
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”
- The Salt Master has cached the public key
- 解决用户执行sudo 报错:xxx is not in the sudoers file. This incident will be reported
- centos6.5使用yum安装saltstack-之salt-master salt-minion
- 在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unu
- file_get_contents: 由于连接方在一段时间后没有正确答复或连接的主机没有反应
- 一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported
- A slave with the same server_uuid as this slave has connected to the master
- SharePoint Designer Check In and Check Out Error – Cannot perform this operation.The file is no longer check out or has been del
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- SharePoint Designer Can not perform this operation.The file is no longer checked out or has been del
- 在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unu
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”错误的处理
- saltstack的常用操作(一)——salt-master和salt-minion 的安装和链接
- centos6.5使用yum安装saltstack-之salt-master salt-minion
- 写的手机安全卫士程序, 当服务器没有开启.程序执行到if(conn.getResponseCode() == 200)即conn.getResponseCode()时没反应了.
- saltstack同步文件--saltstack cp.get_file(三)
- php binary path: the path to your php binary file (may require a php recompile to get this file)
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”错误的处理