Commit Graph

57 Commits

Author SHA1 Message Date
Jakob Meng c3a06ed35b Drop deprecated non-zuul-based reproducer
The non-zuul-based reproducer has been unmaintained for years. Its
functionality is a strict subset of the zuul-based-reproducer
nowadays. It has been removed from openstack/ansible-role-collect-logs
recently and since then is not used anymore. Hence let's get rid of it.

Change-Id: Id6b83f5e6287e70c01ad68c17eae147c5ff785ee
2022-03-03 09:49:19 +01:00
Ghanshyam Mann 38a0bc4cda Moving IRC network reference to OFTC
Change-Id: I0a35182f72eaef02bad22e6fb702af3651092c28
2021-07-08 14:44:17 +00:00
Bogdan Dobrelya 290f1d27a8 Fix openstack org mirrors for reproducer
Libvirt reproducer defaults to openstack.org mirrors, which no longer
exist. Fix the reference to opendev.org to make defaults working as
well.

Change-Id: I6b7e11e431ec948c1c8f37be64aaed6f643ab67e
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2020-07-14 15:03:23 +02:00
Steve Baker bf3b3967f0 Revert "Fix setting custom mirror/pypi FQDNs for CI repro"
This reverts commit 849e2fe485.

Change-Id: I4e9d4a6a46c0a1541b7c440a2205c0f035875c4c
2020-01-08 02:30:03 +00:00
Bogdan Dobrelya 849e2fe485 Fix setting custom mirror/pypi FQDNs for CI repro
Fix undefined value substituted for mirror_fqdn, when there is no
mirror_path defined in inventory variables used for the zuul-based CI
reproducer.

Ditch confusing alternative variable mirror_path and use mirror_fqdn as
it directly comes from zuul ansible variables. For compatibility sakes,
if mirror_path is in inventory, its value will be used for mirror_fqdn
in zuul playbooks.

Also pass for zuul playbooks pypi_fqdn, if defined.
If pypi_fqdn is skipped, custom mirror_fqdn always also overwrites
the used (and trusted) pypi mirror, what might be undesired, like
when configuring different mirrors for packages versus pip eggs.

For the depreceted reproducer, wire in mirror_fqdn as well.

Depends-On: https://review.opendev.org/696337

Change-Id: I9f87ea6335ce0a0b7c3e8c4cb1fe00187f474dd1
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-11-28 10:48:17 +01:00
Wes Hayutin 8fb370f5be ensure periodic job requirements are visible
periodic requires to_build=true and
to use the rdo registry

Change-Id: I3cd1404e48e3b76fd19f4301a00d8beaad274dcd
2019-10-01 16:48:41 +00:00
Gabriele Cerami 1d1f808528 Move reproducer README file
when trying to use reproducer generator stand standalone, README file is taken
from collect logs.
This change moves it to the create reproducer role, and make it a standard
file, not a template, since it does not use any variable

Change-Id: Ie21f47264680b468ce51a3e1f8305670889ccb41
2019-07-31 20:17:28 +00:00
OpenDev Sysadmins db85f97e1d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:42:23 +00:00
Wes Hayutin 6c16c3f8be clean up reproducer files
The default log directory is getting very
cluttered.  Let's move what we can into
directories.

Change-Id: Ica442990bcb0ffa5ea098b9990a57df10d360a13
2019-03-21 14:56:06 +00:00
Sorin Sbarnea 74e8e614f6 Correct reproducer dependency detection and adds missing git
Use of exit instead of return in the check dependecy function prevented
us to list all missing dependencies before exiting.

Avoid case where user needs to run the script 6 or more times in order
to install missing dependencies.

Adds git which was a missing dependency.

Change-Id: I66f883bbd817ce809261b7408c945e527ab72549
Partial-Bug: 1787912
2019-01-18 09:01:10 +00:00
Sorin Sbarnea 86d5cec0b9 Add in-place execution mode for reproducer
Adds command line option and environment variable that allows user to
run reproducer without wiping tq[e] repositories on each run.

When specified it will just pull and rebase them when they already
exist.

This allows us to test effects of changes made to these repositories
and re-run reproducer multiple times.

Change-Id: I7b489d5fba0e1f5dd0d34fff48107440cbc93c00
2019-01-14 13:47:31 +00:00
Zuul 6d56a46a48 Merge "Makes reproducer output more human friendly (readable)" 2018-12-27 14:02:48 +00:00
Ronelle Landy c399e3a842 Remove reproducer lines added to get zuul related info
zuul_variables and zuul_console were added when there
was an investigation into simulating zuul behavior
for the reproducer. We are no longer following that
workflow for the reproducer and therefore these
failing lines can be removed.

Change-Id: I5f057ce78273ddf8cd6381c9a420b317713379b6
2018-12-19 16:54:19 -05:00
Sorin Sbarnea 0c532f715b Makes reproducer output more human friendly (readable)
Use Ansible debug output callback unless user overrides it with his
own value. Same output is prefered on CI.

Change-Id: Ibd284dea867c002698238ec66a328f4267bd49e9
Related-Bug: 1787912
2018-12-18 11:42:29 +00:00
Zuul 67b28e8a9f Merge "Fix EXTRA_VARS calculation for env_vars_to_source_file." 2018-12-16 10:28:24 +00:00
Zuul 861d4e2c2d Merge "Fix typo, expand l33tspeak in reproducer template" 2018-12-12 17:40:07 +00:00
Sorin Sbarnea 72141b7fab Adopt yamllint strict linting
Upgrades yamllint to latest version and adots use of its strict
checking.

Fix all known problems reported by yamllint so we don't have to do
that while touching these files.

Change-Id: I4bdc520d9e2aff086c4b463718bc1e053261a4f5
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-26 12:37:21 +00:00
Zuul 01a500fbba Merge "Fix script typo" 2018-11-15 21:08:39 +00:00
Marios Andreou 2f2d7ab4e2 Introduce zuul.projects and executed pre-run playbooks for reproducer
This uses the zuul-variables file for zuul.projects and the json console
log written by the depends on, for the playbooks. This is tracked by the
ci team with [1]. These are made available to but not yet used in the
reproducer (that will come later, see the story linked in [1]).

[1] https://tree.taiga.io/project/tripleo-ci-board/task/270
Depends-On: https://review.openstack.org/615191
Co-Authored-By: Ronelle Landy <rlandy@redhat.com>
Change-Id: I64923cfd75e697b98507be1ff398c14654108ddf
2018-11-09 15:27:22 +00:00
Ronelle Landy a657781d3d Create a reproducer-quickstart dir
The reproducer should use toci_quickstart,
toci_gate_test and related functions with the
same variables as the CI job.

This review creates a directory to copy those
ready templates for use when running the reproducer.

Change-Id: I1480a42bd78577fe2d2fb34981a2b02889b37ead
Story: https://tree.taiga.io/project/tripleo-ci-board/task/271
2018-11-07 18:14:39 +00:00
Sofer Athlan-Guyot 9f22651535 Fix EXTRA_VARS calculation for env_vars_to_source_file.
Currently, even if dlrn_hash_tag_newest is found, it's not rendered in
the env_vars_to_src.sh file.

This fix it, and make the EXTRA_VARS line more readable.

Change-Id: I604c7780ab7e37204360b74791b8522ff31ea695
Closes-Bug: #1799662
2018-10-24 11:02:25 +02:00
Daniel Farrell 91504fad0d Fix typo, expand l33tspeak in reproducer template
Change-Id: Id628306fda86b95d729c0c7af75322663af954aa
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
2018-10-15 10:46:03 -04:00
Natal Ngétal 58f107570b [Scripts] Add a dependency.
Add the python-heatclient in the list of the bootstrap dependencies.

Change-Id: I600b6ac97e7b5f6c83708d8b989da6d2b3c24ab4
2018-10-11 12:16:47 +02:00
Bogdan Dobrelya 9e2a3168e7 Use local ansible connection for libvirt repro
Change-Id: Ib3b835b68743ea5251da5f1c825abd696fff525f
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-09-25 11:05:54 +02:00
Thomas Herve 684db051a1 Fix script typo
Change-Id: Ia8ba01419f966ace12e994fa55d128260307ed65
2018-09-25 09:15:55 +02:00
Zuul af65769186 Merge "Quote $PLAYBOOKS variable for sourcing" 2018-09-06 09:11:29 +00:00
Sagi Shnaidman fc60cb0d84 Quote $PLAYBOOKS variable for sourcing
When $PLAYBOOKS variable is not quoted, it's impossible to source
it from the file because it contains spaces.

Change-Id: I8a8155845e52635d826dabdb5bc02e456b3f2421
2018-09-05 12:16:18 +03:00
Sagi Shnaidman b82212cbe5 Revert "reproducer: cherry pick zuul changes"
This reverts commit c348e84ce1.

Local reproducer role should be from master, not from change. If we run
reproducer from a month ago, it will run reproducer role from a month
ago and most likely will fail or will have not up to date settings.
If one want to test changes to reproducer role, it's possible to edit
reproducer script manually.
It doens't make sense to use reproducer code from same data that patch
itself, if reproducer was broken then you just can't run it even now.

Close-Bug: #1790611
Change-Id: Ic699159da53ca6676bf4d1d845816d333893e8ec
2018-09-04 09:49:20 +00:00
Zuul 4a4cca83df Merge "reproducer: cherry pick zuul changes" 2018-07-31 18:14:18 +00:00
Zuul ab1a059987 Merge "Adds reproducer check+exit+warning dependencies - virtualenv+others" 2018-07-31 17:18:06 +00:00
Sorin Sbarnea c348e84ce1
reproducer: cherry pick zuul changes
Assure that if ZUUL_CHANGES contains any
changes made to tripleo-quickstart[-extras] repos we
would cherry pick them after cloning.

Change-Id: I8daeff664711650e72b6ef0a77f5091b45a451a5
2018-07-23 11:48:27 +01:00
Marios Andreou 1a2d5040a2 Reproducer don't fail if workspace path doesn't exist yet
If the workspace path doesn't exist then realpath fails
realpath: /the/final/result/: No such file or directory.

This minor edit ensures we don't fail in such cases since
the workspace is created anyway later on in the script.

Change-Id: Idea203eddc649a1ad7c17593d8ddc52c703383b7
2018-07-20 22:08:13 +00:00
Marios Andreou d2b8a9ffd3 Adds reproducer check+exit+warning dependencies - virtualenv+others
Running reproducer fails if you don't have python-virtualenv installed.
This adds a check and warning which is nicer than the usual error
"reproducer-quickstart.sh: line 199: virtualenv: command not found"

After discussion also added check for pip and further testing also
showed the need for ansible and openstackclient.

Related-Bug: 1769538
Change-Id: Ic4a2740ef08c3f2a9746f78b69186a4feec9af3c
2018-07-20 14:37:52 +00:00
Ronelle Landy 521f2ad49a Add doc for the libvirt reproducer
This is not for public consumption yet.
Adding a review to store documentation notes
for when this is available for general use.

Change-Id: I3b54f54430599fca2ff089aae866a781cdb01673
2018-07-13 20:49:06 +00:00
Zuul 689cba96fa Merge "Fix multinode reproducer for periodic jobs" 2018-06-30 09:21:58 +00:00
trown 12da08b98c Remove "-oooq" from toci script name
The symlink that resolved this is no longer in the repo. We only
have a single toci runner script now.

Related-Bug: #1778974
Change-Id: I2fc830c9452766719ec482f2b4ee1a97e7123b29
2018-06-28 12:24:08 +00:00
Ronelle Landy 476bc1ffcb Fix multinode reproducer for periodic jobs
https://review.openstack.org/#/c/572220/ assumed
that the first part of TOCI_JOBTYPE is always
ovb/multinode/singlenode/standalone. This is not the case
with periodic jobs and half the reproducer script
is missing for multinode periodic jobs.

This review removes the 'periodic-' piece of the TOCI_JOBTYPE
string before the split and comparison occurs.

Change-Id: Id5650b43ead7269b6738a8d887ad018e188e517b
2018-06-20 20:27:45 +00:00
Wes Hayutin c27270f78e Add a role for the standalone deployment
This is not an undercloud or overcloud deployment.
This is a new single node composable deployment for TripleO

The review adds the role to handle the logic. It also
updates the reproducer script to handle the new toci_jobtype
definition so the job can be recreated properly.

Change-Id: I8f2c3daed748ea7a6d6a17e9db420a5ec1779d7f
2018-06-08 17:12:32 -04:00
Enrique Llorente b65eed4b74 Export ZUUL_CHANGES in the reproducer
The zuul changes were not being apply, exporting
the variable make them accesible to ansible roles.

Change-Id: I2d297f73ed0eaf0b38d6bbdd311aec557f75105b
2018-05-25 05:40:12 +00:00
Jose Luis Franco Arza 341515f25d Include extra_params option in reproducer-quickstart.sh.
This patch adds the option of overriding the
parameters used for provisioning [0] the
multinode stack. The newly added option
--extra-params/-e allows you to pass different
values for the instances flavor or networking
parameters.

By adding this option we provide flexibility at
the time of running the reproducer script in
other cloud environments.

[0] https://github.com/openstack/tripleo-quickstart-extras/blob/master/roles/multinodes/templates/stack.yaml

Closes-Bug: #1769532
Change-Id: I998ffa98da5e2df783908bf003816a06dff30bbb
2018-05-13 21:30:04 +00:00
Sagi Shnaidman a21afc0329 Support custom sequence of playbooks to run
When reproducing CI job sometimes needs to run a specific set of
playbooks only. Support this by pasing PLAYBOOKS variable in
env_source script.
Usage example:
- one needs to run everything before undercloud installation:
 * PLAYBOOKS="quickstart.yml" ./reproduce-quickstart.sh (in case of
multinode)
 * PLAYBOOKS:-"ovb-setup.yml" ./reproduce-quickstart.sh (in case of
OVB job)
- one needs to deploy everything before overcloud deployment:
 * PLAYBOOKS="quickstart.yml multinode-undercloud.yml multinode-overcloud-prep.yml"
  ./reproduce-quickstart.sh (in case of multinode)
 * PLAYBOOKS="ovb-setup.yml baremetal-full-undercloud.yml baremetal-full-overcloud-prep.yml"
  ./reproduce-quickstart.sh (in case of OVB)
List of used playbooks is in toci_gate_test-oooq.sh script
in tripleo-ci repo:
http://git.openstack.org/cgit/openstack-infra/tripleo-ci/tree/toci_gate_test-oooq.sh#n157

Change-Id: I6388c5e20d499a2e6c5e06f23de9851ef53b40a6
2018-05-02 16:26:13 +03:00
Ronelle Landy 2ed5d49939 Edit reproducer for libvirt-volume-path and renamed playbook
- Adds the option to define a custome libvirt-volume-path.
 - Calls renamed libvirt-nodepool playbook

Depends-On: I8f8bd3dde63ab8d8d449a418d008a0e796ed3202
Change-Id: Ie1752db407afd07ad8345a145eaee2c2c715be00
2018-05-01 16:45:09 -04:00
Enrique Llorente f5e28e2800 Reduce reproducer redudancy
Is very common to change the reproducer-quickstart.sh manually for re-runs,
reducing redundancy helps a little.

It is also moves the README html template to the correct path.

Change-Id: I59874e7da4b3ad1a72e8a71380c9eb7bcb602d63
2018-04-30 13:24:08 +02:00
Ronelle Landy 5338db0ffa Add a libvirt option to the reproducer script
The libvirt option should be valid for multinode jobs
that can run with 2 nodes - and singlenode jobs.
Documentation is added to the libvirt option.

Change-Id: I1c543a9669d6cbfba4cb852e2c4257d6c44db1b8
2018-04-26 13:27:35 -04:00
John Trowbridge a8d4c5fae9 Fix autorun option in reproducer script
In 9251a3ec5a we added a "shift"
after the autorun option. This is incorrect, as autorun does not
take an argument, so there is nothing to shift.

This change removes the unintended shift.

Change-Id: Ibcfbcf39fbeaaa15ecd8e1a2a2085bb2dcbed8c8
2018-04-05 23:06:21 +00:00
Sagi Shnaidman 2cdc009510 Rework create reproducing script
Move job variables to defaults
Make dlrn_hash optional

Change-Id: Iecb7a30d0b4d83da9b33f50ad3becf66189666be
2018-04-02 03:26:58 +03:00
Zuul 9251a3ec5a Merge "Add option to specify the timeout for reproducer script" 2018-03-28 05:26:45 +00:00
Zuul ad02616aa2 Merge "Gracefully handle OS_TENANT_NAME" 2018-03-25 20:27:29 +00:00
yatin 3237e735b9 Add option to specify the timeout for reproducer script
Current default timeout for jobs running in CI is 180
minutes which is not sufficient for some of the scenarios
to complete. This patch set's default timeout for reproducer
script to 240 minutes which should be sufficient for most
of the scenarios and add an option -t|--timeout to override
this default.

Change-Id: Iad864e2edb03d66b09d612178c2fbec0d4501fc1
2018-03-22 17:03:04 +05:30
Sofer Athlan-Guyot 9eb2bbf55a Do not record host identification for reproducer ssh commands.
As we're using cloud instance the probability to get the same ip with
changed ssh keys is high.  Avoid "WARNING: REMOTE HOST IDENTIFICATION
HAS CHANGED!" failure by making sure that we don't record the ssh key
locally.

Change-Id: I4f8955e387387606b76f1dbb91cbed6b94b47b15
2018-03-19 08:01:47 +00:00