]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
2 years agotask/kernel.py: sort installed kernels by version 1843/head
Dan Mick [Wed, 17 May 2023 00:05:15 +0000 (17:05 -0700)]
task/kernel.py: sort installed kernels by version

rpm -q --last sorts by timestamp-of-install, which does not
necessarily correlate with "latest version".  sort -rV does.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #1804 from ceph/dependabot/pip/wheel-0.38.1
kyr [Wed, 26 Apr 2023 18:49:18 +0000 (20:49 +0200)]
Merge pull request #1804 from ceph/dependabot/pip/wheel-0.38.1

build(deps): bump wheel from 0.36.2 to 0.38.1

2 years agobuild(deps): bump wheel from 0.36.2 to 0.38.1 1804/head
dependabot[bot] [Wed, 26 Apr 2023 18:00:51 +0000 (18:00 +0000)]
build(deps): bump wheel from 0.36.2 to 0.38.1

Bumps [wheel](https://github.com/pypa/wheel) from 0.36.2 to 0.38.1.
- [Release notes](https://github.com/pypa/wheel/releases)
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst)
- [Commits](https://github.com/pypa/wheel/compare/0.36.2...0.38.1)

---
updated-dependencies:
- dependency-name: wheel
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #1831 from kamoltat/wip-ksirivad-rerun-readme
Kamoltat Sirivadhna [Wed, 5 Apr 2023 14:05:41 +0000 (10:05 -0400)]
Merge pull request #1831 from kamoltat/wip-ksirivad-rerun-readme

teuthology-suite: --seed & --subset now also stored in teuthology.log, config.yaml and orig.config.yaml
Reviewed-by: Zack Cerza <zcerza@redhat.com>
2 years agoMerge pull request #1834 from ceph/disp_ls_remote
Dan Mick [Tue, 4 Apr 2023 01:57:20 +0000 (18:57 -0700)]
Merge pull request #1834 from ceph/disp_ls_remote

worker.prep_job: Skip job if ls_remote fails

2 years agoworker.prep_job: Skip job if ls_remote fails 1834/head
Zack Cerza [Mon, 3 Apr 2023 22:07:37 +0000 (16:07 -0600)]
worker.prep_job: Skip job if ls_remote fails

This is preferable to letting the dispatcher die.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosuite/run.py: Added seed and subset to base_config 1831/head
Kamoltat [Mon, 3 Apr 2023 18:35:01 +0000 (18:35 +0000)]
suite/run.py: Added seed and subset to base_config

In addition to being stored in results.log
`--seed` and `--subset` are now also stored in:

`teuthlogy.log`, `config.yaml` and `orig.config.yaml`.

Fixes: https://tracker.ceph.com/issues/59300
Signed-off-by: Kamoltat <ksirivad@redhat.com>
2 years agoteuthology-suite: Log errors & warnings if results.log is missing during --rerun
Kamoltat [Thu, 30 Mar 2023 17:12:17 +0000 (17:12 +0000)]
teuthology-suite: Log errors & warnings if results.log is missing during --rerun

Notify the user if `results.log` is missing when
they issue a rerun.

Also, edited teuthology-suite doc
to inform the user about how `--rerun` by
default parse `--seed`, `--subset` and
`--no-nested-subset` from `results.log`
by default

Fixes: https://tracker.ceph.com/issues/59300
Signed-off-by: Kamoltat <ksirivad@redhat.com>
2 years agoMerge pull request #1832 from ceph/deps
Zack Cerza [Fri, 31 Mar 2023 22:08:58 +0000 (16:08 -0600)]
Merge pull request #1832 from ceph/deps

2 years agoMerge pull request #1827 from ceph/tox-no-osp
Zack Cerza [Fri, 31 Mar 2023 19:54:32 +0000 (13:54 -0600)]
Merge pull request #1827 from ceph/tox-no-osp

2 years agoDrop argparse as a requirement 1832/head
Zack Cerza [Thu, 23 Mar 2023 19:13:31 +0000 (13:13 -0600)]
Drop argparse as a requirement

It's part of the standard library.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agorequirements.txt: Add prometheus_client
Zack Cerza [Thu, 23 Mar 2023 19:12:43 +0000 (13:12 -0600)]
requirements.txt: Add prometheus_client

This should have been added a couple PRs back.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1833 from ceph/gha-ubuntu-version
Zack Cerza [Fri, 31 Mar 2023 17:03:51 +0000 (11:03 -0600)]
Merge pull request #1833 from ceph/gha-ubuntu-version

2 years agobootstrap: apt-get update before installing 1833/head
Zack Cerza [Thu, 30 Mar 2023 22:26:45 +0000 (16:26 -0600)]
bootstrap: apt-get update before installing

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years ago.github: Explicitly define test matrix
Zack Cerza [Thu, 30 Mar 2023 22:09:18 +0000 (16:09 -0600)]
.github: Explicitly define test matrix

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1824 from batrick/parallel-gzip
Zack Cerza [Thu, 30 Mar 2023 16:43:05 +0000 (10:43 -0600)]
Merge pull request #1824 from batrick/parallel-gzip

2 years agoteuthology: do not compress tarballs when pulling dir 1824/head
Patrick Donnelly [Wed, 22 Mar 2023 14:48:43 +0000 (10:48 -0400)]
teuthology: do not compress tarballs when pulling dir

Where we use this, it's for pulling log files that are already
compressed. Do not waste time double compressing!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoteuthology/misc: give verbose gzip output
Patrick Donnelly [Tue, 21 Mar 2023 14:37:25 +0000 (10:37 -0400)]
teuthology/misc: give verbose gzip output

For future analysis.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoteuthology/misc: use medium compression
Patrick Donnelly [Tue, 21 Mar 2023 14:36:36 +0000 (10:36 -0400)]
teuthology/misc: use medium compression

To speed things up.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoteuthology/misc: parallelize gzip
Patrick Donnelly [Tue, 21 Mar 2023 14:36:09 +0000 (10:36 -0400)]
teuthology/misc: parallelize gzip

Our machines have lots of cores, use them!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge pull request #1826 from ceph/job-time
Zack Cerza [Thu, 23 Mar 2023 18:43:50 +0000 (12:43 -0600)]
Merge pull request #1826 from ceph/job-time

2 years agotox: Don't run openstack by default 1827/head
Zack Cerza [Thu, 23 Mar 2023 18:42:12 +0000 (12:42 -0600)]
tox: Don't run openstack by default

It's quite time-consuming, and we're not sure if it's in use at all.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosueprvisor: Do not instrument certain job times 1826/head
Zack Cerza [Thu, 23 Mar 2023 18:22:15 +0000 (12:22 -0600)]
sueprvisor: Do not instrument certain job times

This should only really include first/last-in-suite jobs.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1819 from ceph/timing
Zack Cerza [Wed, 22 Mar 2023 22:15:24 +0000 (16:15 -0600)]
Merge pull request #1819 from ceph/timing

2 years agotask.internal: Fix import of get_builder_project 1819/head
Zack Cerza [Wed, 22 Mar 2023 15:59:20 +0000 (09:59 -0600)]
task.internal: Fix import of get_builder_project

This is another problematic circular import.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agotask.kernel: Make task() a context manager
Zack Cerza [Fri, 17 Mar 2023 01:20:22 +0000 (19:20 -0600)]
task.kernel: Make task() a context manager

This will cause it to be instrumented for timing via the bits in
run_tasks.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoexporter: Make JobResults a singleton
Zack Cerza [Thu, 16 Mar 2023 17:28:12 +0000 (11:28 -0600)]
exporter: Make JobResults a singleton

This should avoid "Duplicated timeseries in CollectorRegistry" errors.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agodocs: Add new document for teuthology-exporter
Zack Cerza [Thu, 9 Mar 2023 21:43:57 +0000 (14:43 -0700)]
docs: Add new document for teuthology-exporter

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosupervisor: Add instrumentation for reimaging time
Zack Cerza [Thu, 9 Mar 2023 19:40:15 +0000 (12:40 -0700)]
supervisor: Add instrumentation for reimaging time

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agorepo_utils: Add instrumentation for bootstrap time
Zack Cerza [Thu, 9 Mar 2023 19:22:53 +0000 (12:22 -0700)]
repo_utils: Add instrumentation for bootstrap time

And fix a couple of linter errors.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agorun_tasks: Add instrumentation for task time
Zack Cerza [Thu, 9 Mar 2023 18:42:06 +0000 (11:42 -0700)]
run_tasks: Add instrumentation for task time

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosupervisor: Add instrumentation for job time
Zack Cerza [Thu, 9 Mar 2023 18:38:04 +0000 (11:38 -0700)]
supervisor: Add instrumentation for job time

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agodispatcher: Add instrumentation for locking time
Zack Cerza [Thu, 9 Mar 2023 18:28:02 +0000 (11:28 -0700)]
dispatcher: Add instrumentation for locking time

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1825 from ceph/cl-import
Zack Cerza [Tue, 21 Mar 2023 22:21:40 +0000 (16:21 -0600)]
Merge pull request #1825 from ceph/cl-import

2 years agonuke: Fix import of task.internal.check_lock 1825/head
Zack Cerza [Tue, 21 Mar 2023 17:45:16 +0000 (11:45 -0600)]
nuke: Fix import of task.internal.check_lock

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1823 from ceph/fix-kill
Zack Cerza [Tue, 21 Mar 2023 16:52:34 +0000 (10:52 -0600)]
Merge pull request #1823 from ceph/fix-kill

2 years agotask.cephmetrics: Fix broken import 1823/head
Zack Cerza [Mon, 20 Mar 2023 19:30:50 +0000 (13:30 -0600)]
task.cephmetrics: Fix broken import

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoFix more circular imports
Zack Cerza [Wed, 15 Mar 2023 21:54:28 +0000 (15:54 -0600)]
Fix more circular imports

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoTest all module imports
Zack Cerza [Mon, 20 Mar 2023 19:28:48 +0000 (13:28 -0600)]
Test all module imports

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoRestore some import statements
Zack Cerza [Wed, 15 Mar 2023 21:28:32 +0000 (15:28 -0600)]
Restore some import statements

Some of the circular import fixes were overkill.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1822 from ceph/fix-kill
Dan Mick [Thu, 16 Mar 2023 21:17:16 +0000 (14:17 -0700)]
Merge pull request #1822 from ceph/fix-kill

kill.kill_job: Tweak job status reporting

2 years agokill.kill_job: Tweak job status reporting 1822/head
Zack Cerza [Thu, 16 Mar 2023 16:44:09 +0000 (10:44 -0600)]
kill.kill_job: Tweak job status reporting

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

2 years agoMerge pull request #1817 from ceph/exporter
Zack Cerza [Wed, 8 Mar 2023 23:05:55 +0000 (16:05 -0700)]
Merge pull request #1817 from ceph/exporter

2 years agoFix a circular import 1817/head
Zack Cerza [Tue, 7 Mar 2023 20:54:01 +0000 (13:54 -0700)]
Fix a circular import

This was exposed during development of the exporter.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosetup.cfg: Set flake8 max line length to 100
Zack Cerza [Tue, 7 Mar 2023 22:09:46 +0000 (15:09 -0700)]
setup.cfg: Set flake8 max line length to 100

It's what black uses.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoteuthology-exporter: Report job status
Zack Cerza [Tue, 7 Mar 2023 18:48:22 +0000 (11:48 -0700)]
teuthology-exporter: Report job status

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoAdd teuthology-exporter, a Prometheus exporter
Zack Cerza [Tue, 21 Feb 2023 20:34:06 +0000 (13:34 -0700)]
Add teuthology-exporter, a Prometheus exporter

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoAdd active_machine_types config item
Zack Cerza [Tue, 21 Feb 2023 23:33:02 +0000 (16:33 -0700)]
Add active_machine_types config item

I'm adding this so that the exporter can know which machines types to
care about.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1818 from ceph/fix-nop
Zack Cerza [Fri, 3 Mar 2023 18:00:40 +0000 (11:00 -0700)]
Merge pull request #1818 from ceph/fix-nop

2 years agotask.ansible: Fix an IndexError w/ 0 remotes 1818/head
Zack Cerza [Fri, 3 Mar 2023 17:39:17 +0000 (10:39 -0700)]
task.ansible: Fix an IndexError w/ 0 remotes

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1815 from kshtsk/wip-sle15sp3
kyr [Tue, 28 Feb 2023 21:03:21 +0000 (22:03 +0100)]
Merge pull request #1815 from kshtsk/wip-sle15sp3

orchestra/opsys: add sle 15 sp5

2 years agoMerge pull request #1816 from ceph/paddles-fault-tolerance
Zack Cerza [Tue, 28 Feb 2023 17:10:33 +0000 (10:10 -0700)]
Merge pull request #1816 from ceph/paddles-fault-tolerance

2 years agosupervisor: Ignore some reporting failures 1816/head
Zack Cerza [Tue, 28 Feb 2023 00:47:33 +0000 (17:47 -0700)]
supervisor: Ignore some reporting failures

Specifically, the pings coming from the watchdog loop

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agodispatcher: Do not time out when locking machines
Zack Cerza [Tue, 28 Feb 2023 00:39:25 +0000 (17:39 -0700)]
dispatcher: Do not time out when locking machines

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agosafe_while: Retry forever when tries == -1
Zack Cerza [Tue, 28 Feb 2023 00:31:07 +0000 (17:31 -0700)]
safe_while: Retry forever when tries == -1

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1812 from ceph/orch-ssh-key
Zack Cerza [Thu, 23 Feb 2023 21:12:54 +0000 (14:12 -0700)]
Merge pull request #1812 from ceph/orch-ssh-key

2 years agoorchestra/opsys: add sle 15 sp5 1815/head
Kyr Shatskyy [Thu, 16 Feb 2023 23:47:37 +0000 (00:47 +0100)]
orchestra/opsys: add sle 15 sp5

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2 years agoMerge pull request #1814 from NitzanMordhai/wip-nitzan-scrapy-deadjobs-nonetype-match
NitzanMordhai [Tue, 14 Feb 2023 05:51:08 +0000 (07:51 +0200)]
Merge pull request #1814 from NitzanMordhai/wip-nitzan-scrapy-deadjobs-nonetype-match

scrapy: comparing dead job skip typeNone

2 years agoMerge pull request #1793 from cybozu/fix-docker-compose-postgres
Zack Cerza [Fri, 10 Feb 2023 21:24:42 +0000 (14:24 -0700)]
Merge pull request #1793 from cybozu/fix-docker-compose-postgres

Specify PostgreSQL v14 to avoid permission errors.

2 years agoscrapy: comparing dead job skip typeNone 1814/head
NitzanMordhai [Thu, 9 Feb 2023 08:42:08 +0000 (08:42 +0000)]
scrapy: comparing dead job skip typeNone
SequenceMatcher can't get NoneType when comparing 2 dead jobs,
adding check and compare for those jobs.

Fixes: https://tracker.ceph.com/issues/58264
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
2 years agoorchestra.connection: Look for 'ssh_key' in config 1812/head
Zack Cerza [Wed, 1 Feb 2023 19:43:43 +0000 (12:43 -0700)]
orchestra.connection: Look for 'ssh_key' in config

On systems where SSH is configured using ~/.ssh/config.d/, we don't have
a great way of locating and processing the full configuration, so we
might not find the correct key to use. Allow the user to specify one key
to use for all test nodes if they wish.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1811 from ceph/wip-58491
Zack Cerza [Thu, 2 Feb 2023 19:36:59 +0000 (12:36 -0700)]
Merge pull request #1811 from ceph/wip-58491

misc.get_system_type: Use Remote.os

2 years agomisc.get_system_type: Use Remote.os 1811/head
Zack Cerza [Wed, 1 Feb 2023 17:49:48 +0000 (10:49 -0700)]
misc.get_system_type: Use Remote.os

... instead of lsb_release, as newer distros don't ship it.

Fixes: #58491
Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1810 from ceph/selinux-denial-fix
Zack Cerza [Mon, 30 Jan 2023 22:48:56 +0000 (15:48 -0700)]
Merge pull request #1810 from ceph/selinux-denial-fix

task/selinux: Fix regressed grepping of audit logs

2 years agotask/selinux: Fix regressed grepping of audit logs 1810/head
Zack Cerza [Mon, 30 Jan 2023 19:46:59 +0000 (12:46 -0700)]
task/selinux: Fix regressed grepping of audit logs

Fixes: https://tracker.ceph.com/issues/58610
Introduced: a106217
Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1805 from ceph/el-py39
Dan Mick [Fri, 27 Jan 2023 01:40:55 +0000 (17:40 -0800)]
Merge pull request #1805 from ceph/el-py39

bootstrap: Correct python3 package names for EL8/9

2 years agoMerge pull request #1807 from kshtsk/wip-update-leap
kyr [Wed, 25 Jan 2023 20:12:16 +0000 (21:12 +0100)]
Merge pull request #1807 from kshtsk/wip-update-leap

orchestra/opsys: add newer sle and leap versions

2 years agoorchestra/opsys: add newer sle and leap versions 1807/head
Kyr Shatskyy [Tue, 24 Jan 2023 12:31:37 +0000 (13:31 +0100)]
orchestra/opsys: add newer sle and leap versions

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2 years agobootstrap: Correct python3 package names for EL8/9 1805/head
Zack Cerza [Tue, 17 Jan 2023 23:39:27 +0000 (16:39 -0700)]
bootstrap: Correct python3 package names for EL8/9

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1806 from ceph/fix-pytest
Zack Cerza [Wed, 25 Jan 2023 19:09:02 +0000 (12:09 -0700)]
Merge pull request #1806 from ceph/fix-pytest

tests: Fix warnings, deprecations, and broken tests

2 years agoMerge pull request #1802 from ceph/faster-newest
Dan Mick [Tue, 24 Jan 2023 01:22:30 +0000 (17:22 -0800)]
Merge pull request #1802 from ceph/faster-newest

suite: Speed up 'newest' feature

2 years agotox.ini: Update to reflect passenv change 1806/head
Zack Cerza [Tue, 24 Jan 2023 01:00:54 +0000 (18:00 -0700)]
tox.ini: Update to reflect passenv change

See the second bullet point here:
https://tox.wiki/en/4.0.3/faq.html#tox-4-changed-ini-rules

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agotests: Fix bugs revealed by mock's recent change
Zack Cerza [Mon, 23 Jan 2023 20:26:41 +0000 (13:26 -0700)]
tests: Fix bugs revealed by mock's recent change

Once the asserts were corrected, these tests started failing.
Fortunately, they didn't seem to be masking any actual bugs.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agotests: Fix broken Mock assert statements
Zack Cerza [Sat, 21 Jan 2023 00:18:08 +0000 (17:18 -0700)]
tests: Fix broken Mock assert statements

This breaks (or, rather, reveals the broken state of) several unit
tests. A subsequent commit will fix them.

See https://github.com/testing-cabal/mock/commit/21787a948cf1186f3bd38462d5b912784fa81218

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agotests: Make sure to patch repo_utils ops
Zack Cerza [Fri, 20 Jan 2023 20:54:17 +0000 (13:54 -0700)]
tests: Make sure to patch repo_utils ops

These tests were hitting the network.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agotests: Rename setup() and teardown() methods
Zack Cerza [Fri, 20 Jan 2023 18:59:59 +0000 (11:59 -0700)]
tests: Rename setup() and teardown() methods

These were nose methods, and pytest is dropping support for them.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoFix 'invalid escape sequence' deprecation warnings
Zack Cerza [Fri, 20 Jan 2023 19:25:30 +0000 (12:25 -0700)]
Fix 'invalid escape sequence' deprecation warnings

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1799 from dmick/wip-bootstrap
Zack Cerza [Thu, 19 Jan 2023 01:26:15 +0000 (18:26 -0700)]
Merge pull request #1799 from dmick/wip-bootstrap

bootstrap: rpm systems: use --whatprovides to test for package presence

2 years agoMerge pull request #1795 from dmick/wip-log-fog-exceptions
Zack Cerza [Thu, 8 Dec 2022 21:59:05 +0000 (14:59 -0700)]
Merge pull request #1795 from dmick/wip-log-fog-exceptions

provision/fog.py: log exceptions while looping for ssh

2 years agobootstrap: rpm systems: use --whatprovides to test for package presence 1799/head
Dan Mick [Tue, 23 Nov 2021 01:04:16 +0000 (17:04 -0800)]
bootstrap: rpm systems: use --whatprovides to test for package presence

the package name isn't necessarily the name of the dependency

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoprovision/fog.py: log exceptions while looping for ssh 1795/head
Dan Mick [Mon, 14 Nov 2022 20:17:21 +0000 (12:17 -0800)]
provision/fog.py: log exceptions while looping for ssh

Make sure the user knows of potential configuration problems, etc.

Fixes: https://tracker.ceph.com/issues/58015
Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #1797 from ceph/unique-dispatcher
Dan Mick [Thu, 8 Dec 2022 20:57:53 +0000 (12:57 -0800)]
Merge pull request #1797 from ceph/unique-dispatcher

dispatcher: Refuse to start extra dispatchers

2 years agosuite: Speed up 'newest' feature 1802/head
Zack Cerza [Wed, 7 Dec 2022 18:55:14 +0000 (11:55 -0700)]
suite: Speed up 'newest' feature

For a 'newest' value of N, we were calling find_git_parent N times.
find_git_parent was invoking githelper's 'refresh' endpoint each time,
which in my testing took 20-30 seconds. So, for a sha1 that needed 20
backtracks, I was seeing teuthology-suite take eight minutes to
complete. With this change, it took 30 seconds for the same
teuthology-suite invocation.

We were also not including the trailing slash on the 'refresh' endpoint,
resulting in a 308 redirect each time - doubling the request count.
That's fixed as well.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agodispatcher: Refuse to start extra dispatchers 1797/head
Zack Cerza [Tue, 29 Nov 2022 21:49:22 +0000 (14:49 -0700)]
dispatcher: Refuse to start extra dispatchers

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1798 from ceph/wip-py38
Zack Cerza [Thu, 8 Dec 2022 16:53:15 +0000 (09:53 -0700)]
Merge pull request #1798 from ceph/wip-py38

Drop Python 3.6; Allow choosing Python version at runtime

2 years agoUpdate packaging 1798/head
Zack Cerza [Thu, 8 Dec 2022 00:15:52 +0000 (17:15 -0700)]
Update packaging

"pyproject-api 1.2.1 has requirement packaging>=21.3, but you have
packaging 21.0."

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoUpdate tomli
Zack Cerza [Thu, 8 Dec 2022 00:07:02 +0000 (17:07 -0700)]
Update tomli

This fixes a CI breakage caused by inconsistent dependencies,
specifically: "pyproject-api 1.2.1 has requirement tomli>=2.0.1;
python_version < "3.11", but you have tomli 1.2.1."

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoUpdate pip-tools
Zack Cerza [Thu, 8 Dec 2022 00:06:30 +0000 (17:06 -0700)]
Update pip-tools

The previous version was incompatible with newer pip versions!

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoDefault to python 3.8
Zack Cerza [Wed, 7 Dec 2022 23:03:53 +0000 (16:03 -0700)]
Default to python 3.8

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agodocker-compose: Pin postgres to v14
Zack Cerza [Wed, 7 Dec 2022 00:52:15 +0000 (17:52 -0700)]
docker-compose: Pin postgres to v14

Starting with v15, paddles is broken out of the box. We'll need to fix
that, of course, but not here.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoDrop Python 3.6 as a supported version
Zack Cerza [Fri, 2 Dec 2022 21:27:27 +0000 (14:27 -0700)]
Drop Python 3.6 as a supported version

It was EOLed a year ago.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years ago.github: Test with more Python versions
Zack Cerza [Fri, 2 Dec 2022 20:52:03 +0000 (13:52 -0700)]
.github: Test with more Python versions

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agobootstrap: Rebuild wrong-python venvs
Zack Cerza [Fri, 2 Dec 2022 20:36:33 +0000 (13:36 -0700)]
bootstrap: Rebuild wrong-python venvs

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agobootstrap: Use --use-pep517 when installing reqs
Zack Cerza [Fri, 2 Dec 2022 20:25:20 +0000 (13:25 -0700)]
bootstrap: Use --use-pep517 when installing reqs

See https://github.com/pypa/pip/issues/8559

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agobootstrap: Support alternate python versions
Zack Cerza [Fri, 2 Dec 2022 19:52:18 +0000 (12:52 -0700)]
bootstrap: Support alternate python versions

And check for their usability before proceeding

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #1794 from ceph/githelper
Dan Mick [Tue, 8 Nov 2022 19:53:02 +0000 (11:53 -0800)]
Merge pull request #1794 from ceph/githelper

config: Update githelper URL

2 years agoconfig: Update githelper URL 1794/head
Zack Cerza [Tue, 8 Nov 2022 00:08:42 +0000 (17:08 -0700)]
config: Update githelper URL

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoSpecify PostgreSQL v14 to avoid permission errors. 1793/head
Yuji Ito [Tue, 18 Oct 2022 04:10:54 +0000 (04:10 +0000)]
Specify PostgreSQL v14 to avoid permission errors.

PostgreSQL v15  has a notable change that revokes the CREATE permission
from users except a database owner. So we can not execute paddles using
it. As a workaround, I specify PostgreSQL version.

ref: https://www.postgresql.org/about/news/postgresql-15-released-2526/

Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
2 years agoMerge pull request #1790 from ceph/no-devtmpfs-scratch-devs
Zack Cerza [Wed, 28 Sep 2022 19:20:45 +0000 (13:20 -0600)]
Merge pull request #1790 from ceph/no-devtmpfs-scratch-devs