Bug 1232159

Summary: Incorrect mountpoint for lv with existing snapshot lv
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Timothy Asir <tjeyasin>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Stanislav Graf <sgraf>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.1CC: amulhern, dlehman, knarra, nsathyan, rcyriac, sabose, sgraf, vagarwal, vtrefny
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-1.0.0.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1234454 (view as bug list) Environment:
Last Closed: 2015-07-29 05:04:40 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: 1202842, 1230669    

Description Timothy Asir 2015-06-16 07:55:01 UTC
Description of problem:
Blivet devices list provides incorrect mount point for the snapshot lv.

Version-Release number of selected component (if applicable):
RHEL 6.7 and RHEL 7.1

How reproducible:
Always

Steps to Reproduce:
1. Create a Thin LV and format as xfs
2. Mount the thin lv (let us say path x)
3. Create a snapshot from the lv
4. Mount the snapshot lv in to some other path (let us say y)
5. Check the mount point for both lv
6. It shows snapshot lv's mount point for both lvs (shows path as y)

Actual results:
Blivet provides snapshot mount point for both lvs

Expected results:
It should provide the actual mount points

Additional info:
blivet.util.get_mount_paths(device.path) provides
proper mount points for both lvs.

Comment 2 mulhern 2015-06-22 14:42:34 UTC
The problem was ultimately due to the snapshot and origin sharing the same format past the point at which they diverge from each other.

A proposed patch has already been tested (#1230669).

Comment 6 Stanislav Graf 2015-07-17 19:18:25 UTC
We have tested this update through Gluster Console, following packages were used:

# Console
rhsc-3.1.0-0.62.el6.noarch
# Gluster el6 nodes
python-blivet-1.0.0.2-1.el6rhs.noarch
pyparted-3.4-4.el6.x86_64
# Gluster el7 nodes
python-blivet-0.61.15.11-2.el7.noarch
pyparted-3.9-13.el7.x86_64

With those packages, issue from Comment 0 which corresponds to original issue from Bug 1230669, Comment 0 is gone.

In addition to that, python-blivet was directly tested for this issue in Bug 1230669, comment 17.

Thank you for the fix!

--> VERIFIED

Comment 7 errata-xmlrpc 2015-07-29 05:04:40 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://rhn.redhat.com/errata/RHSA-2015-1495.html