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