Revision d0c8c01d qa/qa_env.py
b/qa/qa_env.py | ||
---|---|---|
42 | 42 |
"""Test availibility of Ganeti commands. |
43 | 43 |
|
44 | 44 |
""" |
45 |
cmds = ( ['gnt-backup', '--version'],
|
|
46 |
['gnt-cluster', '--version'],
|
|
47 |
['gnt-debug', '--version'],
|
|
48 |
['gnt-instance', '--version'],
|
|
49 |
['gnt-job', '--version'],
|
|
50 |
['gnt-node', '--version'],
|
|
51 |
['gnt-os', '--version'],
|
|
52 |
['ganeti-masterd', '--version'],
|
|
53 |
['ganeti-noded', '--version'],
|
|
54 |
['ganeti-rapi', '--version'],
|
|
55 |
['ganeti-watcher', '--version'],
|
|
56 |
['ganeti-confd', '--version'],
|
|
45 |
cmds = ( ["gnt-backup", "--version"],
|
|
46 |
["gnt-cluster", "--version"],
|
|
47 |
["gnt-debug", "--version"],
|
|
48 |
["gnt-instance", "--version"],
|
|
49 |
["gnt-job", "--version"],
|
|
50 |
["gnt-node", "--version"],
|
|
51 |
["gnt-os", "--version"],
|
|
52 |
["ganeti-masterd", "--version"],
|
|
53 |
["ganeti-noded", "--version"],
|
|
54 |
["ganeti-rapi", "--version"],
|
|
55 |
["ganeti-watcher", "--version"],
|
|
56 |
["ganeti-confd", "--version"],
|
|
57 | 57 |
) |
58 | 58 |
|
59 |
cmd = ' && '.join([utils.ShellQuoteArgs(i) for i in cmds])
|
|
59 |
cmd = " && ".join([utils.ShellQuoteArgs(i) for i in cmds])
|
|
60 | 60 |
|
61 |
for node in qa_config.get('nodes'):
|
|
61 |
for node in qa_config.get("nodes"):
|
|
62 | 62 |
AssertCommand(cmd, node=node) |
63 | 63 |
|
64 | 64 |
|
... | ... | |
66 | 66 |
"""ICMP ping each node. |
67 | 67 |
|
68 | 68 |
""" |
69 |
nodes = qa_config.get('nodes')
|
|
69 |
nodes = qa_config.get("nodes")
|
|
70 | 70 |
|
71 | 71 |
pingprimary = pingsecondary = "fping" |
72 | 72 |
if qa_config.get("primary_ip_version") == 6: |
Also available in: Unified diff