aboutsummaryrefslogtreecommitdiffstats
path: root/docs/configguide/vmdeploy.rst
blob: 546936d717713f24f330f36b034ea32990463219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
.. This work is licensed under a Creative Commons Attribution 4.0 International Licence.
.. http://creativecommons.org/licenses/by/4.0
.. (c) by Weidong Shao (HUAWEI) and Justin Chi (HUAWEI)

Installation Guide (Virtual Deployment)
=======================================

Nodes Configuration (Virtual Deployment)
----------------------------------------

The below file is the inventory template of deployment nodes:

"compass4nfv/deploy/conf/vm_environment/huawei-virtual1/network.yml"

You can write your own address/roles reference to it.

        - name -- Host name for deployment node after installation.

        - roles -- Components deployed.


**Assignment of different roles to servers**

E.g. Openstack only deployment roles setting

.. code-block:: yaml

    hosts:
      - name: host1
        roles:
          - controller
          - ha

      - name: host2
        roles:
          - compute

NOTE:
IF YOU SELECT MUTIPLE NODES AS CONTROLLER, THE 'ha' role MUST BE SELECT, TOO.

E.g. Openstack and ceph deployment roles setting

.. code-block:: yaml

    hosts:
      - name: host1
        roles:
          - controller
          - ha
          - ceph-adm
          - ceph-mon

      - name: host2
        roles:
          - compute
          - ceph-osd

E.g. Openstack and ODL deployment roles setting

.. code-block:: yaml

    hosts:
      - name: host1
        roles:
          - controller
          - ha
          - odl

      - name: host2
        roles:
          - compute

E.g. Openstack and ONOS deployment roles setting

.. code-block:: yaml

    hosts:
      - name: host1
        roles:
          - controller
          - ha
          - onos

      - name: host2
        roles:
          - compute


Network Configuration (Virtual Deployment)
------------------------------------------

Before deployment, there are some network configuration to be checked based on your network topology.
Compass4nfv network default configuration file is "compass4nfv/deploy/conf/network_cfg.yaml".
You can write your own reference to it.

**The following figure shows the default network configuration.**

.. code-block:: console


      +--+                          +--+
      |  |                          |  |
      |  |      +------------+      |  |
      |  +------+  Jumphost  +------+  |
      |  |      +------+-----+      |  |
      |  |             |            |  |
      |  |             +------------+  |
      |  |                          |  |
      |  |      +------------+      |  |
      |  +------+    host1   +------+  |
      |  |      +------+-----+      |  |
      |  |             |            |  |
      |  |             +------------+  |
      |  |                          |  |
      |  |      +------------+      |  |
      |  +------+    host2   +------+  |
      |  |      +------+-----+      |  |
      |  |             |            |  |
      |  |             +------------+  |
      |  |                          |  |
      |  |      +------------+      |  |
      |  +------+    host3   +------+  |
      |  |      +------+-----+      |  |
      |  |             |            |  |
      |  |             +------------+  |
      |  |                          |  |
      |  |                          |  |
      +-++                          ++-+
        ^                            ^
        |                            |
        |                            |
      +-+-------------------------+  |
      |      External Network     |  |
      +---------------------------+  |
             +-----------------------+---+
             | PXE(Installation) Network |
             +---------------------------+


Start Deployment (Virtual Deployment)
-------------------------------------

1. Set OS version and OpenStack version for deployment nodes.

    Compass4nfv Colorado supports three OS version based openstack mitaka.

Ubuntu 14.04 mitaka:

.. code-block:: bash

    export OS_VERSION=trusty
    export OPENSTACK_VERSION=mitaka

Ubuntu 16.04 mitaka:

.. code-block:: bash

    export OS_VERSION=xenial
    export OPENSTACK_VERSION=mitaka_xenial

Centos 7 mitaka:

.. code-block:: bash

    export OS_VERSION=centos7
    export OPENSTACK_VERSION=mitaka

2. Set ISO image that you want to deploy

.. code-block:: bash

    export ISO_URL=file:///${YOUR_OWN}/compass.iso
    or
    export ISO_URL=http://artifacts.opnfv.org/compass4nfv/colorado/opnfv-colorado.1.0.iso

3. Run ``deploy.sh`` with inventory and network configuration

.. code-block:: bash

    ./deploy.sh --dha ${YOUR_OWN}/dha.yml --network ${YOUR_OWN}/network.yml

E.g.

1. nosdn-nofeature scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-nosdn-nofeature-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network.yml

2. ocl-nofeature scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-ocl-nofeature-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network_ocl.yml

3. odl_l2-moon scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-odl_l2-moon-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network.yml

4. odl_l2-nofeature scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-odl_l2-nofeature-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network.yml

5. odl_l3-nofeature scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-odl_l3-nofeature-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network.yml

6. onos-nofeature scenario deploy sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-onos-nofeature-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml

7. onos-sfc deploy scenario sample

.. code-block:: bash

    ./deploy.sh \
        --dha ./deploy/conf/vm_environment/os-onos-sfc-ha.yml \
        --network ./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml