Merge "Change PTL informatin in INFO"
[bottlenecks.git] / utils / infra_setup / README.rst
1 ..
2 .. image:: ../etc/opnfv-logo.png
3   :height: 40
4   :width: 200
5   :alt: OPNFV
6   :align: left
7 ..
8 |
9 |
10 Infra Setup Guide
11 ==================
12
13 This document gives the guide of how to set up the infrastructure for the use of bottlenecks test cases.
14
15 Create Instances for the Applications
16 =====================================
17
18 Firstly, there is a need to set up several instances for the applications which will be installed.
19
20 The script create_instances.sh will set up several instances, the parameters used in this script can be obtained according to the following,
21
22 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,
23
24 +-------------+----------------------+
25 | parameter   | commond line commond |
26 +=============+======================+
27 | NET_ID      | neutron net-list     |
28 +-------------+----------------------+
29 | FLAVOR_TYPE | nova flavor-list     |
30 +-------------+----------------------+
31 | IMAGE_ID    | nova image-list      |
32 +-------------+----------------------+
33 | SEC_GROUP   | nova secgroup-list   |
34 +-------------+----------------------+
35
36 Add Floating IPs for the Instances
37 ===================================
38
39 Check the available floating IPs
40
41 .. code-block:: bash
42
43     nova floating-ip-list
44
45 Check the status of the instances created
46
47 .. code-block:: bash
48
49     nova list
50
51 If there're no available floating IPs, to create one
52
53 .. code-block:: bash
54
55     nova floating-ip-create <ext_net_name>
56
57 replace <ext_net_name> with the external network in your environment.
58
59 Associate the floating IP address with the instance
60
61 .. code-block:: bash
62
63     nova add-floating-ip <instance name or ID> <allocated_floating_IP>
64
65
66 Revision: _sha1_
67
68 Build date:  |today|