-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace singularity with apptainer #137
Conversation
Created role with `cd roles && molecule init role ewatercycle.apptainer`
Except where used in combination with python ewatercycle package As eWaterCycle/ewatercycle#324 has not been merged/released yet
@@ -102,4 +101,11 @@ parameter_sets: | |||
target_model: wflow | |||
supported_model_versions: !!set {2020.1.1: null, 2020.1.2: null, 2020.1.3: null} | |||
parameterset_dir: {{ parameterset_dir }} | |||
singularity_dir: {{ singularity_image_root }} | |||
{# ewatercycle>1.4.1 will use apptainer instead of singularity #} | |||
{% if pyewatercycle_version == '1.4.1' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO make more future proof.
change so <1.4.1 uses singularity and else uses apptainer.
on SRC creation failedTASK [Run Ansible plugin] ******************************************************
Monday 05 June 2023 11:27:46 +0000 (0:00:01.196) 0:04:07.036 ***********
fatal: [145.38.187.131]: FAILED! => {"ansible_job_id": "495034654240.12475", "changed": true, "cmd": ["ansible-playbook", "--connection=local", "-b", "--extra-vars={'alt_home_location': '/data/volume_2', 'dcache_ro_token': '***', 'rclone_cache_dir': '/data/volume_3', 'rclone_max_gsize': '45'}", "/rsc/plugins/39795e81-c3e0-408b-9e80-a936c42048d1/research-cloud-plugin.yml"], "delta": "0:00:00.671938", "end": "2023-06-05 11:27:48.058763", "finished": 1, "msg": "non-zero return code", "rc": 2, "start": "2023-06-05 11:27:47.386825", "stderr": "[WARNING]: No inventory was parsed, only implicit localhost is available\n[WARNING]: provided hosts list is empty, only localhost is available. Note that\nthe implicit localhost does not match 'all'\n[WARNING]: Reset is not implemented for this connection", "stderr_lines": ["[WARNING]: No inventory was parsed, only implicit localhost is available", "[WARNING]: provided hosts list is empty, only localhost is available. Note that", "the implicit localhost does not match 'all'", "[WARNING]: Reset is not implemented for this connection"], "stdout": "\nPLAY [Install and configure eWaterCycle Jupyter] *******************************\n\nTASK [Wait for system to become reachable] *************************************\nok: [localhost]\n\nTASK [Gather facts for first time] *********************************************\nfatal: [localhost]: FAILED! => {\"changed\": false, \"module_stderr\": \"/bin/sh: 1: powershell: not found\\n\", \"module_stdout\": \"\", \"msg\": \"The module failed to execute correctly, you probably need to set the interpreter.\\nSee stdout/stderr for the exact error\", \"rc\": 127}\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ", "stdout_lines": ["", "PLAY [Install and configure eWaterCycle Jupyter] *******************************", "", "TASK [Wait for system to become reachable] *************************************", "ok: [localhost]", "", "TASK [Gather facts for first time] *********************************************", "fatal: [localhost]: FAILED! => {\"changed\": false, \"module_stderr\": \"/bin/sh: 1: powershell: not found\\n\", \"module_stdout\": \"\", \"msg\": \"The module failed to execute correctly, you probably need to set the interpreter.\\nSee stdout/stderr for the exact error\", \"rc\": 127}", "", "PLAY RECAP *********************************************************************", "localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 "]} |
|
Apptainer works.
|
Lot's of issues on ESMValCore and Iris about this, e.g. ESMValGroup/ESMValCore#1876 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as this fixes the issue it was intended for. Shall we open a new issue for the ESMValTool fix?
TODO
Testable by
apptainer run docker://ghcr.io/apptainer/lolcow
, it should produce ascii art of a cow when apptainer is installed correctly.ls -l $(which singularity)
,singularity
should be symbolic link to apptainer.pip show ewatercycle
should have version 1.4.1 installed/etc/ewatercycle.yaml
hascontainer_engine: apptainer
.