Bug 823473

Summary: cling_by_tags does not use next tagged PVs though enough PEs available
Product: [Fedora] Fedora Reporter: Marian Csontos <mcsontos>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, mbroz, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-21 09:25:12 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
verbose output of lvextend
none
metadata used
none
lvm.conf none

Description Marian Csontos 2012-05-21 06:54:32 EDT
Description of problem:
extending mirrored LV using --alloc cling_by_tags fails though there is enough space on free tagged PVs.

This used to work before, thus marking as Regression.

Version-Release number of selected component (if applicable):
lvm2-2.02.96-0.114 (git hash bfdfc9e68e1) .. master

How reproducible:
100%

Steps to Reproduce:
# having 5 PEs each with 4094 PEs in mirror_sanity VG, run:
> pvchange --addtag A /dev/vdh2 /dev/vdh1
> pvchange --addtag B /dev/vdg1 /dev/vde1
> lvcreate -m 1 -n cling_mirror -l 4094 mirror_sanity /dev/vdh2 /dev/vdg1 /dev/vdf1:50
> lvextend -l 8188 --alloc cling_by_tags mirror_sanity/cling_mirror

Actual results:
> Insufficient suitable allocatable extents for logical volume cling_mirror: 8188 more required

Expected results:
lvextend should pass

Additional info:
Comment 1 Marian Csontos 2012-05-21 08:19:22 EDT
Created attachment 585796 [details]
verbose output of lvextend
Comment 2 Marian Csontos 2012-05-21 08:22:52 EDT
Created attachment 585800 [details]
metadata used
Comment 3 Marian Csontos 2012-05-21 08:40:27 EDT
Created attachment 585804 [details]
lvm.conf
Comment 4 Marian Csontos 2012-05-21 09:25:12 EDT
Error in test suite not handling recent changes in lvm.conf correctly.