Commit Graph

21 Commits

Author SHA1 Message Date
Marios Andreou 963ac72a0a Remove stale bash scripts from tripleo-ci repo
As discussed in the parent patch [1] we should remove these stale file as
they are no longer used. The oooq_common_functions, toci_gate_test,
toci_quickstart have all been replaced by the templated versions in [2].

The heat-deploy-times.py is replaced by the script at [3] in the
ansible-role-collect-logs repo. The generate-kill-heat.sh has not been
touched in over 2 years and as far as I can see isn't being used
somewhere (code search).

Some of these especially the common_functions/toci_ files are updated
out of confusion and causing unnecessary maintenance burden.

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/782549/5#message-f29d32c0c652d0929f680030e1a4c970fb111c2d
[2] https://opendev.org/openstack/tripleo-ci/src/branch/master/roles/run-test/templates
[3] https://opendev.org/openstack/ansible-role-collect-logs/src/branch/master/roles/collect_logs/files/heat-deploy-times.py

Change-Id: If248d145cdcaa448de601b24a80a11d567fb235f
2021-04-08 12:36:53 +03:00
Alex Schultz ce590c4c13 Add support for puppet-pacemaker stable
We need to handle the puppet-pacemaker stable branches differently.

Change-Id: I2057e9ebe496e62ff68370b48cee9eeb1ae984e8
2020-10-12 08:53:14 -06:00
Sorin Sbarnea f54d582f28 Removed several gzip operations
As log storage takes care of compression is better to avoid performing
any gzip activity on *text* files that we want to access with the
browser.

Change-Id: I7dcd1cf569fea5e536926f7188af953c3301af0f
2020-01-16 17:41:37 +00:00
Emilien Macchi 4830a31bd5 Use Docker v2 registry mirrors from Opendev infra
Use the new registry provided by Infra which is Docker Registry v2 and
not v1 anymore. I'll probably be more stable for us when doing HTTP calls
against the registry.

Change-Id: I8294d734984fee721c3d856c40fc4795288bd060
Related-Bug: #1819632
2019-03-12 23:51:50 +00:00
Sagi Shnaidman c797fb3f6b Set feature branch for OVB
Depends-On: https://review.openstack.org/631966
Change-Id: Ia887216508f849da492361927bf8158acf52d682
2019-01-20 16:20:39 +02:00
Sorin Sbarnea ed27a979d5 Adopt use of pre-commit linting
Follows the same configuration that was used on
tripleo-quickstart-extras and documented use on tripleo-docs.

Change-Id: Iba8a2db92137f9f6ad28f498627eb1b87039d99f
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-12-14 15:50:06 +00:00
Sagi Shnaidman 0ec3a9c25d Use CENTOS_MIRROR from provided mirror_info.sh file
Don't construct CENTOS_MIRROR env var because we have it in the
file mirror_info.sh which is provided from nodepool.
Remove EPEL_MIRROR because it's not used anywhere.

Change-Id: I40fe8f6b2be1864b27bbe369e7da988fa7f1a0bb
2018-02-12 16:48:22 +02:00
Emilien Macchi 0b464c5500 Override STABLE_RELEASE when testing puppet-ceph stable/jewel
puppet-ceph has stable/jewel branch where we want to test the latest
version of TripleO where puppet-ceph is actually used.
Since we switched to ceph-ansible during Pike, we're testing
TripleO with Ocata version which is probably fine.

Change-Id: I54e191d70ba24ab7d0d6f82460c709d6cd22e099
2017-08-25 22:06:39 -07:00
Emilien Macchi 21e72f9da8 Fix undercloud-upgrade job for Newton to Ocata
Several love fixes needed here:

- We forgot to override STABLE_RELEASE so
  the upgrade was failing because it was
  deploying repos from Pike instead of Ocata.

- Allow only to check that Ironic API is running
  on Newton or Ocata.
  In master we can check that ipmi driver is
  available.

- On old relases like Newton or Ocata we will
  use the old heat calls on get host info.

Change-Id: I558e86f5cec139cef165b0908bb3861434c7c8bc
Depends-On: Ie79dfff667437305ff4109da5a9c42ae358b1a3e
2017-06-30 21:10:55 +02:00
James Slagle bb430f3011 Support running toci_gate_test-oooq.sh locally
These are various improvements to tripleo-ci (squashed into a single
commit to save CI resources) that enable running the tripleo-ci entry
point script which is now toci_gate_test-oooq.sh locally in a standalone
environment of vm's not spawned by nodepool.

This is useful to developers trying to reproduce CI locally for
development and testing.

The changes are:
- Default $REMAINING_TIME in common_vars.bash
- Don't hardcode the jenkins user everywhere
- Improved initial package handling:
    Before blindly yum installing the packages needed by these scripts in a
    few spots, check if the packages are already installed with just the rpm
    command. This can end up saving a decent amount of time when iterating
    on running these scripts locally. Also installs wget.
- Reinstall python-requests
    When locally running toci_gate_test.sh, python-requests needs to be
    reinstalled since toci_gate_test.sh removes the python module as it
    was pip installed on the infra provided image. Also updates the
    logic to handle the python-requests -> python2-requests transition.

Change-Id: I48cd1e5f53b86455992b83248d57f5338c29a7ca
2017-05-10 21:38:45 +00:00
Alfredo Moralejo 2f23717d53 Add new variable REVIEW_RELEASE and use it in delorean build
STABLE_RELEASE variable is mutated in upgrade jobs to point to
the release used for initial deployment. However, we need to keep
the release of the review to be used in delorean build phase, as
currently it can lead to use the wrong release when building the
package.

Change-Id: I3dc9ae79700773315e2577239839d35af7b85987
2017-03-06 20:34:47 +01:00
Paul Belanger 6985a2c16a Exclude /var/log/journal from devstack-logs
Because these are binary, it doesn't make sense to copy these to
logs.o.o.

Change-Id: I85ef6cef0d3977a1e31e1bc59e667b996830711c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-15 14:21:15 -05:00
James Slagle db823c57bb Default some needed variables
These variables are expected to be defined by tripleo-ci scripts. They
are usually defined by the infra generated environment when tripleo-ci
jobs are executed. However, for running tripleo-ci scripts locally, we
need to default them to some sane values.

Change-Id: Ib6b769822522d4328447523e68ff238132b0f561
2017-01-26 14:30:38 -05:00
Jenkins 972cdfdb10 Merge "logging: extract journal to compressed text file, before gathering" 2016-12-01 11:02:40 +00:00
Gabriele Cerami 0eeffdd9dc logging: extract journal to compressed text file, before gathering
Change-Id: I4d905c2e9a86e6750d0b56def0e8e1306917d43d
2016-11-25 11:51:14 +01:00
Yolanda Robla Mota 3deb01f109 Enable consuming packages for a feature branch
An use case for TripleO CI can be to test changes on an
specific feature branch. In that case, the packages need to be
consumed for that specific branch, instead of master.
This change enables the detection of a feature branch in the
current change, and enables the related repositories (they will
default to master if the feature branch for a repo does not exist)

Also update ELEMENTS_PATH properly to consune latest
features from diskimage-builder

Change-Id: I701c01dd18023c0c05aede9d06b6b1380b6f2386
Needed-By: I0ca6a4ae3a2684d473b44e5f332ee4225ee30f8c
2016-11-24 23:34:40 +01:00
James Slagle d3d6f99918 Undercloud upgrade for mitaka and newton
Now that instack-undercloud has branched for newton, we should be testing
upgrades from mitaka to newton for patches proposed against the newton branch
of instack-undercloud.

For patches proposed against the master branch, we should be testing upgrades
from newton to master.

Closes-Bug: #1624448
Change-Id: I73f172a9427c3ac4cdd85c31b64db90be09cb76a
2016-11-01 13:16:21 +00:00
Paul Belanger 53f30a03e9
Update exludes list for TARCMD
tripleo logs are also include git repos from /etc folder, as a quick
fix we can exclude them from the TARCMD.  A better solution is to
invert this logic and only include the specific files developers need.

Change-Id: I7d17624d27e6eb0ae6af991ed84905b6f33156ff
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-29 12:21:22 -04:00
James Slagle 1bd0b32e2a Make $TRIPLEO_ROOT overrideable
Being able to set a different $TRIPLEO_ROOT other than /opt/stack/new
makes the toci scripts more useful when running locally. There are also
lots of places where /opt/stack/new was used directly, when we
could/should be using $TRIPLEO_ROOT.

Change-Id: Iac212866fc343f3f3f930fad57b3a52236513d34
2016-08-10 12:05:25 -04:00
Derek Higgins f49c7bbb8d Add support for OVB based CI
Add support to run tripleo ci on rh2 (a OVB based cloud).

Change-Id: Ib5af081412ac4e0c398bd819a99c6ae894e4684f
2016-06-30 13:04:09 -04:00
James Slagle 2d22ced260 Refactor common code for tripleo-ci
This commit refactors out some reusable pieces of tripleo-ci into
common_functions.sh and common_vars.bash. This is in preparation for
adding ovb and multinode support.

Change-Id: I2154e07d0433ffbd5d91884c9b1c00adf3ac534d
2016-06-30 13:04:09 -04:00