summaryrefslogtreecommitdiffstats
path: root/meta-openstack/Documentation/testsystem/README
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-05-21 14:35:15 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-23 23:42:55 -0400
commitfb1d6f23fa01c0217ed3f6778d8033dd0030db2a (patch)
tree36dc89d6b66050a56cbca2f2f7c90229ebcb8854 /meta-openstack/Documentation/testsystem/README
parent6350b155270f7f086624db36ecc6e6008ebcd378 (diff)
downloadmeta-cloud-services-fb1d6f23fa01c0217ed3f6778d8033dd0030db2a.tar.gz
Testing documentation
Add documentation for testing swift, ceph, heat. Create a script and instructions on a script that launches a controller and a specified number of compute nodes. Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/Documentation/testsystem/README')
-rw-r--r--meta-openstack/Documentation/testsystem/README116
1 files changed, 116 insertions, 0 deletions
diff --git a/meta-openstack/Documentation/testsystem/README b/meta-openstack/Documentation/testsystem/README
new file mode 100644
index 0000000..ddbc51d
--- /dev/null
+++ b/meta-openstack/Documentation/testsystem/README
@@ -0,0 +1,116 @@
1OpenStack: Minimally Viable Test System
2
3Usage:
4 <script> [config file] [start|stop|restart]
5
6This test harness creates a virtual network and the specified virtual
7domains enabling the user to create a test system for openstack.
8
9Arguments:
10 config file: this configuration file specifies the test system
11 to create, see below for details
12 start|stop|restart:
13 start - starts specifies test system
14 stop - stops specifies test system
15 restart - reboots specifies test system
16
17Note: On some systems, there may be issues with restart, to workaround, use start with
18 auto_destroy enabled.
19
20Virtual Network
21---------------
22
23This test harness creates a virtual network (ops_default) using the
24network specified in the configuration file.
25e.g.
26[main]
27network: 192.168.122.1
28
29The script tries to create the virtual network using virbr0, but if this is
30in use, then it will retry at virbr1, virbr2, .... etc until it finds one or
31it gives up after a number of attempts.
32
33
34Virtual Domains
35---------------
36
37The script then creates a controller using the specified kernel and disk image
38e.g.
39[controller]
40kernel: /root/images/bzImage
41disk: /root/images/controller.ext3
42
43The script then creates compute nodes by using a section header starting with
44the string "compute" along with kernel(s)/disk image(s).
45
46e.g.
47[compute0]
48kernel: /root/images/bzImage
49disk: /root/images/compute1.ext3
50
51[compute1]
52kernel: /root/images/bzImage
53disk: /root/images/compute2.ext3
54
55
56IP address assignments
57----------------------
58There is an auto_assign_ip variable under the section main.
59ie
60[main]
61auto_assign_ip: False
62
63This value, if True, causes the kernel to be pass ip=dhcp in the kernel's
64boot parameters.
65
66If the value is False, the each controller and compute section will be
67required to have a value defined for ip.
68
69ie.
70[compute0]
71kernel: /root/images/bzImage
72disk: /root/images/compute1.ext3
73ip: 192.168.122.10
74
75
76Other
77-----
78
79The configuration file also specifies the emulator to be used
80for the domains:
81e.g.
82[main]
83emulator: /usr/bin/qemu-system-x86_64
84
85The configuration file also specifies an auto_destroy option
86e.g.
87[main]
88auto_destroy: True
89
90If auto_destroy is enabled (True), if the required controller/compute nodes
91are running, then the script will automatically destroy the running domains.
92Otherwise, if disabled (False), then the script will display a message that the
93domain is active and exit. (auto_destroy is only used when starting systems)
94
95
96Example configuration file
97--------------------------
98[main]
99network: 192.168.122.1
100emulator: /usr/bin/qemu-system-x86_64
101auto_destroy: True
102auto_assign_ip: True
103
104[controller]
105kernel: /root/images/bzImage
106disk: /root/images/controller.ext3
107
108[compute0]
109kernel: /root/images/bzImage
110disk: /root/images/compute1.ext3
111
112[compute1]
113kernel: /root/images/bzImage
114disk: /root/images/compute2.ext3
115-------------------------------------------------
116