teuthology 1.1.0__py3-none-any.whl → 1.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scripts/describe.py +1 -0
- scripts/dispatcher.py +55 -26
- scripts/exporter.py +18 -0
- scripts/lock.py +1 -1
- scripts/node_cleanup.py +58 -0
- scripts/openstack.py +9 -9
- scripts/results.py +12 -11
- scripts/schedule.py +4 -0
- scripts/suite.py +57 -16
- scripts/supervisor.py +44 -0
- scripts/update_inventory.py +10 -4
- teuthology/__init__.py +24 -26
- teuthology/beanstalk.py +4 -3
- teuthology/config.py +16 -6
- teuthology/contextutil.py +18 -14
- teuthology/describe_tests.py +25 -18
- teuthology/dispatcher/__init__.py +210 -35
- teuthology/dispatcher/supervisor.py +140 -58
- teuthology/exceptions.py +43 -0
- teuthology/exporter.py +347 -0
- teuthology/kill.py +76 -81
- teuthology/lock/cli.py +3 -3
- teuthology/lock/ops.py +135 -61
- teuthology/lock/query.py +61 -44
- teuthology/ls.py +1 -1
- teuthology/misc.py +61 -75
- teuthology/nuke/__init__.py +12 -353
- teuthology/openstack/__init__.py +4 -3
- teuthology/openstack/openstack-centos-7.0-user-data.txt +1 -1
- teuthology/openstack/openstack-centos-7.1-user-data.txt +1 -1
- teuthology/openstack/openstack-centos-7.2-user-data.txt +1 -1
- teuthology/openstack/openstack-debian-8.0-user-data.txt +1 -1
- teuthology/openstack/openstack-opensuse-42.1-user-data.txt +1 -1
- teuthology/openstack/openstack-teuthology.cron +0 -1
- teuthology/orchestra/cluster.py +49 -7
- teuthology/orchestra/connection.py +17 -4
- teuthology/orchestra/console.py +111 -50
- teuthology/orchestra/daemon/cephadmunit.py +15 -2
- teuthology/orchestra/daemon/state.py +8 -1
- teuthology/orchestra/daemon/systemd.py +4 -4
- teuthology/orchestra/opsys.py +30 -11
- teuthology/orchestra/remote.py +405 -338
- teuthology/orchestra/run.py +3 -3
- teuthology/packaging.py +19 -16
- teuthology/provision/__init__.py +30 -10
- teuthology/provision/cloud/openstack.py +12 -6
- teuthology/provision/cloud/util.py +1 -2
- teuthology/provision/downburst.py +4 -3
- teuthology/provision/fog.py +68 -20
- teuthology/provision/openstack.py +5 -4
- teuthology/provision/pelagos.py +1 -1
- teuthology/repo_utils.py +43 -13
- teuthology/report.py +57 -35
- teuthology/results.py +5 -3
- teuthology/run.py +13 -14
- teuthology/run_tasks.py +27 -43
- teuthology/schedule.py +4 -3
- teuthology/scrape.py +28 -22
- teuthology/suite/__init__.py +74 -45
- teuthology/suite/build_matrix.py +34 -24
- teuthology/suite/fragment-merge.lua +105 -0
- teuthology/suite/matrix.py +31 -2
- teuthology/suite/merge.py +175 -0
- teuthology/suite/placeholder.py +6 -9
- teuthology/suite/run.py +175 -100
- teuthology/suite/util.py +64 -218
- teuthology/task/__init__.py +1 -1
- teuthology/task/ansible.py +101 -32
- teuthology/task/buildpackages.py +2 -2
- teuthology/task/ceph_ansible.py +13 -6
- teuthology/task/cephmetrics.py +2 -1
- teuthology/task/clock.py +33 -14
- teuthology/task/exec.py +18 -0
- teuthology/task/hadoop.py +2 -2
- teuthology/task/install/__init__.py +29 -7
- teuthology/task/install/bin/adjust-ulimits +16 -0
- teuthology/task/install/bin/daemon-helper +114 -0
- teuthology/task/install/bin/stdin-killer +263 -0
- teuthology/task/install/deb.py +1 -1
- teuthology/task/install/rpm.py +17 -5
- teuthology/task/install/util.py +3 -3
- teuthology/task/internal/__init__.py +41 -10
- teuthology/task/internal/edit_sudoers.sh +10 -0
- teuthology/task/internal/lock_machines.py +2 -9
- teuthology/task/internal/redhat.py +31 -1
- teuthology/task/internal/syslog.py +31 -8
- teuthology/task/kernel.py +152 -145
- teuthology/task/lockfile.py +1 -1
- teuthology/task/mpi.py +10 -10
- teuthology/task/pcp.py +1 -1
- teuthology/task/selinux.py +16 -8
- teuthology/task/ssh_keys.py +4 -4
- teuthology/timer.py +3 -3
- teuthology/util/loggerfile.py +19 -0
- teuthology/util/scanner.py +159 -0
- teuthology/util/sentry.py +52 -0
- teuthology/util/time.py +52 -0
- teuthology-1.2.1.data/scripts/adjust-ulimits +16 -0
- teuthology-1.2.1.data/scripts/daemon-helper +114 -0
- teuthology-1.2.1.data/scripts/stdin-killer +263 -0
- teuthology-1.2.1.dist-info/METADATA +88 -0
- teuthology-1.2.1.dist-info/RECORD +168 -0
- {teuthology-1.1.0.dist-info → teuthology-1.2.1.dist-info}/WHEEL +1 -1
- {teuthology-1.1.0.dist-info → teuthology-1.2.1.dist-info}/entry_points.txt +3 -2
- scripts/nuke.py +0 -47
- scripts/worker.py +0 -37
- teuthology/lock/test/__init__.py +0 -0
- teuthology/lock/test/test_lock.py +0 -7
- teuthology/nuke/actions.py +0 -456
- teuthology/openstack/test/__init__.py +0 -0
- teuthology/openstack/test/openstack-integration.py +0 -286
- teuthology/openstack/test/test_config.py +0 -35
- teuthology/openstack/test/test_openstack.py +0 -1695
- teuthology/orchestra/test/__init__.py +0 -0
- teuthology/orchestra/test/integration/__init__.py +0 -0
- teuthology/orchestra/test/integration/test_integration.py +0 -94
- teuthology/orchestra/test/test_cluster.py +0 -240
- teuthology/orchestra/test/test_connection.py +0 -106
- teuthology/orchestra/test/test_console.py +0 -217
- teuthology/orchestra/test/test_opsys.py +0 -404
- teuthology/orchestra/test/test_remote.py +0 -185
- teuthology/orchestra/test/test_run.py +0 -286
- teuthology/orchestra/test/test_systemd.py +0 -54
- teuthology/orchestra/test/util.py +0 -12
- teuthology/task/tests/__init__.py +0 -110
- teuthology/task/tests/test_locking.py +0 -25
- teuthology/task/tests/test_run.py +0 -40
- teuthology/test/__init__.py +0 -0
- teuthology/test/fake_archive.py +0 -107
- teuthology/test/fake_fs.py +0 -92
- teuthology/test/integration/__init__.py +0 -0
- teuthology/test/integration/test_suite.py +0 -86
- teuthology/test/task/__init__.py +0 -205
- teuthology/test/task/test_ansible.py +0 -624
- teuthology/test/task/test_ceph_ansible.py +0 -176
- teuthology/test/task/test_console_log.py +0 -88
- teuthology/test/task/test_install.py +0 -337
- teuthology/test/task/test_internal.py +0 -57
- teuthology/test/task/test_kernel.py +0 -243
- teuthology/test/task/test_pcp.py +0 -379
- teuthology/test/task/test_selinux.py +0 -35
- teuthology/test/test_config.py +0 -189
- teuthology/test/test_contextutil.py +0 -68
- teuthology/test/test_describe_tests.py +0 -316
- teuthology/test/test_email_sleep_before_teardown.py +0 -81
- teuthology/test/test_exit.py +0 -97
- teuthology/test/test_get_distro.py +0 -47
- teuthology/test/test_get_distro_version.py +0 -47
- teuthology/test/test_get_multi_machine_types.py +0 -27
- teuthology/test/test_job_status.py +0 -60
- teuthology/test/test_ls.py +0 -48
- teuthology/test/test_misc.py +0 -391
- teuthology/test/test_nuke.py +0 -290
- teuthology/test/test_packaging.py +0 -763
- teuthology/test/test_parallel.py +0 -28
- teuthology/test/test_repo_utils.py +0 -225
- teuthology/test/test_report.py +0 -77
- teuthology/test/test_results.py +0 -155
- teuthology/test/test_run.py +0 -239
- teuthology/test/test_safepath.py +0 -55
- teuthology/test/test_schedule.py +0 -45
- teuthology/test/test_scrape.py +0 -167
- teuthology/test/test_timer.py +0 -80
- teuthology/test/test_vps_os_vers_parameter_checking.py +0 -84
- teuthology/test/test_worker.py +0 -303
- teuthology/worker.py +0 -354
- teuthology-1.1.0.dist-info/METADATA +0 -76
- teuthology-1.1.0.dist-info/RECORD +0 -213
- {teuthology-1.1.0.dist-info → teuthology-1.2.1.dist-info}/LICENSE +0 -0
- {teuthology-1.1.0.dist-info → teuthology-1.2.1.dist-info}/top_level.txt +0 -0
teuthology/orchestra/opsys.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
import re
|
2
2
|
|
3
|
+
from packaging.version import parse as parse_version, Version
|
4
|
+
|
5
|
+
|
3
6
|
DISTRO_CODENAME_MAP = {
|
4
7
|
"ubuntu": {
|
8
|
+
"24.04": "noble",
|
9
|
+
"22.04": "jammy",
|
5
10
|
"20.04": "focal",
|
6
11
|
"18.04": "bionic",
|
7
12
|
"17.10": "artful",
|
@@ -19,13 +24,19 @@ DISTRO_CODENAME_MAP = {
|
|
19
24
|
"7": "wheezy",
|
20
25
|
"8": "jessie",
|
21
26
|
"9": "stretch",
|
27
|
+
"10": "buster",
|
28
|
+
"11": "bullseye",
|
29
|
+
"12": "bookworm",
|
22
30
|
},
|
23
31
|
"rhel": {
|
32
|
+
"9": "plow",
|
24
33
|
"8": "ootpa",
|
25
34
|
"7": "maipo",
|
26
35
|
"6": "santiago",
|
27
36
|
},
|
28
37
|
"centos": {
|
38
|
+
"10": "stream",
|
39
|
+
"9": "stream",
|
29
40
|
"8": "core",
|
30
41
|
"7": "core",
|
31
42
|
"6": "core",
|
@@ -45,6 +56,9 @@ DISTRO_CODENAME_MAP = {
|
|
45
56
|
"15.0": "leap",
|
46
57
|
"15.1": "leap",
|
47
58
|
"15.2": "leap",
|
59
|
+
"15.3": "leap",
|
60
|
+
"15.4": "leap",
|
61
|
+
"15.5": "leap",
|
48
62
|
"42.2": "leap",
|
49
63
|
"42.3": "leap",
|
50
64
|
},
|
@@ -55,16 +69,19 @@ DISTRO_CODENAME_MAP = {
|
|
55
69
|
"15.0": "sle",
|
56
70
|
"15.1": "sle",
|
57
71
|
"15.2": "sle",
|
72
|
+
"15.3": "sle",
|
73
|
+
"15.4": "sle",
|
74
|
+
"15.5": "sle",
|
58
75
|
},
|
59
76
|
}
|
60
77
|
|
61
78
|
DEFAULT_OS_VERSION = dict(
|
62
|
-
ubuntu="
|
79
|
+
ubuntu="22.04",
|
63
80
|
fedora="25",
|
64
|
-
centos="
|
65
|
-
opensuse="15.
|
66
|
-
sle="15.
|
67
|
-
rhel="8.
|
81
|
+
centos="9.stream",
|
82
|
+
opensuse="15.4",
|
83
|
+
sle="15.2",
|
84
|
+
rhel="8.6",
|
68
85
|
debian='8.0'
|
69
86
|
)
|
70
87
|
|
@@ -159,6 +176,7 @@ class OS(object):
|
|
159
176
|
package_type = 'deb'
|
160
177
|
"""
|
161
178
|
str_ = os_release_str.strip()
|
179
|
+
version = cls._get_value(str_, 'VERSION_ID')
|
162
180
|
name = cls._get_value(str_, 'ID').lower()
|
163
181
|
if name == 'sles':
|
164
182
|
name = 'sle'
|
@@ -166,9 +184,10 @@ class OS(object):
|
|
166
184
|
name = 'opensuse'
|
167
185
|
elif name == 'opensuse-tumbleweed':
|
168
186
|
name = 'opensuse'
|
169
|
-
|
187
|
+
elif name == 'centos':
|
188
|
+
if parse_version(version) >= Version("8.0"):
|
189
|
+
version = f"{version}.stream"
|
170
190
|
obj = cls(name=name, version=version)
|
171
|
-
|
172
191
|
return obj
|
173
192
|
|
174
193
|
|
@@ -232,7 +251,7 @@ class OS(object):
|
|
232
251
|
codename=repr(self.codename))
|
233
252
|
|
234
253
|
def __eq__(self, other):
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
return
|
254
|
+
if self.name.lower() != other.name.lower():
|
255
|
+
return False
|
256
|
+
normalize = lambda s: s.lower().removesuffix(".stream")
|
257
|
+
return normalize(self.version) == normalize(other.version)
|