Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 491754 - DeviceError: cannot commit to disk sda after 5 attempts
Summary: DeviceError: cannot commit to disk sda after 5 attempts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:37d7371050a8fb2ee...
: 491722 491887 493481 496660 500723 507541 (view as bug list)
Depends On:
Blocks: F11Target
TreeView+ depends on / blocked
 
Reported: 2009-03-23 20:34 UTC by PaulB
Modified: 2018-10-19 18:39 UTC (History)
26 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-10-21 15:48:35 UTC
Type: ---
Embargoed:
jkeating: fedora_requires_release_note+


Attachments (Terms of Use)
log saved during install (deleted)
2009-03-23 20:34 UTC, PaulB
no flags Details
Attached traceback automatically from anaconda. (deleted)
2009-04-20 19:03 UTC, DemetrisK
no flags Details
Expection Occured by anaconda (deleted)
2009-06-11 04:41 UTC, Ujjwol
no flags Details
bzip2 compressed archive of /tmp/ as it could be found when I failed with installing fc11 because of "Cannot commit to disk...". (deleted)
2009-06-14 14:44 UTC, juergen leising
no flags Details
anaconda-logs.tgz (w/ 491754.img) (deleted)
2009-07-09 12:13 UTC, James Laska
no flags Details
Patch to disable boot flag modification for upgrade (deleted)
2009-07-09 12:40 UTC, Petr Mensik
no flags Details | Diff
My updates file that helped me to upgrade (deleted)
2009-07-09 12:41 UTC, Petr Mensik
no flags Details
Storage log with stack trace to problem origin (deleted)
2009-07-09 12:44 UTC, Petr Mensik
no flags Details
Storage.log with backtrace (deleted)
2009-07-09 12:56 UTC, Petr Mensik
no flags Details
Contains all the /tmp directory after a failed installation using the patch http://dcantrel.fedorapeople.org/491754.img (deleted)
2009-08-27 02:32 UTC, Xavier Lapointe
no flags Details

Description PaulB 2009-03-23 20:34:48 UTC
Created attachment 336379 [details]
log saved during install

Description of problem:
anaconda 11.5.0.35 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/devices.py", line 800, in commit
    raise DeviceError("cannot commit to disk %s after %d attempts" % (self.name, maxTries,))
  File "/usr/lib/anaconda/storage/devices.py", line 1130, in create
    self.disk.commit()
  File "/usr/lib/anaconda/storage/deviceaction.py", line 206, in execute
    self.device.create(intf=intf)
  File "/usr/lib/anaconda/storage/devicetree.py", line 660, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 184, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 115, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1317, in nextClicked
    self.anaconda.dispatch.gotoNext()
DeviceError: cannot commit to disk sda after 5 attempts


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

How reproducible:
always

Additional info:
see attachment

Comment 1 David Cantrell 2009-03-23 20:44:01 UTC
What partition layout did you define?

Comment 2 Joel Andres Granados 2009-03-24 09:29:26 UTC
dcantrell:
this might be dupe of 491722.

Comment 3 PaulB 2009-03-24 14:45:19 UTC
All,
I carved the drive for an installation of Fedora 11(rawhide) on one LVM and created a second LVM for another Linux installation
The partition scheme was as follows:

Device		MountPoint/RAID/Volume	Type	Format	sizeMB	Start	End ▫LVMVolumeGroups
▫VG_
   swap				        swap		
   root				        ext3		
 ▫VG_Fedora						
   swapFedora				swap		
   rootFedora				ext4		
▫HardDrives
 ▫/dev/sda
   /dev/sda1	/boot			ext3
   /dev/sda2	/bootOther		ext3		
   /dev/sda3    VG_Fedora		LVM PV		
   ▫/dev/sda4				Extended	
    /dev/sda5	VG_		        LVM PV		


-PaulB

Comment 4 Chris Lumens 2009-03-24 15:16:31 UTC
*** Bug 491887 has been marked as a duplicate of this bug. ***

Comment 5 Chris Lumens 2009-04-02 13:55:39 UTC
*** Bug 493481 has been marked as a duplicate of this bug. ***

Comment 6 Chris Lumens 2009-04-02 13:56:10 UTC
*** Bug 491722 has been marked as a duplicate of this bug. ***

Comment 7 David Cantrell 2009-04-15 02:39:28 UTC
I think this problem has been fixed as of pyparted-2.0.10.  I've tried to recreate the problem locally with two different set ups and it's not happening for me.

Comment 8 DemetrisK 2009-04-20 19:03:12 UTC
Created attachment 340407 [details]
Attached traceback automatically from anaconda.

Comment 9 James Laska 2009-04-23 15:36:09 UTC
I'm still seeing this on an IBM power5 system using anaconda-11.5.0.47

Comment 10 Chris Lumens 2009-05-13 20:22:36 UTC
*** Bug 500723 has been marked as a duplicate of this bug. ***

Comment 11 Chris Lumens 2009-05-14 17:54:42 UTC
*** Bug 496660 has been marked as a duplicate of this bug. ***

Comment 12 James Laska 2009-06-09 11:36:29 UTC
This issue has been documented at https://fedoraproject.org/wiki/Common_F11_bugs#491754

Comment 13 Bug Zapper 2009-06-09 12:32:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 14 James Heather 2009-06-10 07:03:56 UTC
I am seeing this on an upgrade from (fully updated) F10 to F11, using preupgrade. I'm not modifying the partition layout at all (unless anaconda has decided to do that without asking).

The 'Common Bugs' page suggests that if I follow exactly the same steps again, it will succeed. But I've now tried it three times, and it's failed every time.

This is on an HP Compaq nx7400 laptop. If more details would be helpful, please let me know what details, and I'll be happy to oblige.

Comment 15 Ujjwol 2009-06-11 04:41:50 UTC
Created attachment 347329 [details]
Expection Occured by anaconda

This what the anaconda said would be helpful for bug reporting
Please fix this error fast..

Comment 16 Ujjwol 2009-06-11 04:44:54 UTC
This is on Dell Inspiron 1420, contact me if more info needed...but please fix this fast...

Comment 17 ovl 2009-06-11 11:47:40 UTC
The same error on Asus M50SV, BUT it does not happen on the same laptop if I choose to install root on external USB drive... May be this information will help to locate problem.

Comment 18 James Heather 2009-06-13 10:17:03 UTC
Rather surprised that this has priority of 'low' when it is stopping people installing!

I suspect that's because of the claim that trying a second time resolves the issue (see Common Bugs page).

Unfortunately that doesn't seem to be true. I suggest that the priority tag be changed to 'high', and that the Common Bugs page be changed to reflect the fact that this isn't (always) resolved by trying again.

Comment 19 juergen leising 2009-06-14 14:39:15 UTC
Hello,

for me this is also a show-stopper. BTW: I got the same
error message, but without any possibility to save
the anaconda exception. However, I saved the complete
/tmp directory manually and added a screenshot of the 
final screen with the notorious "Exit the installer."

The anaconda does not seem to be able to deal with
LVM volumes where the underlying physical devices are
SATA disks.

So, actually, these are 3 bugs:

1. The deeper reason for why the device setup failed.
2. A possibility to save the error output (and some logfiles) is missing.
3. In a situation where no creation of a partition, 
   no formatting and no resizing was needed, the installer
   has no business in committing anything to any disk whatsoever.
   It should have simply left it untouched.  Only /etc/fstab
   must be written. Nothing else.  So a condition where the
   above error message can occur, should be not even be
   theoretically possible.

Bye, bye

Juergen

(now trying to add that attachment...)

Comment 20 juergen leising 2009-06-14 14:44:18 UTC
Created attachment 347824 [details]
bzip2 compressed archive of /tmp/ as it could be found when I failed with installing fc11 because of "Cannot commit to disk...".


Please note, that I did NOT get the usual anaconda exception backtraces.

Comment 21 Adam Williamson 2009-06-17 00:52:51 UTC
(In reply to comment #18)
> Rather surprised that this has priority of 'low' when it is stopping people
> installing!

Priority is mostly a no-op in Fedora Bugzilla at present. Most components do not use it for anything, so it stays at the default value for most bugs (low).

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 22 Orion Poplawski 2009-06-24 18:29:00 UTC
No exception for me, just anaconda window:

An error was encountered while setting up device /dev/sda
cannot commit to disk after 5 attempts

bootloader --location=mbr --driveorder=sda,sda
clearpart --linux --drives=sda
part /boot --size=100
part swap --recommended
part / --size=9000 --grow

Disk is 500GB.  There is a second 250GB /dev/sdb with a single linux partition.

Rebooted and re-attemped with:

bootloader --location=mbr --driveorder=sda

Then get:

Could not allocate requested partitions: not enough free space on disks.

Then cleared out /dev/sda of all partitions and it could install.

Comment 23 Chris Lumens 2009-06-29 13:56:35 UTC
*** Bug 507541 has been marked as a duplicate of this bug. ***

Comment 24 Alexey Bozrikov 2009-07-03 10:12:31 UTC
I had this issue when doing fresh install of Fedora-11-i386 from DVD onto 73GB SCSI disk. First, I made a mistake of specifying ext4 for / filesystem (custom layout). gparted on the installation media does not seem to 'know' what ext4 is, so partitioning fails. I tried to install with everything ext3 and it failed again - now it was because partition sizes were reported as 4GB only (seems to be a python script bug). Finally I created all partitions (/ as ext3 and swap only, no /boot)manually from command line before partitioning in Anaconda GUI and it seemed to work fine.

Comment 25 David Cantrell 2009-07-08 14:23:00 UTC
There is a patch in rawhide for this issue now.  Since there have been so many comments added to this bug, I am asking for anyone seeing this problem in rawhide after anaconda-12.2-1.fc12 is built to please file NEW bugs with details about your specific use case.

Commit regarding this issue:
f765384437f273d3685b8e05abf448c1dc4499e5

Comment 26 Michal Schmidt 2009-07-08 14:53:04 UTC
David,

$ git show f765384437f273d3685b8e05abf448c1dc4499e5
fatal: bad object f765384437f273d3685b8e05abf448c1dc4499e5

And Fedora CVS has only anaconda-12.1-1.fc12 in devel/.

Is the commit only in some private repository so far?

This bug is featured in https://fedoraproject.org/wiki/Common_F11_bugs . Is there going to be an updates.img available for F11?

Comment 27 David Cantrell 2009-07-08 15:23:24 UTC
My mistake, here's the commit:

http://git.fedorahosted.org/git/?p=anaconda.git;a=commit;h=60ff94ed3fade0716086deeb99892bf1c5103e62

12.2-1.fc12 will be the next build of anaconda for rawhide.  Yes, 12.1 is the latest in the tree.  The next build we do of anaconda will include this fix.

Comment 28 David Cantrell 2009-07-08 15:24:26 UTC
And yes, I can make an updates.img for this fix and update the F-11 common bugs page.

Comment 29 David Cantrell 2009-07-08 21:15:04 UTC
Updated the Fedora 11 common bugs wiki page:

https://fedoraproject.org/wiki/Common_F11_bugs#491754

Comment 30 James Laska 2009-07-09 12:13:02 UTC
Created attachment 351052 [details]
anaconda-logs.tgz (w/ 491754.img)

While testing http://dcantrel.fedorapeople.org/491754.img, I encountered this failure on a power5 ppc64 system that originally exhibited this failure.  I have attached '/tmp/*log*' to this bugzilla.  The system is online now at the time of the failure.  Please let me know if additional information is needed.

Thanks!

Comment 31 James Laska 2009-07-09 12:16:45 UTC
Reopening, based on comment#30

Comment 32 Petr Mensik 2009-07-09 12:40:03 UTC
Created attachment 351055 [details]
Patch to disable boot flag modification for upgrade

I found problem using tracing from commit place to where it is called. I dont much understand in what cases boot flag should be modified or what was meant by it. Maybe it should be negated (if there is no bootable entry for partition, create one), maybe it does apply only for new installations. It worked for me. There is present also some debugging and delay, they are not important.

Comment 33 Petr Mensik 2009-07-09 12:41:22 UTC
Created attachment 351056 [details]
My updates file that helped me to upgrade

My file created with patch above.

Comment 34 Petr Mensik 2009-07-09 12:44:22 UTC
Created attachment 351059 [details]
Storage log with stack trace to problem origin

I used this log to figure out where commit is done. At first i thought i will add some time to drive and it will fix it. Then i realized it is modifying partition table that is beeing used, and cannot handle immediate reload will fail.

Comment 35 Petr Mensik 2009-07-09 12:55:31 UTC
Comment on attachment 351059 [details]
Storage log with stack trace to problem origin

posted wrong file, sorry

Comment 36 Petr Mensik 2009-07-09 12:56:20 UTC
Created attachment 351066 [details]
Storage.log with backtrace

Comment 37 yijunzhao 2009-07-17 11:34:43 UTC
"An updates.img file is available to work around the defect. This image is provided through the Fedora project space of David Cantrell, one of the Anaconda maintainers."

I tested the updates.img for installing with my notebook. Lenevo TSI Y430. It failed still.

Please fix the bug as soon as possible. Thanks.

Comment 38 yijunzhao 2009-07-17 11:37:39 UTC
(In reply to comment #33)
> Created an attachment (id=351056) [details]
> My updates file that helped me to upgrade
> 
> My file created with patch above.  

I used the patch that you provided for us. it also failed. I upgrade from Fedora 10 t0 11 with Fedora 11 DVD disk.

Comment 39 David Cantrell 2009-07-17 20:15:58 UTC
Since no one read comment #25, could people please at least provide details on the installer failing on your system?  I need reproducers in order to actually work the problem for your case.

Comment 40 James Laska 2009-07-21 14:51:09 UTC
(In reply to comment #39)
> Since no one read comment #25, could people please at least provide details on
> the installer failing on your system?  I need reproducers in order to actually
> work the problem for your case.  

I have managed to reproduce the problem on a F-11/ppc system using the update image (http://dcantrel.fedorapeople.org/491754.img).

The steps I used to recreate:

1) Install F-10 using default partition layout

    autopart
    # Partition clearing information
    clearpart --all --initlabel 

2) Install F-11 with updates=http://dcantrel.fedorapeople.org/491754.img on the same system with the same physical disks being used in the transaction

    # Partition clearing information
    clearpart --all --initlabel 
    # Disk partitioning information
    part prepboot --fstype="PPC PReP Boot" --size=8
    part /boot --asprimary --fstype="ext3" --size=200 --label=BOOT
    part swap --fstype="swap" --recommended --label=SWAP
    part /multi-stage --fstype="ext3" --size=100 --label=MULTISTAGE
    part pv.01 --grow --maxsize=3072 --size=1536
    part pv.02 --grow --maxsize=3072 --size=1536
    volgroup SNAKEVG --pesize=32768 pv.01 pv.02
    logvol /  --fstype="ext3" --grow --maxsize=10240 --size=2048 --name=SNAKEROOT --vgname=SNAKEVG
    logvol swap  --fstype="swap" --recommended --name=SNAKE_SWAP --vgname=SNAKEVG
    logvol /SNAKE-LV0  --fstype="ext3" --grow --maxsize=1024 --size=1024 --name=SNAKELV0 --vgname=SNAKEVG

The system is available for remote debugging if needed.

Comment 41 Petr Mensik 2009-07-26 10:13:22 UTC
(In reply to comment #38)
> (In reply to comment #33)
> > Created an attachment (id=351056) [details] [details]
> > My updates file that helped me to upgrade
> > 
> > My file created with patch above.  
> 
> I used the patch that you provided for us. it also failed. I upgrade from
> Fedora 10 t0 11 with Fedora 11 DVD disk.  

If you tried my patch, please post somewhere your /tmp/storage.log. I put backtrace to commit failure, it might help locate where is commit called from. I updated with F11 x64 DVD and worked for me. I do not guarantee it fixed real problem, or there are might be more problems to fix.

I have't got any LVM partitions or logical volumes on my disk, still i got failure at partition change commit. I have read #25 message, but i don't think it would fix anything to me. Also i upgraded successfuly already. I am waiting to some statement about my fix beeing correct, incorrect, or doing nothing.

Comment 42 Xavier Lapointe 2009-08-27 02:32:46 UTC
Created attachment 358801 [details]
Contains all the /tmp directory after a failed installation using the patch http://dcantrel.fedorapeople.org/491754.img

This is a tar file containing all the /tmp/ directory. Hopefully it might help, I can't install Fedora 11 after many attempts. Thanks for your time.

Comment 43 Xavier Lapointe 2009-08-27 17:44:47 UTC
Just a word to say it's still present in Fedora 12 A1. I don't know what have change since the last release ( I'm not really used to Fedora ), but I can't enable network in the install process, so I can't send my log through ftp ..

Comment 44 Chris Lumens 2009-09-03 15:39:27 UTC
This should be fixed in the current build of anaconda/parted/etc.

Comment 45 Ujjwol 2009-09-17 11:19:36 UTC
The update by David Cantrell in https://fedoraproject.org/wiki/Common_F11_bugs#491754 doesnot work.

The error is after the update is retrived, it says running anaconda, the fedors system installer, please wait and then install exited abnornally [1/1] and says you may safely reboot your system.

Comment 46 munipradeep 2009-10-06 08:17:36 UTC
This issue is still occurring in RHEL6 20090930 build. It has anaconda 12.32 version.

Comment 48 Petr Mensik 2009-10-21 06:48:58 UTC
I tested with Fedora 12 beta, and problem seems to be fixed. I have only one CD, so i haven't finish upgrade, but it got over point it failed at before. So this time you seem to be correct, that bug is fixed in upstream. Thanks.

Comment 49 Adam Williamson 2009-10-21 22:43:03 UTC
jesse, I think it may be a little premature to close this on the basis of one report, as it was a very widespread problem and may have had slightly different causes in different cases...I'd quite like to see more than one confirmation that it's better in F12 Beta.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 50 munipradeep 2009-10-22 06:52:49 UTC
Verified with RHEL6-20091015 build. This issue is no more happening.

Comment 51 Joseph Kachuck 2009-10-22 13:40:59 UTC
*** Bug 507541 has been marked as a duplicate of this bug. ***


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