ceph-devstack 0.2.1__py3-none-any.whl → 0.2.2__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.
- ceph_devstack/requirements.py +4 -14
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/METADATA +1 -1
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/RECORD +7 -7
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/WHEEL +0 -0
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/entry_points.txt +0 -0
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {ceph_devstack-0.2.1.dist-info → ceph_devstack-0.2.2.dist-info}/top_level.txt +0 -0
ceph_devstack/requirements.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import shlex
|
|
2
2
|
|
|
3
|
-
from pathlib import Path
|
|
4
3
|
from packaging.version import parse as parse_version, Version
|
|
5
4
|
from typing import List
|
|
6
5
|
|
|
@@ -161,7 +160,9 @@ class PodmanVersion(Requirement):
|
|
|
161
160
|
return True
|
|
162
161
|
|
|
163
162
|
|
|
164
|
-
class PodmanRuntime(
|
|
163
|
+
class PodmanRuntime(FixableRequirement):
|
|
164
|
+
suggest_msg = "Could not find the 'crun' container runtime"
|
|
165
|
+
|
|
165
166
|
@property
|
|
166
167
|
def fix_cmd(self):
|
|
167
168
|
if self.host.os_type != "darwin":
|
|
@@ -170,19 +171,8 @@ class PodmanRuntime(Requirement):
|
|
|
170
171
|
|
|
171
172
|
async def check(self):
|
|
172
173
|
podman_info = await self.host.podman_info()
|
|
173
|
-
storage_conf_path = podman_info["store"]["configFile"]
|
|
174
174
|
runtime = podman_info["host"]["ociRuntime"]["name"]
|
|
175
|
-
|
|
176
|
-
return True
|
|
177
|
-
else:
|
|
178
|
-
containers_conf_path = Path(storage_conf_path).parent / "containers.conf"
|
|
179
|
-
cmd = host.cmd(["podman", "system", "reset"])
|
|
180
|
-
logger.error(
|
|
181
|
-
f"The configured runtime is '{runtime}'. "
|
|
182
|
-
f"It must be set to 'crun' in {containers_conf_path}. "
|
|
183
|
-
f"Afterward, run '{cmd}'."
|
|
184
|
-
)
|
|
185
|
-
return False
|
|
175
|
+
return runtime == "crun"
|
|
186
176
|
|
|
187
177
|
|
|
188
178
|
class SELinuxBoolean(FixableRequirement):
|
|
@@ -8,7 +8,7 @@ ceph_devstack/exec.py,sha256=gn95GEQttB6xgdWXXvTsxUxcQsx9TUu6PC8QVQ0_Y7w,2674
|
|
|
8
8
|
ceph_devstack/host.py,sha256=w_Hx912y1g62yXkTuPJsw_UdUwxJr_Pbxrj8iZtEP7Y,5470
|
|
9
9
|
ceph_devstack/logging.conf,sha256=bGlswYcL_fz522y9EoKZOLInrSss8D44glNq0FievFY,521
|
|
10
10
|
ceph_devstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
ceph_devstack/requirements.py,sha256=
|
|
11
|
+
ceph_devstack/requirements.py,sha256=aE7PjSdcNuD1no12anidTZhjlYxEig8O0iatlz8EeHw,9536
|
|
12
12
|
ceph_devstack/resources/__init__.py,sha256=D0vhJBU9Pqslq7hg2qreW_ZhndcRIOHZVVUA0zAIeDM,3386
|
|
13
13
|
ceph_devstack/resources/container.py,sha256=suJNOQ9fMRfCnXQwvEZOcg4jnPtrxb-d17a3Y1s1xG0,5388
|
|
14
14
|
ceph_devstack/resources/misc.py,sha256=iGD_3Xsqako-dOZrHJFEJbMWoQIzy7Q_KkEnkdBb8m0,552
|
|
@@ -17,7 +17,7 @@ ceph_devstack/resources/ceph/containers.py,sha256=3QEwkh3I7f3r47SnlnMB-_mU8fYGR0
|
|
|
17
17
|
ceph_devstack/resources/ceph/exceptions.py,sha256=C4ldyEA7Cukp-QUOwL-MnQ8kpgMDIQ6r_JQe0E9q4eM,101
|
|
18
18
|
ceph_devstack/resources/ceph/requirements.py,sha256=ZJt7Eeb5y2bOc7dJN3-15ftAyySi80phD7erBsGdqSU,2691
|
|
19
19
|
ceph_devstack/resources/ceph/utils.py,sha256=6-1sageEiLMcx53KHo_GKlIjaGw3swoZk8cQ-e-tDP0,1276
|
|
20
|
-
ceph_devstack-0.2.
|
|
20
|
+
ceph_devstack-0.2.2.dist-info/licenses/LICENSE,sha256=bFeYufyeS1qw0W8pkW1Wj09F2itqX7TAGTnA2NIpApU,1067
|
|
21
21
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
tests/conftest.py,sha256=qulfsMZz3PyAFMdWQ_VWpOFT9L_BiavRax_yQF2Ne24,128
|
|
23
23
|
tests/test_config.py,sha256=RLAjt9DAcAo8GQXgv9dc3Ka3hhtongMs6ioz5YQwKhY,4394
|
|
@@ -37,8 +37,8 @@ tests/resources/ceph/test_ssh_keypair.py,sha256=M8Tc1CY9zb_1WaccMSfnSN35tyjR-Cbl
|
|
|
37
37
|
tests/resources/ceph/test_testnode.py,sha256=wiftdOU058z9IKp5LeUNlv81U9XjojRUI0fYt8mrbgg,1253
|
|
38
38
|
tests/resources/ceph/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
tests/resources/ceph/fixtures/testnode-config.toml,sha256=XaI4VACYHeshb7LLxN3viKBNxOBLOUpPuwlcQJyQO-U,44
|
|
40
|
-
ceph_devstack-0.2.
|
|
41
|
-
ceph_devstack-0.2.
|
|
42
|
-
ceph_devstack-0.2.
|
|
43
|
-
ceph_devstack-0.2.
|
|
44
|
-
ceph_devstack-0.2.
|
|
40
|
+
ceph_devstack-0.2.2.dist-info/METADATA,sha256=2wMAY48hHHICXdTTIlrXLl0ZM1fsqXJtl0kN-soxBFQ,6877
|
|
41
|
+
ceph_devstack-0.2.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
42
|
+
ceph_devstack-0.2.2.dist-info/entry_points.txt,sha256=3cXOGOSb23ATcOZVQFBTY_imM4VFgFddXlYi-m8PA10,57
|
|
43
|
+
ceph_devstack-0.2.2.dist-info/top_level.txt,sha256=NzTr-vAk2OWL08T8PsmfqkJZNEuezF5oaiHCMJBhHPM,20
|
|
44
|
+
ceph_devstack-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|