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.
Description of problem:
Anaconda fails with a traceback when running a text mode installation on a system with disks having different sector sizes:
anaconda 29.19.2.13 exception report
Traceback (most recent call first):
File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 368, in _add_parent
raise ValueError(msg)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/devices/lib.py", line 205, in append
self.appendfunc(y)
File "/usr/lib/python3.6/site-packages/blivet/devices/device.py", line 161, in parents
self._parents.append(parent)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/devices/device.py", line 88, in __init__
self.parents = parents or []
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 143, in __init__
super(StorageDevice, self).__init__(name, parents=parents)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/devices/container.py", line 66, in __init__
super(ContainerDevice, self).__init__(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 143, in __init__
exists=exists, sysfs_path=sysfs_path)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 581, in new_vg
return LVMVolumeGroupDevice(name, pvs, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/autopart.py", line 377, in _schedule_volumes
container = new_container(parents=pvs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/autopart.py", line 516, in do_autopart
_schedule_volumes(storage, devs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 435, in execute
autopart.do_autopart(storage, ksdata, min_luks_entropy=MIN_CREATE_ENTROPY)
File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2855, in doKickstartStorage
ksdata.autopart.execute(storage, ksdata, instClass)
File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 451, in execute
doKickstartStorage(self.storage, self.data, self.instclass)
File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 327, in input
self.execute()
File "/usr/lib/python3.6/site-packages/simpleline/render/screen/input_manager.py", line 162, in _process_input
key = self._ui_screen.input(self._input_args, key)
File "/usr/lib/python3.6/site-packages/simpleline/render/screen/input_manager.py", line 134, in process_input
result = self._process_input(user_input)
ValueError: The volume group rhel cannot be created. Selected disks have inconsistent sector sizes ({512, 4096}).
Installation in graphical mode on the same system shows a dialog window with an error message, which is expected.
Version-Release number of selected component (if applicable):
anaconda-29.19.2.13-1.el8
python3-blivet-3.1.0-19.el8
How reproducible:
always
Steps to Reproduce:
1. dd if=/dev/null of=disk1 bs=1 count=1 seek=10G
2. dd if=/dev/null of=disk2 bs=1 count=1 seek=10G
3. virt-install --cdrom <RHEL-8.ISO> --disk disk1,blockio.physical_block_size=512,blockio.logical_block_size=512 --disk disk2,blockio.physical_block_size=4096,blockio.logical_block_size=4096
4. start the installation in text mode ("text" on the kernel command line)
5. let anaconda use both disks with LVM partitioning
Actual results:
anaconda traceback
Expected results:
anaconda shows an error message, not a traceback.
Additional info:
Related bug 1754446 (python-blivet)
Hit the same issues on RHEL 8.3.0 Internal Snapshot 1.1 qualification compose testing
When I install RHEL-8.3.0-20200609.1 BaseOS ppc64le OS
on the 'ibm-p8-rhevm-18.pnr.lab.eng.rdu2.redhat.com',
it shows:
Failed to save storage configuration
The volume group rhel_ibm-p8-rhevm-18 cannot be created. Selected disks have inconsistent sector sizes ({4096, 512}).
This host has two hard disks of different sizes:
Model Size Logical sector size Physical sector size
IPR-0 5ECC2700 283.79 GB / 264.30 GiB 4096 bytes 4096 bytes
IPR-0 5DBA8300 283.79 GB / 264.30 GiB 512 bytes 4096 bytes
This causes the host to fail to install the RHEL OS.
So in which version are we going to fix it?
Hello zhenyzha,
This issue is not about fail of the installation but about raising traceback instead of reasonable message to user.
Anaconda can't fix this issue, it's change demanded by LVM. You can't use disks with a different sector size anymore. See bug 1669751 for more info.
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 (anaconda bug fix and enhancement update), 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-2020:4729
Description of problem: Anaconda fails with a traceback when running a text mode installation on a system with disks having different sector sizes: anaconda 29.19.2.13 exception report Traceback (most recent call first): File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 368, in _add_parent raise ValueError(msg) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/devices/lib.py", line 205, in append self.appendfunc(y) File "/usr/lib/python3.6/site-packages/blivet/devices/device.py", line 161, in parents self._parents.append(parent) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/devices/device.py", line 88, in __init__ self.parents = parents or [] File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 143, in __init__ super(StorageDevice, self).__init__(name, parents=parents) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/devices/container.py", line 66, in __init__ super(ContainerDevice, self).__init__(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 143, in __init__ exists=exists, sysfs_path=sysfs_path) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 581, in new_vg return LVMVolumeGroupDevice(name, pvs, *args, **kwargs) File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/autopart.py", line 377, in _schedule_volumes container = new_container(parents=pvs) File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/autopart.py", line 516, in do_autopart _schedule_volumes(storage, devs) File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 435, in execute autopart.do_autopart(storage, ksdata, min_luks_entropy=MIN_CREATE_ENTROPY) File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2855, in doKickstartStorage ksdata.autopart.execute(storage, ksdata, instClass) File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 451, in execute doKickstartStorage(self.storage, self.data, self.instclass) File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 327, in input self.execute() File "/usr/lib/python3.6/site-packages/simpleline/render/screen/input_manager.py", line 162, in _process_input key = self._ui_screen.input(self._input_args, key) File "/usr/lib/python3.6/site-packages/simpleline/render/screen/input_manager.py", line 134, in process_input result = self._process_input(user_input) ValueError: The volume group rhel cannot be created. Selected disks have inconsistent sector sizes ({512, 4096}). Installation in graphical mode on the same system shows a dialog window with an error message, which is expected. Version-Release number of selected component (if applicable): anaconda-29.19.2.13-1.el8 python3-blivet-3.1.0-19.el8 How reproducible: always Steps to Reproduce: 1. dd if=/dev/null of=disk1 bs=1 count=1 seek=10G 2. dd if=/dev/null of=disk2 bs=1 count=1 seek=10G 3. virt-install --cdrom <RHEL-8.ISO> --disk disk1,blockio.physical_block_size=512,blockio.logical_block_size=512 --disk disk2,blockio.physical_block_size=4096,blockio.logical_block_size=4096 4. start the installation in text mode ("text" on the kernel command line) 5. let anaconda use both disks with LVM partitioning Actual results: anaconda traceback Expected results: anaconda shows an error message, not a traceback. Additional info: Related bug 1754446 (python-blivet)