Why does kickstart installation of Red Hat Enterprise Linux 7.1 fail with abrt error "KeyError: 'ID_PART_ENTRY_DISK'" ?

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 7.1 and 7.2
  • anaconda/installation

Issue

  • Kickstart installation of Red Hat Enterprise Linux 7.1 fails with the following abrt error message.
===============================================================================
An unknown error has occurred
===============================================================================
anaconda 19.31.123-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/udev.py", line 587, in device_get_dm_partition_disk
    majorminor = info["ID_PART_ENTRY_DISK"]
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 764, in addUdevDMDevice
    diskname = udev.device_get_dm_partition_disk(info)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1205, in addUdevDevice
    device = self.addUdevDMDevice(info)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2196, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2131, in populate
    self._populate()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 483, in reset
    self.devicetree.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 186, in storageInitialize
    storage.reset()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run
    threading.Thread.run(self, *args, **kwargs)
KeyError: 'ID_PART_ENTRY_DISK'
  • The system has a multipath device with a sun format.
  • We expected that it's cleared with clearpart kickstart command.

Resolution

  • From the traceback, it looks like the storage disks are not initialized properly.
  • One solution is to wipe out the underlying storage properly and try again later.
  • If the Hard-disk name is /dev/sda then in Alt+Ctrl+F2, get a shell and run the following command.
# dd if=/dev/zero of=/dev/sda bs=1M count=1000
  • The clearpart kickstart command doesn't work for a multipath device with sun format. This was identified as a bug and has been fixed with an Errata

Root Cause

  • Storage with Solaris Disk label called as "sun", or initialized by Veritas Volume manager, are not properly getting initialized.
  • A bug was identified, is not resolved with the release of Red Hat Enterprise Linux 7.3

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments