Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1517893

Summary: [ALT-7.5][blivet][x86_64]CRIT anaconda: Traceback
Product: Red Hat Enterprise Linux 7 Reporter: PaulB <pbunyan>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: NEW --- QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.5-AltCC: blivet-maint-list, jfeeney, jkonecny, jstancek, pbunyan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description PaulB 2017-11-27 16:25:34 UTC
Description of problem:
Target system listed in comment #1 intermittently fails to install due to:
 CRIT anaconda: Traceback (most recent call last):

Version-Release number of selected component (if applicable):
 distro: RHEL-ALT-7.5-20171115.n.0 Server x86_64
 kernel-alt: 4.14.0-3.el7a

How reproducible:

Steps to Reproduce:
1. Install target system listed in comment #1 with RHEL-ALT-7.5-20171115.n.0

Actual results:
15:27:06,926 CRIT anaconda: Traceback (most recent call last):

  File "/usr/lib64/python2.7/site-packages/pyanaconda/", line 227, in run, *args, **kwargs)

  File "/usr/lib64/python2.7/", line 765, in run
    self.__target(*self.__args, **self.__kwargs)

  File "/usr/lib64/python2.7/site-packages/pyanaconda/", line 204, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)

  File "/usr/lib/python2.7/site-packages/blivet/", line 230, in turnOnFilesystems

  File "/usr/lib/python2.7/site-packages/blivet/", line 380, in doIt

  File "/usr/lib/python2.7/site-packages/blivet/", line 373, in processActions

  File "/usr/lib/python2.7/site-packages/blivet/", line 344, in execute

  File "/usr/lib/python2.7/site-packages/blivet/devices/", line 525, in destroy

  File "/usr/lib/python2.7/site-packages/blivet/devices/", line 687, in _destroy

  File "/usr/lib/python2.7/site-packages/blivet/formats/", line 290, in commit

  File "/usr/lib64/python2.7/site-packages/parted/", line 41, in new
    ret = fn(*args, **kwds)

  File "/usr/lib64/python2.7/site-packages/parted/", line 213, in commit
    return self.__disk.commit()

IOException: Partition(s) 2 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.

15:27:08,376 DEBUG anaconda: Gtk cannot be initialized
15:27:08,377 DEBUG anaconda: In a non-main thread, sending a message with exception data
15:27:08,377 INFO anaconda: Thread Done: AnaInstallThread (140499749877504)
15:27:09,338 DEBUG anaconda: running handleException
15:27:09,338 CRIT anaconda: Traceback (most recent call last):

Expected results:
 successful installation of target system

Additional info:

Comment 3 Jiri Konecny 2017-11-28 09:28:06 UTC
Looks like a storage related issue.
Changing components.

Comment 6 David Lehman 2018-02-14 18:06:35 UTC
Hmm, this is something I have never seen before. The swap volume is active even though one of the two physical volumes is missing. The simple workaround is to manually remove the stale lvm metadata using vgremove and pvremove, then try again. Moving drives around without taking care to remove metadata causes lots of problems. Yes, it's more work, but it should be done. Please try again after removing the metadata.