Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1484002

Summary: lvm_volumes dict entries must be unique logical volume names
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Harrigan <jharriga>
Component: Ceph-VolumeAssignee: Alfredo Deza <adeza>
Status: CLOSED ERRATA QA Contact: shylesh <shmohan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: adeza, anharris, aschoen, bengland, ceph-eng-bugs, ceph-qe-bugs, gmeno, hnallurv, jharriga, kdreyer, nthomas, sankarshan, vereddy
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.0-1.el7cp ceph-ansible-3.0.0-0.1.rc4.el7cp Ubuntu: ceph_12.2.0-2redhat1xenial ceph-ansible_3.0.0~rc4-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:39:47 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 John Harrigan 2017-08-22 12:52:18 UTC
Description of problem:

Currently when using 'osd_scenario: lvm', the 'lvm_volumes:' dict pairs of LV names *must* all be unique names. For example, this would work:
  lvm_volumes:
    lv0: /dev/nvme0n1p1
    lv1: /dev/nvme0n1p2

But if a system is configured with multiple volume groups which have LV's
with the same name, then no go. Like this 
  lvm_volumes:
    lv0: /dev/nvme0n1p1
    lv0: /dev/nvme0n1p2

Users should be allowed to specify LV's with the same name from different
volume groups.

Comment 2 Andrew Schoen 2017-08-23 15:06:23 UTC
This upstream PR changes `lvm_volumes` in ceph-ansible in such a way that would resolve this issue: https://github.com/ceph/ceph-ansible/pull/1797

However, I don't think `ceph-volume` would support making an OSD from a lv named the same in many vgs yet.

Comment 3 Alfredo Deza 2017-08-24 13:08:42 UTC
cherry-picks targeting luminous just got merged

Comment 11 errata-xmlrpc 2017-12-05 23:39:47 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-2017:3387