Bug 891313 - AttributeError: 'int' object has no attribute 'rc'
Summary: AttributeError: 'int' object has no attribute 'rc'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:476f7e18687620b4bed1fae36a4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-02 15:01 UTC by paolo borelli
Modified: 2013-05-30 00:53 UTC (History)
8 users (show)

Fixed In Version: anaconda-19.0-1
Clone Of:
Environment:
Last Closed: 2013-05-30 00:53:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda.log (132.99 KB, text/plain)
2013-01-02 15:01 UTC, paolo borelli
no flags Details
File: environ (867 bytes, text/plain)
2013-01-02 15:01 UTC, paolo borelli
no flags Details
File: ifcfg.log (1.84 KB, text/plain)
2013-01-02 15:01 UTC, paolo borelli
no flags Details
File: messages (412.24 KB, text/plain)
2013-01-02 15:01 UTC, paolo borelli
no flags Details
File: program.log (243.15 KB, text/plain)
2013-01-02 15:02 UTC, paolo borelli
no flags Details
File: storage.log (695.28 KB, text/plain)
2013-01-02 15:02 UTC, paolo borelli
no flags Details
File: anaconda-tb (1.49 MB, application/octet-stream)
2013-01-02 15:02 UTC, paolo borelli
no flags Details

Description paolo borelli 2013-01-02 15:01:35 UTC
Description of problem:
Tried to install after custom partition
The following was filed automatically by anaconda:
anaconda 18.37.4 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 465, in doResize
    raise FSResizeError("resize failed: %s" % ret.rc, self.device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/deviceaction.py", line 562, in execute
    self.device.format.doResize()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 323, in processActions
    action.execute()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 323, in doIt
    self.devicetree.processActions()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 174, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 114, in doInstall
    turnOnFilesystems(storage)
  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)
AttributeError: 'int' object has no attribute 'rc'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:UUID=7767-B444 rootfstype=vfat ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.6.10-4.fc18.x86_64
other involved packages: python-libs-2.7.3-13.fc18.x86_64
package:        anaconda-18.37.4-1.fc18.x86_64
packaging.log:  
product:        Fedora
release:        Fedora release 18 (Spherical Cow)
type:           libreport
version:        18

Comment 1 paolo borelli 2013-01-02 15:01:41 UTC
Created attachment 671463 [details]
File: anaconda.log

Comment 2 paolo borelli 2013-01-02 15:01:43 UTC
Created attachment 671464 [details]
File: environ

Comment 3 paolo borelli 2013-01-02 15:01:48 UTC
Created attachment 671465 [details]
File: ifcfg.log

Comment 4 paolo borelli 2013-01-02 15:01:56 UTC
Created attachment 671466 [details]
File: messages

Comment 5 paolo borelli 2013-01-02 15:02:01 UTC
Created attachment 671467 [details]
File: program.log

Comment 6 paolo borelli 2013-01-02 15:02:13 UTC
Created attachment 671468 [details]
File: storage.log

Comment 7 paolo borelli 2013-01-02 15:02:37 UTC
Created attachment 671469 [details]
File: anaconda-tb

Comment 8 yd 2013-03-10 04:03:10 UTC
was installing fedora18 dual boot with xp error apen right after partitionning hdd

Package: anaconda-18.37.11-1.fc18.x86_64
OS Release: Fedora release 18

Comment 9 Charles R. Anderson 2013-04-12 00:14:18 UTC
Custom partitioning.  Shrink existing Windows NTFS partition, auto-create new Fedora 18 partitions, edit the sizes of the Fedora 18 partitions.

Package: anaconda-18.37.11-1.fc18.x86_64
OS Release: Fedora release 18

Comment 10 Charles R. Anderson 2013-04-12 13:00:48 UTC
In my case, this problem seemed to be caused by an unclean NTFS filesystem:

20:02:15,175 INFO program: Running... ntfsresize -m /dev/sda3
20:02:16,809 INFO program: ntfsresize v2012.1.15 (libntfs-3g)
20:02:16,809 INFO program: Cluster 3410908 is referenced multiple times!
20:02:16,810 INFO program: Cluster 3410909 is referenced multiple times!
20:02:16,810 INFO program: Cluster 3410910 is referenced multiple times!
20:02:16,810 INFO program: Cluster 3410911 is referenced multiple times!
20:02:16,810 INFO program: Cluster 3410912 is referenced multiple times!
20:02:16,810 INFO program: Cluster 3410913 is referenced multiple times!
20:02:16,810 INFO program: Cluster 122906434 is referenced multiple times!
20:02:16,810 INFO program: Cluster 122906435 is referenced multiple times!
20:02:16,810 INFO program: Cluster 122906436 is referenced multiple times!
20:02:16,810 INFO program: Cluster 122906437 is referenced multiple times!
20:02:16,810 INFO program: ERROR: Filesystem check failed!
20:02:16,810 INFO program: ERROR: 73 clusters are referenced multiple times.
20:02:16,810 INFO program: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
20:02:16,810 INFO program: The usage of the /f parameter is very IMPORTANT! No modification was
20:02:16,811 INFO program: and will be made to NTFS by this software until it gets repaired.

After booting into Windows and forcing a chkdsk (from the GUI Tools tab on the C: drive properties and rebooting) Fedora 18 was able to resize the disk without error.

It seems anaconda needs to catch this error and report it to the user rather than just crashing.

Comment 11 Adam Williamson 2013-05-30 00:53:10 UTC
https://lists.fedorahosted.org/pipermail/anaconda-patches/2013-January/002630.html was the patch for this. It seems trivial:

-            raise FSResizeError("resize failed: %s" % ret.rc, self.device)
+            raise FSResizeError("resize failed: %s" % ret, self.device)

so this only affected cases where the resize failed, and now you'll get a proper failure message instead of a traceback. We haven't had a dupe report with an F19 build, so let's assume the fix is good and close this.


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