blob: b2049bcfae3f350bf9e5daef938b5f0c569b3589 [file] [log] [blame]
Ethan Lynn2906f882018-01-15 10:32:43 +08001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (c) 2017-2018 VMware, Inc.
4
liangked632f7f2017-10-13 17:10:50 +08005=====================================
6ONAP MultiCloud Heat Deployment Guide
7=====================================
8
9Prerequisites
10~~~~~~~~~~~~~
11
Eric Debeau9c7964a2017-11-03 09:44:11 +0000121. A VIO platform install with nova, keystone, horizon, image,
13neutron and heat service, make sure floating ip is work.
liangked632f7f2017-10-13 17:10:50 +080014
Eric Debeau9c7964a2017-11-03 09:44:11 +0000152. A local host as OpenStack client cloud access OpenStack platform,
16install python, python-pip, virtualenv, python-openstackclient,
liangked632f7f2017-10-13 17:10:50 +080017python-heatclient.
18
19
20
21
22Export os enviroment
23~~~~~~~~~~~~~~~~~~~~
24
25we'll need to create a file call admin.rc with following content
26
27keystone version 2.0 Example:
28
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080029.. code-block:: console
30
31 export OS_AUTH_URL=https://identity.api.opentack.com/v2.0/
32 export OS_USERNAME=UserName
33 export OS_TENANT_ID=TenantID
34 export OS_REGION_NAME=RegionID
35 export OS_PASSWORD=Password
36 export OS_IDENTITY_API_VERSION=2
liangked632f7f2017-10-13 17:10:50 +080037
38keystone version 3.0 Example:
39
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080040.. code-block:: console
liangked632f7f2017-10-13 17:10:50 +080041
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080042 export OS_AUTH_URL=https://identiy.api.openstack.com/v3/
43 export OS_PROJECT_ID=ProjectID
44 export OS_PROJECT_NAME=ProjectName
45 export OS_USER_DOMAIN_NAME=DomainName
46 export OS_USERNAME=UserName
47 export OS_PASSWORD=Password
48 if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi
49
50 # unset v2.0 items in case set
51 unset OS_TENANT_ID
52 unset OS_TENANT_NAME
liangked632f7f2017-10-13 17:10:50 +080053
54
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080055 export OS_IDENTITY_API_VERSION=3
liangked632f7f2017-10-13 17:10:50 +080056
57
58
59
60Get VIO pem
61~~~~~~~~~~~~~
62
63Get a copy of vio.pem in load balancer vms(/etc/ssl/vio.pem) in local
64host, then add the following line to your admin.rc file:
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080065
66.. code-block:: console
67
68 export OS_CACERT=/your/path/vio.pem
liangked632f7f2017-10-13 17:10:50 +080069
70
71
72
73Deploy the ONAP
74~~~~~~~~~~~~~~~~
75
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080076get onap heat files from git repo::
liangked632f7f2017-10-13 17:10:50 +080077
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080078 git clone http://<your-account>@gerrit.onap.org/r/a/demo
79
80we will use onap_opentack_float.yaml and onap_openstack_float.env heat
81templates at ./demo/heat/ONAP/ dirctory.
liangked632f7f2017-10-13 17:10:50 +080082
83Set env options in onap_openstack_float.env according to VIO platform env,
84Finally, heat enviroment contains correct parameters.
85
86Next source the admin.rc file to create shell environment variables we nedd.
87
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080088.. code-block:: console
89
90 source admin.rc
liangked632f7f2017-10-13 17:10:50 +080091
92Then create heat stack
93
Ethan Lynnb3e79cc2018-06-05 17:26:55 +080094.. code-block:: console
95
96 openstack stack create -t onap_openstack_float.yaml -e onap_openstack_float.env ONAP
liangked632f7f2017-10-13 17:10:50 +080097
98This process will take several minutes to spin up
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121