]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
13 months agoMerge pull request #1987 from ceph/docker-compose
Zack Cerza [Fri, 2 Aug 2024 17:23:29 +0000 (11:23 -0600)]
Merge pull request #1987 from ceph/docker-compose

Migrate to docker compose v2

13 months agoMerge pull request #1982 from ceph/rm-worker
Zack Cerza [Fri, 2 Aug 2024 17:07:46 +0000 (11:07 -0600)]
Merge pull request #1982 from ceph/rm-worker

Remove worker.py

13 months agoMigrate to docker compose v2 1987/head
Zack Cerza [Fri, 2 Aug 2024 17:00:42 +0000 (11:00 -0600)]
Migrate to docker compose v2

https://github.com/actions/runner-images/issues/9692
https://docs.docker.com/compose/migrate/

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoRemove worker.py 1982/head
Zack Cerza [Tue, 30 Jul 2024 23:53:40 +0000 (17:53 -0600)]
Remove worker.py

Originally, #1960 was intended to do this, but in some review back-and-forth the
commit removing the file was dropped. Let's actually remove the file.

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoMerge pull request #1960 from ceph/worker-supervisor
Zack Cerza [Thu, 25 Jul 2024 18:06:15 +0000 (12:06 -0600)]
Merge pull request #1960 from ceph/worker-supervisor

Finish removing teuthology-worker

13 months agodispatcher: Temporarily pass through to supervisor 1960/head
Zack Cerza [Tue, 25 Jun 2024 21:42:42 +0000 (15:42 -0600)]
dispatcher: Temporarily pass through to supervisor

The old dispatcher expects to be able to invoke the supervisor via
`teuthology-dispatcher --supervisor`, so add this compatibility shim for the
time being.

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoFinish removing teuthology-worker
Zack Cerza [Mon, 24 Jun 2024 22:05:25 +0000 (16:05 -0600)]
Finish removing teuthology-worker

The dispatcher and supervisor were added in #1546, but code was copied and
pasted into the new modules, leaving the worker untouched. Also untouched were
the unit tests, meaning that the dispatcher and supervisor were never unit
tested. As the copied code changed, the dispatcher and supervisor were not being
tested for regressions, while the worker - which wasn't being anymore - had
passing unit tests, giving some false sense of security.

This commit removes the old worker code, and adapts the old worker tests to
apply to the dispatcher and supervisor. It also splits out teuthology-supervisor
into its own command.

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoMerge pull request #1977 from ceph/utcnow
Zack Cerza [Wed, 24 Jul 2024 16:48:59 +0000 (10:48 -0600)]
Merge pull request #1977 from ceph/utcnow

Replace deprecated datetime.utcnow() calls

13 months agoReplace deprecated datetime.utcnow() calls 1977/head
Zack Cerza [Fri, 12 Jul 2024 23:29:50 +0000 (17:29 -0600)]
Replace deprecated datetime.utcnow() calls

See https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoci: Test on Ubuntu 24.04 with python3.12
Zack Cerza [Fri, 12 Jul 2024 23:28:46 +0000 (17:28 -0600)]
ci: Test on Ubuntu 24.04 with python3.12

Signed-off-by: Zack Cerza <zack@redhat.com>
13 months agoMerge pull request #1975 from ceph/test-debug
Zack Cerza [Tue, 23 Jul 2024 17:08:05 +0000 (11:08 -0600)]
Merge pull request #1975 from ceph/test-debug

Get the 'tests' task working again

14 months agoMerge pull request #1980 from ceph/kill-job-paddles-data
Zack Cerza [Fri, 19 Jul 2024 20:52:02 +0000 (14:52 -0600)]
Merge pull request #1980 from ceph/kill-job-paddles-data

kill.kill_job: Get job data from paddles

14 months agokill.kill_job: Get job data from paddles 1980/head
Zack Cerza [Fri, 19 Jul 2024 19:32:03 +0000 (13:32 -0600)]
kill.kill_job: Get job data from paddles

... if we can't get it from the filesystem. This is necessary because of the
teuthology archive's restricted permissions on teuthology.front.

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoMerge pull request #1979 from ceph/issue-66893-fix
Zack Cerza [Fri, 19 Jul 2024 16:22:31 +0000 (10:22 -0600)]
Merge pull request #1979 from ceph/issue-66893-fix

find_git_parents: Fix githelper URL template

14 months agofind_git_parents: Fix githelper URL template 1979/head
Zack Cerza [Fri, 19 Jul 2024 16:12:39 +0000 (10:12 -0600)]
find_git_parents: Fix githelper URL template

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoMerge pull request #1976 from ceph/issue-66893
Zack Cerza [Wed, 17 Jul 2024 21:34:50 +0000 (15:34 -0600)]
Merge pull request #1976 from ceph/issue-66893

find_git_parents: Refresh mirror when required

14 months agoMerge pull request #1974 from ceph/wip-selinux-ignore-agetty
Zack Cerza [Fri, 12 Jul 2024 15:45:03 +0000 (09:45 -0600)]
Merge pull request #1974 from ceph/wip-selinux-ignore-agetty

teuthology/task/selinux: ignore denials in agetty

14 months agofind_git_parents: Refresh mirror when required 1976/head
Zack Cerza [Thu, 11 Jul 2024 22:50:19 +0000 (16:50 -0600)]
find_git_parents: Refresh mirror when required

We used to do the refresh every time, which wasn't good. Then we didn't do it at
all, which was fine until someone tried to schedule against a commit in the few
minutes before the mirror picked it up. Let's try doing it when necessary :)

Fixes: #66893
Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agotest_report: Use module-level tests and fixtures 1975/head
Zack Cerza [Thu, 11 Jul 2024 16:06:34 +0000 (10:06 -0600)]
test_report: Use module-level tests and fixtures

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoTask.__init__: ctx param is mandatory
Zack Cerza [Thu, 11 Jul 2024 16:06:32 +0000 (10:06 -0600)]
Task.__init__: ctx param is mandatory

This reflects reality and also fixes some linter errors.

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agomisc.deep_merge: Rewrite for readability
Zack Cerza [Thu, 11 Jul 2024 16:06:31 +0000 (10:06 -0600)]
misc.deep_merge: Rewrite for readability

Partially enabled by not passing MappingProxyType to it any longer.

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agomisc.deep_merge,merge_configs: Add type hinting
Zack Cerza [Thu, 11 Jul 2024 16:06:30 +0000 (10:06 -0600)]
misc.deep_merge,merge_configs: Add type hinting

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agorun: Use job config's archive dir if specified
Zack Cerza [Thu, 11 Jul 2024 16:06:28 +0000 (10:06 -0600)]
run: Use job config's archive dir if specified

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoRun.report_outcome: Drop fake_ctx
Zack Cerza [Thu, 11 Jul 2024 16:06:25 +0000 (10:06 -0600)]
Run.report_outcome: Drop fake_ctx

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agotest_fog: fix test conflict with local config
Zack Cerza [Thu, 11 Jul 2024 16:06:23 +0000 (10:06 -0600)]
test_fog: fix test conflict with local config

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agotest_report: Use a tmp_path fixture
Zack Cerza [Thu, 11 Jul 2024 16:06:21 +0000 (10:06 -0600)]
test_report: Use a tmp_path fixture

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agotest_ansible: Set ctx.archive to empty string
Zack Cerza [Thu, 11 Jul 2024 16:06:01 +0000 (10:06 -0600)]
test_ansible: Set ctx.archive to empty string

Scheduled jobs are failing because they try to write to
/home/ansible.log.

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agotask.tests: Rewrite
Zack Cerza [Thu, 11 Jul 2024 16:05:42 +0000 (10:05 -0600)]
task.tests: Rewrite

This task has been broken for a very long time. It hasn't passed in years, and
has additionally been masking test failures including some regressions.

This commit:
* Fixes masking of failures in setup/teardown methods
* Actually runs all of our tests
* Excludes tests that need remote nodes when they are not available
* Improves logging and reporting
* Adds support for running in CLI mode

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoMove LoggerFile to teuthology.util
Zack Cerza [Thu, 11 Jul 2024 16:05:48 +0000 (10:05 -0600)]
Move LoggerFile to teuthology.util

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoteuthology/task/selinux: ignore denials in agetty 1974/head
Ilya Dryomov [Wed, 10 Jul 2024 11:25:21 +0000 (13:25 +0200)]
teuthology/task/selinux: ignore denials in agetty

This was tracked in [1], but the addition of the context to the
allowlist in ceph.git commit 7a6389272aff ("qa: ignore container
checkpoint/restore related selinux denials for centos9") doesn't
cover krbd suite which doesn't pull in any distro snippets.

Since this denial has nothing to do with Ceph [2], let's ignore it
globally.

[1] http://tracker.ceph.com/issues/64616
[2] https://bugzilla.redhat.com/show_bug.cgi?id=2259622

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
14 months agoMerge pull request #1921 from phlogistonjohn/jjm-ssh-config-hostname
kyr [Tue, 9 Jul 2024 08:19:24 +0000 (10:19 +0200)]
Merge pull request #1921 from phlogistonjohn/jjm-ssh-config-hostname

orchestra/connection: ssh configuration options

14 months agoMerge pull request #1972 from VallariAg/fix-teuthology-kill
Zack Cerza [Tue, 9 Jul 2024 00:44:41 +0000 (17:44 -0700)]
Merge pull request #1972 from VallariAg/fix-teuthology-kill

teuthology/kill.py: Fix "TypeError: 'NoneType' object is not iterable"

14 months agoCreate teuthology/test/test_kill.py 1972/head
Vallari Agrawal [Mon, 8 Jul 2024 13:16:34 +0000 (18:46 +0530)]
Create teuthology/test/test_kill.py

Add TestFindTargets in test_kill for different
test cases of find_targets function.

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
14 months agoMerge pull request #1898 from fazledyn-or/Fix_Improper_Method_Call
kyr [Tue, 2 Jul 2024 10:14:44 +0000 (12:14 +0200)]
Merge pull request #1898 from fazledyn-or/Fix_Improper_Method_Call

Fixed Improper Method Call: Replaced `mktemp`

14 months agoMerge pull request #1969 from kshtsk/wip-alma-rocky
kyr [Tue, 2 Jul 2024 10:13:32 +0000 (12:13 +0200)]
Merge pull request #1969 from kshtsk/wip-alma-rocky

bootstrap: add AlmaLinux and RockyLinux case

14 months agoMerge branch 'ceph:main' into Fix_Improper_Method_Call 1898/head
Ataf Fazledin Ahamed [Tue, 2 Jul 2024 09:46:26 +0000 (15:46 +0600)]
Merge branch 'ceph:main' into Fix_Improper_Method_Call

14 months agoMerge pull request #1965 from ceph/dclo
Zack Cerza [Tue, 2 Jul 2024 04:52:41 +0000 (22:52 -0600)]
Merge pull request #1965 from ceph/dclo

.github: Don't run dev_container on PRs or tags

14 months agoMerge pull request #1964 from ceph/bs-av-check
Zack Cerza [Mon, 1 Jul 2024 21:01:56 +0000 (15:01 -0600)]
Merge pull request #1964 from ceph/bs-av-check

bootstrap: Fix ansible version check

14 months agoMerge pull request #1967 from ceph/dependabot/pip/jinja2-3.1.4
kyr [Mon, 1 Jul 2024 20:43:34 +0000 (22:43 +0200)]
Merge pull request #1967 from ceph/dependabot/pip/jinja2-3.1.4

build(deps): bump jinja2 from 3.1.2 to 3.1.4

14 months agobootstrap: add AlmaLinux and RockyLinux case 1969/head 1970/head
Kyr Shatskyy [Mon, 1 Jul 2024 20:05:14 +0000 (20:05 +0000)]
bootstrap: add AlmaLinux and RockyLinux case

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
14 months agobuild(deps): bump jinja2 from 3.1.2 to 3.1.4 1967/head
dependabot[bot] [Mon, 1 Jul 2024 19:53:45 +0000 (19:53 +0000)]
build(deps): bump jinja2 from 3.1.2 to 3.1.4

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
14 months agoMerge pull request #1962 from kshtsk/wip-opensuse-ce77b04
Zack Cerza [Mon, 1 Jul 2024 19:53:15 +0000 (13:53 -0600)]
Merge pull request #1962 from kshtsk/wip-opensuse-ce77b04

bootstrap: Tolerate a missing lsb_release

14 months ago.github: Don't run dev_container on PRs or tags 1965/head
Zack Cerza [Mon, 1 Jul 2024 19:42:05 +0000 (13:42 -0600)]
.github: Don't run dev_container on PRs or tags

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agobootstrap: Fix ansible version check 1964/head
Zack Cerza [Mon, 1 Jul 2024 19:38:26 +0000 (13:38 -0600)]
bootstrap: Fix ansible version check

Signed-off-by: Zack Cerza <zack@redhat.com>
14 months agoMerge pull request #1961 from VallariAg/add-daemon-finished
Zack Cerza [Mon, 1 Jul 2024 19:06:49 +0000 (13:06 -0600)]
Merge pull request #1961 from VallariAg/add-daemon-finished

orchestra/daemon: add finished() method in DaemonState and CephadmUnit

14 months agorequirements.txt: pump lupa from 2.0 to 2.2 1962/head
Kyr Shatskyy [Mon, 1 Jul 2024 11:05:03 +0000 (11:05 +0000)]
requirements.txt: pump lupa from 2.0 to 2.2

Fixes: https://tracker.ceph.com/issues/66768
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
14 months agobootstrap: use python3.12 now for SUSE based repo
Kyr Shatskyy [Mon, 1 Jul 2024 10:52:59 +0000 (10:52 +0000)]
bootstrap: use python3.12 now for SUSE based repo

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
14 months agobootstrap: Tolerate a missing lsb_release
Kyr Shatskyy [Mon, 1 Jul 2024 09:51:02 +0000 (09:51 +0000)]
bootstrap: Tolerate a missing lsb_release

Add missing keywords for openSUSE Leap and Tumbleweed

Fixes: ce77b04aabe8e17e6bd70ad5812233b5772c50bc
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
14 months agoorchestra/daemon/cephadmunit.py: fix method kill_cmd() 1961/head
Vallari Agrawal [Fri, 28 Jun 2024 08:57:30 +0000 (14:27 +0530)]
orchestra/daemon/cephadmunit.py: fix method kill_cmd()

This commit changes kill command from docker to systemctl.
This is because services are managed by systemd, not docker.
Also fixes a typo in service name.

Fixes: https://tracker.ceph.com/issues/66742
Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
14 months agoorchestra/daemon: add finished() method in DaemonState and CephadmUnit
Vallari Agrawal [Thu, 27 Jun 2024 16:45:10 +0000 (22:15 +0530)]
orchestra/daemon: add finished() method in DaemonState and CephadmUnit

These are to be used by DaemonWatchdog to determine if
DaemonState/CephadmUnit daemons are active or finished.

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
14 months agoteuthology/kill.py: Fix "TypeError: 'NoneType' object is not iterable"
Vallari Agrawal [Wed, 12 Jun 2024 17:13:30 +0000 (22:43 +0530)]
teuthology/kill.py: Fix "TypeError: 'NoneType' object is not iterable"

Fixes: https://tracker.ceph.com/issues/66440#note-1
Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
14 months agoMerge pull request #1959 from ceph/kill-running
Zack Cerza [Tue, 25 Jun 2024 19:42:35 +0000 (13:42 -0600)]
Merge pull request #1959 from ceph/kill-running

kill: Fix killing by owner

15 months agoMerge pull request #1954 from ceph/dev-container
Zack Cerza [Fri, 21 Jun 2024 22:44:36 +0000 (16:44 -0600)]
Merge pull request #1954 from ceph/dev-container

.github: Add workflow to build dev container

15 months agokill: Fix killing by owner 1959/head
Zack Cerza [Wed, 19 Jun 2024 19:28:56 +0000 (13:28 -0600)]
kill: Fix killing by owner

The list comprehension was incorrect.
Fixes: https://tracker.ceph.com/issues/66440
Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1949 from ceph/nodecleanup
Kamoltat (Junior) Sirivadhna [Mon, 17 Jun 2024 16:59:34 +0000 (12:59 -0400)]
Merge pull request #1949 from ceph/nodecleanup

Fixes for teuthology-node-cleanup
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
15 months agoMerge pull request #1955 from ceph/ipmi
Zack Cerza [Mon, 17 Jun 2024 16:05:04 +0000 (10:05 -0600)]
Merge pull request #1955 from ceph/ipmi

console: Rework power on/off retry mechanism

15 months agolock.ops.unlock_safe: Remove stray comment 1949/head
Zack Cerza [Tue, 28 May 2024 20:45:54 +0000 (14:45 -0600)]
lock.ops.unlock_safe: Remove stray comment

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agonode_cleanup: Fix invocations without --owner
Zack Cerza [Tue, 28 May 2024 20:40:18 +0000 (14:40 -0600)]
node_cleanup: Fix invocations without --owner

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1958 from ceph/suite-dryrun-pkgs
Zack Cerza [Fri, 14 Jun 2024 19:21:35 +0000 (13:21 -0600)]
Merge pull request #1958 from ceph/suite-dryrun-pkgs

suite.Run.schedule_jobs: Unmask error in dry-run

15 months agosuite.util.find_git_parents: Fix KeyError 1958/head
Zack Cerza [Fri, 14 Jun 2024 19:06:43 +0000 (13:06 -0600)]
suite.util.find_git_parents: Fix KeyError

And clean up the code a bit

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agosuite.Run.schedule_jobs: Unmask error in dry-run
Zack Cerza [Fri, 14 Jun 2024 18:51:20 +0000 (12:51 -0600)]
suite.Run.schedule_jobs: Unmask error in dry-run

For whatever reason we were suppressing an error related to unavailable
packages.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months ago.github: Add workflow to build dev container 1954/head
Zack Cerza [Wed, 5 Jun 2024 19:12:08 +0000 (13:12 -0600)]
.github: Add workflow to build dev container

It's multi-arch, too!

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoconsole: Rework power on/off retry mechanism 1955/head
Zack Cerza [Tue, 11 Jun 2024 21:45:52 +0000 (15:45 -0600)]
console: Rework power on/off retry mechanism

We were only ever issuing the inital request once; Now, after five unsuccessful
checks to see that the node is in the desired state, we re-issue the request but
do not reset the clock.
We were also checking the power state immediately after sending the request,
which is unhelpful as the operation will never complete that quickly. Now, we
sleep at least once.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1953 from ceph/newer-oses
Zack Cerza [Wed, 12 Jun 2024 15:55:07 +0000 (09:55 -0600)]
Merge pull request #1953 from ceph/newer-oses

Various updates to support newer OSes

15 months agoopsys: Tweak OS.__eq__ to work with CentOS Stream 1953/head
Zack Cerza [Tue, 11 Jun 2024 23:37:34 +0000 (17:37 -0600)]
opsys: Tweak OS.__eq__ to work with CentOS Stream

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agofog: Simplify installed OS verification
Zack Cerza [Wed, 12 Jun 2024 00:00:39 +0000 (18:00 -0600)]
fog: Simplify installed OS verification

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoopsys: Handle CentOS Stream more appropriately
Zack Cerza [Tue, 4 Jun 2024 22:45:31 +0000 (16:45 -0600)]
opsys: Handle CentOS Stream more appropriately

This fixes an inconsistency where we'd change "centosX.stream" to "centosX" when
a job starts, submitting that to paddles.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agotestnode_start.sh: Detect operating system
Zack Cerza [Tue, 4 Jun 2024 22:44:12 +0000 (16:44 -0600)]
testnode_start.sh: Detect operating system

... instead of hardcoding, which is more error-prone.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agodocker-compose: Bump testnode image to 22.04
Zack Cerza [Tue, 4 Jun 2024 20:41:07 +0000 (14:41 -0600)]
docker-compose: Bump testnode image to 22.04

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agodocker-compose: Fix locale
Zack Cerza [Tue, 4 Jun 2024 20:14:41 +0000 (14:14 -0600)]
docker-compose: Fix locale

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agodocker-compose: Pin teuthology to Ubuntu 22.04
Zack Cerza [Tue, 4 Jun 2024 20:09:24 +0000 (14:09 -0600)]
docker-compose: Pin teuthology to Ubuntu 22.04

Until it can get updated.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agofog: Look for CentOS X.Stream images
Zack Cerza [Tue, 4 Jun 2024 19:58:43 +0000 (13:58 -0600)]
fog: Look for CentOS X.Stream images

When attempting to provision a CentOS node, if the user leaves out ".stream",
try searching for that as well.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agobootstrap: Don't force English locale
Zack Cerza [Tue, 4 Jun 2024 19:58:03 +0000 (13:58 -0600)]
bootstrap: Don't force English locale

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agocontainers/teuthology-dev: Update to noble
Zack Cerza [Tue, 4 Jun 2024 19:49:47 +0000 (13:49 -0600)]
containers/teuthology-dev: Update to noble

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoopsys: Add codenames for noble & centos 10
Zack Cerza [Tue, 4 Jun 2024 19:49:06 +0000 (13:49 -0600)]
opsys: Add codenames for noble & centos 10

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agotests: Add test for parsing Centos 9 os_release
Zack Cerza [Tue, 4 Jun 2024 19:48:35 +0000 (13:48 -0600)]
tests: Add test for parsing Centos 9 os_release

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge PR #1951 into main
Patrick Donnelly [Fri, 31 May 2024 16:31:20 +0000 (12:31 -0400)]
Merge PR #1951 into main

* refs/pull/1951/head:
teuthology/suite: use valid subset default for rerun without --subset

Reviewed-by: Casey Bodley <cbodley@redhat.com>
15 months agoMerge pull request #1944 from cbodley/wip-66096
Zack Cerza [Thu, 30 May 2024 21:25:18 +0000 (15:25 -0600)]
Merge pull request #1944 from cbodley/wip-66096

suite: check build_complete for centos9

15 months agoteuthology/suite/test: update unit tests to reflect c9 1944/head
Laura [Thu, 30 May 2024 20:27:35 +0000 (20:27 +0000)]
teuthology/suite/test: update unit tests to reflect c9

Signed-off-by: Laura <lflores@redhat.com>
15 months agosuite: check build_complete for centos9
Casey Bodley [Mon, 20 May 2024 16:02:16 +0000 (12:02 -0400)]
suite: check build_complete for centos9

with all ceph releases moving to centos 9-based containers, teuthology
should prevent scheduling jobs until those container builds finish

update the DEFAULT_OS_VERSION for centos to 9 so it checks for those
containers when no --distro-version is specified

Fixes: https://tracker.ceph.com/issues/66096
Signed-off-by: Casey Bodley <cbodley@redhat.com>
15 months agoMerge pull request #1950 from rishabh-d-dave/bootstrap-fedora-fix
Zack Cerza [Thu, 30 May 2024 17:36:40 +0000 (11:36 -0600)]
Merge pull request #1950 from rishabh-d-dave/bootstrap-fedora-fix

boostrap: expect "FedoraLinux" along with "Fedora"

15 months agoboostrap: expect "FedoraLinux" along with "Fedora" 1950/head
Rishabh Dave [Wed, 29 May 2024 18:08:37 +0000 (23:38 +0530)]
boostrap: expect "FedoraLinux" along with "Fedora"

On Fedora 38 -

$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="38 (Workstation Edition)"
ID=fedora
VERSION_ID=38

Also see: https://fedoraproject.org/wiki/Changes/Fedora_Linux_in_os-release.

With this "./boostrap install" works fine on Fedora 38.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
15 months agoteuthology/suite: use valid subset default for rerun without --subset 1951/head
Patrick Donnelly [Thu, 30 May 2024 15:21:20 +0000 (11:21 -0400)]
teuthology/suite: use valid subset default for rerun without --subset

Fixes: https://tracker.ceph.com/issues/66302
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
15 months agoMerge pull request #1948 from ceph/py312-centos
Zack Cerza [Tue, 28 May 2024 22:19:14 +0000 (16:19 -0600)]
Merge pull request #1948 from ceph/py312-centos

bootstrap: Improve Python version detection; default to 3.12 on CentOS & Fedora

15 months agolock.query.find_stale_locks: Fix a false positive
Zack Cerza [Tue, 28 May 2024 19:08:57 +0000 (13:08 -0600)]
lock.query.find_stale_locks: Fix a false positive

Also fix the return type and docstring, which were inconsistent.

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1942 from VallariAg/fix-install-task
Vallari Agrawal [Tue, 28 May 2024 14:49:28 +0000 (20:19 +0530)]
Merge pull request #1942 from VallariAg/fix-install-task

task/install: Fix AssertionError

15 months agobootstrap: Default to py3.12 on CentOS & Fedora 1948/head
Zack Cerza [Thu, 23 May 2024 21:46:46 +0000 (15:46 -0600)]
bootstrap: Default to py3.12 on CentOS & Fedora

Fixes: https://tracker.ceph.com/issues/66178
Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agobootstrap: Improve Python version detection
Zack Cerza [Thu, 23 May 2024 21:46:22 +0000 (15:46 -0600)]
bootstrap: Improve Python version detection

Signed-off-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1947 from ceph/wip-pynose
Casey Bodley [Thu, 23 May 2024 20:27:59 +0000 (21:27 +0100)]
Merge pull request #1947 from ceph/wip-pynose

replace deprecated nose dependency with pynose

Reviewed-by: Zack Cerza <zack@redhat.com>
15 months agoMerge pull request #1946 from batrick/paddles-rerun
Zack Cerza [Thu, 23 May 2024 17:51:41 +0000 (11:51 -0600)]
Merge pull request #1946 from batrick/paddles-rerun

teuthology/suite: use paddles solely for rerun info

15 months agoreplace deprecated nose dependency with pynose 1947/head
Casey Bodley [Thu, 23 May 2024 16:26:25 +0000 (12:26 -0400)]
replace deprecated nose dependency with pynose

after upgrading teuthology to centos 9 and python 3.10, the rgw
multisite test suite now fails to invoke nosetests with:

> AttributeError: module 'collections' has no attribute 'Callable'

this is a known issue tracked in https://github.com/nose-devs/nose/issues/1127

Shilpa found a new 'pynose' package which claims that:

> This version of nose is compatible with Python 3.7+ (including 3.13+).

replace the nose dependency that i initially added in
https://github.com/ceph/teuthology/pull/1069 with the current version
1.5.1 of pynose

to prepare this pr, i first changed setup.cfg then ran:

> ./update-requirements.sh -P "pynose==1.5.1"

Fixes: https://tracker.ceph.com/issues/66183
Signed-off-by: Casey Bodley <cbodley@redhat.com>
16 months agoteuthology/suite: use paddles solely for rerun info 1946/head
Patrick Donnelly [Thu, 23 May 2024 14:05:23 +0000 (10:05 -0400)]
teuthology/suite: use paddles solely for rerun info

teuthology.front no longer allows access to the run directories for general
users. In fact, it's not required because we are already getting run
information from paddles.

This commit makes it more stringent in --rerun handling: if
seed/subset/no_nested_subset do not match, exit failure rather than try to
continue. Without a subset, many suites are so large that teuthology-suite will
run for several minutes before ultimately failing to schedule due to the
quantity of jobs. It also doesn't make sense to rerun a suite when these values
do not match.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agotask/install: fix AssertionError due to overrides 1942/head
Vallari Agrawal [Mon, 20 May 2024 19:00:43 +0000 (00:30 +0530)]
task/install: fix AssertionError due to overrides

Fixes:
https://tracker.ceph.com/issues/66093
https://tracker.ceph.com/issues/66133

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
16 months agoMerge PR #1943 into main
Patrick Donnelly [Sat, 18 May 2024 13:18:12 +0000 (09:18 -0400)]
Merge PR #1943 into main

* refs/pull/1943/head:
teuthology/task/install: conditionally merge extra_system_packages override

Reviewed-by: Vallari Agrawal <val.agl002@gmail.com>
16 months agoteuthology/task/install: conditionally merge extra_system_packages override install-fix 1943/head
Patrick Donnelly [Fri, 17 May 2024 18:05:11 +0000 (14:05 -0400)]
teuthology/task/install: conditionally merge extra_system_packages override

Fixes: https://tracker.ceph.com/issues/66093
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #1940 from ceph/py310
Zack Cerza [Fri, 17 May 2024 19:55:30 +0000 (13:55 -0600)]
Merge pull request #1940 from ceph/py310

 Fix CI failures related to Ansible Galaxy

16 months agoMerge pull request #1915 from ceph/rm-nuke
Zack Cerza [Fri, 17 May 2024 18:23:51 +0000 (12:23 -0600)]
Merge pull request #1915 from ceph/rm-nuke

Removing nuke

16 months agoMerge PR #1935 into main
Patrick Donnelly [Fri, 17 May 2024 01:54:23 +0000 (21:54 -0400)]
Merge PR #1935 into main

* refs/pull/1935/head:
teuthology: modify logic to check for multiple completed builds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #1941 from batrick/install-override-extra_system_packages
Zack Cerza [Thu, 16 May 2024 20:22:03 +0000 (14:22 -0600)]
Merge pull request #1941 from batrick/install-override-extra_system_packages

teuthology/task/install: apply extra_system_packages overrides

16 months agoteuthology/task/install: apply extra_system_packages overrides install-override-extra_system_packages 1941/head
Patrick Donnelly [Tue, 14 May 2024 17:02:33 +0000 (13:02 -0400)]
teuthology/task/install: apply extra_system_packages overrides

Currently the install task requires these to be defined only in the definition
of the install task itself. Overrides are ignored.

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