Commit Graph

11 Commits

Author SHA1 Message Date
Marios Andreou 57cdfca7cd Adds build-images role - migrates image build in ci to a role
This migrates the code under playbooks/tripleo-buildimage to a
buid-images role in /roles/. Tracked by tripleo-ci squad in [1].
This will also allow for re use in rdo-jobs or elsewhere.

Mostly copies existing code - some main additions/changes:
 - removes the obsolete run.yaml
 - existing run-v3 is split into pre/run-v2/post playbooks
 - playbooks/tripleo-buildimage moves to playbooks/tripleo-buildimages
   (for consistency and since the role is build-images)
 - existing shell task for building images is moved to a template
 - adds support for py3 packages and image-yaml config files.
[1] https://tree.taiga.io/project/tripleo-ci-board/us/956

Change-Id: Ie092b0430f10ad461e02d8361b557ab11c3993c0
2019-07-05 11:16:41 +00:00
Sorin Sbarnea 8ce78d3a18 Bumped and hardened linting
- Fixes one bashate problem
- Updates linters
- Addressed most of the skip_list exclusions and removed them

Assure the `pre-commit run -a` is always run on all files instead
of old behavior which allowed linting to be broken when merging.

Bumping operation is mostly automated, we just need to run:
`pre-commit autoupdate` from time to time and fix eventual issues.

Change-Id: If75a3e49a9d570e744063ea35ea41919261ad876
2019-06-26 12:31:29 +01:00
yatin 93768b46ee OpenDev Migration Patch 2
These changes were missed by Sysadmin's proposed
Migration Patch, this patch takes care of these
missings.

Also updated kolla review pull task to use
review.opendev.org instead of opendev.org as
remote url because opendev.org currently don't
have review refs/changes synched due to gitea bug.

Related-Bug: #1825732
Change-Id: I30646b0c5b95f391e9ab4bd767b468280ccb3842
2019-04-22 11:04:00 +05:30
Ian Wienand 5c808296ae Replace openstack.org git:// URLs with https://
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: I2562cef678dca4201f497b1140ca092287ddf5cf
2019-03-24 20:36:17 +00:00
Alex Schultz cf667ebfd8 Update heat agent path for image building
The heat-agent dib elements should be pulled from the heat-agents
repository and not the heat-templates repo. These agents have been
recently removed from the heat templates repo which has broken the image
building. https://review.openstack.org/#/c/584777/

Change-Id: I5bbf0b7b3c8c69d538f6ad07219a1bdd106a43b1
Closes-Bug: #1810431
2019-01-03 10:33:41 -07:00
Alex Schultz c68220e8e8 Update buildimage playbook for zuul v3
Rather than continue using a venv, let's update the job to zuul v3 and
use the native system to perform the image building.

Change-Id: I2a7a60cf3f81102ffbb95187f7419e4c804be689
2018-11-12 16:47:29 +00:00
Alex Schultz a6fcd2f7c2 Drop instack-undercloud for image building
We don't need this path for < Stein.

Change-Id: If870627045affeeb98669f7f5910e0f60b372508
Closes-Bug: #1801384
2018-11-02 09:58:11 -06:00
Paul Belanger 5c4416d8c4
Stop using slave_scripts/install-distro-packages.sh
Migrate the legacy job to start using our bindep role from zuul-jobs.
This will allow openstack-infra to delete
slave_scripts/install-distro-packages.sh in the future.

Change-Id: I2314d9517e930c9ff95c1d96af81819c3ac80e72
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-23 13:56:21 -04:00
Derek Higgins 9f34a1de6b Install the zuul-cloned dib and tripleo-common
For stable branches in addition to master. So that the code changed
gets deployed. Similar to the recent change to do this for master
(I72cab0131ccffb1989d6c1324d0c9b92166782da) but for all branches.

Also add the queens rdo repository paths. As stable branches now
include have queens.

Change-Id: Iac57d604fa49b6dab836001daba36da0685aed74
2018-03-27 10:43:59 +01:00
Ian Wienand 21ed537271 Install tripleo-common from source
This test currently installs tripleo-common from pypi.  This can cause
problems; for example I1e64647b3de86bc87a2a04cedf54ac83bbd4963d added
config options to the yaml files (which *are* used directly from the
tripleo-common zuul-cloned tree) and a related code change; but the
code change isn't deployed and we get failures parsing the config.

Also, it means you can't depends-on tripleo-common changes in
dib/python-tripleoclient.

Install it alongside the zuul-cloned dib install.

Closes-Bug: #1757174
Change-Id: I72cab0131ccffb1989d6c1324d0c9b92166782da
2018-03-21 12:37:43 +11:00
Emilien Macchi 85bf2e8dde Import TripleO legacy zuul jobs
- Import tripleo-buildimage playbooks and refactorize.
  Note: tripleo_image_type var was created to re-use the
  same playbooks.
- Import toci_ci playbooks and refactorize.
  Note: some vars were created to re-use the same playbooks.
- Import jobs, templates and projects layouts.
  Sort jobs by type so it's easily understable.
- Create new templates and use these templates in tripleo-ci.
  It will make projects layouts easy.

Change-Id: Ie8aa85fe7a8ee556cc1b46e215d329e95913290c
Co-Authored-By: David Moreau-Simard <dms@redhat.com>
2017-11-15 18:54:02 -08:00