aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-toolbox
AgeCommit message (Collapse)AuthorFilesLines
2017-04-03Merge "Add None value to service.description attribute"Jenkins1-1/+2
2017-04-03Merge "Alphabetize packages"Jenkins1-5/+5
2017-03-28Alphabetize packagesEduardo Gonzalez1-5/+5
Some images have packages sorted alphabetically and some not. Unify common style between all images. Change-Id: I906ed89c10b12886665618752f525ba71d83d991
2017-03-21Make keystone_user module fully shadeEduardo Gonzalez1-21/+14
Kolla_keystone_user ansible module was not fully using shade due limitations of Ansible version prior 2.0. This has changed and lower version than 2 are not supported. This change migrate the module to fully make use of shade library. Maintains idempotency and the same features it had. Change-Id: Ic0d21736fa666836b85f50b659c756edc0982fdd
2017-03-16Add None value to service.description attributeEduardo Gonzalez1-1/+2
When using kolla_keystone_service module, if description attribute is not created(example Keystone). Service update will fail due missing attribute. This change adds a None value to description in order to allow service update when description was not added. Change-Id: I568db4559428525ac6c5083cfc20cffc20be6342
2017-02-24Update pins on shade & os-client-configPaul Bourke1-2/+2
Shade has new functionality we need for sanity checks. This also requires a newer os-client-config. Change-Id: If6d10f2ce90c7fc72353566554352b0310942f30 Partially-Implements: blueprint sanity-check-container
2017-02-17Use install-pip macro in most source imagesChao Guo1-7/+10
1. Enable customization of pip packages in source branch of most images 2. All pip packages install uniformly through install-pip macro, user can easily customize his own pip command (For example using a mirror) Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Change-Id: If09582039f690fa4136e8f33200d5da15e092da7
2017-02-09Multi-Regions Supportrcherrueau1-1/+2
The deployment of a service requires the creation of a new service endpoint into Keystone. To create a new service endpoint the kolla_keystone_service tests if the service is already registered and updates the URL if so, or create the new endpoint in other cases. In the actual implementation, the register test only looks at the service id and interface which makes the test behaving wrong in multi-regions context. In multi-regions, we deploy the same service many times, and thus, actual implementation considers that this is the same service and updates its endpoint rather than creating a new one. This fix adds a condition to the test that verifies the region to distinguish two identical services deployed into two different regions. Change-Id: Ie7ca8800fe3c5a9585e4b0bbbc38ac628ec753bc
2017-02-05Remove include_header and include_footer in all DockerfilesJeffrey Zhang1-1/+0
include_header and include_footer parameter is already removed, remove them in all Dockerfiles. Add missing footer block. Change-Id: I90da03eb9f95a3827361d5f5ede65fde7d6be2b3
2017-01-17use static uid/gid in imagesSam Yaple1-3/+4
This centralizes all user and group creation into a single source. This will fix any current and furture uid/gid mismatches (such as with nova-libvirt). In the process, we also unify users between the distros in a standard way. The users in the following containers change from thier defaults: Ubuntu: _chrony user is now chrony Ubuntu: memcache user is now memcached All: qemu user is used for ownership and socket permissions All uid and gid numbers are customizable via kolla-build.conf Co-Authored-By: Kris Lindgren <klindgren@godaddy.com> Change-Id: I120f26ab0683dc87d69727c3df8d4707e52a4543 Partially-Implements: blueprint static-uid-gid
2016-11-16Add a 'fallback mode' to disable udev in find_disksPaul Bourke1-24/+42
As part of change I362b3f8e91de79687fc84e256996fbcaf303b6af a check was added to use udev to read GPT labels only if the version of udev installed supports that, otherwise fallback to sgdisk. Unfortunately the check for udev version is unreliable, as it is returning the version of the udev userspace tools installed within the container rather than on the host. As well as this, we're seeing the find_disks.py having trouble reading the UUID of a partition via udev. The test system is Oracle VM 3.4.2 which was released earlier this year, but has an old udev (derivative of RHEL 6). Even if we use Ansible to query the host's version of udev and pass that through to the container, querying the above disk attributes is a lottery on older systems without a reliable reference of which versions of udev support which operations. Hence we should give operators a reliable way to toggle it's usage. Partial-Bug: 1631949 Change-Id: I6ad7825cdb164498f3d02f2ae064c7c1c38e10d5
2016-11-04Merge "Add kolla_ prefix for all sudoers files"Jenkins1-2/+2
2016-11-04Merge "Allow operators to customise pip in kolla-toolbox"Jenkins1-8/+11
2016-11-04Add kolla_ prefix for all sudoers filesJeffrey Zhang1-2/+2
Add kolla_ prefix for all sudoers files in case of overwrite. TrivialFix Change-Id: I33cd58caf65a116c8442cb931699867b81dba616
2016-11-03Remove Fedora supportChristian Berendt1-1/+1
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-10-21Allow operators to customise pip in kolla-toolboxPaul Bourke1-8/+11
Closes-Bug: #1635304 Change-Id: I6535e3240695458ed04c8750fe34e772a3b2ede3
2016-10-04Revert "Fix pycparser wheel package issue"Jeffrey Zhang1-3/+1
the bad pycparser wheel package has beed removed. This reverts commit 195bcd0f4323462b77d025936b898c85ddd8fdb3. Change-Id: I4669a627b68c4bd7534288c4a594a49226db3832
2016-10-03Fix pycparser wheel package issueJeffrey Zhang1-1/+3
pycparser-2.14-py2.py3-none-any.whl is broken or something misconfigured, while pycparser-2.14.tar.gz is ok. Revert this PS when the bug is fixed[0] [0] https://github.com/eliben/pycparser/issues/147 TrivialFix Change-Id: If719a5fdfbcedfe4770354b18dc47cc94e90dc3d
2016-09-27Fix Magnum trustee issuesVikram Hosakote1-1/+1
This patch set fixes all Magnum issues in kolla master. The [trust] section set to magnum.conf using created trustee domain and user for Magnum in ansible/roles/magnum/tasks/register.yml using ansible openstack modules. Bump shade to 1.5.0 in kolla-toolbox because of os_user_role ansible module dependency. Certificate storage is changed from 'local' (non-production) to magnum's internal storage (x509keypair) or barbican. Co-Authored-By: Martin Matyas <martinx.maty@intel.com> Change-Id: Ifcb016c0bc4c8c3fc20e063fa05dc8838aae838c Closes-Bug: #1551992
2016-09-13Add header blocks to all DockerfilesPaul Bourke1-0/+2
Change needed to add header blocks to all Dockerfiles, similar to the base. Use case is to easily run something before packages are installed, e.g. to COPY a local rpm in that can be added to the package list. Change-Id: I1bbfdf0b762da0a392aa8bf47781315b45377bee Closes-Bug: 1618969
2016-09-02Use the standard start method for kolla-toolbox containerJeffrey Zhang1-2/+0
TrivialFix Change-Id: Icb092e47713e0b89859747d6ed4c02b3950d7ced Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-31Merge "Use dumb-init to manage the pid 1 process"Jenkins1-1/+1
2016-08-30Merge "Make the kolla_keystone_service can update fields"Jenkins1-7/+19
2016-08-28Merge "Fix bandit gate jobs"Jenkins2-5/+9
2016-08-28Fix bandit gate jobsPaul Bourke2-5/+9
* Inspected each error and fixed / added nosec where appropriate. * build-swift-ring.py which was throwing sec errors is no longer used so removed it. * Removed the dev/ directory from being checked. Closes-Bug: #1617713 Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
2016-08-23Add mariadb client binaries to kolla-toolboxStephan Michaud1-0/+2
The kolla-toolbox container contains ansible which has the mysql_db module which helps on various mysql tasks such as db creation. The mysql_db module requires certain mysql binaries in order to accomplish tasks such as restoring a database from a dump. This change adds those client libraries which weren't previously included in the container. Change-Id: I6516838381bf9327c8901fc4c32ebd5151fb053f Signed-off-by: Stephan Michaud <michauds90@gmail.com> Closes-Bug: #1616155
2016-08-23Merge "Remove Kazoo dependency and Kolla Zookeeper helper"Jenkins2-69/+1
2016-08-21Pin Ansible version to 2.1.1.0 in kolla-toolboxJeffrey Zhang1-1/+1
Use a fixed and released Ansible version to keep stability. Change-Id: I885816d85249b15be91b5a101718a05841a20c18 Closes-Bug: #1615350
2016-08-20Use dumb-init to manage the pid 1 processJeffrey Zhang1-1/+1
Normally, when you launch a Docker container, the process you're executing becomes PID 1, giving it the quirks and responsibilities that come with being the init system for the container. There are two common issues this presents: * In most cases, signals won't be handled properly. * Orphaned zombie processes aren't properly reaped. the dumb-init acting like a simple init system. It launches a single process and then proxies all received signals to a session rooted at that child process. Closes-Bug: #1614509 Change-Id: I9d3d04648e151ddc7c6732b92ffd3b6c9fe467ec
2016-08-19Remove Kazoo dependency and Kolla Zookeeper helperSzymon Konefal2-69/+1
Related-Bug: #1577194 Change-Id: Idad2a78d3b4251a321c1a05b435bff4625d5fe56
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-07Make the kolla_keystone_service can update fieldsJeffrey Zhang1-7/+19
Make the kolla_keystone_service can update the following fields * service.name * service.description * endpoint.url TrivialFix Change-Id: If239a518b0217cfc105388ae5e298a8904ac2af5
2016-08-05Customizations for kolla-toolboxRevanth Alampally1-26/+29
This patchset contains customization of Dockerfile of kolla-toolbox containers. Change-Id: Idd141935012874e1184c1d88cd0e0fdc37e1b6c9
2016-07-26Clean up Glance image after sanity checkPatrick Powell1-0/+2
The sanity check creates an image that needs to be deleted after in order for the sanity check to pass so that we complete deployment with a clean enviroment. Closes-bug: #1606580 Change-Id: Ib347f69b69229e39925f0c1ff11069b15afcf192
2016-07-16Merge "Improve glance sanity check"Jenkins1-1/+3
2016-07-14Improve glance sanity checkPatrick Powell1-1/+3
Checks to see if a blank glance image was loaded correctly partially-implements: blueprint sanity-check-container Change-Id: I29549518e726b9530897ef31b120dd3759d1b279
2016-07-07Read GPT label using sgdisk rather than udevStephen Hindle3-2/+33
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-31Log the traceback in the kolla librariesJeffrey Zhang4-8/+19
The traceback is logged also and will be helpful when the library failed. We can get which line is failed from the log. TrivialFix Change-Id: Ia417232007e2f34c83d2e7cad6ed08dee49ce836
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-30Merge "Fix gate by adding MariaDB-shared dependnecy"Jenkins1-0/+1
2016-03-30Merge "Revert "Fix consistently failing CentOS gate""Jenkins1-2/+1
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