An error is raised as purge should result in an empty loaded module list.
I understand that this behavior could disturb some users.
So a configuration option may be introduced to define the expected
behavior. I have created an issue ticket for this feature request:
https://github.com/cea-hpc/modules/issues/502
Best regards,
Xavier
Le lun. 26 juin 2023 à 16:04, Adrien COTTE - Groupe EOLEN
<adr...@eo...> a écrit :
>
> Of course.
>
> Let's take a module "slurm/22.05.7".
> This module is loaded at the login and has the super-sticky tag.
>
> I mean, each user must have this module loaded, otherwise they cannot run any job.
>
> After loaded several other modules, my users want to clean their env with "module purge".
>
> But, this message (with verbosity concise) appears:
>
> Unloading slurm/22.05.7
> Error: Unload of sticky module skipped
>
> And $? is 1.
>
> When I explain to my users why there is this message, they say "ok, so this is normal and not an error". It's hard to disagree, this is the right behaviour. It should be a simple INFO, a Warning at least, but not an Error.
>
> Is it more clear?
>
> Thx,
> Adrien
> ________________________________
> From: Xav...@CE... <Xav...@CE...>
> Sent: Monday, June 26, 2023 11:13:22 AM
> To: mod...@li... <mod...@li...>
> Subject: Re: [Modules] Sticky modules message without error
>
> Hi Adrien,
>
> Could you please give some details in what situations these messages are obtained and scare users.
>
> Best regards,
> Xavier
>
> On Mon, 2023-06-26 at 08:39 +0000, Adrien COTTE - Groupe EOLEN wrote:
>
> Hi,
>
> I've set some modules as Sticky, but my users are scared about the Error message.
>
> Is there any way to transform this message into Warning and not return code 1?
>
> Best,
> Adrien
>
> _______________________________________________
>
> Modules-interest mailing list
>
> Mod...@li...
>
>
> https://lists.sourceforge.net/lists/listinfo/modules-interest
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|