Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1245038

Summary: Installer crash when trying to create a new vg due to name conflict
Product: Red Hat Enterprise Linux 7 Reporter: Tao Wu <fedosu85>
Component: python-blivetAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: mbanas, pkotvan, vpodzime
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-0.61.15.47-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:50:08 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:
Attachments:
Description Flags
log file none

Description Tao Wu 2015-07-21 06:23:33 UTC
Created attachment 1054185 [details]
log file

Description of problem:
Blivet crashed when I tried to use it to creat a new vg. 

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


How reproducible:
100%

Steps to Reproduce:
1. Create a vg, for instance named 'zkvm1', on one scsi disk. 
2. Make the scsi disk unable to be mapped by multipathd.
3. Create a new vg, named also 'zkvm1'.
4. Execute doIt() method of blivet.

Actual results:
Blivet accept the request of creating 'zkvm1' vg, but when execute doIt(), it crashes.

Expected results:
Blivet refuses to create 'zkvm1', for there is already one vg named 'zkvm1' in system.

Additional info:

Comment 2 Tao Wu 2015-07-21 06:36:20 UTC
Due to some unknown reason, one scsi disk is not successfully mapped by multipath. But a vg named 'zkvm1' happened to exist on that scsi disk. Because of this, blivet refuses to add the scsi disk and the 'zkvm1' vg into its device  tree and its devicetree's name list. On the other hand, blivet uses its devicetree's name list to detect if the request device name already exists, which will ignore such incomplete vg's name and give this detect a pass. Then, when executing doIt(), collison happens because of the existence of a vg named 'zkvm1'.

We hit this as we are using blivet to do some devlopment, and we work around this by expanding devicetree's name list. We obtain a list of all vg names from 'vgs' command and merge it to the devicetree's name list.

Comment 3 Vratislav Podzimek 2015-07-21 06:59:16 UTC
(In reply to Tao Wu from comment #2)
> Due to some unknown reason, one scsi disk is not successfully mapped by
> multipath. But a vg named 'zkvm1' happened to exist on that scsi disk.
> Because of this, blivet refuses to add the scsi disk and the 'zkvm1' vg into
> its device  tree and its devicetree's name list. On the other hand, blivet
> uses its devicetree's name list to detect if the request device name already
> exists, which will ignore such incomplete vg's name and give this detect a
> pass. Then, when executing doIt(), collison happens because of the existence
> of a vg named 'zkvm1'.
> 
> We hit this as we are using blivet to do some devlopment, and we work around
> this by expanding devicetree's name list. We obtain a list of all vg names
> from 'vgs' command and merge it to the devicetree's name list.
A generic solution would be if blivet added names of incomplete/unsupported devices to the devicetree's name list. The fact that blivet cannot work with such devices doesn't mean they don't exist in the system.

Comment 4 Tao Wu 2015-07-22 09:44:10 UTC
Hi, Vratislav,

Yes, I assume that the devicetree's name list should contain all existing names, do you think so?

Comment 5 David Lehman 2015-07-22 15:00:00 UTC
Sounds right to me. We should be adding the name of incomplete VG before returning from handleVgLvs. There are probably other places as well.

Comment 9 Vratislav Podzimek 2016-05-27 13:40:09 UTC
https://github.com/rhinstaller/blivet/pull/426 merged

Comment 11 Martin Banas 2016-08-22 12:12:00 UTC
Verified SanityOnly on RHEL-7.3-20160817.1 (Beta candidate compose).

Comment 13 errata-xmlrpc 2016-11-03 23:50:08 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/RHBA-2016-2168.html