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 1404554

Summary: 'ArithmeticError: Could not align to closest sector ' when use PXE+kickstart installation
Product: Red Hat Enterprise Linux 7 Reporter: Dong <dfu>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: cww, dfu, dlehman
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 17:01:11 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:
Bug Depends On:    
Bug Blocks: 1420851    
Attachments:
Description Flags
The anaconda logs when installation failed.
none
The storage logs when installation failed.
none
The kickstart configuration file none

Description Dong 2016-12-14 06:12:00 UTC
Created attachment 1231444 [details]
The anaconda logs when installation failed.

Description of problem:

07:13:11,358 DEBUG anaconda: new disk order: []
07:13:11,856 DEBUG anaconda: running handleException
07:13:11,856 CRIT anaconda: Traceback (most recent call last):

  File "/sbin/anaconda", line 1264, in <module>
    anaconda._intf.setup(ksdata)

  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/__init__.py", line 170, in setup
    should_schedule = obj.setup(self.ENVIRONMENT)

  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 62, in setup
    spoke.execute()

  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 387, in execute
    doKickstartStorage(self.storage, self.data, self.instclass)

  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 2061, in doKickstartStorage
    ksdata.partition.execute(storage, ksdata, instClass)

  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1090, in execute
    doPartitioning(storage)

  File "/usr/lib/python2.7/site-packages/blivet/partitioning.py", line 954, in doPartitioning
    allocatePartitions(storage, disks, partitions, free)

  File "/usr/lib/python2.7/site-packages/blivet/partitioning.py", line 1309, in allocatePartitions
    _part.req_start_sector, _part.req_end_sector)

  File "/usr/lib/python2.7/site-packages/blivet/partitioning.py", line 790, in addPartition
    start = disklabel.alignment.alignNearest(free, start)

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

  File "/usr/lib64/python2.7/site-packages/parted/alignment.py", line 102, in alignNearest
    return self.__alignment.align_nearest(geom.getPedGeometry(), sector)

ArithmeticError: Could not align to closest sector

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


How reproducible:

 Install the system through PXE+kickstart 


Actual results:

 Failed to complete the hard disk partition, the installation fails.

Expected results:
  System installation can complete.

Additional info:

Comment 1 Dong 2016-12-14 06:12:39 UTC
Created attachment 1231445 [details]
The storage logs when installation failed.

Comment 2 Dong 2016-12-14 06:13:28 UTC
Created attachment 1231446 [details]
The kickstart configuration file

Comment 5 David Lehman 2017-06-13 17:30:25 UTC
There is reason to believe this is fixed in RHEL-7.3. At the very least the behavior should be different there. Can the customer try the installation using that and report the outcome?