Bug 895551

Summary: module clear doesn't work
Product: [Fedora] Fedora Reporter: Jan Synacek <jsynacek>
Component: environment-modulesAssignee: Orion Poplawski <orion>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jsynacek, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-26 16:05:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[Patch] fix module clear none

Description Jan Synacek 2013-01-15 14:01:48 UTC
Created attachment 678783 [details]
[Patch] fix module clear

Description of problem:
'module clear' doesn't clear loaded modules. It doesn't seem to do anything at all.


Version-Release number of selected component (if applicable):
environment-modules-3.2.10


How reproducible:
Always.


Steps to Reproduce:
1. module load <a module>
2. module list (see that it's loaded)
3. module clear
4. module list (see that nothing has changed, the module is still loaded)


Actual results:
Loaded modules are not cleared.


Expected results:
Loaded modules are cleared.


Additional info:
I'm not sure what the difference between 'module clear' and 'module purge' is supposed to be. Man pages aren't clear about it.

Comment 1 Orion Poplawski 2013-01-15 18:52:29 UTC
Thanks.  I forwarded this on to the modules list.  clear makes modules think that no modules are loaded, but doesn't "unload" them.  purge unloads them (undoing the changes they made).

Comment 2 Fedora Update System 2013-01-15 19:23:03 UTC
environment-modules-3.2.10-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/environment-modules-3.2.10-2.fc18

Comment 3 Fedora Update System 2013-01-18 20:47:13 UTC
Package environment-modules-3.2.10-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing environment-modules-3.2.10-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0964/environment-modules-3.2.10-2.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-26 16:05:15 UTC
environment-modules-3.2.10-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.