aboutsummaryrefslogtreecommitdiff
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2015-09-06Properly check failed statusSam Yaple7-36/+8
No need for a new task. Change-Id: I958f87ac9a1434a2f6052e0271f37e5f3109775e Closes-Bug: #1492337
2015-09-04Check exit status of bootstrap containersVladislav Belogrudov7-0/+41
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-04Set cinder auth_strategy to keystone explicitelyVladislav Belogrudov1-0/+1
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-04Merge "Use database_user_create in Heat bootstrap"Jenkins1-3/+3
2015-09-03Rename Galera to MariaDBSam Yaple1-1/+1
Change-Id: I3134ba72e2ce4e85a17facbc3b5af4c1c3438d33 Closes-Bug: #1491740
2015-09-03Use database_user_create in Heat bootstrapJeff Peeler1-3/+3
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-03Ansible register task for MariaDB incorrectly reports failureVladislav Belogrudov1-1/+1
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-02Fix rabbitmq part 2liberty-3Sam Yaple1-0/+7
Change-Id: I69a5ace61dd621a7fc0354d4deb5e8937505e13e Partial-Bug: #1480496
2015-09-02Fix rabbitmq permsSam Yaple1-1/+1
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-01Merge "Expose exception objects via the as keyword"Jenkins1-1/+1
2015-09-01Expose exception objects via the as keywordHengqing Hu1-1/+1
According to Python 3 Porting guide http://docs.pythonsprints.com/python3_porting/py-porting.html Exceptions were changed in a few ways for Python 3. First, strings are no longer usable as exceptions. Additionally, the raise syntax no longer accepts comma-separated arguments, instead working with exception instances. Perhaps the largest difference in Python 3 is that exception objects are only available via the as keyword, which was introduced in 2.6. Change-Id: Ide665ecc4b7f14bd58bafab47e05a86a4cf2d141 Closes-Bug: #1490526
2015-08-31Merge "nova-libvirt requires a /sys/fs/cgroup bindmount"Jenkins1-0/+1
2015-08-31nova-libvirt requires a /sys/fs/cgroup bindmountSteven Dake1-0/+1
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-31Merge "Fix typo in task bootstrap task names"Jenkins6-6/+6
2015-08-31Fix typo in task bootstrap task namesPaul Bourke6-6/+6
Not quite halloween yet... Change-Id: Ib1973eea0b2dddc0e0845731d1212c4d4447cca5 Closes-Bug: #1490502
2015-08-30Keystone container should use the openstackclientSam Yaple1-2/+2
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-29Add Ansible support for HeatSteven Dake12-0/+383
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-27Remove CONFIG_STRATEGY prefixSam Yaple1-2/+2
We no longer have CONFIG_INTERNAL and moving forward CONFIG_STRATEGY infront of COPY_ALWAYS or COPY_ONCE will just lead to confusion. Change-Id: Ie0d71637e25cbd79d46e1cdca62df714c10b85d2 Implements: blueprint update-configs
2015-08-26Implement Ansible role for SwiftPaul Bourke16-2/+438
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-25Update Haproxy for HorizonSam Yaple1-0/+6
Change-Id: I725efca9f26b73abd855e6fc90fc1694c4a9d22a Parially-Implements: blueprint ansible-horizon
2015-08-25Merge "Add ansible support for Horizon"Jenkins11-2/+739
2015-08-24Add ansible support for Horizonrthallisey11-2/+739
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-24Run cinder-volume with privileged accessSteven Dake1-0/+1
cinder-volume accesses files in /dev, so it requires extra capabilities. Closes-Bug: #1487801 Change-Id: I699aadd1b2955399f90c26a865438635e753ecf6
2015-08-24Merge "Use cinder-volumes as name of LVM VG"Jenkins1-1/+1
2015-08-24Wait for bootstrap containers on the same hosts they runVladislav Belogrudov2-0/+2
Change-Id: Id6a82e6622f712c6fca8205357dec4e5161e46d2 Closes-Bug: #1487387
2015-08-24Merge "Uses the appropriate port value for Glance"Jenkins1-0/+2
2015-08-23Uses the appropriate port value for GlanceSam Yaple1-0/+2
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-22Use cinder-volumes as name of LVM VGSteven Dake1-1/+1
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-22Merge "Add Ansible role for memcached"Jenkins8-0/+52
2015-08-21Add Ansible role for memcachedPaul Bourke8-0/+52
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-21Fix MariaDB for ubuntuSam Yaple1-1/+2
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-21Merge "Fix RabbitMQ for Ubuntu"Jenkins2-2/+6
2015-08-20Merge "Remove start.yml and bootstrap.yml"Jenkins2-104/+0
2015-08-20Remove start.yml and bootstrap.ymlSam Yaple2-104/+0
Change-Id: I50d93255db0c1f7f036524fa88b3f8c077fa1efa Implements: blueprint remove-abstraction-ansible
2015-08-20Change default config locationSam Yaple1-5/+2
Currently we write configs to /opt/kolla/config on the destination node. This does not mesh with LSB so we adjust it to /etc/kolla Change-Id: I4b6683b3b707ebb25b064ba5162533ea5a35d977 Partially-Implements: blueprint update-configs
2015-08-20Fix RabbitMQ for UbuntuSam Yaple2-2/+6
In rabbitmq we removed the requirement for hostname since that is already installed. Change-Id: Ia2355e332d53763db630d19663c2ddc8bf3aa425 Paritially-Implements: blueprint install-from-ubuntu
2015-08-20Merge "Update support to control"Jenkins2-18/+18
2015-08-20Merge "Use database_user_create in the register operation"Jenkins6-18/+19
2015-08-20Merge "Remove start.yml abstraction for kolla-ansible"Jenkins2-15/+19
2015-08-20Merge "Load ip_vs module for keepalived"Jenkins1-0/+1
2015-08-20Merge "Fix small typo in task name"Jenkins1-1/+1
2015-08-20Use database_user_create in the register operationSteven Dake6-18/+19
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-19Load ip_vs module for keepalivedWilliam Frischemeier1-0/+1
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-19Update support to controlSam Yaple2-18/+18
Change-Id: Icd74a87a0acc5a29f69fdd348966c74408eea2a9 Partially-Implements: blueprint update-configs
2015-08-23Merge "Fix keystone for Ubuntu"Jenkins1-4/+5
2015-08-23Merge "Cinder ansible waits for bootstrap container on all hosts"Jenkins1-0/+1
2015-08-23Fix keystone for UbuntuSam Yaple1-4/+5
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-23Merge "Rabbitmq servers fail to start due to wrong permissions"Jenkins1-0/+4
2015-08-21Rabbitmq servers fail to start due to wrong permissionsVladislav Belogrudov1-0/+4
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-21Cinder ansible waits for bootstrap container on all hostsVladislav Belogrudov1-0/+1
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