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 902417

Summary: ValueError: cannot initialize a disk that has partitions
Product: Red Hat Enterprise Linux 7 Reporter: Bill Sanford <bsanford>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: bsanford, dblechte, jburke, jstancek, lkardos, mkrcmari, pvine, sbueno, vbenes, vipatel
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: 7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:a4f5bbf06d01dcbbdf1c93ba9794217a9b13b15980107beff15fa343959d3b68
Fixed In Version: python-blivet-0.18.15-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 13:19:24 UTC Type: ---
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: 782468    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog
none
kickstart
none
anaconda-tb-lkardos none

Description Bill Sanford 2013-01-21 16:07:30 UTC
Description of problem:
Installing RHEL 7
The following was filed automatically by anaconda:
anaconda 18.37.11 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 832, in initializeDisk
    raise ValueError("cannot initialize a disk that has partitions")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 807, in clearPartitions
    self.initializeDisk(disk)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 445, in execute
    storage.clearPartitions()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1480, in doKickstartStorage
    ksdata.clearpart.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 399, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 91, in run
    threading.Thread.run(self, *args, **kwargs)
ValueError: cannot initialize a disk that has partitions

Version-Release number of selected component:
anaconda-18.37.11

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/distrotrees/62387/initrd method=http://download.eng.bos.redhat.com/rel-eng/RHEL-7.0-20130120.0/compose/Server/x86_64/os/ repo=http://download.eng.bos.redhat.com/rel-eng/RHEL-7.0-20130120.0/compose/Server/x86_64/os/  BOOT_IMAGE=/distrotrees/62387/kernel 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.7.0-0.32.el7.x86_64
other involved packages: 
product:        Red Hat Enterprise Linux
release:        Red Hat Enterprise Linux ComputeNode release 7.0 Alpha3 (Maipo)
type:           libreport
version:        7.0

Comment 1 Bill Sanford 2013-01-21 16:07:33 UTC
Created attachment 684389 [details]
File: anaconda-tb

Comment 2 Bill Sanford 2013-01-21 16:07:35 UTC
Created attachment 684390 [details]
File: anaconda.log

Comment 3 Bill Sanford 2013-01-21 16:07:36 UTC
Created attachment 684391 [details]
File: environ

Comment 4 Bill Sanford 2013-01-21 16:07:38 UTC
Created attachment 684392 [details]
File: ifcfg.log

Comment 5 Bill Sanford 2013-01-21 16:07:41 UTC
Created attachment 684393 [details]
File: packaging.log

Comment 6 Bill Sanford 2013-01-21 16:07:42 UTC
Created attachment 684394 [details]
File: program.log

Comment 7 Bill Sanford 2013-01-21 16:07:45 UTC
Created attachment 684395 [details]
File: storage.log

Comment 8 Bill Sanford 2013-01-21 16:07:49 UTC
Created attachment 684396 [details]
File: syslog

Comment 9 Jan Stancek 2013-05-14 11:53:33 UTC
from distro RHEL-7.0-20130502.n.0 Server x86_64:

anaconda 19.23-1 exception report 
Traceback (most recent call first): 
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 803, in initializeDisk 
    raise ValueError("cannot initialize a disk that has partitions") 
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 778, in clearPartitions 
    self.initializeDisk(disk) 
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 414, in execute 
    storage.clearPartitions() 
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1559, in doKickstartStorage 
    ksdata.clearpart.execute(storage, ksdata, instClass) 
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 251, in execute 
    doKickstartStorage(self.storage, self.data, self.instclass) 
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 50, in setup 
    spoke.execute() 
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/__init__.py", line 167, in setup 
    obj.setup(self.ENVIRONMENT) 
  File "/sbin/anaconda", line 1078, in <module> 
    anaconda._intf.setup(ksdata) 
ValueError: cannot initialize a disk that has partitions

Comment 10 David Lehman 2013-10-23 22:05:34 UTC
I expect/hope this is fixed in recent trees. The related fedora bugs were 966162 and 957188. Please retest and update accordingly.

Comment 11 Jan Stancek 2013-11-13 08:05:35 UTC
I see it sporadically on s390x, not sure what triggers it.
This is with distro: RHEL-7.0-20131107.1 Server s390x

anaconda[1362]: Starting automated install.. 
anaconda[1362]: ** (anaconda:1362): WARNING **: Could not open X display 
anaconda[1362]: Generating updated storage configuration 
anaconda[1362]: An unknown error has occured, look at the /tmp/anaconda-tb* file 
(s) for more details 
anaconda[1362]: ================================================================ 
=============== 
anaconda[1362]: An unknown error has occurred 
anaconda[1362]: ================================================================ 
=============== 
anaconda[1362]: anaconda 19.31.33-1 exception report 
anaconda[1362]: Traceback (most recent call first): 
anaconda[1362]: File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 
 822, in initializeDisk 
anaconda[1362]: raise ValueError("cannot initialize a disk that has partitions") 
 
anaconda[1362]: File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 
 797, in clearPartitions 
anaconda[1362]: self.initializeDisk(disk) 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py 
", line 519, in execute 
anaconda[1362]: storage.clearPartitions() 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py 
", line 1720, in doKickstartStorage 
anaconda[1362]: ksdata.clearpart.execute(storage, ksdata, instClass) 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spoke 
s/storage.py", line 255, in execute 
anaconda[1362]: doKickstartStorage(self.storage, self.data, self.instclass) 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/ 
summary.py", line 49, in setup 
anaconda[1362]: spoke.execute() 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/__ini 
t__.py", line 169, in setup 
anaconda[1362]: obj.setup(self.ENVIRONMENT) 
anaconda[1362]: File "/usr/sbin/anaconda", line 1084, in <module> 
anaconda[1362]: anaconda._intf.setup(ksdata) 
anaconda[1362]: ValueError: cannot initialize a disk that has partitions 
anaconda[1362]: What do you want to do now? 
anaconda[1362]: 1) Report Bug 
anaconda[1362]: 2) Debug 
anaconda[1362]: 3) Quit 
anaconda[1362]: Please make your choice from above: Traceback (most recent call 
last): 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", 
 line 168, in run 
anaconda[1362]: threading.Thread.run(self, *args, **kwargs) 
anaconda[1362]: File "/usr/lib64/python2.7/threading.py", line 764, in run 
anaconda[1362]: self.__target(*self.__args, **self.__kwargs) 
anaconda[1362]: File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpl 
eline/base.py", line 161, in _thread_input 
anaconda[1362]: data = raw_input() 
anaconda[1362]: EOFError: EOF when reading a line

Comment 13 Bill Sanford 2013-11-19 15:39:49 UTC
This seems to be fixed in later releases.

Comment 14 Ľuboš Kardoš 2013-12-04 13:08:40 UTC
It is reproducible. I hit this error during kickstart installation from hdd source.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/kernel repo=hd:/dev/disk/by-uuid/d8669894-0e5b-42f7-a261-c3f07c2b9f54:/ lang=en_US.UTF-8 keymap=us ip=eth0:dhcp ifname=eth0:52:54:00:12:34:56 ks=http://rtt1.s390.bos.redhat.com/nb/10.0.0.11-1386161797
hashmarkername: anaconda
kernel:         3.10.0-54.0.1.el7.x86_64
package:        anaconda-19.31.36-1
product:        Red Hat Enterprise Linux
reason:         ValueError: cannot initialize a disk that has partitions
release:        Red Hat Enterprise Linux Server release 7.0 Beta (Maipo)
version:        7.0

Comment 15 Ľuboš Kardoš 2013-12-04 13:14:09 UTC
Created attachment 832642 [details]
kickstart

Comment 16 Samantha N. Bueno 2013-12-04 19:22:27 UTC
Could you also attach the anaconda traceback?

Comment 17 Ľuboš Kardoš 2013-12-05 08:40:34 UTC
Created attachment 833044 [details]
anaconda-tb-lkardos

Comment 20 Ľuboš Kardoš 2014-02-06 15:05:25 UTC
Verified on python-blivet-0.18.23-1 (RHEL-7.0-20140206.0).

Comment 21 Ludek Smid 2014-06-13 13:19:24 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.