b6076eb98cdba2c0f1e4de79328966f8ce05f002
[bottlenecks.git] / utils / infra_setup / README.rst
1 ==================
2 Infra Setup Guide
3 ==================
4
5 This document gives the guide of how to set up the infrastructure for the use of bottlenecks test cases.
6
7 Create Instances for the Applications
8 =====================================
9
10 Firstly, there is a need to set up several instances for the applications which will be installed.
11
12 The script create_instances.sh will set up several instances, the parameters used in this script can be obtained according to the following,
13
14 Parameter $OPENRC_PATH is the path of where your admin-openrc.sh located, which includes the username and password of your openstack. Other parameters can be obtained under your openstack CLI as listed below,
15
16 +-------------+----------------------+
17 | parameter   | commond line commond |
18 +=============+======================+
19 | NET_ID      | neutron net-list     |
20 +-------------+----------------------+
21 | FLAVOR_TYPE | nova flavor-list     |
22 +-------------+----------------------+
23 | IMAGE_ID    | nova image-list      |
24 +-------------+----------------------+
25 | SEC_GROUP   | nova secgroup-list   |
26 +-------------+----------------------+
27
28 Add Floating IPs for the Instances
29 ===================================
30
31 Check the available floating IPs::
32
33  nova floating-ip-list
34
35 Check the status of the instances created::
36
37  nova list
38
39 If there're no available floating IPs, to create one::
40
41  nova floating-ip-create <ext_net_name>
42
43 replace <ext_net_name> with the external network in your environment.
44
45 Associate the floating IP address with the instance::
46
47  nova add-floating-ip <instance name or ID> <allocated_floating_IP>
48
49
50 **Documentation tracking**
51
52 Revision: _sha1_
53
54 Build date:  _date_