Ethan Lynn | 2906f88 | 2018-01-15 10:32:43 +0800 | [diff] [blame] | 1 | .. 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 | |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 5 | ===================================== |
| 6 | ONAP MultiCloud Heat Deployment Guide |
| 7 | ===================================== |
| 8 | |
| 9 | Prerequisites |
| 10 | ~~~~~~~~~~~~~ |
| 11 | |
Eric Debeau | 9c7964a | 2017-11-03 09:44:11 +0000 | [diff] [blame] | 12 | 1. A VIO platform install with nova, keystone, horizon, image, |
| 13 | neutron and heat service, make sure floating ip is work. |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 14 | |
Eric Debeau | 9c7964a | 2017-11-03 09:44:11 +0000 | [diff] [blame] | 15 | 2. A local host as OpenStack client cloud access OpenStack platform, |
| 16 | install python, python-pip, virtualenv, python-openstackclient, |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 17 | python-heatclient. |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | Export os enviroment |
| 23 | ~~~~~~~~~~~~~~~~~~~~ |
| 24 | |
| 25 | we'll need to create a file call admin.rc with following content |
| 26 | |
| 27 | keystone version 2.0 Example: |
| 28 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 29 | .. 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 |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 37 | |
| 38 | keystone version 3.0 Example: |
| 39 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 40 | .. code-block:: console |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 41 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 42 | 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 |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 53 | |
| 54 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 55 | export OS_IDENTITY_API_VERSION=3 |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | Get VIO pem |
| 61 | ~~~~~~~~~~~~~ |
| 62 | |
| 63 | Get a copy of vio.pem in load balancer vms(/etc/ssl/vio.pem) in local |
| 64 | host, then add the following line to your admin.rc file: |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 65 | |
| 66 | .. code-block:: console |
| 67 | |
| 68 | export OS_CACERT=/your/path/vio.pem |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | Deploy the ONAP |
| 74 | ~~~~~~~~~~~~~~~~ |
| 75 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 76 | get onap heat files from git repo:: |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 77 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 78 | git clone http://<your-account>@gerrit.onap.org/r/a/demo |
| 79 | |
| 80 | we will use onap_opentack_float.yaml and onap_openstack_float.env heat |
| 81 | templates at ./demo/heat/ONAP/ dirctory. |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 82 | |
| 83 | Set env options in onap_openstack_float.env according to VIO platform env, |
| 84 | Finally, heat enviroment contains correct parameters. |
| 85 | |
| 86 | Next source the admin.rc file to create shell environment variables we nedd. |
| 87 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 88 | .. code-block:: console |
| 89 | |
| 90 | source admin.rc |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 91 | |
| 92 | Then create heat stack |
| 93 | |
Ethan Lynn | b3e79cc | 2018-06-05 17:26:55 +0800 | [diff] [blame] | 94 | .. code-block:: console |
| 95 | |
| 96 | openstack stack create -t onap_openstack_float.yaml -e onap_openstack_float.env ONAP |
liangke | d632f7f | 2017-10-13 17:10:50 +0800 | [diff] [blame] | 97 | |
| 98 | This 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 | |