TACC / Lmod

Lmod: An Environment Module System based on Lua, Reads TCL Modules, Supports a Software Hierarchy
http://lmod.readthedocs.org
Other
491 stars 128 forks source link

LMOD_ADMIN_FILE feature should behave consistently, also across parent level swaps? #267

Closed fgeorgatos closed 7 years ago

fgeorgatos commented 7 years ago

Example: (notice where the message does not get displayed, despite the reload)

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml GCC
--------------------------------------------------------------------------------------------------------------------------------------------------------------
There are messages associated with the following module(s):
--------------------------------------------------------------------------------------------------------------------------------------------------------------

/opt/apps/Lapland/Rovaniemi/HPCBIOS/20160923/modules/all/GCC/6.1.0-2.27:
   ho ho... Santa Claus is coming to town
--------------------------------------------------------------------------------------------------------------------------------------------------------------

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml HPCBIOS/2016q3

Due to MODULEPATH changes, the following have been reloaded:
  1) GCC/6.1.0-2.27     2) GCCcore/6.1.0     3) binutils/2.27-GCCcore-6.1.0

The following have been reloaded with a version change:
  1) HPCBIOS/20160923 => HPCBIOS/2016q3

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml HPCBIOS
--------------------------------------------------------------------------------------------------------------------------------------------------------------
There are messages associated with the following module(s):
--------------------------------------------------------------------------------------------------------------------------------------------------------------

/opt/apps/Lapland/Rovaniemi/HPCBIOS/20160923/modules/all/GCC/6.1.0-2.27:
   ho ho... Santa Claus is coming to town
--------------------------------------------------------------------------------------------------------------------------------------------------------------

Due to MODULEPATH changes, the following have been reloaded:
  1) GCC/6.1.0-2.27     2) GCCcore/6.1.0     3) binutils/2.27-GCCcore-6.1.0

The following have been reloaded with a version change:
  1) HPCBIOS/2016q3 => HPCBIOS/20160923

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml swap GCC
--------------------------------------------------------------------------------------------------------------------------------------------------------------
There are messages associated with the following module(s):
--------------------------------------------------------------------------------------------------------------------------------------------------------------

/opt/apps/Lapland/Rovaniemi/HPCBIOS/20160923/modules/all/GCC/6.1.0-2.27:
   ho ho... Santa Claus is coming to town
--------------------------------------------------------------------------------------------------------------------------------------------------------------

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml HPCBIOS/2016q3

Due to MODULEPATH changes, the following have been reloaded:
  1) GCC/6.1.0-2.27     2) GCCcore/6.1.0     3) binutils/2.27-GCCcore-6.1.0

The following have been reloaded with a version change:
  1) HPCBIOS/20160923 => HPCBIOS/2016q3

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml HPCBIOS
--------------------------------------------------------------------------------------------------------------------------------------------------------------
There are messages associated with the following module(s):
--------------------------------------------------------------------------------------------------------------------------------------------------------------

/opt/apps/Lapland/Rovaniemi/HPCBIOS/20160923/modules/all/GCC/6.1.0-2.27:
   ho ho... Santa Claus is coming to town
--------------------------------------------------------------------------------------------------------------------------------------------------------------

Due to MODULEPATH changes, the following have been reloaded:
  1) GCC/6.1.0-2.27     2) GCCcore/6.1.0     3) binutils/2.27-GCCcore-6.1.0

The following have been reloaded with a version change:
  1) HPCBIOS/2016q3 => HPCBIOS/20160923

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml

Currently Loaded Modules:
  1) sge/2011.11p1   2) cluster/env   3) HPCBIOS/20160923 (S)   4) GCCcore/6.1.0   5) binutils/2.27-GCCcore-6.1.0   6) GCC/6.1.0-2.27

  Where:
   S:  Module is Sticky, requires --force to unload or purge

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml swap GCC
--------------------------------------------------------------------------------------------------------------------------------------------------------------
There are messages associated with the following module(s):
--------------------------------------------------------------------------------------------------------------------------------------------------------------

/opt/apps/Lapland/Rovaniemi/HPCBIOS/20160923/modules/all/GCC/6.1.0-2.27:
   ho ho... Santa Claus is coming to town
--------------------------------------------------------------------------------------------------------------------------------------------------------------

[fgeorgatos@node241 LMOD_ADMIN_FILE]$ ml

Currently Loaded Modules:
  1) sge/2011.11p1   2) cluster/env   3) HPCBIOS/20160923 (S)   4) GCCcore/6.1.0   5) binutils/2.27-GCCcore-6.1.0   6) GCC/6.1.0-2.27

  Where:
   S:  Module is Sticky, requires --force to unload or purge

[fgeorgatos@node241 LMOD_ADMIN_FILE]$
fgeorgatos commented 7 years ago

for the record, HPCBIOS/2016q3 is a symlink pointing to HPCBIOS/20160923; so, we should either see the reload happening everywhere or, none at all; is that statement correct?!

rtmclay commented 7 years ago

Please do the following: 1) New shell 2) ml GCC; 3) ml -D -D HPCBIOS/2016q3 2> load.log

and send me load.log and the LMOD_ADMIN_FILE. Thanks!

fgeorgatos commented 7 years ago

rejecting this issue, because it works as intended: only HPCBIOS was loaded, not GCC. So, all good!