Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-34106: bps without specifying iddsServer #3

Merged
merged 2 commits into from
May 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion bin.src/panda_auth
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if __name__ == "__main__":
"PANDA_AUTH_VO",
"PANDA_URL_SSL",
"PANDA_URL",
"IDDS_CONFIG",
]:
if key not in os.environ:
raise OSError(f"Missing environment variable {key}")
Expand Down
2 changes: 1 addition & 1 deletion config/bps_idf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PANDA plugin specific settings:
iddsServer: "https://aipanda015.cern.ch:443/idds"
# iddsServer: "https://aipanda015.cern.ch:443/idds"
placeholderParams: ['qgraphNodeId', 'qgraphId']
defaultPreCmdOpts: "--long-log --log-level=VERBOSE --log-file payload-log.json"

Expand Down
2 changes: 2 additions & 0 deletions doc/changes/DM-34106.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove iddsServer from bps_idf.yml, to use the idds server defined in panda relay service.
Remove IDDS_CONFIG requirements (requiring idds version 0.10.6 and later).
3 changes: 1 addition & 2 deletions python/lsst/ctrl/bps/panda/panda_auth_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def panda_auth_setup():
"PANDA_AUTH_VO",
"PANDA_URL_SSL",
"PANDA_URL",
"IDDS_CONFIG",
]:
if key not in os.environ:
raise OSError(f"Missing environment variable {key}")
Expand Down Expand Up @@ -121,7 +120,7 @@ def panda_auth_update(idds_server=None, reset=False):
----------
idds_server : `str`, optional
URL for the iDDS server. Defaults to None which means that the
underlying functions use any value in the IDDS_CONFIG.
underlying functions use any value in the panda relay service.
reset : `bool`, optional
Whether to first clean up any previous token. Defaults to False.
"""
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/bps/panda/panda_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def run_submission_checks(self):
Any exception other than NotImplementedError will halt submission.
Submit directory may not yet exist when this is called.
"""
for key in ["PANDA_URL", "IDDS_CONFIG"]:
for key in ["PANDA_URL"]:
if key not in os.environ:
raise OSError(f"Missing environment variable {key}")

Expand Down
6 changes: 0 additions & 6 deletions tests/SConscript
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# -*- python -*-
import os

from lsst.sconsUtils import env, scripts
scripts.BasicSConscript.tests(pyList=[])

if "IDDS_CONFIG" in os.environ:
env["ENV"]["IDDS_CONFIG"] = os.environ["IDDS_CONFIG"]
else:
env["ENV"]["IDDS_CONFIG"] = f"{os.environ['CTRL_BPS_PANDA_DIR']}/tests/idds_test.cfg"
18 changes: 0 additions & 18 deletions tests/idds_test.cfg

This file was deleted.

1 change: 0 additions & 1 deletion tests/test_panda_auth_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def testPandaAuthStatusWrongEnviron(self):
"PANDA_AUTH_VO",
"PANDA_URL_SSL",
"PANDA_URL",
"IDDS_CONFIG",
}
test_environ = {key: val for key, val in os.environ.items() if key not in unwanted}
with mock.patch.dict(os.environ, test_environ, clear=True):
Expand Down