User Tools

Site Tools


openstack_with_kolla

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openstack_with_kolla [2017/06/24 19:08] herwarthopenstack_with_kolla [2017/08/15 18:00] (current) herwarth
Line 442: Line 442:
  
 # Helux # Helux
-helux = chrony,cinder,cron,designate,fluentd,glance,heat,heka,haproxy,horizon,iscsid,keepalived,keystone,kolla-toolbox,mariadb,memcached,mongodb,neutron,nova,openvswitch,rabbitmq+helux = chrony,cinder,cron,designate,fluentd,glance,heat,heka,haproxy,horizon,iscsid,keepalived,keystone,kolla-toolbox,linuxbridge,mariadb,memcached,mongodb,neutron,nova,openvswitch,rabbitmq,tgtd
 </code> </code>
 ====Passwords==== ====Passwords====
Line 533: Line 533:
 The ansible scripts use the /etc/kolla directory to configure customer specific parts of Openstack. The ansible scripts use the /etc/kolla directory to configure customer specific parts of Openstack.
   mkdir -p /etc/kolla/config/keystone/domains   mkdir -p /etc/kolla/config/keystone/domains
 +===Own signed certificates===
 +  mkdir /etc/kolla/certificates
 +Create haproxy-ca.pem containg root CA certificate and create haproxy.pem containing the private key and certificate concatenated.
 +<code>
 +ls -l /etc/kolla/certificates/
 +total 8
 +-rw-r--r-- 1 root root 1192 Jun 20 17:44 haproxy-ca.pem
 +-rw-r----- 1 root root 2205 Jun 20 18:18 haproxy.pem
 +</code>
 I use NFS storage so create a file with the NFS share info.  I use NFS storage so create a file with the NFS share info. 
 <code - /etc/kolla/config/nfs_shares.j2> <code - /etc/kolla/config/nfs_shares.j2>
Line 548: Line 557:
 We are going to deploy on multiple nodes so copy the example over We are going to deploy on multiple nodes so copy the example over
   cp /usr/share/kolla-ansible/ansible/inventory/multinode /etc/kolla/   cp /usr/share/kolla-ansible/ansible/inventory/multinode /etc/kolla/
-I did some ajustments+Change matching environment:
 <code - /etc/kolla/multinode> <code - /etc/kolla/multinode>
 [control] [control]
Line 700: Line 709:
 openstack network create --provider-network-type vxlan demo-net openstack network create --provider-network-type vxlan demo-net
 openstack subnet create --subnet-range 10.0.0.0/24 --network demo-net \ openstack subnet create --subnet-range 10.0.0.0/24 --network demo-net \
-    --gateway 10.0.0.1 --dns-nameserver 8.8.8.8 demo-subnet+    --gateway 10.0.0.1 demo-subnet
  
 openstack router create demo-router openstack router create demo-router
Line 816: Line 825:
 </code> </code>
   kolla-ansible reconfigure -i /etc/kolla/multinode --tags designate   kolla-ansible reconfigure -i /etc/kolla/multinode --tags designate
 +Now we are going to create a DNS domain and add network demo-net to the domain.
 <code> <code>
-neutron net-list+[root@kolla ~]# neutron net-list
 +--------------------------------------+----------+----------------------------------+----------------------------------------------------+ +--------------------------------------+----------+----------------------------------+----------------------------------------------------+
 | id                                   | name     | tenant_id                        | subnets                                            | | id                                   | name     | tenant_id                        | subnets                                            |
Line 824: Line 834:
 | 5293f890-079b-497c-b09b-914c3ef9d740 | public   | f01d9fc8069241b5b217e30ab9078294 | e182e72d-fa34-4963-bcb3-d3ae0fa7e1eb 172.16.3.0/24 | | 5293f890-079b-497c-b09b-914c3ef9d740 | public   | f01d9fc8069241b5b217e30ab9078294 | e182e72d-fa34-4963-bcb3-d3ae0fa7e1eb 172.16.3.0/24 |
 +--------------------------------------+----------+----------------------------------+----------------------------------------------------+ +--------------------------------------+----------+----------------------------------+----------------------------------------------------+
 +</code>
 +<code>
 [root@kolla ~]# neutron net-update 3ae68d4d-b123-4604-b003-c340d43c542a --dns_domain openstack.helux.nl. [root@kolla ~]# neutron net-update 3ae68d4d-b123-4604-b003-c340d43c542a --dns_domain openstack.helux.nl.
 Updated network: 3ae68d4d-b123-4604-b003-c340d43c542a Updated network: 3ae68d4d-b123-4604-b003-c340d43c542a
 +</code>
 +<code>
 [root@kolla ~]# neutron net-show 3ae68d4d-b123-4604-b003-c340d43c542a [root@kolla ~]# neutron net-show 3ae68d4d-b123-4604-b003-c340d43c542a
 +---------------------------+--------------------------------------+ +---------------------------+--------------------------------------+
Line 855: Line 869:
 | updated_at                | 2017-06-24T16:34:41Z                 | | updated_at                | 2017-06-24T16:34:41Z                 |
 +---------------------------+--------------------------------------+ +---------------------------+--------------------------------------+
 +</code>
 +<code>
 [root@kolla ~]# openstack recordset list openstack.helux.nl. [root@kolla ~]# openstack recordset list openstack.helux.nl.
 +--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+ +--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+
Line 863: Line 879:
 |                                      |                                |      | 1498322265 3550 600 86400 3600              |        |        | |                                      |                                |      | 1498322265 3550 600 86400 3600              |        |        |
 +--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+ +--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+
 +</code>
 +After creating some instances DNS is automatically provisioned:
 +<code>
 ++--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+
 +| id                                   | name                           | type | records                                     | status | action |
 ++--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+
 +| 00c1fb58-b504-4038-9f4f-fba1947e8417 | openstack.helux.nl.            | NS   | openstack.helux.nl.                         | ACTIVE | NONE   |
 +| 89a3bcd3-ebec-4a0d-9ab2-dd1aeac95913 | openstack.helux.nl.            | SOA  | openstack.helux.nl. info.helux.nl.          | ACTIVE | NONE   |
 +|                                      |                                |      | 1498328424 3550 600 86400 3600              |        |        |
 +| 02089897-050d-4bd9-9bf6-ce599898c332 | 10-1-0-8.openstack.helux.nl.   | A    | 10.1.0.8                                    | ACTIVE | NONE   |
 +| 6bfd53b1-9302-4592-b3bf-a83fa7cd31dc | test1.openstack.helux.nl.      | A    | 10.1.0.8                                    | ACTIVE | NONE   |
 +| 75ddff18-b2ee-4c1f-8a42-5d69d84cdb03 | test1.None.openstack.helux.nl. | A    | 10.1.0.8                                    | ACTIVE | NONE   |
 +| 0bcee6fe-13db-4cfa-ac04-34b9cf549bf2 | test2.openstack.helux.nl.      | A    | 10.1.0.12                                   | ACTIVE | NONE   |
 +| 8440a5a2-0601-453e-a0f7-e74b9d2788b0 | test2.None.openstack.helux.nl. | A    | 10.1.0.12                                   | ACTIVE | NONE   |
 +| e3ed9ba5-ce44-409d-879d-e29b5b9b949b | 10-1-0-12.openstack.helux.nl.  | A    | 10.1.0.12                                   | ACTIVE | NONE   |
 +| 0efa2b91-5480-47e6-bef8-f04e52cb3415 | 10-1-0-6.openstack.helux.nl.   | A    | 10.1.0.6                                    | ACTIVE | NONE   |
 +| 10f5b137-c5fb-46aa-a5fd-3315dbcd5895 | test3.None.openstack.helux.nl. | A    | 10.1.0.6                                    | ACTIVE | NONE   |
 +| e48546b1-764c-48e2-86df-791677b979bc | test3.openstack.helux.nl.      | A    | 10.1.0.6                                    | ACTIVE | NONE   |
 ++--------------------------------------+--------------------------------+------+---------------------------------------------+--------+--------+
 +</code>
  
 {{tag>centos}} {{tag>centos}}
openstack_with_kolla.1498331311.txt.gz · Last modified: by herwarth