Revision 8c4a9a74
b/qa/qa-sample.json | ||
---|---|---|
1 |
{ |
|
2 |
"name": "xen-test", |
|
3 |
"rename": "xen-test-rename", |
|
4 |
"hypervisor-type": "xen-3.0", |
|
5 |
|
|
6 |
"os": "debian-etch", |
|
7 |
"os-size": "10G", |
|
8 |
"swap-size": "1G", |
|
9 |
"mem": "512M", |
|
10 |
|
|
11 |
"nodes": [ |
|
12 |
{ |
|
13 |
"# Master node": null, |
|
14 |
"primary": "xen-test-0", |
|
15 |
"secondary": "192.168.1.1" |
|
16 |
}, |
|
17 |
|
|
18 |
{ |
|
19 |
"primary": "xen-test-1", |
|
20 |
"secondary": "192.168.1.2" |
|
21 |
} |
|
22 |
], |
|
23 |
|
|
24 |
"instances": [ |
|
25 |
{ |
|
26 |
"name": "xen-test-inst1" |
|
27 |
}, |
|
28 |
{ |
|
29 |
"name": "xen-test-inst2" |
|
30 |
} |
|
31 |
], |
|
32 |
|
|
33 |
"tests": { |
|
34 |
"env": true, |
|
35 |
"os": true, |
|
36 |
"tags": true, |
|
37 |
"rapi": true, |
|
38 |
|
|
39 |
"cluster-verify": true, |
|
40 |
"cluster-info": true, |
|
41 |
"cluster-burnin": true, |
|
42 |
"cluster-command": true, |
|
43 |
"cluster-copyfile": true, |
|
44 |
"cluster-master-failover": true, |
|
45 |
"cluster-destroy": true, |
|
46 |
"cluster-rename": true, |
|
47 |
|
|
48 |
"node-info": true, |
|
49 |
"node-volumes": true, |
|
50 |
"node-readd": true, |
|
51 |
|
|
52 |
"# This test needs at least three nodes": null, |
|
53 |
"node-evacuate": false, |
|
54 |
|
|
55 |
"# This test needs at least two nodes": null, |
|
56 |
"node-failover": false, |
|
57 |
|
|
58 |
"instance-add-plain-disk": true, |
|
59 |
"instance-add-drbd-disk": true, |
|
60 |
|
|
61 |
"instance-list": true, |
|
62 |
"instance-failover": true, |
|
63 |
"instance-info": true, |
|
64 |
"instance-modify": true, |
|
65 |
"instance-export": true, |
|
66 |
"instance-import": true, |
|
67 |
"instance-reinstall": true, |
|
68 |
"instance-reboot": true, |
|
69 |
"instance-shutdown": true, |
|
70 |
"instance-automatic-restart": false, |
|
71 |
"instance-consecutive-failures": false, |
|
72 |
|
|
73 |
"# This test might fail with certain hypervisor types, depending on whether": null, |
|
74 |
"# they support the `gnt-instance console' command.": null, |
|
75 |
"instance-console": false, |
|
76 |
|
|
77 |
"# Disabled by default because it takes rather long": null, |
|
78 |
"instance-replace-disks": false, |
|
79 |
|
|
80 |
"# Make sure not to include the disk(s) required for Dom0 to be included in": null, |
|
81 |
"# the volume group used for instances. Otherwise the whole system may stop": null, |
|
82 |
"# working until restarted.": null, |
|
83 |
"instance-disk-failure": false |
|
84 |
}, |
|
85 |
|
|
86 |
"options": { |
|
87 |
"burnin-instances": 2, |
|
88 |
"burnin-disk-template": "drbd" |
|
89 |
} |
|
90 |
} |
/dev/null | ||
---|---|---|
1 |
# Cluster name |
|
2 |
name: xen-test |
|
3 |
rename: xen-test-rename |
|
4 |
hypervisor-type: xen-3.0 |
|
5 |
|
|
6 |
# System to use |
|
7 |
os: debian-etch |
|
8 |
os-size: 10G |
|
9 |
swap-size: 1G |
|
10 |
mem: 512M |
|
11 |
|
|
12 |
# Nodes to use |
|
13 |
nodes: |
|
14 |
# Master node |
|
15 |
- primary: xen-test-0 |
|
16 |
secondary: 192.168.1.1 |
|
17 |
|
|
18 |
# Other nodes |
|
19 |
- primary: xen-test-1 |
|
20 |
secondary: 192.168.1.2 |
|
21 |
|
|
22 |
# Instance names to use |
|
23 |
instances: |
|
24 |
- name: xen-test-inst1 |
|
25 |
- name: xen-test-inst2 |
|
26 |
|
|
27 |
# Tests to run |
|
28 |
tests: |
|
29 |
env: True |
|
30 |
os: True |
|
31 |
tags: True |
|
32 |
rapi: True |
|
33 |
|
|
34 |
cluster-verify: True |
|
35 |
cluster-info: True |
|
36 |
cluster-burnin: True |
|
37 |
cluster-command: True |
|
38 |
cluster-copyfile: True |
|
39 |
cluster-master-failover: True |
|
40 |
cluster-destroy: True |
|
41 |
cluster-rename: True |
|
42 |
|
|
43 |
node-info: True |
|
44 |
node-volumes: True |
|
45 |
node-readd: True |
|
46 |
|
|
47 |
# This test needs at least three nodes |
|
48 |
node-evacuate: False |
|
49 |
|
|
50 |
# This test needs at least two nodes |
|
51 |
node-failover: False |
|
52 |
|
|
53 |
instance-add-plain-disk: True |
|
54 |
|
|
55 |
# Requires DRBD 8.x |
|
56 |
instance-add-drbd-disk: True |
|
57 |
|
|
58 |
instance-list: True |
|
59 |
instance-failover: True |
|
60 |
instance-info: True |
|
61 |
instance-modify: True |
|
62 |
instance-export: True |
|
63 |
instance-import: True |
|
64 |
instance-reinstall: True |
|
65 |
instance-reboot: True |
|
66 |
instance-shutdown: True |
|
67 |
instance-automatic-restart: False |
|
68 |
instance-consecutive-failures: False |
|
69 |
|
|
70 |
# This test might fail with certain hypervisor types, depending on whether |
|
71 |
# they support the `gnt-instance console' command. |
|
72 |
instance-console: False |
|
73 |
|
|
74 |
# Disabled by default because it takes rather long |
|
75 |
instance-replace-disks: False |
|
76 |
|
|
77 |
# Make sure not to include the disk(s) required for Dom0 to be included in |
|
78 |
# the volume group used for instances. Otherwise the whole system may stop |
|
79 |
# working until restarted. |
|
80 |
instance-disk-failure: False |
|
81 |
|
|
82 |
# Other settings |
|
83 |
options: |
|
84 |
burnin-instances: 2 |
|
85 |
burnin-disk-template: drbd |
b/qa/qa_config.py | ||
---|---|---|
24 | 24 |
""" |
25 | 25 |
|
26 | 26 |
|
27 |
import yaml
|
|
27 |
import simplejson
|
|
28 | 28 |
|
29 | 29 |
import qa_error |
30 | 30 |
|
... | ... | |
41 | 41 |
|
42 | 42 |
f = open(path, 'r') |
43 | 43 |
try: |
44 |
cfg = yaml.load(f.read())
|
|
44 |
cfg = simplejson.load(f)
|
|
45 | 45 |
finally: |
46 | 46 |
f.close() |
47 | 47 |
|
Also available in: Unified diff