4197 Commits

Author SHA1 Message Date
Sam Yaple
c68c9d95fc Gather facts from the hosts before using them
Haproxy needs to have gathered facts from all hosts that it will use
information about. In this case it must talk to all of the api hosts
as well as the database and rabbitmq hosts before generating the
configuration file.

Change-Id: I99b7dbebd5a6193e192ee258ddf576d18db90ed7
Closes-Bug: #1482406
2015-09-07 12:04:28 +00:00
jamesmmccarthy
91fc423a01 Add missing Swift services, also ansible configuration
DocImpact
Closes-Bug: #1477993
Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
Change-Id: Ifeab0fec11889cb0c90a56a6211dbdd27a40f3d9
2015-09-07 10:38:00 +00:00
Mick Thompson
68e7da0a36 Add ansible support for Murano
Deploy the core services for murano-api and murano-engine containers.

Implements: bp ansible-murano

Change-Id: Ibcc618665a3509465ba8f9249a417e8848087eef
2015-09-07 09:30:07 +01:00
Steven Dake
e569d80182 Make heat stack-create work
The stack-create operation fails.  The current implementation of
Heat Ansible role does not implement trusts.  Tell heat it should use
the non-trusts authentication model.

Also add a [keystone_clients] section which is required in newer
versions of heat to properly resolve the keystone v3 API endpoint
required for trust communication.

This fix spawns a Tech-Debt Bug to implement trusts in heat: #1492736

Change-Id: I06dd6436cc34a37b4966fddc888fade982ea51bd
Closes-Bug: #1492648
2015-09-06 21:24:56 -07:00
Jenkins
efea3b3f1b Merge "Properly check failed status" 2015-09-07 03:33:27 +00:00
Steven Dake
a8a41a81aa Permit larger database connection count
The default incoming database connection count is limited to 151
connections.  These are not sufficient in a 100 node 3 controller
deployment to launch several heat stacks simulatenously.

Data measured on bare metal shows that 250 connections are needed
to launch one 25 VM heat stack with 3 controller nodes with 209
tasks (default enablement).

Change-Id: If60b540010d6d173a393fa91fa30cb3ba572cfc0
Closes-Bug: #1492719
2015-09-06 04:53:28 -07:00
Sam Yaple
f42528acaf Properly check failed status
No need for a new task.

Change-Id: I958f87ac9a1434a2f6052e0271f37e5f3109775e
Closes-Bug: #1492337
2015-09-06 11:21:44 +00:00
Vladislav Belogrudov
7f81dbc85b Check exit status of bootstrap containers
Currently bootstrap containers are waited to exit but are not
checked for exit status and ansible runs further tasks. If
bootstrapping fails we notice it at much later time.

Change-Id: I137fc11b0f9d1f03d2ded08a213e8dbd62741f92
Closes-Bug: #1492337
2015-09-04 19:47:54 +03:00
Vladislav Belogrudov
326b29f363 Set cinder auth_strategy to keystone explicitely
Default value for auth_strategy changed for Cinder in Liberty
release from 'noauth' to 'keystone'. Therefore relying on
default value makes Cinder fail in Kilo. This patch covers
both releases by setting auth strategy to 'keystone' explicitely

Change-Id: Ic1f45fd43e0a94ca1dbfc63e90e2756c40453352
Closes-Bug: #1492233
2015-09-04 14:44:41 +03:00
Jenkins
0292cd2129 Merge "Use database_user_create in Heat bootstrap" 2015-09-04 06:51:40 +00:00
Sam Yaple
3487d8da14 Rename Galera to MariaDB
Change-Id: I3134ba72e2ce4e85a17facbc3b5af4c1c3438d33
Closes-Bug: #1491740
2015-09-03 21:00:23 +00:00
Jeff Peeler
bcde30f379 Use database_user_create in Heat bootstrap
The register operation was using database_user which is also a global
variable in group_vars/all.yml. This results in Heat being undeployable
because database_user is overwritten.

Change-Id: I78b2db34b7c99142040390c7258b7e81d3770835
Closes-bug: #1491980
2015-09-03 14:38:28 -04:00
Vladislav Belogrudov
64180f6735 Ansible register task for MariaDB incorrectly reports failure
When running register task for MariaDB we should firstly check
if operation failed before trying to parse result from json output

Change-Id: Ic331ec20990277d30b147826ff24affb27d52383
Closes-Bug: #1491751
2015-09-03 13:02:44 +03:00
Sam Yaple
1e963d124a Fix rabbitmq part 2
Change-Id: I69a5ace61dd621a7fc0354d4deb5e8937505e13e
Partial-Bug: #1480496
2015-09-02 15:33:18 +00:00
Sam Yaple
77466a292d Fix rabbitmq perms
If a bootstrap fails at some stage and leaves a rabbitmq_data
container on a host, it will not bootstrap again and rabbitmq
fails to start due to root permissions on /var/lib/rabbitmq.

This patch improves the check for a valid, existing
rabbitmq_data

Closes-Bug: #1490602
Change-Id: I6a00aaef38b4ab6a60dcfb5ed2f808513b9f8c84
2015-09-02 13:31:05 +00:00
Jenkins
f8c2f03094 Merge "nova-libvirt requires a /sys/fs/cgroup bindmount" 2015-08-31 19:55:38 +00:00
Steven Dake
e2d35ad054 nova-libvirt requires a /sys/fs/cgroup bindmount
Nova-compute is curerntly generating a backtrace when trying to nova
boot a VM.  The backtrace is described in the bug log.  Bind-mounting
/sys/fs/cgroup:/sys/fs/cgroup in the libvirt container resolves the
problem.

Change-Id: I5a56b61fd260728fb76e19bcbdf403b80a4ec5a6
Closes-Bug: #1490326
2015-08-31 10:44:52 -07:00
Jenkins
539862aeb0 Merge "Fix typo in task bootstrap task names" 2015-08-31 11:15:01 +00:00
Paul Bourke
f5c996e77d Fix typo in task bootstrap task names
Not quite halloween yet...

Change-Id: Ib1973eea0b2dddc0e0845731d1212c4d4447cca5
Closes-Bug: #1490502
2015-08-31 11:27:10 +01:00
Sam Yaple
7f17203406 Keystone container should use the openstackclient
Initially it did not use this client due to the fact that the client
didn't seem to want to work in the containers. Now it works fine and
it should be used instead of the deprecated keystone client

Change-Id: Ib0e172c677e200e5df01c478b7ea257b30c0df0b
Closes-Bug: #1490126
2015-08-30 08:35:54 +00:00
Steven Dake
5e521f0550 Add Ansible support for Heat
This changes bootstrapping of the Heat container to bootstrap
the Heat container with a heat domain user.  This requires some
work from bootstrap.yml to pass in several environment variables
needed by the heat domain setup script.

Co-Authored-By: Sam Yaple <sam@yaple.net>
Change-Id: Iab05983754fa514835cb5ff54d775faa18773110
Partially-implements: blueprint ansible-heat
2015-08-29 23:58:54 -07:00
Paul Bourke
515cf2af68 Implement Ansible role for Swift
This currently deploys the core services for a working Swift which are
account/container/object/proxy.

I've included some basic docs in docs/swift-related.rst, which gives
usage instructions and more context on this patch. These are really to
give an overview of the state of Swift in Kolla as of now, so unless
there's some major inaccuracy there please don't nitpick it.

Change-Id: Id0c54be3e24c46459c40b16b7020f05bddbe1b19
Implements: blueprint ansible-swift
2015-08-26 10:30:29 +00:00
Sam Yaple
2868390503 Update Haproxy for Horizon
Change-Id: I725efca9f26b73abd855e6fc90fc1694c4a9d22a
Parially-Implements: blueprint ansible-horizon
2015-08-25 07:41:13 +00:00
Jenkins
ce068e0997 Merge "Add ansible support for Horizon" 2015-08-25 06:29:28 +00:00
rthallisey
5137f6b35b Add ansible support for Horizon
Change-Id: I6189ebd0151207b2e9807f1174c1f3eb4719d90a
Implements: blueprint ansible-horizon
Co-Authored-By: Harm Weites <harm@weites.com>
Co-Authored-By: Sam Yaple <sam@yaple.net>
2015-08-24 18:19:34 +00:00
Steven Dake
13735a1ec1 Run cinder-volume with privileged access
cinder-volume accesses files in /dev, so it requires extra
capabilities.

Closes-Bug: #1487801
Change-Id: I699aadd1b2955399f90c26a865438635e753ecf6
2015-08-24 16:00:10 +00:00
Jenkins
44aa4af5f5 Merge "Use cinder-volumes as name of LVM VG" 2015-08-24 12:32:35 +00:00
Vladislav Belogrudov
04ba3ccb51 Wait for bootstrap containers on the same hosts they run
Change-Id: Id6a82e6622f712c6fca8205357dec4e5161e46d2
Closes-Bug: #1487387
2015-08-24 13:38:36 +03:00
Jenkins
9d5945b686 Merge "Uses the appropriate port value for Glance" 2015-08-24 08:53:42 +00:00
Sam Yaple
dc0abd1019 Uses the appropriate port value for Glance
nova.conf was not using the proper port value for glance and would
only work with the default port in that situation.

Additionally, the state_path defaults to the python directory rather
that the expected /var/lib/nova/ directory.

Paritially-Implements: blueprint update-configs

Change-Id: I9cc2117c1d786fc1b81c53848e543d27afaf8979
2015-08-23 03:56:31 +00:00
Steven Dake
69ea4959f8 Use cinder-volumes as name of LVM VG
Use cinder-volumes as name of LVM volume group expected on the host
instead of the nonsense that was there before.

Change-Id: I35221ac0ad3464581f9ba95c3127832e0af7ad64
Closes-Bug: #1487800
2015-08-22 20:00:36 -07:00
Jenkins
f70e8d4598 Merge "Add Ansible role for memcached" 2015-08-22 01:42:47 +00:00
Paul Bourke
d13163ab51 Add Ansible role for memcached
Note, this is not in the inventories/site.yml as it will be a
transparent dependency of Swift.

Change-Id: Ic8c80072596594e646ece74ac0ce74c7000398ff
Partitially-Implements: blueprint ansible-swift
2015-08-21 13:52:06 +00:00
Sam Yaple
8f7ff27779 Fix MariaDB for ubuntu
In MariaDB we adjust the dependecies of what we install there as well
adding only what is appropriate for the install.

In Ansible we adjust some templates to all work around differences
between the different Linux families.

Change-Id: Ibc26e2f4d4a732630632d3ed27fb595b6fe019d2
Partially-Implements: blueprint install-from-ubuntu
2015-08-21 13:10:05 +00:00
Jenkins
91088e595f Merge "Fix RabbitMQ for Ubuntu" 2015-08-21 13:08:48 +00:00
Sam Yaple
e8adfbcfc4 Remove start.yml and bootstrap.yml
Change-Id: I50d93255db0c1f7f036524fa88b3f8c077fa1efa
Implements: blueprint remove-abstraction-ansible
2015-08-20 17:19:58 +00:00
Sam Yaple
fe2e454f26 Fix RabbitMQ for Ubuntu
In rabbitmq we removed the requirement for hostname since that is
already installed.

Change-Id: Ia2355e332d53763db630d19663c2ddc8bf3aa425
Paritially-Implements: blueprint install-from-ubuntu
2015-08-20 14:43:32 +00:00
Jenkins
dfcfd0e5fe Merge "Use database_user_create in the register operation" 2015-08-20 10:30:50 +00:00
Jenkins
a760549e78 Merge "Remove start.yml abstraction for kolla-ansible" 2015-08-20 09:16:47 +00:00
Jenkins
1b49b9572d Merge "Load ip_vs module for keepalived" 2015-08-20 08:38:57 +00:00
Jenkins
dab049193f Merge "Fix small typo in task name" 2015-08-20 08:01:32 +00:00
Steven Dake
98b98924ee Use database_user_create in the register operation
The register operation was registering user_database which is a global
variable in group_vars/all.yml.  This results in glance not being deployable
because user_database is overwrriten at keystone task registration time.

The result of this is the playbooks fail to deploy.

Change-Id: Ic69725fb09aa0a368ec5b0d8f47bfc768c29c70c
Closes-Bug: #1486876
2015-08-20 00:49:31 -07:00
William Frischemeier
c4611eca8e Load ip_vs module for keepalived
If ip_vs is not loaded keepalived will enter a restart loop.  To fix that
load ip_vs module every time we start the container.

Change-Id: I6b39d8654cc6a6da7a9162e5c3efab073746b246
Closes-Bug: #1486276
2015-08-19 17:45:16 -04:00
Jenkins
5801e969e1 Merge "Fix keystone for Ubuntu" 2015-08-23 07:42:15 +00:00
Jenkins
aae4016908 Merge "Cinder ansible waits for bootstrap container on all hosts" 2015-08-23 07:40:50 +00:00
Sam Yaple
17333aed12 Fix keystone for Ubuntu
Due to the differences between Ubuntu and Centos around Apache2 I have
had to copy both start.sh and config-external.sh to be unique files
for Ubuntu so as not to affect Centos either. This can be removed when
we change the way config-external works.

Change-Id: I14dc11e7bb6284b897259a53acc914ae8f254d3c
Partially-Implements: blueprint install-from-ubuntu
2015-08-23 06:07:04 +00:00
Jenkins
b9f0cdbe38 Merge "Rabbitmq servers fail to start due to wrong permissions" 2015-08-23 02:58:23 +00:00
Vladislav Belogrudov
dd9986cf0a Rabbitmq servers fail to start due to wrong permissions
Rabbitmq containers mount /var/lib/rabbitmq from 'data'
containers with 'root:root' permissions because
ansible does not wait for rabbitmq bootstrap container -
the latter corrects access rights but sometimes gets
killed just after start.

Change-Id: I5cd1ce9810a1fd457dd34a1283e448204964c17d
Closes-Bug: #1487422
2015-08-21 16:16:37 +00:00
Vladislav Belogrudov
ad2b9019ae Cinder ansible waits for bootstrap container on all hosts
Bootstrap task runs bootstrap container on one host but
waits for its exit on all machines in inventory. This
gives error about non-existing container id.

Change-Id: Ie06c4da470c2e109d13b029fa674373b255653f3
Closes-Bug: #1487387
2015-08-21 12:34:27 +03:00
Swapnil Kulkarni
059d84859f Remove Ansible abstraction for Neutron
Co-Authored-By: Sam Yaple <sam@yaple.net>
Change-Id: I19ae5c2d58b94cd95b969e5c4e65ef1670a78b7e
Partially-Implements: blueprint remove-abstraction-ansible
2015-08-19 12:16:56 +00:00