DIRAC 9.0.4__py3-none-any.whl → 9.0.5__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.
- DIRAC/Core/scripts/dirac_apptainer_exec.py +8 -8
- DIRAC/WorkloadManagementSystem/Utilities/PilotCStoJSONSynchronizer.py +4 -1
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/METADATA +2 -2
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/RECORD +8 -8
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/WHEEL +0 -0
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/entry_points.txt +0 -0
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/licenses/LICENSE +0 -0
- {dirac-9.0.4.dist-info → dirac-9.0.5.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
"""
|
|
3
|
-
"""
|
|
2
|
+
"""Starts a DIRAC command inside an apptainer container."""
|
|
4
3
|
|
|
5
4
|
import os
|
|
6
5
|
import sys
|
|
@@ -52,8 +51,9 @@ def main():
|
|
|
52
51
|
if switch[0].lower() == "i" or switch[0].lower() == "image":
|
|
53
52
|
user_image = switch[1]
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
cwd = os.path.realpath(os.getcwd())
|
|
55
|
+
dirac_env_var = os.environ.get("DIRAC", cwd)
|
|
56
|
+
diracos_env_var = os.environ.get("DIRACOS", cwd)
|
|
57
57
|
etc_dir = os.path.join(DIRAC.rootPath, "etc")
|
|
58
58
|
rc_script = os.path.join(os.path.realpath(sys.base_prefix), "diracosrc")
|
|
59
59
|
|
|
@@ -74,7 +74,7 @@ def main():
|
|
|
74
74
|
cmd.extend(["--contain"]) # use minimal /dev and empty other directories (e.g. /tmp and $HOME)
|
|
75
75
|
cmd.extend(["--ipc"]) # run container in a new IPC namespace
|
|
76
76
|
cmd.extend(["--pid"]) # run container in a new PID namespace
|
|
77
|
-
cmd.extend(["--bind",
|
|
77
|
+
cmd.extend(["--bind", cwd]) # bind current directory for dirac_container.sh
|
|
78
78
|
if proxy_location:
|
|
79
79
|
cmd.extend(["--bind", f"{proxy_location}:/etc/proxy"]) # bind proxy file
|
|
80
80
|
cmd.extend(["--bind", f"{getCAsLocation()}:/etc/grid-security/certificates"]) # X509_CERT_DIR
|
|
@@ -89,13 +89,13 @@ def main():
|
|
|
89
89
|
if safe_listdir(bind_path):
|
|
90
90
|
cmd.extend(["--bind", f"{bind_path}:{bind_path}"])
|
|
91
91
|
else:
|
|
92
|
-
gLogger.
|
|
93
|
-
cmd.extend(["--cwd",
|
|
92
|
+
gLogger.warn(f"Bind path {bind_path} does not exist, skipping")
|
|
93
|
+
cmd.extend(["--cwd", cwd]) # set working directory
|
|
94
94
|
|
|
95
95
|
rootImage = user_image or gConfig.getValue("/Resources/Computing/Singularity/ContainerRoot") or CONTAINER_DEFROOT
|
|
96
96
|
|
|
97
97
|
if os.path.isdir(rootImage) or os.path.isfile(rootImage):
|
|
98
|
-
cmd.extend([rootImage, f"{
|
|
98
|
+
cmd.extend([rootImage, f"{cwd}/dirac_container.sh"])
|
|
99
99
|
else:
|
|
100
100
|
# if we are here is because there's no image, or it is not accessible (e.g. not on CVMFS)
|
|
101
101
|
gLogger.error("Apptainer image to exec not found: ", rootImage)
|
|
@@ -11,7 +11,6 @@ import os
|
|
|
11
11
|
import shutil
|
|
12
12
|
import tarfile
|
|
13
13
|
from typing import Any
|
|
14
|
-
|
|
15
14
|
from git import Repo
|
|
16
15
|
|
|
17
16
|
from DIRAC import S_OK, gConfig, gLogger
|
|
@@ -217,6 +216,10 @@ class PilotCStoJSONSynchronizer:
|
|
|
217
216
|
|
|
218
217
|
pilotDict["ConfigurationServers"] = configurationServers
|
|
219
218
|
|
|
219
|
+
preferredURLPatterns = gConfigurationData.extractOptionFromCFG("/DIRAC/PreferredURLPatterns")
|
|
220
|
+
if preferredURLPatterns:
|
|
221
|
+
pilotDict["PreferredURLPatterns"] = preferredURLPatterns
|
|
222
|
+
|
|
220
223
|
self.log.debug("Got pilotDict", str(pilotDict))
|
|
221
224
|
|
|
222
225
|
return S_OK(pilotDict)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DIRAC
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.5
|
|
4
4
|
Summary: DIRAC is an interware, meaning a software framework for distributed computing.
|
|
5
5
|
Home-page: https://github.com/DIRACGrid/DIRAC/
|
|
6
6
|
License: GPL-3.0-only
|
|
@@ -19,7 +19,7 @@ Requires-Dist: cachetools
|
|
|
19
19
|
Requires-Dist: certifi
|
|
20
20
|
Requires-Dist: cwltool
|
|
21
21
|
Requires-Dist: diraccfg
|
|
22
|
-
Requires-Dist: DIRACCommon==v9.0.
|
|
22
|
+
Requires-Dist: DIRACCommon==v9.0.5
|
|
23
23
|
Requires-Dist: diracx-client>=v0.0.1
|
|
24
24
|
Requires-Dist: diracx-core>=v0.0.1
|
|
25
25
|
Requires-Dist: diracx-cli>=v0.0.1
|
|
@@ -322,7 +322,7 @@ DIRAC/Core/Workflow/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
322
322
|
DIRAC/Core/Workflow/test/step_g.py,sha256=hlncZ_tbb74wz0mRxyHTl0NnjRut2ysWLgUfiTvi9yo,21830
|
|
323
323
|
DIRAC/Core/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
324
324
|
DIRAC/Core/scripts/dirac_agent.py,sha256=cjR5wuh4j5D5nTvu9ZfPbjdbZiEnRG34GJj7iSh47qk,1670
|
|
325
|
-
DIRAC/Core/scripts/dirac_apptainer_exec.py,sha256=
|
|
325
|
+
DIRAC/Core/scripts/dirac_apptainer_exec.py,sha256=fIg4DDJJ9TwbsCNbQpkkUOIvpetGnqlKWF75Gi3RhQ8,4651
|
|
326
326
|
DIRAC/Core/scripts/dirac_cert_convert.py,sha256=3ThPmb1Tg-UgeH-3ZV0ilkZ8-H4RsK8SOszLuuYG-vs,2498
|
|
327
327
|
DIRAC/Core/scripts/dirac_configure.py,sha256=c3ZfQUe_JUJASi3iuvl4qD83kyfWvS_QixISyG833sg,29494
|
|
328
328
|
DIRAC/Core/scripts/dirac_executor.py,sha256=ZZnr8NjjBmmKmQhUnstRklw9HTsP75XRXnkBawDWdnE,1722
|
|
@@ -1241,7 +1241,7 @@ DIRAC/WorkloadManagementSystem/Utilities/JobModel.py,sha256=jN9sFbzMZo9tab6Kp7Oe
|
|
|
1241
1241
|
DIRAC/WorkloadManagementSystem/Utilities/JobParameters.py,sha256=JW3AAEtBJn1gIO_rm2Ft5qqjfLteIo3HpQtGNZBfhxE,8365
|
|
1242
1242
|
DIRAC/WorkloadManagementSystem/Utilities/JobStatusUtility.py,sha256=WtGJzC7fHvydANh8JH6e1Kk_jebrCMPr2c5cw3ufjm8,7826
|
|
1243
1243
|
DIRAC/WorkloadManagementSystem/Utilities/ParametricJob.py,sha256=FNUsGhvsFVrtmA7r8G-sd4QTMeBkqG1sdtwiBUKQyd0,605
|
|
1244
|
-
DIRAC/WorkloadManagementSystem/Utilities/PilotCStoJSONSynchronizer.py,sha256=
|
|
1244
|
+
DIRAC/WorkloadManagementSystem/Utilities/PilotCStoJSONSynchronizer.py,sha256=Ezpfd90dV_j6fOn25v5gr-wNWh1nMpCOQZfPmGDHJD4,12448
|
|
1245
1245
|
DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py,sha256=VcvQTpeyTbVYqSsPQDyAt37N2CaEAnIuvbR6yk4kYk8,15465
|
|
1246
1246
|
DIRAC/WorkloadManagementSystem/Utilities/QueueUtilities.py,sha256=J5-n_lvWbW_TRjrlqp8hx1SHEaXDW2Dxp3R1hBBrWnE,12082
|
|
1247
1247
|
DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py,sha256=7FcEtlYSJMzdbLIFBUKD-j_wqRHya-ISqk8w-JRy3kw,12159
|
|
@@ -1295,9 +1295,9 @@ DIRAC/tests/Workflow/Integration/exe-script.py,sha256=B_slYdTocEzqfQLRhwuPiLyYUn
|
|
|
1295
1295
|
DIRAC/tests/Workflow/Integration/helloWorld.py,sha256=tBgEHH3ZF7ZiTS57gtmm3DW-Qxgm_57HWHpM-Y8XSws,205
|
|
1296
1296
|
DIRAC/tests/Workflow/Regression/helloWorld.py,sha256=69eCgFuVSYo-mK3Dj2dw1c6g86sF5FksKCf8V2aGVoM,509
|
|
1297
1297
|
DIRAC/tests/Workflow/Regression/helloWorld.xml,sha256=xwydIcFTAHIX-YPfQfyxuQ7hzvIO3IhR3UAF7ORgkGg,5310
|
|
1298
|
-
dirac-9.0.
|
|
1299
|
-
dirac-9.0.
|
|
1300
|
-
dirac-9.0.
|
|
1301
|
-
dirac-9.0.
|
|
1302
|
-
dirac-9.0.
|
|
1303
|
-
dirac-9.0.
|
|
1298
|
+
dirac-9.0.5.dist-info/licenses/LICENSE,sha256=uyr4oV6jmjUeepXZPPjkJRwa5q5MrI7jqJz5sVXNblQ,32452
|
|
1299
|
+
dirac-9.0.5.dist-info/METADATA,sha256=WgBoEsoG3B1PTa2YPy4NsEzaG4q01d5BOVhMYEIZbTs,10016
|
|
1300
|
+
dirac-9.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1301
|
+
dirac-9.0.5.dist-info/entry_points.txt,sha256=hupzIL8aVmjK3nn7RLKdhcaiPmLOiD3Kulh3CSDHKmw,16492
|
|
1302
|
+
dirac-9.0.5.dist-info/top_level.txt,sha256=RISrnN9kb_mPqmVu8_o4jF-DSX8-h6AcgfkO9cgfkHA,6
|
|
1303
|
+
dirac-9.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|