Comments (4)
Ansible API主要是通Ansible的plugins插件方式,把请求传递给Ansible去执行,对吧?
Ansible API主要是通Ansible的plugins插件方式,把请求传递给Ansible去执行,对吧?
from ansible-api.
不完全是这样,ansible-api实现了ansible和ansbile-playbook的基本功能(重新用多线程模式把ansible的cli写了一次),然后通过借助他的task和callback机制来获取结构化返回数据。最后把这些操作封装成了http api
from ansible-api.
我通过官方的api,用两个线程同时跑两个playbook,第一次能正常运行(playbook按照设置的步骤失败),再次跑的时候就出现了 ' NoneType' object has no attribute 'name'的问题。总之要隔一段时间才能正常多线程跑,请问您遇到过这种问题吗?
from ansible-api.
@leoomo 是起了2个进程么 如果起了一个进程是没有问题的 ansible-api会使用线程池自己来控制多线程运行的 几百台server累计运行1年多 没有发现这个错误。从报错内容看,猜测是playbook的name属性没有了,如果传参没有问题,那很有可能就是你开了多个进程(不是线程)导致的
from ansible-api.
Related Issues (20)
- 不知道哪里出错了 HOT 2
- 调用接口,提示连接不上远程主机 HOT 1
- No file descriptors available HOT 1
- runner_config problem HOT 2
- Parameter-d does not take effect
- Error: Failed when parsing body as json HOT 1
- ERROR argument of type NoneType is not iterable HOT 7
- ERROR status_handler() got an unexpected keyword argument runner_config HOT 2
- MD5 should never be used for validation HOT 1
- WARNING - Unknown event name: verbose HOT 1
- The api.cfg log_path setting is not respected
- v0.5.1 is marked as a pre-release
- The parameter h is not applied in Playbook mode
- 58行时间是否用本地时间更好? HOT 1
- unsupported parameter for module: --exclude HOT 1
- 2.2版本不能执行脚本?
- 有个问题咨询下IP多的情况下慢 HOT 2
- 不能在B网段启动吗? HOT 2
- 启动报这个错误 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-api.