Bug 1533950

Summary: RFE: add version file to /sys/kvdo to track currently loaded kmod-kvdo version
Product: Red Hat Enterprise Linux 7 Reporter: Bryan Gurney <bgurney>
Component: kmod-kvdoAssignee: sclafani
Status: CLOSED ERRATA QA Contact: Jakub Krysl <jkrysl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: awalsh, jkrysl
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 6.1.1.85 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 09:38:49 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:
Bug Depends On:    
Bug Blocks: 1546181    

Description Bryan Gurney 2018-01-12 15:52:15 UTC
Description of problem:
As a result of bug 1510176, there's a possibility of confusion of which version of the kvdo kernel module is actually loaded.  Upgrading the kmod-kvdo package will install the new kvdo module, but currently will not run the equivalent of "rmmod kvdo" and "modprobe kvdo".  

Running "modinfo kvdo" will show the version number of the kernel module currently installed.  However, there's no simple way to find the version of the kvdo module currently loaded in memory.  

It may be possible to create a file in the root of the "/sys/kvdo" directory (which exists when the kvdo module is loaded) to indicate the version of the kvdo module, matching the string displayed by the syslog message after a successful "modprobe kvdo"

"kernel: kvdo: modprobe: loaded version 6.1.0.114"

In this case, the contents of "/sys/kvdo/version" would be "6.1.0.114".


Version-Release number of selected component (if applicable):
kmod-kvdo-6.1.0.114-11.el7.x86_64

How reproducible:
N/A (RFE)

Steps to Reproduce:
1.
2.
3.

Actual results:
The "/sys/kvdo/version" file does not exist when the kvdo module is loaded.

Expected results:
The "/sys/kvdo/version" file exists when the kvdo module is loaded, and contains a version string matching the contents of the "loaded version %s" message that is displayed after a successful "modprobe kvdo" command.

Additional info:

Comment 5 Jakub Krysl 2018-07-11 09:13:49 UTC
tested with kmod-kvdo-6.1.1.91 and kmod-kvdo-6.1.1.99. Loading the module always produces correct version in /sys/kvdo/version

# modprobe kvdo
# cat /sys/kvdo/version
6.1.1.99

Comment 7 errata-xmlrpc 2018-10-30 09:38:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3094