]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
3 years agoMerge remote-tracking branch 'amathuria/wip-amathuria-replace-beanstalkd-paddles...
Zack Cerza [Tue, 23 Aug 2022 20:24:17 +0000 (14:24 -0600)]
Merge remote-tracking branch 'amathuria/wip-amathuria-replace-beanstalkd-paddles' into devstack-plus-queue

3 years agoMerge branch 'ceph-devstack' into devstack-plus-queue
Zack Cerza [Tue, 23 Aug 2022 20:24:05 +0000 (14:24 -0600)]
Merge branch 'ceph-devstack' into devstack-plus-queue

3 years agocrun
Zack Cerza [Mon, 22 Aug 2022 18:09:12 +0000 (12:09 -0600)]
crun

3 years agodrop catatonit
Zack Cerza [Mon, 22 Aug 2022 17:54:14 +0000 (11:54 -0600)]
drop catatonit

3 years agotestnode: try centos 8.stream
Zack Cerza [Mon, 22 Aug 2022 17:41:18 +0000 (11:41 -0600)]
testnode: try centos 8.stream

3 years agotestnode kill init
Zack Cerza [Tue, 16 Aug 2022 23:45:27 +0000 (17:45 -0600)]
testnode kill init

3 years agoMerge pull request #1785 from ceph/jammy
Zack Cerza [Tue, 16 Aug 2022 16:49:38 +0000 (10:49 -0600)]
Merge pull request #1785 from ceph/jammy

opsys.py: Make Ubuntu 22.04 default

3 years agotest_default_distro_version: Update to 22.04 1785/head
Zack Cerza [Tue, 16 Aug 2022 16:24:34 +0000 (10:24 -0600)]
test_default_distro_version: Update to 22.04

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agotestnode drop fuse, add catatonit
Zack Cerza [Mon, 15 Aug 2022 17:09:05 +0000 (11:09 -0600)]
testnode drop fuse, add catatonit

3 years agoMerge pull request #1784 from ceph/wip-57092
David Galloway [Wed, 10 Aug 2022 18:08:07 +0000 (14:08 -0400)]
Merge pull request #1784 from ceph/wip-57092

misc._ssh_keyscan(): Drop '-t rsa'

3 years agoopsys.py: Make Ubuntu 22.04 default
David Galloway [Wed, 10 Aug 2022 17:57:39 +0000 (13:57 -0400)]
opsys.py: Make Ubuntu 22.04 default

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agomisc._ssh_keyscan(): Drop '-t rsa' 1784/head
Zack Cerza [Wed, 10 Aug 2022 17:51:53 +0000 (11:51 -0600)]
misc._ssh_keyscan(): Drop '-t rsa'

It appears to be unnecessary, and causes Ubuntu 22.04 to respond with
zero keys.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoteuth.sh drop filter
Zack Cerza [Tue, 9 Aug 2022 00:25:29 +0000 (18:25 -0600)]
teuth.sh drop filter

3 years agocontainers/teuthology-dev: Parametrize suite
Zack Cerza [Tue, 2 Aug 2022 17:10:21 +0000 (11:10 -0600)]
containers/teuthology-dev: Parametrize suite

3 years agocontainers/testnode: osd_method
Zack Cerza [Thu, 4 Aug 2022 20:01:58 +0000 (14:01 -0600)]
containers/testnode: osd_method

3 years agocontainers/testnode: Install pkgs for ceph tests
Zack Cerza [Wed, 3 Aug 2022 19:25:48 +0000 (13:25 -0600)]
containers/testnode: Install pkgs for ceph tests

3 years agocontainers/testnode: Write /scratch_devs
Zack Cerza [Thu, 4 Aug 2022 21:14:32 +0000 (15:14 -0600)]
containers/testnode: Write /scratch_devs

3 years agocontainers/testnode: Manage a few items in /run/
Zack Cerza [Thu, 4 Aug 2022 00:13:11 +0000 (18:13 -0600)]
containers/testnode: Manage a few items in /run/

bc of systemd

3 years agomisc.get_scratch_devices(): Ignore devtmpfs
Zack Cerza [Thu, 4 Aug 2022 19:02:38 +0000 (13:02 -0600)]
misc.get_scratch_devices(): Ignore devtmpfs

Devices shared with a container by its host will appear in /proc/mounts
this way.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agomisc.get_scratch_devices(): Split up checks
Zack Cerza [Thu, 4 Aug 2022 18:59:39 +0000 (12:59 -0600)]
misc.get_scratch_devices(): Split up checks

For better logging.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agocontainers/testnode: Use systemd
Zack Cerza [Wed, 3 Aug 2022 18:11:46 +0000 (12:11 -0600)]
containers/testnode: Use systemd

3 years agocontainers/testnode: Support nesting
Zack Cerza [Wed, 3 Aug 2022 17:47:44 +0000 (11:47 -0600)]
containers/testnode: Support nesting

3 years agocontainers/testnode: Install podman
Zack Cerza [Tue, 2 Aug 2022 18:38:27 +0000 (12:38 -0600)]
containers/testnode: Install podman

To get a recent version we have to switch OSes.

3 years agocontainers/teuthology: Pin base image to focal
Zack Cerza [Fri, 29 Jul 2022 19:42:59 +0000 (13:42 -0600)]
containers/teuthology: Pin base image to focal

3 years agocontainers/teuthology: Shorten watchdog_interval
Zack Cerza [Tue, 2 Aug 2022 19:10:00 +0000 (13:10 -0600)]
containers/teuthology: Shorten watchdog_interval

3 years agoTEMP? teuth-dev dockerfile rm ansible
Zack Cerza [Tue, 2 Aug 2022 17:18:14 +0000 (11:18 -0600)]
TEMP? teuth-dev dockerfile rm ansible

3 years agoTEMP cephadm image
Zack Cerza [Tue, 2 Aug 2022 17:07:56 +0000 (11:07 -0600)]
TEMP cephadm image

3 years agocontainers: Use secrets for SSH keys, not env vars
Zack Cerza [Fri, 29 Jul 2022 19:42:48 +0000 (13:42 -0600)]
containers: Use secrets for SSH keys, not env vars

3 years agoFIXME docs/docker-compose: Move to new containers/ dir
Zack Cerza [Tue, 2 Aug 2022 17:06:47 +0000 (11:06 -0600)]
FIXME docs/docker-compose: Move to new containers/ dir

the dir is not yet empty

3 years agoMerge pull request #1774 from ceph/nuke-typerror
Kamoltat Sirivadhna [Wed, 3 Aug 2022 18:00:37 +0000 (14:00 -0400)]
Merge pull request #1774 from ceph/nuke-typerror

nuke: Tolerate null node description
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
3 years agonuke: Tolerate null node description 1774/head
Zack Cerza [Thu, 23 Jun 2022 21:03:27 +0000 (15:03 -0600)]
nuke: Tolerate null node description

Fixes a TypeError

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1783 from zdover23/wip-doc-2022-08-04-fragment-merging-typo
Kamoltat Sirivadhna [Wed, 3 Aug 2022 15:34:33 +0000 (11:34 -0400)]
Merge pull request #1783 from zdover23/wip-doc-2022-08-04-fragment-merging-typo

docs/frag...merging.rst - s/contructed/constructed
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
3 years agodocs/frag...merging.rst - s/contructed/constructed 1783/head
Zac Dover [Wed, 3 Aug 2022 15:13:01 +0000 (01:13 +1000)]
docs/frag...merging.rst - s/contructed/constructed

This PR corrects "contructed" to "constructed".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #1781 from Ngwind/patch-1
kyr [Wed, 3 Aug 2022 09:31:48 +0000 (11:31 +0200)]
Merge pull request #1781 from Ngwind/patch-1

Update COMPONENTS.rst

3 years agoMerge pull request #1782 from ceph/jammy
Zack Cerza [Thu, 28 Jul 2022 20:46:38 +0000 (14:46 -0600)]
Merge pull request #1782 from ceph/jammy

opsys.py: Add Ubuntu 22.04

3 years agoopsys.py: Add Ubuntu 22.04 1782/head
David Galloway [Thu, 28 Jul 2022 19:23:10 +0000 (15:23 -0400)]
opsys.py: Add Ubuntu 22.04

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #1779 from ceph/dc-suite-fix
Zack Cerza [Tue, 26 Jul 2022 15:27:26 +0000 (09:27 -0600)]
Merge pull request #1779 from ceph/dc-suite-fix

Fix scheduling regression

3 years agodocs/docker-compose: Use Ubuntu Focal for testnode 1779/head
Zack Cerza [Mon, 25 Jul 2022 17:29:22 +0000 (11:29 -0600)]
docs/docker-compose: Use Ubuntu Focal for testnode

I'm seeing ceph-cm-ansible failures w/ Jammy because of python-apt vs.
python3-apt. We'll revisit this soon.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1778 from ceph/no-mails-with-dryrun
Kamoltat Sirivadhna [Mon, 25 Jul 2022 14:30:30 +0000 (10:30 -0400)]
Merge pull request #1778 from ceph/no-mails-with-dryrun

suite: Do not send emails with --dry-run at schedule_fail
Reviewed by: Kamoltat Sirivadhna <ksirivad@redhat.com>

3 years agoUpdate COMPONENTS.rst 1781/head
KB.M [Mon, 25 Jul 2022 07:50:02 +0000 (15:50 +0800)]
Update COMPONENTS.rst

Fix `components.rst` file not being rendered

3 years agosuite: add pytests for schedule_fail 1778/head
Vallari Agrawal [Tue, 19 Jul 2022 17:14:29 +0000 (22:44 +0530)]
suite: add pytests for schedule_fail

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agochoose_teuthology_branch: Choose main later on
Zack Cerza [Fri, 22 Jul 2022 21:12:42 +0000 (15:12 -0600)]
choose_teuthology_branch: Choose main later on

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agodocs/docker-compose: Tolerate empty TEUTH_BRANCH
Zack Cerza [Fri, 22 Jul 2022 20:36:54 +0000 (14:36 -0600)]
docs/docker-compose: Tolerate empty TEUTH_BRANCH

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoschedule_suite(): Make 'configs' a list
Zack Cerza [Fri, 22 Jul 2022 18:27:53 +0000 (12:27 -0600)]
schedule_suite(): Make 'configs' a list

The var being left as a generator led to all jobs being filtered out of
some suites, rendering them broken.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agodocs/docker-compose: Ensure we actually schedule
Zack Cerza [Fri, 22 Jul 2022 17:51:19 +0000 (11:51 -0600)]
docs/docker-compose: Ensure we actually schedule

This should have failed: https://github.com/ceph/teuthology/pull/1776/checks

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobeanstalk: Print tube stats in JSON format
Zack Cerza [Fri, 22 Jul 2022 17:46:53 +0000 (11:46 -0600)]
beanstalk: Print tube stats in JSON format

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1776 from batrick/yaml-preprocessor
Zack Cerza [Thu, 21 Jul 2022 15:58:40 +0000 (09:58 -0600)]
Merge pull request #1776 from batrick/yaml-preprocessor

teuthology: add pre/post fragment merge hooks

3 years agodocs: document fragment merging 1776/head
Patrick Donnelly [Fri, 1 Jul 2022 01:05:12 +0000 (21:05 -0400)]
docs: document fragment merging

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: add tests for fragment merging
Patrick Donnelly [Fri, 1 Jul 2022 20:42:52 +0000 (16:42 -0400)]
teuthology/suite/test: add tests for fragment merging

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology: add lua based fragment merge scripting
Patrick Donnelly [Tue, 28 Jun 2022 20:29:40 +0000 (16:29 -0400)]
teuthology: add lua based fragment merge scripting

As part of this change, there is a new generator design for producing
job configs. YAML fragments are memoized and merged manually to avoid
expensive and unnecessary parsing of the merged fragments. This provides
for a dramatic speedup in processing matrices with large numbers of
jobs. For rados suite with --subset 1/1000, this branch is 5x faster
(77s vs. 15s). (Note: the difference shrinks when there are fewer or
jobs or larger subsets are used due to cycling and the matrix generation
dominating runtime.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/misc: support MappingProxyType in deep_merge
Patrick Donnelly [Mon, 18 Jul 2022 13:50:02 +0000 (09:50 -0400)]
teuthology/misc: support MappingProxyType in deep_merge

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/misc: avoid copying references of b when list or dict
Patrick Donnelly [Tue, 28 Jun 2022 20:27:14 +0000 (16:27 -0400)]
teuthology/misc: avoid copying references of b when list or dict

Otherwise, if b persists in memory (in a cache), it may wrongly
accumulate future merges.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #1777 from VallariAg/log-total-jobs
Zack Cerza [Wed, 13 Jul 2022 17:05:28 +0000 (11:05 -0600)]
Merge pull request #1777 from VallariAg/log-total-jobs

3 years agosuite/run: Log total number of jobs scheduled 1777/head
Vallari Agrawal [Sun, 3 Jul 2022 09:06:31 +0000 (14:36 +0530)]
suite/run: Log total number of jobs scheduled

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agosuite: Do not send emails with --dry-run at schedule_fail
Vallari Agrawal [Mon, 11 Jul 2022 12:55:46 +0000 (18:25 +0530)]
suite: Do not send emails with --dry-run at schedule_fail

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoMerge pull request #1769 from zmc/docs-missing-commands
Kamoltat Sirivadhna [Wed, 6 Jul 2022 15:30:18 +0000 (11:30 -0400)]
Merge pull request #1769 from zmc/docs-missing-commands

docs/commands: Add missing commands
Reviewed by: Kamoltat Sirivadhna <ksirivad@redhat.com>

3 years agoMerge pull request #1775 from ceph/update-reqs
Zack Cerza [Tue, 28 Jun 2022 19:26:02 +0000 (13:26 -0600)]
Merge pull request #1775 from ceph/update-reqs

Update pip-tools and sentry-sdk

3 years agoUpdate sentry-sdk 1775/head
Zack Cerza [Tue, 28 Jun 2022 18:36:31 +0000 (18:36 +0000)]
Update sentry-sdk

We've started seeing what appear to be duplicate issues:
https://tracker.ceph.com/issues/56410
Hoping a simple update will resolve this...

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoUpdate pip-tools
Zack Cerza [Tue, 28 Jun 2022 18:36:07 +0000 (18:36 +0000)]
Update pip-tools

Fixes https://github.com/jazzband/pip-tools/issues/1617

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge PR #1772 into master
Patrick Donnelly [Thu, 23 Jun 2022 14:18:08 +0000 (10:18 -0400)]
Merge PR #1772 into master

* refs/pull/1772/head:
Revert "Merge pull request #1624 from batrick/get-valgrind-args"

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
3 years agoRevert "Merge pull request #1624 from batrick/get-valgrind-args" 1772/head
Patrick Donnelly [Wed, 22 Jun 2022 23:54:37 +0000 (19:54 -0400)]
Revert "Merge pull request #1624 from batrick/get-valgrind-args"

This reverts commit 40fff4b2911949847a302adfe2f4714cfaccb58e, reversing
changes made to 93d2b653facc0e5a7a532b39d9ff91a044f2c4a9.

3 years agoMerge pull request #1770 from ceph/plow
Zack Cerza [Wed, 15 Jun 2022 21:05:22 +0000 (15:05 -0600)]
Merge pull request #1770 from ceph/plow

3 years agoopsys.py: Add RHEL9 1770/head
David Galloway [Wed, 15 Jun 2022 20:43:53 +0000 (16:43 -0400)]
opsys.py: Add RHEL9

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #1765 from ceph/wip-45512
Zack Cerza [Wed, 15 Jun 2022 19:04:45 +0000 (13:04 -0600)]
Merge pull request #1765 from ceph/wip-45512

3 years agodocs/commands: Add missing commands 1769/head
Zack Cerza [Wed, 15 Jun 2022 16:52:14 +0000 (10:52 -0600)]
docs/commands: Add missing commands

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoteuthology/queue: Single command for queue operations
Aishwarya Mathuria [Wed, 4 May 2022 14:07:40 +0000 (19:37 +0530)]
teuthology/queue: Single command for queue operations

Makes the same teuthology-queue commands work regardless of the queue backend, Paddles or Beanstalk.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoMerge pull request #1764 from kshtsk/wip-watch-fix-typeerror
Zack Cerza [Wed, 8 Jun 2022 21:36:20 +0000 (15:36 -0600)]
Merge pull request #1764 from kshtsk/wip-watch-fix-typeerror

3 years agoMerge pull request #1766 from ceph/rhel86
Zack Cerza [Wed, 8 Jun 2022 21:14:33 +0000 (15:14 -0600)]
Merge pull request #1766 from ceph/rhel86

3 years agoMerge pull request #1767 from ceph/bs-missing-pip
Zack Cerza [Wed, 8 Jun 2022 21:11:46 +0000 (15:11 -0600)]
Merge pull request #1767 from ceph/bs-missing-pip

3 years agobootstrap: If pip is missing, rebuild virtualenv 1767/head
Zack Cerza [Wed, 8 Jun 2022 20:03:30 +0000 (14:03 -0600)]
bootstrap: If pip is missing, rebuild virtualenv

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoopsys.py: Default to RHEL8.6 1766/head
David Galloway [Wed, 8 Jun 2022 19:14:18 +0000 (15:14 -0400)]
opsys.py: Default to RHEL8.6

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agonuke.nuke: Rework lock-checking logic 1765/head
Zack Cerza [Wed, 8 Jun 2022 18:41:37 +0000 (12:41 -0600)]
nuke.nuke: Rework lock-checking logic

Previously, we would call list_locks(), then iterate over the response,
each time iterating over the list of targets. If list_locks()
encountered an error and returned an empty response, we'd never actually
verify what we intended to. Instead, we should specifically query for
each target. This is far safer and faster.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agosuite: fix type error when description is none 1764/head
Kyr Shatskyy [Wed, 8 Jun 2022 11:28:15 +0000 (13:28 +0200)]
suite: fix type error when description is none

teuthology-watch fails when run is complete and jobs' description
gets None value

Example:

2022-06-07 16:41:22,538.538 INFO:teuthology.suite:waiting for the run runner-2022-06-07_16:41:04-suse:tier0-ses7p-none-default-ecp to complete
2022-06-07 16:41:22,539.539 DEBUG:teuthology.suite:the list of unfinished jobs will be displayed every 5.0 minutes
2022-06-07 16:46:22,599.599 DEBUG:teuthology.suite:wait for jobs ['654']
2022-06-07 16:51:22,633.633 DEBUG:teuthology.suite:wait for jobs ['654']
2022-06-07 16:51:22,686.686 INFO:teuthology.suite:wait is done
Traceback (most recent call last):
  File "/home/runner/src/teuthology_master/virtualenv/bin/teuthology-wait", line 33, in <module>
    sys.exit(load_entry_point('teuthology', 'console_scripts', 'teuthology-wait')())
  File "/home/runner/src/teuthology_master/scripts/wait.py", line 30, in main
    return teuthology.suite.wait(name, config.max_job_time, None)
  File "/home/runner/src/teuthology_master/teuthology/suite/__init__.py", line 234, in wait
    log.info(job['status'] + " " + url + " " + job['description'])
TypeError: must be str, not NoneType

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
3 years agoMerge pull request #1624 from batrick/get-valgrind-args
Zack Cerza [Tue, 7 Jun 2022 21:17:14 +0000 (15:17 -0600)]
Merge pull request #1624 from batrick/get-valgrind-args

3 years agoMerge pull request #1762 from ceph/nested-subset-fix
Zack Cerza [Mon, 6 Jun 2022 21:17:40 +0000 (15:17 -0600)]
Merge pull request #1762 from ceph/nested-subset-fix

qa: correct line processing logic

3 years agoqa: correct line processing logic 1762/head
Patrick Donnelly [Mon, 6 Jun 2022 18:12:09 +0000 (14:12 -0400)]
qa: correct line processing logic

Most runs don't use --no-nested-subset and for those that used --subset,
the if conditions would correctly pickup "seed" (when it mattered).
However, when --subset was not specified in the original run, the "seed"
was not correctly picked up. Therefore, the result of inserting the "if
no_nested_subset is None:" before the "elif seed is None:" caused it to
never read the seed for most folks teuthology runs.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoscripts/queue: common teuthology-queue command for paddles and beanstalk queue
Aishwarya Mathuria [Mon, 18 Apr 2022 07:49:40 +0000 (13:19 +0530)]
scripts/queue: common teuthology-queue command for paddles and beanstalk queue

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoAdd beanstalk as a possible queue backend for Teuthology Jobs along with Paddles
Aishwarya Mathuria [Mon, 4 Oct 2021 13:54:41 +0000 (19:24 +0530)]
Add beanstalk as a possible queue backend for Teuthology Jobs along with Paddles

With the use of the --queue-backend argument the user can specify which backend(paddles/beanstalk) they would like to use for maintaining the teuthology Jobs queue.
In order to avoid overlapping Job IDs, when a job is being scheduled in beanstalk it is also written to paddles which returns a unique ID.
This is the ID teuthology will treat as the Job ID throughout the run of the job.

To differentiate between the 2 queue backends, the teuthology-queue command has been split into teuthology-paddles-queue command and teuthology-beanstalk-queue command.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoAdd new test cases for dispatcher and scheduler
Aishwarya Mathuria [Mon, 14 Jun 2021 06:19:08 +0000 (11:49 +0530)]
Add new test cases for dispatcher and scheduler

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoAdd retry for paddles calls and modify pause queue command
Aishwarya Mathuria [Wed, 9 Jun 2021 13:36:37 +0000 (19:06 +0530)]
Add retry for paddles calls and modify pause queue command

1. Add retry loop for the paddles calls.
2. Add run name as a parameter for updating priority of jobs in paddles.
3. Modify the pause queue command to run on server side with an optional pause duration parameter.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoModify teuthology worker unit test and fix flake8 errors
Aishwarya Mathuria [Mon, 7 Jun 2021 13:42:23 +0000 (19:12 +0530)]
Modify teuthology worker unit test and fix flake8 errors

Previously the teuthology worker unit test used beanstalk, the test will
be using Paddles now.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoRemove usage of beanstalk from teuthology
Aishwarya Mathuria [Mon, 26 Apr 2021 13:46:45 +0000 (19:16 +0530)]
Remove usage of beanstalk from teuthology

The following changes support the removal of Beanstalk from Teuthology.
In place of Beanstalk, we will now be using Paddles for queue management in Teuthology.
This PR has the corresponding changes for the paddles PR: https://github.com/ceph/paddles/pull/94/files.

The changes include:
1. Removing all beanstalk related code
2. Teuthology scheduler and dispatcher using Paddles queue for scheduling and dispatching jobs
3. Adding support for Paddles queue management
4. Additional functionality of being able to change the priority of Teuthology jobs in the queued state in the teuthology-queue command

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoMerge pull request #1761 from ceph/git-clone-errors
David Galloway [Wed, 1 Jun 2022 20:25:07 +0000 (16:25 -0400)]
Merge pull request #1761 from ceph/git-clone-errors

repo_utils: Always log git clone failure output

3 years agorepo_utils: Always log git clone failure output 1761/head
Zack Cerza [Wed, 1 Jun 2022 19:23:29 +0000 (13:23 -0600)]
repo_utils: Always log git clone failure output

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1753 from ceph/dc-venv
Zack Cerza [Tue, 31 May 2022 19:19:09 +0000 (13:19 -0600)]
Merge pull request #1753 from ceph/dc-venv

3 years agoMerge pull request #1760 from ceph/wip-private-branch
David Galloway [Fri, 27 May 2022 20:18:55 +0000 (16:18 -0400)]
Merge pull request #1760 from ceph/wip-private-branch

suite: Allow 'git@' repo URLs

3 years agosuite: Allow 'git@' repo URLs 1760/head
Zack Cerza [Fri, 27 May 2022 17:47:40 +0000 (11:47 -0600)]
suite: Allow 'git@' repo URLs

We were accidentally mangling them.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1757 from ceph/master-to-main
David Galloway [Tue, 24 May 2022 21:05:19 +0000 (17:05 -0400)]
Merge pull request #1757 from ceph/master-to-main

Inclusive Language Update

3 years agotest_util.git_repository: Create main branch 1757/head
Zack Cerza [Tue, 24 May 2022 20:20:21 +0000 (14:20 -0600)]
test_util.git_repository: Create main branch

(if necessary)

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agotest_repo_utils: Don't break with main branch
Zack Cerza [Thu, 21 Apr 2022 17:44:30 +0000 (11:44 -0600)]
test_repo_utils: Don't break with main branch

More generally, if git was configured to use a default branch other
than 'master', this test would fail.

Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit 9ab6d0a50e4821dccaeef024485986792e60a57b)

3 years agoReplace non-branch occurrences of 'master'
Zack Cerza [Tue, 24 May 2022 19:02:56 +0000 (13:02 -0600)]
Replace non-branch occurrences of 'master'

Signed-off-by: Zack Cerza <zack@cerza.org>
3 years agoReplace 'master' branch references with 'main'
Zack Cerza [Tue, 24 May 2022 17:26:42 +0000 (11:26 -0600)]
Replace 'master' branch references with 'main'

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge PR #1704 into master
Patrick Donnelly [Tue, 24 May 2022 16:14:04 +0000 (12:14 -0400)]
Merge PR #1704 into master

* refs/pull/1704/head:
teuthology/suite/test: test nested subsets
teuthology: add option to disable nested subsets
teuthology/suite: create nested matrix subsets
teuthology/suite: patch builtin open method
teuthology/test: use correct exception type
teuthology/suite/test: make sure patchers are cleaned up on exception
teuthology/suite/test: clarify variable name

Reviewed-by: Zack Cerza <zmc@redhat.com>
3 years agoteuthology/suite/test: test nested subsets 1704/head
Patrick Donnelly [Wed, 9 Feb 2022 22:59:23 +0000 (17:59 -0500)]
teuthology/suite/test: test nested subsets

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology: add option to disable nested subsets
Patrick Donnelly [Thu, 10 Feb 2022 01:27:48 +0000 (20:27 -0500)]
teuthology: add option to disable nested subsets

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite: create nested matrix subsets
Patrick Donnelly [Fri, 14 Jan 2022 20:25:14 +0000 (15:25 -0500)]
teuthology/suite: create nested matrix subsets

The general idea is to allow the `%` convolution operator to also subset
the resulting matrix. This is done by specifying a number of divisions
for the subset in the `%` file. Such as:

dir/%:

    8

This commit maps a matrix index range of `[0, Subset.size())` to the
matrix it is taking a subset of, `[0, Matrix.size())`. To get full
coverage, a random number is used to specify "which" subset to use.
Contrast with the `--subset` argument to `teuthology-suite` which lets
you specify which subset.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite: patch builtin open method
Patrick Donnelly [Fri, 21 Jan 2022 18:59:28 +0000 (13:59 -0500)]
teuthology/suite: patch builtin open method

teuthology.suite.open does not patch properly.

Fixes: 0b822b8455a8b2903759776ff3c4ea05c416b44e
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/test: use correct exception type
Patrick Donnelly [Fri, 21 Jan 2022 19:01:22 +0000 (14:01 -0500)]
teuthology/test: use correct exception type

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: make sure patchers are cleaned up on exception
Patrick Donnelly [Fri, 21 Jan 2022 18:58:39 +0000 (13:58 -0500)]
teuthology/suite/test: make sure patchers are cleaned up on exception

Otherwise, test infrastructure blows up on use of the fake file system
methods.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: clarify variable name
Patrick Donnelly [Fri, 21 Jan 2022 19:22:17 +0000 (14:22 -0500)]
teuthology/suite/test: clarify variable name

"den" for denominator is not that intuitive.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>