blob: f2444352895d309d4867d04d6544237d02f58091 [file] [log] [blame]
Sylvain Desbureaux43f527e2017-11-15 17:42:15 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 http://creativecommons.org/licenses/by/4.0
3 Copyright 2017 ONAP
4
5
6.. contents::
7 :depth: 2
8..
9
10=====================================
11**Setting Up Designate on Openstack**
12=====================================
13
14.. tip:: `Openstack Designate documentation <https://docs.openstack.org/designate/latest/index.html>` is an important starting point for configuring Designate. Here, the focus will be on designate for ONAP.
15
16**Designate Overview**
17======================
18Designate is a *DNS as a Service* components. It allows API based interaction with a DNS server.
19This DNS server can be any *well configured* DNS server.
20Designate allows to create **any** entries in the DNS and thus has to be used wisely (see `Designate Production Guidelines <https://docs.openstack.org/designate/latest/admin/production-guidelines.html>` to have a complete explanation).
21In order to be valuable, Designate must be plugged with a DNS Server that will be used:
22- your global (pool of) DNS Server(s). Every entries put by Designate will be seen by everybody. It may then be very dangerous.
23- a specific (pool of) DNS Server(s) for your openstack deployment. DNS resolution will work only for your VM. **This is the one that has been tested**.
24- a specific (pool of) DNS Server(s) for an openstack tenant. Not a lot of doc is available for that so this part won't be explained here.
25
26**Designate usage in ONAP**
27===========================
28
29Currently, only DCAE Gen2 deployment needs designate to work.
30DCAE deployment use cloudify with openstack plugin to start the needed VM for DCAE. In particular, Designate is used to give the IP address of consul server. Thus, the others VMs needs to access the DNS server where Designate push records.
31In order to do that, we'll have to deploy DNS Server(s), configure them to accept dns updates and configure our networks to point to this DNS.
32This Fow-To will use bind but you can change to any of the `proposed backends <https://docs.openstack.org/designate/latest/contributor/support-matrix.html>`.
33
34Limitations with heat automated deployment
35------------------------------------------
36The current design of HEAT installer installs DCAE needed VM into the same tenant of the same openstack of the other ONAP components. Thus, this openstack tenant must support Designate.
37
38Limitations with kubernetes automated deployment
39------------------------------------------------
40The current design of kubernetes deployment installs DCAE into any openstack instances in any tenant. It stills mandate designate on the tenant.
41
42**Quick Install Guide**
43=======================
44
45Few steps have to be performed. The detail of each steps are in `the config guide of Openstack Designate <https://docs.openstack.org/designate/latest/install/index.html>`:
46
471. Install bind9 nameserver
482. Configure it to accept dns updates and forward to your master DNS Server
493. Configure Designate in openstack
504. Create a pool pointing to your nameserver
51
52Now, when starting the HEAT Deployment, use this nameserver. When the stack heat has started, retrieve the random string (XXX in the example) and create the zone XXX.yourdomain (yourdomain is what you have filled in `dcae_domain` in onap_openstack.env).
53For OOM, use the DNS on the container host so it can give it to the relevant VM