1000 Commits

Author SHA1 Message Date
Jenkins
f43a2ecf38 Merge "adding else statement with empty string starting ansible 2.X it require a else statement." 2016-06-04 02:39:29 +00:00
Jenkins
631ffab1ef Merge "Add vars to the merge_config task in config-neutron-fake.yml" 2016-06-03 19:48:47 +00:00
mgatien
5fdd2b18cc
adding else statement with empty string
starting ansible 2.X it require a else statement.

Closes-bug: #1588941
Change-Id: I3f12be8de75ddcebf28a077c361a9206b36aafb0
2016-06-03 14:59:05 -04:00
Jenkins
058d8606b5 Merge "Enable HAProxy consider MariaDB wsrep_local_state" 2016-06-03 16:06:23 +00:00
Hui Kang
c66eae3b10 Add vars to the merge_config task in config-neutron-fake.yml
Change-Id: I3cb6c6a1879bb463da42d5d20fd6bb5d4b067a41
Closes-Bug: #1588722
2016-06-03 05:00:41 -04:00
Ettore Simone
b4759b280c Enable HAProxy consider MariaDB wsrep_local_state
This patch enable wsrep_notify_cmd to rename haproxy user in haproxy_blocked
when the node is not ready to serve and restore it when ready.

Change-Id: I4f49960d7ff2fa689d6ea730b2574f16f083edc1
Closes-Bug: 1578752
Closes-Bug: 1587752
2016-06-03 01:30:00 +02:00
Jenkins
4ad1af1328 Merge "Do not use bare variables in the ceph role" 2016-05-31 15:57:31 +00:00
Jenkins
533560e8d3 Merge "Manila driver session is needed only in manila-share" 2016-05-31 14:55:03 +00:00
Mauricio Lima
e73bb5ec9d Manila driver session is needed only in manila-share
Generic, cinder, nova and neutron session aren't needed in
manila-api and manila-scheduler. It's only needed in manila-share container.

Closes-Bug: #1576823
Change-Id: Iad3054e00621b5fe7273213e1d85b54bcca2ba4a
2016-05-31 10:06:08 -04:00
Jenkins
ca6cf5bfd1 Merge "Log the traceback in the kolla libraries" 2016-05-31 13:59:33 +00:00
Jenkins
430e79b35b Merge "Use file module instead of running rm to remove a directory" 2016-05-31 12:15:13 +00:00
Jenkins
9bd4058bb6 Merge "Adding Upgrade to iscsid/tgtd container" 2016-05-31 10:56:34 +00:00
Jenkins
e1b8a98cd3 Merge "Fix the cinder backup permission issue when enable ceph" 2016-05-31 09:48:30 +00:00
Jenkins
6e1ee2e7dc Merge "Fix the incompatibility for ansible 2.1.0" 2016-05-31 09:47:25 +00:00
Jeffrey Zhang
b90ecae39c Fix the cinder backup permission issue when enable ceph
Closes-Bug: #1587244
Change-Id: I22ed3c57e4669c4372daf448da8385729c7cc8d1
2016-05-31 13:04:30 +08:00
Jeffrey Zhang
476da0f43a Log the traceback in the kolla libraries
The traceback is logged also and will be helpful when the
library failed. We can get which line is failed from the log.

TrivialFix

Change-Id: Ia417232007e2f34c83d2e7cad6ed08dee49ce836
2016-05-31 01:40:55 +00:00
Jeffrey Zhang
3545e6d503 Fix the incompatibility for ansible 2.1.0
Ansible 2.1.0 has lots of change and the plugin is not compatible
between 2.0.0 and 2.1.0. This change fix the gap.

* fix the signature change for _make_tmp_path in ansible 2.1.0
* fix the common_options in the kolla_docker.py

Change-Id: I05f5f05581c8bd625cd868fa0db549d0c60a7043
Closes-Bug: #1586018
2016-05-30 23:02:09 +08:00
Jenkins
162fa25829 Merge "Run HAProxy in a chroot jail" 2016-05-27 21:19:46 +00:00
Daneyon Hansen
ba30579b3b Adds Neutron LBaaS Support
Previously, kolla did not support neutron lbaas functionality.
Only Lbaasv2 is supported in Mitaka. Additional information can
be found here:
http://docs.openstack.org/mitaka/networking-guide/adv-config-lbaas.html
Magnum uses Neutron Lbaas to provide high availability to COE API
and Etcd endpoints within a bay. Therefore, Neutron Lbaas is required
for Kolla to support Magnum.

Co-Authored-By: Serguei Bezverkhi <sbezverk@cisco.com>
Partial-Bug: #1551992

Change-Id: I05360b7c447c601fcb3c2b6b2a913ef5cc0f3a1b
2016-05-27 11:41:25 -04:00
Christian Berendt
52d7daadd2 Use file module instead of running rm to remove a directory
This will solve the following issue when running the
kolla-ansible cleanup command:

[WARNING]: Consider using file module with state=absent rather
than running rm

Closes-bug: #1586406
Change-Id: I366b6f27e697b24c6c54882c08afe4048803b4e8
2016-05-27 13:58:31 +00:00
Christian Berendt
2726f6edf2 Do not use bare variables in the ceph role
This will resolve the following deprecation warning:

Using bare variables is deprecated. Update your playbooks so
that the environment value uses the full variable syntax. This
feature will be removed in a future release.

Partial-bug: #1586404
Change-Id: I9086d3f9e7904836e72e6df2fefaa084e5229f7e
2016-05-27 13:55:37 +00:00
Jenkins
6f5239ce40 Merge "Bump the ansible to 2" 2016-05-26 10:57:27 +00:00
Jenkins
6f17a71d7f Merge "add support for non-default database_port in kolla/ansible" 2016-05-26 09:24:56 +00:00
Jenkins
cac8b39795 Merge "Make configurable the location where config files are merged" 2016-05-24 14:44:07 +00:00
Jeffrey Zhang
491822c510 Bump the ansible to 2
DocImpact

Change-Id: I3cdfbf84919de80f535c030bd146787ecda40dec
partial-Implements: blueprint ansible2
2016-05-24 19:53:31 +08:00
Jenkins
f8e15358c5 Merge "Generate configuration using ansible for any project" 2016-05-24 05:21:54 +00:00
Ryan Hallisey
f5e0a3959b Change ansible image to kolla_toolbox
All the images follow the same naming schema where the container
name is part of the ansible variable name.  Currently, the
kolla_toolbox container is named ansible_image_full.  Change
this to match what the container name is.

Could impact operators who are specifying ansible_image_full
in globals.yml.

TrivialFix

Change-Id: I9f0cbe4bd69ce17489310a1f5734a254e6ebe27b
2016-05-23 10:13:48 -04:00
Jenkins
fdca053c35 Merge "Configure the rabbitmq ha policy in config file" 2016-05-23 14:38:29 +00:00
Jenkins
fef79059b7 Merge "Adding variables for Cinder iSCSI backend configuration" 2016-05-23 09:52:48 +00:00
Ryan Hallisey
2da010a7b9 Make configurable the location where config files are merged
An operator may want to specify the location of custom config
files so that kolla can detect their location and merge
them with the default configs generated.

Partially implements: blueprint multi-project-config

Change-Id: Ibfb38d07a36dfa7fe25381adc34cc1d3cbe7d1e1
2016-05-23 03:23:06 -04:00
Ryan Hallisey
c5f686ac43 Generate configuration using ansible for any project
Give outside projects the ability to consume kolla-ansible as a
config generation mechanism by allowing for the developer to define
a directory structure within /etc/kolla that fits a project's needs.

For example, kolla-kubernetes does not define configuration in terms
of serivces, but in terms of pods (groups of services).

Partially implements: blueprint multi-project-config

Change-Id: If08443aefcaf5fa5604b243b39a6a2d54e431cff
2016-05-23 03:15:37 -04:00
Jeffrey Zhang
e7441a4212 Configure the rabbitmq ha policy in config file
Closes-Bug: #1580884
Change-Id: Ief5917d48dbf6abe4a5861e73b24d534b889bd52
2016-05-23 10:27:33 +08:00
Jenkins
5ee2e6a87d Merge "Stop configuring neutron to enforce DHCP MTU option" 2016-05-18 12:26:45 +00:00
Francesco Vollero
a7d330d9e7 Fixed typos in Ansible files
Files affected:
- ansible/roles/ceph/tasks/bootstrap_mons.yml
- ansible/roles/neutron/tasks/deploy.yml
- ansible/roles/neutron/tasks/start.yml

TrivialFix
Change-Id: Ic4b624cfe0ae4d73b49e616319e9db2229931249
2016-05-18 08:33:15 +02:00
Jenkins
3f2a5bdadc Merge "Add a cluster_network interface when we use ceph" 2016-05-17 19:21:57 +00:00
Jenkins
8bf2017bb9 Merge "Make Heka collect Ceph logs" 2016-05-17 19:20:54 +00:00
Ihar Hrachyshka
a627681eec Stop configuring neutron to enforce DHCP MTU option
Since Mitaka, Neutron does the right job to calculate and advertise
correct MTU to instances, out of the box [1].

[1] https://review.openstack.org/#/c/302165/

TrivialFix
Change-Id: I71a6dc5b56c2c1fb9db757df77a56feababdc039
2016-05-17 15:54:49 +00:00
weiyu
b071bb22c9 Add a cluster_network interface when we use ceph
Because of the consideration of security and performance, ceph community
recommend the use of two separate network public networks and cluster
networks. refer:
http://docs.ceph.com/docs/master/rados/configuration/network-config-ref/

DocImpact
Closes-Bug: #1582095
Change-Id: I8cb0e14f86c859820fbbb8af8f94ac8155338e13
2016-05-17 14:09:36 +08:00
Waldemar Znoinski
a2c2eba34f add support for non-default database_port in kolla/ansible
This change makes each step of the kolla deployment aware
of the port database was configured to listen on.
It defaults mariadb_port to database_port.

Change-Id: I8e85d5732015afc0a5481cb33e0b629fdfa84a1b
Closes-Bug: #1576151
DocImpact
2016-05-13 12:12:25 +00:00
Davanum Srinivas
48b4b15828 Avoid _ in rabbitmq_clusterer.config
Trying to use ConfigMap's in Kubernetes leads to an interesting
problem. We use the file name as the key and the contents of the
file as the text value. The ConfigMap is mounted on the container
as a volume and the key is then used as the name of the file. The
problem is that kubernetes has a limitation on the name of the
key

https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/design/identifiers.md

Which means we cannot use '_' in the name of the file.

Closes-Bug: #1581162
Change-Id: I2d9ec80f989c30893b019954fe18b3623d27a076
2016-05-13 07:39:12 -04:00
Serguei Bezverkhi
4150df42e2 Adding variables for Cinder iSCSI backend configuration
This fix adds several variables required for Cinder iSCSI backend
configutation.

Change-Id: I2f709f8589fdbf62e3d0b265452fd58f413bee65
Closes-Bug: #1579800
2016-05-09 11:15:32 -04:00
Serguei Bezverkhi
214117c941 Adding Upgrade to iscsid/tgtd container
This patch adds Upgrade function to iSCSI/tgtd containers.

Change-Id: I80d3a4397584ab3c5de7ef3b37bc7f0956c55c15
Closes-Bug: #1560928
2016-05-09 09:14:27 -04:00
Michal Rostecki
a5c1aa0b81 Run HAProxy in a chroot jail
It's impossible to drop root for the HAProxy container.
But HAProxy provides a possibility to use a chroot jail.

When attaching to the HAProxy container, we see that
the root directory is changed:

    $ sudo docker exec -ti haproxy bash
    (haproxy)[root@operator /]# ls -di /
    259 /

Co-Authored-By: Vikram Hosakote <vhosakot@cisco.com>

Closes-Bug: #1552289

Change-Id: I9d55e9b741b8560cac53dc8b837a24a3029a4dc0
2016-05-06 10:23:49 +02:00
Mauricio Lima
1a2fe93a95 Make Heka collect Ceph logs
Change-Id: Ibaa5f8ba600afafa111d2ef204ee9192b8babdfc
Closes-Bug: #1570529
2016-05-05 13:26:44 -04:00
Jenkins
233158f754 Merge "Adding ability to specify capabilities and security" 2016-05-04 21:27:04 +00:00
Serguei Bezverkhi
a08a762f30 Adding ability to specify capabilities and security
This patch adds ability to specify required capabilities and security
mode for a specific docker container.

Change-Id: Ib8c15a8e354178bedd31ebb31a64618431f0e135
Closes-Bug: #1572648
2016-05-03 15:24:16 -04:00
Jenkins
1011b7cd24 Merge "map the host localtime to the container" 2016-05-03 19:12:15 +00:00
Jenkins
31d1271f1e Merge "Fix radosgw 'rgw frontends' param" 2016-05-03 10:24:18 +00:00
Jeffrey Zhang
0fcee87549 map the host localtime to the container
Closes-Bug: #1577148
Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-05-03 09:27:51 +08:00
Mauricio Lima
2c34214388 Remove unecessary blank lines
TrivialFix

Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-05-02 07:44:29 -04:00