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-blivet | Assignee: | Vratislav Podzimek <vpodzime> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.1 | CC: | 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: |
|
||||||
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. (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. Hi, Vratislav, Yes, I assume that the devicetree's name list should contain all existing names, do you think so? Sounds right to me. We should be adding the name of incomplete VG before returning from handleVgLvs. There are probably other places as well. Verified SanityOnly on RHEL-7.3-20160817.1 (Beta candidate compose). 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 |
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: