Skip to content

Conversation

@gmarciani
Copy link
Contributor

Cherry-picked from #282

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

  1. Pyxis is disabled by default. In particular, the Enroot, SPANK and Pyxis config files required to enable it are stored in `/opt/parallelcluster/examples` folder so that they are ineffective but can be used by the user to enable Pyxis by simply moving them to the expected location.

  2. Moved Pyxis and Enroot configuration to build time (there was no reason to configure Pyxis and Enroot at runtime)

  3. Skip Enroot installation if Enroot is already installed.

  4. Skip Pyxis installation if Pyxis is already installed.

  5. The sample configurations provided for Pyxis uses runtime path to `/run/pyxis`. As per [documentation](https://github.com/NVIDIA/pyxis/wiki/Setup#slurm-plugstack-configuration) a tmpfs should be used.

  6. The sample configuration provided for Enroot uses the following paths, as suggested in [documentation](https://github.com/NVIDIA/pyxis/wiki/Setup#enroot-configuration-example)
    1. Using tmpfs storage for `ENROOT_RUNTIME_PATH` and `ENROOT_DATA_PATH`
    2. Using a persistent local storage for `ENROOT_CACHE_PATH` and `ENROOT_CONFIG_PATH`.

  7. We do not create any directory used in the Pyxis or Enroot sample configuration. The user is supposed to create the desired directories.

  8. *Minor*: Moved Pyxis attributes from platform cookbook to slurm cookbook because Pyxis is a SLURM plugin so it would be conceptually wrong to have its attributes defined in platform cookbook.

  9. Added missing unit tests.

Signed-off-by: Giacomo Marciani <mgiacomo@amazon.com>
@gmarciani gmarciani added bug skip-changelog-update 3.x skip-recursive-deletion-check Skip the checks regarding the use of recursive deletion. labels Oct 16, 2024
@gmarciani gmarciani requested review from a team as code owners October 16, 2024 15:29
@gmarciani gmarciani enabled auto-merge (rebase) October 16, 2024 15:30
@gmarciani gmarciani merged commit 21c2dba into aws:develop Oct 16, 2024
40 of 42 checks passed
@gmarciani gmarciani deleted the wip/mgiacomo/3.11.1/fix-pyxis-1015-develop branch October 16, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x bug skip-changelog-update skip-recursive-deletion-check Skip the checks regarding the use of recursive deletion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants