aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-toolbox/Dockerfile.j2
AgeCommit message (Collapse)AuthorFilesLines
2016-08-19Handle empty package list for install_packagesShaun Smekel1-1/+1
Currently if the install_packages macro is run with an empty package list, it will add a yum or apt-get command with no packages listed. This bug fix aims to omit this line when no packages have been given, or, the operator wants to use the "_override" / "_remove" functionality to disable all packages being installed in a Dockerfile. Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: Ifaaaebfccc3adb0f2f68a35ac08e59378bc87fdb Closes-bug: 1612446
2016-08-17Add crudiniKevin Fox1-0/+2
Add the crudini tool that allows easy manipulation and data extraction from ini config files. This is intended to be used by kolla-kubernetes. TrivialFix Change-Id: Icbdd14ad2a68f7c176ee65f1d132c552e8331652
2016-08-16Add jqKevin Fox1-0/+2
Add the jq tool that allows easy manipulation and data extraction from json documents. This is intended to be used by kolla-kubernetes. Change-Id: I478be7ec403e3444a412e1bcd47fd52f3a4e8095
2016-08-05Customizations for kolla-toolboxRevanth Alampally1-26/+29
This patchset contains customization of Dockerfile of kolla-toolbox containers. Change-Id: Idd141935012874e1184c1d88cd0e0fdc37e1b6c9
2016-07-07Read GPT label using sgdisk rather than udevStephen Hindle1-0/+5
The Ceph osd bootstrap/startup logic depends upon reading/writing partition names. Some older versions of udev have trouble reading these (/dev/disk/by-label is missing). To work around this, we shell out to sgdisk and scrape the partition name data directly. Co-authored-by: Paul Bourke <paul.bourke@oracle.com> Closes-Bug: 1585185 Change-Id: I362b3f8e91de79687fc84e256996fbcaf303b6af
2016-06-14Create ansible home directory in kolla-toolbox containerChristian Berendt1-1/+1
This solves the following issue when running an ansible command inside the kolla-toolbox container: [Errno 13] Permission denied: '/home/ansible/.ansible' Change-Id: I654d27c49b7fcc50e018b61146084660894352aa Closes-bug: #1592268
2016-06-09Merge "Bump the ansible version to >2 in the kolla-toolbox"Jenkins1-6/+1
2016-06-07Bump the ansible version to >2 in the kolla-toolboxJeffrey Zhang1-6/+1
Kolla do not depend on certain version of Ansible. So install the ansible using pip Change-Id: Id1bf103a1f5c2a1cde653d53110f28c903ae8768 Partial-Implements: blueprint ansible2
2016-06-04Make container kolla-toolbox build with debianBenedikt Trefzer1-1/+7
- handle different path for os_client_config Change-Id: I1134a932845ee22e8318c14ec02f0478eee11b9a Partially-implements: blueprint build-debian
2016-05-02Remove dependencies on kazoo and friendsSteven Dake1-2/+1
Since kolla-mesos has been retired, there is no need in the code base to keep the zookeeper implementation. As a result, just remove it. If we were to keep it we need virtualenvs for that part of the code base which installs the python dependencies related to it for from-binary installs. This just simplifies the implementation tremendously and culls dead code. Change-Id: Ieda226e652d67f5b5667112f4f2556f3171366d3 Closes-Bug: #1577194
2016-04-13Fixes kolla_toolbox failure due to missing pytz moduleSerguei Bezverkhi1-0/+1
kolla_toolbox contantly fails to build due to a missing module pytz, add it before the dependent module installation. Change-Id: Ia497f4eef830259e8e27307d6b3100dc7660b99f Closes-Bug: #1569633
2016-03-29Fix gate by adding MariaDB-shared dependnecySteven Dake1-0/+1
With the reorganization of the MariaDB repository, the C libraries for mariadb were not included in the toolbox container. This results in a non-functional CentOS environment which is resolved by this simple patch. Change-Id: Ib4a2f7e55b6efc36bc3ff2d93447cb97b7b109f5 Closes-Bug: #1561347
2016-03-28Revert "Fix consistently failing CentOS gate"Sam Yaple1-2/+1
This reverts commit 17e0de6aa6c32c5adebeffc90c96f15285877cf5. This change should have never merged. There is something else going on here and the bug doesnt fully invetigate the issue. Using a mix of system and pip packages is not acceptable and can cause problems. In this case the packaged mysql has a KNOWN issue that we fixed in liberty by switching to the pip installed package. Change-Id: Ie10116010156c13742a0a5d37c440c713e4698e5
2016-03-24Fix consistently failing CentOS gateSteven Dake1-1/+2
This fixes a gate regression and probably regression in general with building images. I'm not sure where the regression came from, but I suspect a new verson of MySQL-python from pip is to blame. Closes-Bug: #1561347 Change-Id: Ib502d0090a3fc3b3ea5d27a91ff59df1f53c01a3
2016-03-17Reorder operations of mkdir and useradd in toolboxSteven Dake1-2/+2
The home directory for Ansible already exists and does not need to be created. Reorder useradd and mkdir at suggestion of Jeff Peeler to avoid warning. The warning looks like this: INFO:__main__:kolla-toolbox:Step 6 : RUN mkdir -p /etc/ansible /usr/share/ansible /home/ansible && echo 'localhost ansible_connection=local' > /etc/ansible/hosts && useradd --user-group ansible --groups kolla && sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' /usr/lib/python2.7/site-packages/os_client_config/defaults.json INFO:__main__:kolla-toolbox: ---> Running in ccded9c01fca INFO:__main__:kolla-toolbox:useradd: warning: the home directory already exists. INFO:__main__:kolla-toolbox:Not copying any file from skel directory into it. INFO:__main__:kolla-toolbox: TrivialFix Change-Id: I031ade6597f8071f5be1768a7e70b1008dd94e52
2016-03-09mariadb-devel is deprecatedSteven Dake1-1/+1
mariadb 10 uses the packaging convention MariaDB-* to not conflict with mariadb 5. As such, MariaDB-devel was indicating a deprecation warning which this patch removes. TrivialFix Change-Id: I4b51fcedce3ef9e44c4a6830cd38ca8040a4d3f6
2016-03-04Bump ansible version to head of develSamYaple1-1/+1
bcoca has asked we use head of devel to fix the loader issue TrivialFix Change-Id: Ie6f4b6bbdffed9a85c840a4f425d866fc5402f4b
2016-03-03Fix Keystone v3 and HorizonSamYaple1-1/+2
After our switch to keystone-manage bootstrap Horizon is not happy due to v3 not being setup correctly. This patch fixes that This also includes removal of unused variables (transforms them into endpoint url variables) TrivialFix Change-Id: I1e04db8c24049f80e974c063f03068a2ab32a563
2016-03-03Bump to latest ansible and depsSamYaple1-4/+4
Ansible is pinned to single commit in devel branch to pull in the latest shade module we need (domain control). It will be available in ansible 2.1 TrivialFix Change-Id: I4c21fa1d2cec30d4aeb80e050ef4a62332f9ed45
2016-02-23Remove unneeded depsMartin André1-2/+0
Percona has fixed their packaging issue and now MySQL-python installs cleanly without the need of MariaDB-shared package. TrivialFix Change-Id: I42672c269185352ab4999683bd0ad7c5f23de3bb
2016-02-23Fix building centos kolla-toolboxJeffrey Zhang1-1/+0
Percona recently updated their package which is now conflicting with mariadb-libs. Closes-Bug: #1548589 Change-Id: I9db7ffb8b94b623784cffa3e63804c47375097d1
2016-02-17Fix the incorrectly removed dependent packagesAllen Gao1-1/+1
Change-Id: I3d963cd58ef791d30a90f3a74cac2477dac3edfd Closes-Bug: #1546449
2016-01-29Make kolla-toolbox container build on CentOS binSteven Dake1-1/+2
Ansible installs pytz from pip which is newer then then pytz in RDO repositories. As part of this process, it removes pytz which corrupts the python installation in some way. This causes further pip usage to produce a backtrace causing the kolla-toolbox container not to build. Mixing pip and RPM is not good. Change-Id: I413468641bad5476cfcba61cb0e2189c31f3d682 Closes-Bug: #1545215
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-0/+62
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