Bug 1342559

Summary: Information about LV role(s) not provided
Product: [Community] LVM and device-mapper Reporter: Vratislav Podzimek <vpodzime>
Component: lvm2Assignee: Tony Asleson <tasleson>
lvm2 sub component: lvmdbusd QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: agk, anprice, bmarzins, bmr, dwysocha, heinzm, jbrassow, jonathan, lvm-team, msnitzer, prajnoha, prockai, tasleson, zkabelac
Version: 2.02.154Keywords: FutureFeature
Target Milestone: FedoraFlags: rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?
Target Release: 2016-06   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 2.02.156 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-13 15:54:21 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:

Description Vratislav Podzimek 2016-06-03 14:11:41 UTC
Description of problem:
LVM provides a neat way how to determine the function of an LV - its Role. This can be get e.g. by adding '-o+role' to the 'lvs' command. However, this information is missing in the DBus API (the LVs' DBus objects).

Version-Release number of selected component (if applicable):
lvm2-2.02.154-1

How reproducible:
100%

Steps to Reproduce:
1. create an LV
2. try to get its role via the DBus API

Actual results:
information missing

Expected results:
Role provided

Additional info:
since the value from 'lvs -o+role' is a comma-separated list of roles as strings, the best type for a new 'Roles' property of the 'LvCommon' interface seems to be 'as' - array of strings parsed from the comma-separated list.

Comment 2 Vratislav Podzimek 2016-06-13 07:21:38 UTC
(In reply to Tony Asleson from comment #1)
> Committed upstream
> 
> https://git.fedorahosted.org/cgit/lvm2.git/commit/
> ?id=3bf43a65fefbda1b2628fbbc77ad40e3780a8d84


Looks good to me, thanks!

Comment 3 Peter Rajnoha 2016-07-01 06:47:04 UTC
Included in 2.02.156.

commit 3bf43a65fefbda1b2628fbbc77ad40e3780a8d84
Author: Tony Asleson <tasleson>
Date:   Fri Jun 3 17:07:37 2016 -0500

    lvmdbusd: Add roles property to LV common interface