Bug 519011 - upgrade from F10 to rawhide fails because shutil is not defined
Summary: upgrade from F10 to rawhide fails because shutil is not defined
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 520213 523028 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-24 15:25 UTC by Don Zickus
Modified: 2009-09-29 11:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-24 15:29:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Don Zickus 2009-08-24 15:25:11 UTC
Description of problem:

Sorry for not saving the stack trace, but basically there was a command that did a shutil.move( anaconda.root + "/etc/rpm/platform", anaconda.root + "/etc/rpm/platform.rpmsave")

The command failed because shutil was not defined for some reason.

Move /etc/rpm/platform to /etc/rpm/platform.rpmsave manually and then retrying the install process got me further to another slew of bugs.  That will be in my next bugzilla

Version-Release number of selected component (if applicable):
Downloaded rawhide this morning on 08/24/09 EST.  Used the preupgrade command to copy an install.img locally to my disk (no preupgrade didn't succeed either, yet another bug, but I was able to boot manually into everything).

How reproducible:
reliably

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Chris Lumens 2009-08-24 15:29:14 UTC
Thanks, this will be fixed in the next build of anaconda.

Comment 2 Chris Lumens 2009-08-30 14:22:33 UTC
*** Bug 520213 has been marked as a duplicate of this bug. ***

Comment 3 Chris Lumens 2009-09-14 13:30:59 UTC
*** Bug 523028 has been marked as a duplicate of this bug. ***

Comment 4 Dave Ludlow 2009-09-14 16:13:48 UTC
Great - a fix is in the works!

Is there a workaround so we can get F11 Alpha installed and start testing instead of waiting for the Beta?  Why does it happen to us and not other people?

Comment 5 Adam Huffman 2009-09-29 11:39:56 UTC
I just tried upgrading a Fedora 8 box to Rawhide having seen this bug report, using preupgrade.  It failed with the same error as when I tried upgrading to Fedora 11:


Generating metadata for preupgrade repo
preupgrade                                                                                                                                                                                                            | 2.5 kB     00:00     
preupgrade/primary_db                                                                                                                                                                                                 | 1.9 MB     00:00     
preupgrade/group                                                                                                                                                                                                      | 1.4 MB     00:00     
Traceback (most recent call last):
  File "/usr/share/preupgrade/preupgrade-cli.py", line 305, in <module>
    pu.main(myrelease)
  File "/usr/share/preupgrade/preupgrade-cli.py", line 270, in main
    self.generate_repo(cachedir, comps) # TODO: callback?
  File "/usr/lib/python2.5/site-packages/preupgrade/__init__.py", line 651, in generate_repo
    misc.generate_repodata(dir,comps,callback)
  File "/usr/lib/python2.5/site-packages/preupgrade/misc.py", line 131, in generate_repodata
    generate_repodata(dir, comps, callback)
  File "/usr/lib/python2.5/site-packages/preupgrade/misc.py", line 163, in generate_repodata_f8
    shutil.rmtree(d)
NameError: global name 'shutil' is not defined

As it stands, none of the options offered by preupgrade work at all, so I don't really think the bug is fixed.


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