Skip to content

Make logdir writable also when --stop/--fetch is used and --read-only-installdir is enabled#3771

Merged
akesandgren merged 5 commits intoeasybuilders:developfrom
Flamefire:ro-install-dir-fetch
Aug 23, 2021
Merged

Make logdir writable also when --stop/--fetch is used and --read-only-installdir is enabled#3771
akesandgren merged 5 commits intoeasybuilders:developfrom
Flamefire:ro-install-dir-fetch

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire commented Jul 8, 2021

Same as for the usual installation: --fetch or --stop also write their logs into the installdir which fails when it is read-only.

Turns out (in a test) we did then also make the whole installdir writable but not write-only again when the permissions-step is skipped (e.g. via --fetch). So undo our temporary writeable modification in that case.
Related to #3752

While debugging I included 2 minor changes:

  • Out of ECs when printed/logged as <name> EasyConfig @ <path>
  • Output of unset $MODULEPATH as <unset>

@Flamefire Flamefire force-pushed the ro-install-dir-fetch branch from 03d9ab8 to ff313ea Compare July 8, 2021 14:00
Flamefire added 5 commits July 8, 2021 16:14
We often print an easyconfig which is currently shown as
"<easybuild.framework.easyconfig.easyconfig.EasyConfig object at 0x7f431627df10>"
This is not helpful at all.
Instead show something like "GCC EasyConfig @ /tmp/GCC.eb"
Avoids failure with modules-env due to having no $MODULEPATH but an
(otherwise inexistant) modules tool
@Flamefire Flamefire force-pushed the ro-install-dir-fetch branch from ff313ea to c866662 Compare July 8, 2021 14:43
@migueldiascosta migueldiascosta added this to the next release (4.4.2?) milestone Jul 26, 2021
@easybuilders easybuilders deleted a comment from boegelbot Aug 18, 2021
@easybuilders easybuilders deleted a comment from boegelbot Aug 18, 2021
@easybuilders easybuilders deleted a comment from boegelbot Aug 18, 2021
Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren
Copy link
Copy Markdown
Contributor

Going in, thanks @Flamefire!

@akesandgren akesandgren merged commit 616abca into easybuilders:develop Aug 23, 2021
@Flamefire Flamefire deleted the ro-install-dir-fetch branch August 30, 2021 09:27
@boegel boegel changed the title Make logdir writable also when --stop/--fetch is given Make logdir writable also when --stop/--fetch is used and --read-only-installdir is enabled Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants