Bug 857940 - AttributeError: 'ZIPL' object has no attribute 'storage'
Summary: AttributeError: 'ZIPL' object has no attribute 'storage'
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: s390x
OS: Linux
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
Reported: 2012-09-17 14:36 UTC by Jan Stodola
Modified: 2013-01-10 02:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-10-16 14:01:44 UTC
Type: Bug

Attachments (Terms of Use)
installation steps (12.73 KB, text/plain)
2012-09-17 14:37 UTC, Jan Stodola
no flags Details
anaconda traceback (457.12 KB, text/plain)
2012-09-20 09:06 UTC, Dan Horák
no flags Details
proposed patch to fix s390 bootloader setup (1.90 KB, patch)
2012-09-20 14:15 UTC, David Lehman
no flags Details | Diff

Description Jan Stodola 2012-09-17 14:36:08 UTC
Description of problem:

Installing kernel (237/237)
Performing post-install setup tasks
Performing post-install setup tasks
Installing bootloader
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 87, in run
    threading.Thread.run(self, *args, **kwargs)
  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/install.py", line 123, in doInstall
    writeBootLoader(storage, payload, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 2203, in writeBootLoader
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 943, in write
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 2008, in install
    device = self.storage.devicetree.getDeviceByName(name)
AttributeError: 'ZIPL' object has no attribute 'storage'

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

How reproducible:

Steps to Reproduce:
1. run installation on s390x in text mode
2. proceed through the installation
3. see traceback at the end of the install
Actual results:

Expected results:
installation finishes without traceback

Comment 1 Jan Stodola 2012-09-17 14:37:37 UTC
Created attachment 613693 [details]
installation steps

Comment 6 Steffen Maier 2012-09-19 17:51:56 UTC
Just a quick tought: In comparison to the other bootloaders inheriting from BootLoader such as GRUB or Yaboot, ZIPL seems to be missing a constructor where the storage object is gets passed in:

  class ZIPL(BootLoader):
+     def __init__(self, storage):
+         BootLoader.__init__(self, storage)

However, I don't know if the creators/callers of a ZIPL type object also need to be adapted to pass a storage object to the constructor.

Comment 7 Dan Horák 2012-09-19 18:37:46 UTC
I went with this and it seems to actually install the bootloader (there were zipl output messages in the anaconda debug output) although it still throws the error

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index b0aff48..1db30eb 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1948,6 +1948,9 @@ class ZIPL(BootLoader):
     image_label_attr = "short_label"
     preserve_args = ["cio_ignore"]
+    def __init__(self, platform=None):
+        super(ZIPL, self).__init__(platform=platform)
     # configuration

Comment 8 Dan Horák 2012-09-20 09:06:13 UTC
Created attachment 614793 [details]
anaconda traceback

traceback when the  __init__() method is added

Comment 9 David Lehman 2012-09-20 14:15:07 UTC
Created attachment 614941 [details]
proposed patch to fix s390 bootloader setup

Please try this patch and see if it fixes the problem.

Comment 10 Dan Horák 2012-09-20 14:37:24 UTC
(In reply to comment #9)
> Created attachment 614941 [details]
> proposed patch to fix s390 bootloader setup
> Please try this patch and see if it fixes the problem.

tested and WORKS here, thanks

Comment 11 Jan Stodola 2012-09-27 06:49:11 UTC
David, Jesse, could you commit David's patch from comment 9 to anaconda git so that we have the fix in next anaconda build? I'm still facing this issue with anaconda-18.10. Thank you.

Comment 12 Fedora Update System 2012-10-02 14:12:47 UTC
anaconda-18.11-1.fc18 has been submitted as an update for Fedora 18.

Comment 13 Fedora Update System 2012-10-02 19:47:15 UTC
Package anaconda-18.11-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.11-1.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2012-10-04 00:57:34 UTC
anaconda-18.12-1.fc18 has been submitted as an update for Fedora 18.

Comment 15 Jan Stodola 2012-10-16 14:01:44 UTC
No longer able to reproduce with anaconda-18.16.

Thanks, closing this bug.

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