Bug 1404554 - 'ArithmeticError: Could not align to closest sector ' when use PXE+kickstart installation
Summary: 'ArithmeticError: Could not align to closest sector ' when use PXE+kickstart ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-blivet
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Blivet Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-12-14 06:12 UTC by Dong
Modified: 2021-09-03 14:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-19 17:01:11 UTC
Target Upstream Version:


Attachments (Terms of Use)
The anaconda logs when installation failed. (5.22 KB, text/plain)
2016-12-14 06:12 UTC, Dong
no flags Details
The storage logs when installation failed. (33.79 KB, text/plain)
2016-12-14 06:12 UTC, Dong
no flags Details
The kickstart configuration file (7.38 KB, text/plain)
2016-12-14 06:13 UTC, Dong
no flags Details

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?


Note You need to log in before you can comment on or make changes to this bug.