- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我对嵌套节点组有一个奇怪的问题,因为我似乎无法定位它们。这是我的主配置文件的节点组部分:
/etc/salt/master:
nodegroups:
linuxlabs: 'E@^pubbox'
linuxtest: 'N@linuxlabs'
现在这是一个目标在嵌套节点组上失败的示例,尽管能够分别将父节点组和主机作为目标。
[root@salt-master ~]# salt 'pubbox10.example.com' test.ping
pubbox10.example.com:
True
[root@salt-master ~]# salt 'pubbox44.example.com' test.ping
pubbox44.example.com:
True
[root@salt-master ~]# salt -N linuxtest test.ping
pubbox10.example.com:
Minion did not return. [No response]
pubbox44.example.com:
Minion did not return. [No response]
[root@salt-master ~]# salt -N linuxlabs test.ping
pubbox44.example.com:
True
pubbox10.example.com:
True
添加“-l debug”或“-l trace”并没有真正揭示太多。实际上,在 -l 调试输出中,它表明嵌套节点组正在解析为其正确的主机名。在“-l trace”输出中,终端不断地收到相同消息的垃圾邮件:
[root@salt-master ~]# salt -N linuxtest test.ping -l trace
[DEBUG ] Reading configuration from /etc/salt/master
...
[DEBUG ] nodegroup_comp(linuxlabs) => ['(', 'E@^pubbox', ')']
[DEBUG ] nodegroup_comp(linuxtest) => ['(', '(', 'E@^pubbox', ')', ')']
...
[TRACE ] get_event() received = {'tag': 'salt/job/20160609132845009910/new', 'data': {'tgt_type': 'compound', 'jid': '20160
609132845009910', 'tgt': ['(', '(', 'E@^pubbox', ')', ')'], '_stamp': '2016-06-09T17:28:45.011228', 'user': 'root', 'arg': []
, 'fun': 'test.ping', 'minions': ['pubbox10.example.com', 'pubbox44.example.com']}}
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
...
^^ 此消息重复了 2000 多次,最终在几秒后结束:
...
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[TRACE ] _get_event() waited 0 seconds and received nothing
[DEBUG ] LazyLoaded no_return.output
[TRACE ] data = {'pubbox10.example.com': 'Minion did not return. [No response]'}
pubbox10.example.com:
Minion did not return. [No response]
[DEBUG ] LazyLoaded no_return.output
[TRACE ] data = {'pubbox44.example.com': 'Minion did not return. [No response]'}
pubbox44.example.com:
Minion did not return. [No response]
我在嵌套节点组上尝试了一些变体。例如,我没有让父级包含“E@”前缀,而是将其更改为“L@”并明确列出了主机名。相同的结果。
这是我的salt --versions-report:
[root@salt-master ~]# salt --versions-report
Salt Version:
Salt: 2015.8.10
Dependency Versions:
Jinja2: 2.8
M2Crypto: 0.24.0
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 15.2.0
Python: 2.7.11 (default, Mar 24 2016, 22:19:35)
RAET: 0.6.5
Tornado: 4.3
ZMQ: 4.1.4
cffi: 1.5.2
cherrypy: 3.2.3
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: 1.5.1
libgit2: Not Installed
libnacl: 1.4.4
msgpack-pure: Not Installed
msgpack-python: 0.4.7
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist:
machine: i86pc
release: 5.11
我是不是遇到了错误?还是我错误地配置了我的节点组?为了它的值(value),我检查了这个版本和当前版本的 Salt 之间的发行说明,没有找到任何关于解决嵌套节点组问题的信息。
最佳答案
这确实是一个错误。你介意在 SaltStack 的 github 问题跟踪器上打开一个问题吗? http://github.com/saltstack/salt/issues/new
谢谢!
关于python - 定位嵌套节点组失败并显示 "Minion did not return. [No response]",尽管主机响应如果通过其他标准定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37732774/
询问 unrelated question我有这样的代码: public boolean equals(Object obj) { if (this == obj) retur
在我之前的一个问题中 js: Multiple return in Ternary Operator我询问了有关使用三元运算符返回多个参数的问题。但是现在参数IsActveUser boolean(t
假设我有一个带有 return 的 if 语句。从效率的角度来看,我应该使用 if(A > B): return A+1 return A-1 或 if(A > B): return
例如考虑以下代码: int main(int argc,char *argv[]) { int *p,*q; p = (int *)malloc(sizeof(int)*10); q
PyCharm 对这段代码发出警告,说最后一个返回是不可访问的: def foo(): with open(...): return 1 return 0 如果 ope
我想实现这样的目标: 如果在返回 Json 的方法中抛出异常,则返回 new Json(new { success = false, error = "unknown"}); 但如果方法返回 View
它是多余的,但我正在学习 JS,我想知道它是如何工作的。 直接从模块返回函数 let func1 = function () { let test = function () {
我不明白我应该使用什么。我有两页 - intro.jsp(1) 和 booksList.jsp(2)。我为每一页创建了一个 Controller 类。第一页有打开第二页的按钮:
我最近在 Joomla 组件(Kunena,更准确地说是 Kunena)中看到这段代码,那么使用 $this->return VS 简单的 return 语句有什么区别. 我已经用谷歌搜索了代码,但没
我的类实现了 IEnumerable。并且可以编译这两种方式来编写 GetEnumerator 方法: public IEnumerator GetEnumerator() { yield r
我只是在编码,我想到了一个简单的想法(显然是问题),如果我有一个像这样的函数: int fun1(int p){ return(p); } 我有一个这样的函数: int fun1(int p){
这个问题在这里已经有了答案: What does the comma operator do in JavaScript? (5 个答案) 关闭 9 年前。 function makeArray
假设我写了一个 for 循环,它将输出所有数字 1 到 x: x=4 for number in xrange(1,x+1): print number, #Output: 1 2 3 4 现
我最近在这个 Apache Axis tutorial example. 中看到了下面的一段代码 int main() { int status = AXIS2_SUCCESS; ax
function a(){ return{ bb:"a" } } and function a(){ return { bb:"a" } } 这两个代码有什么区别吗,如果有请
function a() { return 1; } function b() { return(1); } 我在 Chrome 的控制台中测试了上面的代码,都返回了 1。 function c()
考虑这三个函数: def my_func1(): print "Hello World" return None def my_func2(): print "Hello World"
这可能是一个愚蠢的问题,但我正在努力,如果有一种简明的方法来测试函数的返回结果,如果它不满足条件,则返回该值(即,传递它)。。现在来回答一个可能的问题,是的,我正在寻找的类似于例外提供的东西。然而,作
我正在测试一个函数,并尝试使用 return 来做什么,并在 PowerShell 5.1 和 PwSh 7.1 中偶然发现了一个奇怪的问题,即 return cmdlet似乎不适合在团体中工作: P
这个问题已经有答案了: Return in generator together with yield (2 个回答) Why can't I use yield with return? (5 个回
我是一名优秀的程序员,十分优秀!