103 Commits

Author SHA1 Message Date
Sam Yaple
d75d479263 Remove start.yml abstraction for kolla-ansible
Change-Id: If2e6d5cd5530c1e17f34415e169f82465f8362a1
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-19 02:52:43 +00:00
Swapnil Kulkarni
b3ef443cd3 Remove Ansible abstraction for Nova
Co-Authored-By: Sam Yaple <sam@yaple.net>
Change-Id: Iad9fd7010eaf112f169feb54d9a0e97fd693e5f1
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-18 09:35:17 +00:00
Sam Yaple
a6f3a1073a Fix volumes_from for the ansible playbooks
Change-Id: Ib4b563d20d8e5ea5b81fb89e9ee4943487d7e6cd
Closes-Bug: #1485297
2015-08-16 09:10:58 +00:00
Steven Dake
db98ff7e48 Register neutron as the network service
Change-Id: Id0af297e29c2751c7da1f19742f764ccac56d723
Closes-Bug: #1485142
2015-08-14 23:48:31 -07:00
Sam Yaple
8419902e8e Remove bootstrap.yml abstraction for rabbitmq
Change-Id: I5b163b6a5c0e084deec5937e4fbf04d11fdde01f
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-13 17:41:47 -07:00
rthallisey
759cc41647 All the Cinder services need to reference the correct config
Every service except cinder-api was looking for the file
'/opt/kolla/cinder/cinder-<service>.conf' when the config file in place was named
'cinder.conf'.  Change the rest of the services to look for cinder.conf or
the config file will never be copied over to into '/etc/cinder/'.

Change-Id: I1cd59f1da09e6f3bc7e7b3a4f45f9da2b8247479
Closes-Bug: #1481928
Closes-Bug: #1484248
2015-08-13 16:26:35 -04:00
Jenkins
b36abefd8f Merge "Update mariadb confs and ports" 2015-08-13 20:19:44 +00:00
Jenkins
3f898b4bf9 Merge "Remove bootstrap.yml abstraction for mariadb" 2015-08-13 20:19:29 +00:00
Jenkins
3bd6979be4 Merge "Remove bootstrap.yml abstraction for haproxy" 2015-08-13 20:19:23 +00:00
Sam Yaple
5ee6d86eb7 Remove bootstrap.yml abstraction for mariadb
Change-Id: Icfd41d6cf5e4813d82a304233e784e8cb49fe3fb
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-13 10:35:45 +00:00
Sam Yaple
061d290e53 Remove bootstrap.yml abstraction for haproxy
Change-Id: Ia7328ff96ba22db1b132bfefaa433af9dc666cbf
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-13 05:10:08 +00:00
Sam Yaple
bf8d7d04d0 Fixes typo in nova.conf
Change-Id: Idba2f4a0f2a0e57b5e0d80d4a31a24808db6a14d
Closes-Bug: #1484357
2015-08-13 05:09:06 +00:00
Jenkins
59a2d537e0 Merge "Ansible Cinder needs to create the v2 endpoint" 2015-08-13 02:38:58 +00:00
Sam Yaple
cf3fd4043a Update mariadb confs and ports
Cleanup all options in galera.cnf. Bind to all interfaces and ports
appropriately.

Change-Id: I516613d09673ba61aadda2c7bbb4abbbe4ea47ac
Partially-Implements: blueprint update-configs
Closes-Bug: #1478330
2015-08-13 02:27:38 +00:00
rthallisey
e7b45ab1ab Ansible Cinder needs to create the v2 endpoint
The Cinder v1 API is deprecated. We need to use the v2 API.

Change-Id: I54cbcbd9ad8e07f5e18441dff31df570cc8c21da
Closes-bug: #1484228
2015-08-12 16:41:36 -04:00
Jenkins
15f058d243 Merge "Update nova.conf and ports" 2015-08-12 20:22:37 +00:00
Jenkins
15041bd4cc Merge "Update rabbitmq confs and ports" 2015-08-12 20:22:30 +00:00
Jenkins
d639155657 Merge "Update glance confs and ports" 2015-08-12 20:22:07 +00:00
Jenkins
e323cbe11e Merge "Update neutron confs and ports" 2015-08-12 18:07:43 +00:00
Jenkins
8863fcf843 Merge "Glance-registry is missing a messaging config" 2015-08-12 18:07:38 +00:00
Jenkins
59ab99ea1f Merge "Add ansible support for Cinder" 2015-08-12 18:06:28 +00:00
Vladislav Belogrudov
2ddfb13601 Glance cannot store images due to incomplete configuration
Glance api refuses to store images with error
"Error in store configuration. Adding images to store is disabled. (HTTP N/A)"
This happens due to missing configuration of store in glance-api.conf

Change-Id: I50696671d10ffc56189d3aa08c1e73bb307bc800
Closes-Bug: #1484123
2015-08-12 16:50:26 +03:00
Ryan Hallisey
59b016f490 Glance-registry is missing a messaging config
Change-Id: Ibf20d74f2ea5583bc1c183d14329e37661c20721
Closes-Bug: #1483793
2015-08-12 07:20:06 -04:00
Swapnil Kulkarni
18f0e536f6 Add ansible support for Cinder
Change-Id: I0694e5ad95aa7f924ebd3a29dff1f85e6307b7ae
Partially-implements: blueprint ansible-cinder
Partially-Implements: blueprint remove-abstraction-ansible
Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>
2015-08-12 03:41:48 +00:00
Vladislav Belogrudov
305192152d Glance bootstrap container mounts wrong config folder
Glance bootstrap container is based on glance-api. Ansible playbook
incorrectly mounts
    "{{ node_config_directory }}/glance" to "/opt/kolla/glance"
where it should mount
    "{{ node_config_directory }}/glance-api" to "/opt/kolla/glance-api".
After start bootstrap container fails to find configuration and exits.

Change-Id: Id2e5ddb2191cfee7db57dd0aec2f06fc617aa9d6
Closes-Bug: #1483757
2015-08-11 17:07:01 +03:00
Sam Yaple
b27163411f Update neutron confs and ports
Cleanup all options in the minimal neutron confs. Remove options where
the default value was specified explicitly. Updated ports and bindings
to be configurable.

Partially-Implements: blueprint update-configs

Change-Id: I420ea1469e7bbe87aca0754cd3507098501f1de5
2015-08-11 11:07:33 +00:00
Vladislav Belogrudov
91df6940d9 Glance bootstrap container does not create tables and runs forever
Due to typo in ansible/roles/glance/tasks/bootstrap.yml container
misses database initialization block and starts service instead.
Ansible hangs on waiting for bootstrap container exit.

Change-Id: Icf5ba68b47d65b22d6869e4b7b2d93e7edb8ed3b
Closes-Bug: #1483647
2015-08-11 13:55:17 +03:00
Sam Yaple
d91346377e Update nova.conf and ports
Cleanup all options in the minimal nova.conf. Remove options where
the default value was specified explicitly. Updated ports and bindings
to be configurable.

Partially-Implements: blueprint update-configs
Change-Id: I0bca7a8f9c4c6fa40145d66a95de7e98edc0edce
2015-08-10 23:54:52 +00:00
Vladislav Belogrudov
fe9092bab7 Ansible should wait bootstrap container on first host
Bootstrapping of Keystone/Glance happens on first host
via 'run_once'. After running bootstrap containers we
should wait for them also on the same host. Currently
waiting is done on all hosts what gives task error on
other hosts.

Change-Id: I6eac928d405ea819982118d9b567988074be4ed2
Closes-Bug: #1483224
2015-08-10 15:59:50 +03:00
Jenkins
5a359a1731 Merge "Remove Ansible abstraction for Glance" 2015-08-10 10:06:48 +00:00
Sam Yaple
3a78bbdef0 Update rabbitmq confs and ports
Cleanup all options in the rabbitmq confs. Allow all ports to be
configurable.

Change-Id: I9b3b485a4f3a25d20c0f19d13638f717daa169dc
Partially-Implements: blueprint update-configs
2015-08-10 05:02:25 +00:00
Sam Yaple
0247df7a7d Update glance confs and ports
Cleanup all options in the minimal glance confs. Remove options where
the default value was specified explicitly. Updated ports and bindings
to be configurable.

For rabbitmq, those options will only be needed once ceilometer is
implemented. At that point they will exist in an 'if' block.

Change-Id: Idcf0ebc625a5ef3a83181bce10281596a5f1d684
Partially-Implements: blueprint update-configs
2015-08-10 04:42:31 +00:00
Jenkins
96b8d86ca5 Merge "Remove Ansible abstraction for Keystone" 2015-08-09 20:09:48 +00:00
Sam Yaple
f2d575b9c6 Remove Ansible abstraction for Keystone
Change-Id: I0daf8b78f39b919d2b88336322203f1d643fc54b
Partial-Bug: #1482214
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-08 06:01:44 +00:00
Sam Yaple
beeef8413e Remove Ansible abstraction for Glance
Change-Id: I9e2fe6c5e7396d6fb3ce348f30f1d5ea81b6dcf6
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-08 05:35:06 +00:00
Sam Yaple
1ab8bc184c Fixes group name for keepalived.conf
Also included is removing the executable bit on haproxy.cfg.j2 as it
should not have those permissions in the repo. It has no affect on the
templating process.

Change-Id: I9c76e528896bdf1799b8eeb62ae77bc4ad0b4449
Closes-Bug: #1482832
2015-08-08 05:28:07 +00:00
Jenkins
4811fd7251 Merge "Add check_script for haproxy in keepalived" 2015-08-07 18:38:43 +00:00
Ryan Hallisey
cd3536ec31 Glance api and Glance registry shouldn't share tags
In the ansible tool, both the Glance api and registry share
the same release tag and they shouldn't.

Change-Id: I5f5f288d192586b84963d59d94567371d28b76a0
Closes-bug: #1482374
2015-08-06 16:24:30 -04:00
Sam Yaple
98a379b0fd Reduce dependencies on the dest nodes
Currently we require a slew of deps on each destination node, this
includes a gcc compiler and installing things via pip. We can remove
these dependencies by containerizing them and running and Ansible
inside the container itself. The container would then report back
facts about idempotency.

DocImpact
Closes-Bug: #1481495
Implements: blueprint containerize-dependencies
Change-Id: I3dfccbf9fafc06ffc36e78f3006fe5d3367891df
2015-08-06 01:32:05 +00:00
Sam Yaple
8ede380f1d Add check_script for haproxy in keepalived
This patch checks that haproxy is alive and running. It does this by
using socat to talk to the haproxy socket. That socket will only
respond successfully when haproxy is active and functional.

Change-Id: I528588d5742071103c28109a69842a6f935232c2
Closes-Bug: #1478570
2015-08-05 11:10:53 +00:00
Sam Yaple
c2dbbde371 Fixes tags and when conditional for HAProxy
A missing comma after the second tag prevented the when conditional
from being evaluated correctly.

Change-Id: Ic18462212452a22ad556bed114e0a99440abe1ff
Closes-Bug: #1481130
2015-08-04 01:38:34 +00:00
Sam Yaple
b401a90254 Add linuxbridge as option to ansible
Allows the user to configure neutron_plugin_agent value for Ansible.
Current allowed values are openvswitch and linuxbridge.

Implements: blueprint ansible-neutron-linuxbridge

Change-Id: I0572464a5459d2f9da09b6da22db16e240511f99
2015-08-02 11:48:21 +00:00
Jenkins
38418befc0 Merge "Fixes race condition in ansible playbooks" 2015-08-01 19:32:48 +00:00
Jenkins
a44b0a4b9f Merge "Use sleep during database bootstrap" 2015-08-01 19:32:18 +00:00
Sam Yaple
0fb09203d5 Removes unneeded variables
These variables are defined in the defaults.yml file

Change-Id: I45de4fbd41c50e2a8fe3233cdffc467c9a594aa5
Closes-Bug: #1480498
2015-08-01 00:40:28 +00:00
Sam Yaple
8e03952c10 Fixes race condition in ansible playbooks
Bundling in a run_once error that beaks with multinode and the race

Change-Id: Ia3779d9a291f8d652fc81fe5ebcab88241805c8d
Closes-Bug: #1480468
2015-07-31 22:40:21 +00:00
Sam Yaple
d32ed35d13 Use sleep during database bootstrap
A small sleep is used to allow the database to initialize before
starting the databases on the other hosts.

Change-Id: I1ea9ee8be55f47ae917f9985431e1e919f64c101
Closes-Bug: #1479970
2015-07-31 22:06:55 +00:00
Jenkins
3970c45607 Merge "Update inventory examples for Ansible" 2015-07-31 21:17:43 +00:00
Sam Yaple
2b98ac3981 Update inventory examples for Ansible
Change-Id: I14beadf8ae0b4f117623331dca71eff3d45b51f1
Closes-Bug: #1480439
2015-07-31 19:36:17 +00:00
Harm Weites
a1a78044b5 Remove the explicit chown root
This is not possible when running multihost ansible.
Essentially this should've been part of #1476293.

Change-Id: I53baccf5f89e71ce1313524815f928ea04908a05
Partitially-Implements: blueprint ansible-service
2015-07-31 20:47:53 +02:00