aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-ansible
AgeCommit message (Collapse)AuthorFilesLines
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple7-482/+0
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-01-28Enable find_disks module to match by filesystem labelQiu Yu1-17/+59
Currently the only consumer of ansible find_disks module is Ceph. And Ceph OSD deployment in kolla uses GPT partition label to detect and identify disks for Ceph OSD use. This is not always true for all the deployment. The change here extended the find_disks module by: - adding `name` argument to find disk by either partition name or filesystem label matching - `partition_name` argument now becomes an alias to `name` - adding `match_mode` argument to allow prefix matching. It is used for swift disk detection. - return `fs_label` key / value in result for disk mounting purpose Change-Id: I9c93400c1826f5148acf09e9fbe555e358dfdfcc Partially-Implements: blueprint swift-physical-disk
2016-01-25Revert "Pin the pip version to 7.1.2"Allen Gao1-6/+0
This reverts commit 14dfbc13a25b43850be15933ca79a7d701b91bac. This issue has already been fixed after pip 8.0.1 released. TrivialFix Change-Id: Ie559286beac56aa5ac35addd647c1d342ba6562b
2016-01-20Pin the pip version to 7.1.2Jeffrey Zhang1-0/+6
latest pip 8.0 can not override the system installed package Closes-Bug: #1536023 Change-Id: Ida07fc9e2e8aaffb3caaffce75ec4cbf8a4994e8
2016-01-04Bump versions of os-client-configSamYaple1-1/+1
Bumping up the versions of our pinned software. TrivialFix Change-Id: I0b97c3d57d47850e51b56d5d19be45c29496f395
2015-12-29Merge "Fix pip install settings"Jenkins1-1/+1
2015-12-27Fix pip install settingsSamYaple1-1/+1
There were some inconsistencies with pip install instructions thoughout Kolla. We fix those here. Additionally, we fix the virtualenv to properly use the site-packages on the host if a library is not available in the venv. Change-Id: Ib84d48e8826bb96060338b3fa0782620c98794a8 Related-Bug: #1524684 Closes-Bug: #1529434
2015-12-26Adjust CMD for data and kolla-ansibleSamYaple1-0/+2
The CMD command for data causes docker to launch it with /bin/sh which is ugly when viewing the containers statuses. Additionally for kolla_ansible we were not specifying the CMD at all, forcing us to use the 'command' param to set the sleep command. This patch brings the kolla_ansible launch inline with the rest of the project. TrivialFix Change-Id: Ic87a89921674802c15596756526e07f52a782f32
2015-12-23Merge "pep8 the ansible modules"Jenkins5-45/+51
2015-12-22Pin shade and os-client-configSamYaple1-2/+3
Change-Id: I0f6b37ad59a1218d62c5c42c02c63066f44ffed7 Closes-Bug: #1528702
2015-12-22pep8 the ansible modulesSamYaple5-45/+51
By ignoring the appropriate tests that pep8 does we can properly run *most* of the pep8 tests on all of our modules allowing for a more consistent coding style. Closes-Bug: #1528431 Change-Id: I33f27a250d06d4f044267aa3ad189e092789b8df
2015-12-16Bump the ansible version to v2.0.0-0.7.rc2Jeffrey Zhang1-1/+1
The keystone_user is deprecated and the os_user module is added since v2.0.0-0.4.beta2[0], which should be used for keystone user creation. [0] https://github.com/ansible/ansible-modules-core/commit/cdf7117f7eec002ff6fce5900d2706e8a1abc399 Closes-Bug: #1526589 Change-Id: Ibe791913af52df5eb22eecdfc0f0156e2d0019a4
2015-12-15Fix MySQL-python build on CentosMartin André1-0/+2
The build of MySQL-python started to fail after the update to Percona-Server-devel-56-5.6.27-rel76.0.el7.x86_64 with: /usr/bin/ld: cannot find -lmysqlclient It appears Percona-Server-devel package provides a broken /usr/lib64/libmysqlclient.so that points to nonexistent libmysqlclient.so.18. Fix the build by installing MariaDB-shared package from the mariadb repo that contains the missing file. Change-Id: Ia95fddfe44f54bd355c6f3d0ac895fdc05cecff9 Closes-Bug: #1526129
2015-12-14Add ZooKeeper module to kolla-ansibleMichal Rostecki2-4/+5
ZooKeeper module already existed, but was not added to the container. Closes-Bug: #1525820 TrivialFix Change-Id: I4de6aea4d4b209c94ed33205b0ec3c339e9ab692
2015-12-02Sanity check for glanceMichal Jastrzebski1-1/+5
This runs first sanity check for glance. After glance is deployed it checks images.list(). Also consist few fixes for previous patches Change-Id: I03d05d246302d8411b2e94c94ca7fe046c00d735 Partially-Implements: blueprint sanity-check-container
2015-12-02Sanity check moduleMichal Jastrzebski2-1/+60
This module will be collection of basic checks to ensure that module is running. After deploying service (like keystone) we will run sanity checks for given service. Change-Id: If7dc7f8a1ce1c3f93fc51d8327a55ef655b0de00 Partially-Implements: blueprint sanity-check-container
2015-11-27Source installation in virtualenvMichal Rostecki1-3/+22
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-11-23Merge "Switch find_disks to use a decent python lib"Jenkins2-2/+77
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)1-1/+1
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-20Switch find_disks to use a decent python libSam Yaple2-2/+77
Now /dev/loop devices will work! Change-Id: Icb8efe4f9bc3a21a72eb04bfd03452c26f13fd70 Closes-Bug: #1518438
2015-11-13Merge "Add ZooKeeper support in kolla-ansible"Jenkins1-0/+66
2015-11-13Add ZooKeeper support in kolla-ansibleMichal Rostecki1-0/+66
In kolla-mesos, ZK will be used for storing information about actions done in bootstrap. Change-Id: Id7067a493b457cf7b73eb007852df7b13f4363b3 Partially-Implements: blueprint zookeeper
2015-11-12Move USER operation after footerSam Yaple1-2/+2
The USER operation affects all docker commands after it. This causes a problem with our {{ include_footer }} implementation since commands in that footer may require elevated permissions to perform. In the current implementation I can no longer remove my proxy settings once the USER has been changed. Change-Id: I9b2bab5a15f595f6d52a46c64ddf59ba5608b938 Partially-Implements: blueprint drop-root
2015-11-11Drop root for kolla-ansiblePaul Bourke2-2/+8
This change ensures commands run in the kolla-ansible container are done as the 'ansible' user rather than root. By default Ansible tries to write it's temporary files to $HOME/.ansible on the target, which in most cases won't exist when run as the new user. Hence we now supply the kolla-ansible container with an ansible.cfg, to tweak the remote_dir option to /tmp. Change-Id: I838a8c8cd0c7dc1aeca4d12e38c346f252170e7c Partially-Implements: blueprint drop-root
2015-09-30Lock down ansible versionSam Yaple1-1/+1
We can lock down to this alpha version as long as it works once. That is the value of building an image here. We likely won't run into any bugs if we can deploy from this tag at least once. Change-Id: I864290260d7fbdcd8325748788d2454d1dc1a699 Closes-Bug: #1501455
2015-09-28Implement a install_type and install_metatypeSteven Dake1-1/+1
This prepares for the RHEL OSP implementation by making the build tool convert all binary-* into an install_type of binary and * into an install_metatype variable substitution inside the Dockerfiles. Further binary-* is substituted as install_name to enable proper building only. Change-Id: Ib681b29176eb79a3cab12ec824313fdecb6e7a5f Partially-Implements: blueprint rhel-based-image-support
2015-09-17Regression: git is required to build from source on ubuntuSean Mooney1-6/+0
- this change fixes a regression of bug/1481560 - this change re-adds git to the openstack base image when building images from source on ubuntu. - removed explicit git install from kolla-ansible Closes-Bug: #1496561 Change-Id: Ia8a125e40bc6510af6d44c5317647be7ce27b0d6
2015-09-04Add 'rhel' for RPM distrosSteven Dake1-1/+1
Add 'rhel' to list for RPM based distros. Also sort the distro list for rpm packages for affected lines. Change-Id: Ied4cb3e9763d6c6359f314d16185383ac3e006ed Partially-Implements: blueprint rhel-based-image-support
2015-09-03Create openstack-base containerSam Yaple1-1/+1
This creates and moves the dependencies for Ubuntu into a common openstack-base container. This commit shows dramatically smaller sizes for all non-openstack containers. The Openstack container remain the same size. Change-Id: I2f46420d4b9edcfddda374caddcce906fc708f6c Partially-Implements: blueprint openstack-common-container
2015-09-01Register internal_url properlySteven Dake1-1/+1
The external url was being registered in the Keystone service with the internal_url contents. Fix that problem. Change-Id: Ie134be4bf9e76b8bc085de2e31561a72b647c024 Closes-Bug: #1490867
2015-08-29Add Ansible support for HeatSteven Dake1-4/+4
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-28Move docker_templates to docker dirSam Yaple3-0/+205
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir