summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29CI: clean up setupRadosław Piliszek2-84/+1
Removes stuff which does not belong here, along with the docker daemon systemd service overrides. Also re-enables IPv6 on CentOS node. Change-Id: I45238b087647e733544561d333aa560f82e2a07c
2019-09-19CI: Use docker mirror proxyRadosław Piliszek2-5/+9
TODO: Debian build still requires access to original repo. Change-Id: Ie4bac5334369a63793d36568a9d3a58a0cdc7667 Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
2019-09-18Remove support for OracleLinuxMark Goddard1-1/+1
We have agreed to remove support for Oracle Linux. http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006896.html Change-Id: I961dfba1aeef2c509ecdaf376dfe6928926ffb39 Depends-On: https://review.opendev.org/682858
2019-08-16CI: drop docker systemd MountFlagsMarcin Juszkiewicz1-1/+0
https://review.opendev.org/#/c/674587/ dropped using of that flag in deployments. Time to drop it on CI as Debian CI fails when it is enabled. Change-Id: I57fa5206f91abcedcd2d526e71e74cf634b81d2c
2019-07-15cleanup setup of Debian/Ubuntu CI nodesMarcin Juszkiewicz1-5/+7
Change-Id: I3a771793dfbbfc26f6d5716ba7a5b60c2e6154fa
2019-07-15Merge "Add script to check for forbidden instructions"Zuul2-0/+50
2019-07-05Merge "Change port of docker registry"Zuul1-1/+1
2019-06-20Clean up test processRadosław Piliszek3-32/+1
If stestr failed, then no node info was logged. Logging node info is now handled in pre and post stages of Zuul. Additionally Zuul v3 migration recommendations were applied and some unused code removed improving general readability. Change-Id: Iae9d37cb76997ba8389e21c7e2a3bf5905abe029 Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
2019-06-18Merge "Remove crane image"Zuul1-1/+0
2019-06-17Change port of docker registrypengdake1-1/+1
The port of docker registry is conflict with keystone. So we need to change port of docker registry. Change-Id: If15c0caf76b5406f590b05030e43d65ca14c8788 Signed-off-by: pengdake <19921207pq@gmail.com>
2019-06-07Add script to check for forbidden instructionsMartin André2-0/+50
When building images for binary type, it is expected to not install executables from untrusted sources, and gem, sensu-install, npm or pip packages for instance should come from the distro itself. This commit adds a `validate-binary-build.sh` script that checks for forbidden commands in the rendered Dockerfile templates for the binary type builds and hooks this script with the pep8 CI job. The output is just informative for now until we've fixed the culprit Dockerfiles, then we'll make the script return an error code and with the ability to fail the pep8 CI check. This should prevent unwanted commands from entering binary type Dockerfiles. Change-Id: I66e54bd18f4256cdca6c0c50626de4f975c246b8
2019-06-07Remove crane imageMark Goddard1-1/+0
This image was deprecated in the Stein cycle. Change-Id: I249b78cd263c97c4a9223523c77f8c325f3e649a
2019-05-20Ignore EM releases in version-check.pyMark Goddard1-0/+4
We don't want to use Extended Maintenance (EM) tags, since these are just markers of a point in time and not available as released artifacts. Change-Id: If552f7ffc22d4b25769c14c083179eecf5a93158
2019-04-10Version check: update using project name or tarball nameMark Goddard1-0/+2
The current code worked only if the project was using the project_name in kolla/common/config.py, rather than the tarball_base name. This is only true on master - on stable branches we may switch to use the tarball_base name, so the regex won't match. Change-Id: I839649e6ef662ae3ff320edb3106da818956d26d
2019-03-28Set requirements branch in version-check.pyMark Goddard1-21/+38
We use the stable branch of the requirements project. Also add an exception for the crane project, which is not managed by OpenStack releases. Make use of 'tarball_base' field to handle tarball renames. Change-Id: I05186d9a3e21615e6b49c62cea83bc4bde4702fe
2019-03-25Remove unused scriptsMark Goddard2-112/+0
Removed various scripts which were part of previous CI configurations. Change-Id: I674c3bb89e049638926fcb2ad6577123117b5d32
2019-03-24Replace openstack.org git:// URLs with https://Ian Wienand2-2/+2
This is a mechanically generated change to replace openstack.org git:// URLs with https:// equivalents. This is in aid of a planned future move of the git hosting infrastructure to a self-hosted instance of gitea (https://gitea.io), which does not support the git wire protocol at this stage. This update should result in no functional change. For more information see the thread at http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html Change-Id: Ia4ad8d139eb5b37a9e661a789df13ec300eeee6f
2019-02-21Use overlay2 in tools/setup_Redhat.shMichal Nasiadka1-51/+1
Currently CentOS gates use btrfs storage driver and create /docker device backing btrfs. This patch is to sync the gate run with Ubuntu. (post-Trusty) does not use btrfs, only overlay2. Change-Id: Ic5caa8cf0271b21f71f03fd33c35b3c7bc93ccf4
2018-12-27Update hacking versionconfi-surya1-2/+1
Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: Ia3d1166a2746a46591e4e5a04ea91e03ddc28d93
2018-12-14Fix mkdir instruction of tools/setup_Debian.shVictor Morales1-1/+1
The mkdir instruction tries to create the /etc/systemd/system/docker.service.d folder wich in some cases might not exists. This change includes hte -p argument. Change-Id: Ia278a2c4dd50a2e57a93b568d0c415e9451fc51f
2018-11-23Bump storage available to Docker in CI to 25GMark Goddard1-1/+1
Currently CentOS binary jobs are often failing due to running out of storage while building images. See http://logs.openstack.org/87/612887/8/check/kolla-build-centos-binary/b467920/logs/build/000_FAILED_heat-all.txt.gz for an example, and http://logs.openstack.org/87/612887/8/check/kolla-build-centos-binary/b467920/logs/df.txt.gz for the corresponding df output that shows the /var/lib/docker loopback mount at 97%. Change-Id: I2f3d04452c517f8643b124550148cc9d8320b937
2018-09-14Ingore monasca-thresh in version-check.pyEduardo Gonzalez1-1/+2
monasca-thresh package is not published in tarballs.openstack.org and fails to detect proper version for it. Add to external managed packages list Change-Id: I5da4da1f5291e993fdcd04177c634147204ad9ed
2018-07-26validate-indentation: expand check to also catch macros.install_packagesJon Schlueter1-0/+6
Fixed up 5 Dockerfile.j2 files that had the issue Change-Id: I8a5551050a75d64712c36d53573437a18777a82f
2018-06-21validate-indentation was failing locally for meJon Schlueter1-1/+2
grep -E '^\s+[A-Z]+\s' was matching any " a " " FOO " where this was trying to only catch " FOO " case Change-Id: Ife64cb9f02b3f1463d5143e57629418bc478de49
2018-01-17Merge "Validate Dockerfile indentation in pep8"Zuul2-2/+20
2018-01-09Make validate-all-dockerfile work with python3Jeffrey Zhang1-1/+1
Change-Id: I9895c958a4cea91fca014d8f28f448a00b2ae02c
2017-12-05Validate Dockerfile indentation in pep8Martin André2-2/+20
Delegate code style validation to computers, they're better than human at it :) This commit adds a new `tools/validate-indentation.sh` script that errors when it finds an indented Dockerfile instruction, and enables the validation in the pep8 check. Also adjust the logic of `tools/validate-all-dockerfiles.sh` so that it doesn't stop on first errors but instead shows all of them. Fixes the remaining indentations in Dockerfiles. Change-Id: I53c0d38304cb4f6d64a5dfab67f70d69b3eae587
2017-11-06Dockerhub publisher jobMichal (inc0) Jastrzebski1-79/+0
This patchset includes pushing mechanism for daily periodic jobs. Change-Id: Ic4179ffd3a6e640abfb181dbd000bc75cc64b750
2017-10-19Merge "Moving jobs to kolla repo"Zuul6-241/+15
2017-10-19Moving jobs to kolla repoJeffrey Zhang6-241/+15
This is zuulv3 migration patch. This patch only implement build jobs. Deploy jobs will be pushed in another one. Partial-Bug: #1720601 Change-Id: Ib9157ed132820d752ef1dbd7a53353ebd68b1934
2017-10-06Remove a Pike release note generated in bad placeBertrand Lallau1-5/+0
All release notes must leave in "releasenotes/notes" directory. One of them has been generated in wrong place "tools/releasenotes/notes" for Pike release. This patch just remote it. Change-Id: I2f6d22954288445b2d9e325f1d104e9bf43d0029
2017-09-21Merge "Create swapfile only on nodepool nodes"Jenkins2-2/+2
2017-09-19Merge "Remove demos directory from contrib"Jenkins1-2/+0
2017-09-19Pin ansible to <2.4 to make ara work in gatesEduardo Gonzalez1-2/+1
ARA does not work yet with ansible 2.4 ARA has pinned to lower version than 2.4 https://review.openstack.org/#/c/500651/ Change-Id: Idfe1e7ad46efac965a22b4f7fa833babf22ba375
2017-09-12Remove demos directory from contribChristian Berendt1-2/+0
The demos are already part of kolla-ansible repository. Change-Id: I075ea1308c24d4260cafbc502a2f2815df1ee14c
2017-09-11Create swapfile only on nodepool nodesChristian Berendt2-2/+2
TrivialFix Change-Id: I73d208d2a52c018ad6027f811c6b3a2eee802015
2017-08-29Fix gates out of disk spaceEduardo Gonzalez5-5/+43
Sometimes gates fails due lack of space, post merge jobs gates fails always for oraclelinux binary, not being able create a tarball registry. This change mounts a second disk in opt and moves registry data to opt. Disk format commands are excepts from devstack-gate: https://github.com/openstack-infra/devstack-gate/blob/dc49f9e6eb18e42c6b175e4e146fa8f3b7633279/functions.sh#L306 Closes-Bug: #1713652 Change-Id: I883e51042841709eb9ab348cfdce9fecbd4fb890
2017-08-29Merge "Make Oraclelinux use infra mirrors"Jenkins1-5/+2
2017-08-28Make Oraclelinux use infra mirrorsMichal (inc0) Jastrzebski1-5/+2
Due to typo oraclelinux didn't use mirrors provided by infra Change-Id: If25a9a028636cbf66d707a0a58e288f17e65cc71
2017-08-28Changed as per the standard convention set to use "."Surya Prakash Singh2-3/+3
When we have to source a script file use . instead of source For Reference follow below link: https://docs.openstack.org/contributor-guide/writing-style/code-conventions Change-Id: Icc6a692d37e8a5bc1146d803c873505cbf6cd03f
2017-08-21Fix wrong permission check for kolla_logs folderJeffrey Zhang1-1/+1
kolla_logs is only accessed by root. So use sudo when checking whether kolla_logs folder exist. Closes-Bug: #1711996 Change-Id: If324ad6818f53c16d55cd95f8c7bed03f1906721
2017-07-27Merge "Corrected tmp location of ansible prechecks command"Jenkins1-1/+1
2017-07-25Merge "Add openstack logs in deploy gates"Jenkins1-0/+9
2017-07-25Merge "Use latest docker ce in gate"Jenkins2-28/+9
2017-07-25Corrected tmp location of ansible prechecks commandSurya Prakash Singh1-1/+1
Just to avoid the confusion in reading the location, improved the readability. Change-Id: I2f2ce2f275674ab2dc686d5e4df2701880fbe4c0
2017-07-21Add openstack logs in deploy gatesEduardo Gonzalez1-0/+9
Change-Id: I9195ecb2ab3d20714cb533496e914124c5933ad2
2017-07-20Fix tarball name againMichal (inc0) Jastrzebski1-1/+1
I messed up first one:( Change-Id: Icf81ec03233c38a6ca1a7dafb0a3bb2d3bc8b69e
2017-07-19Fix incorrect tarballs namingMichal (inc0) Jastrzebski1-1/+6
Last patch with publisher pipeline broke our post jobs. This is supposed to fix it Change-Id: I1040b4db7fe44ad631a3047292038da3445c20b5
2017-07-18Dockerfile publishing pipelineMichal (inc0) Jastrzebski2-8/+66
We now have experimental gates which will eventually be daily jobs to build, test and publish images to dockerhub. First step is to mimic our tarball publisher to build images -> save them to temp space -> run set of jobs that will sign off these images -> move images to regular tarballs. Depends-on: I0231bd07415ef05b3f4f937e32a9df4cd0643672 Change-Id: If578edcd4e431c0b93cb9cedcc3d9db47d41a637
2017-07-18Use latest docker ce in gateJeffrey Zhang2-28/+9
Change-Id: I1cb6189cec2704edfc461538ef593d38e81ca343