Bug 1425827
Summary: | anaconda crashes early with RuntimeError: Unable to find an install class to use!!! | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kevin Fenzi <kevin> |
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 26 | CC: | anaconda-maint-list, atu, awilliam, bcl, g.kaviyarasu, jonathan, mazeinp, mkolman, pbrobinson, pwhalen, robatino, vanmeeuwen+fedora, vponcova |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | AcceptedBlocker | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-28 16:52:17 UTC | Type: | Bug |
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: | 1426435 | ||
Bug Blocks: | 1349184 |
Description
Kevin Fenzi
2017-02-22 14:30:04 UTC
Moving this to anaconda, seeing the same error when attempting an installation on arm using compose from Fedora-Rawhide-20170222.n.0. Starting installer, one moment... anaconda 26.20-1 for Fedora Rawhide (pre-release) started. * installation log files are stored in /tmp during the installation * shell is available on TTY2 * if the graphical installation interface fails to start, try again with the inst.text bootoption to start text installation * when reporting a bug add logs from /tmp as separate text/plain attachments File "/sbin/anaconda", line 594, in <module> display.setup_display(anaconda, opts, addon_paths=addon_paths) File "/usr/lib/python3.6/site-packages/pyanaconda/display.py", line 324, in setup_display anaconda.initInterface(addon_paths=addon_paths) File "/usr/lib/python3.6/site-packages/pyanaconda/anaconda.py", line 286, in initInterface self._intf = TextUserInterface(self.storage, self.payload, File "/usr/lib/python3.6/site-packages/pyanaconda/anaconda.py", line 168, in storage if self.instClass.defaultFS: File "/usr/lib/python3.6/site-packages/pyanaconda/anaconda.py", line 91, in instClass from pyanaconda.installclass import DefaultInstall File "/usr/lib/python3.6/site-packages/pyanaconda/installclass.py", line 246, in <module> baseclass = getBaseInstallClass() File "/usr/lib/python3.6/site-packages/pyanaconda/installclass.py", line 242, in getBaseInstallClass raise RuntimeError("Unable to find an install class to use!!!") RuntimeError: Unable to find an install class to use!!! Pane is dead File "/usr/lib/python3.6/site-packages/pyanaconda/installclass.py", line 242, in getBaseInstallClass raise RuntimeError("Unable to find an install class to use!!!") RuntimeError: Unable to find an install class to use!!! Pane is dead Initial-setup also fails on arm disk images. Traceback (most recent call last): File "/usr/libexec/initial-setup/initial-setup-text", line 3, in <module> from initial_setup import InitialSetup, InitialSetupError File "/usr/lib/python3.6/site-packages/initial_setup/__init__.py", line 11, in <module> from initial_setup.post_installclass import PostInstallClass File "/usr/lib/python3.6/site-packages/initial_setup/post_installclass.py", line 20, in <module> from pyanaconda.installclass import BaseInstallClass File "/usr/lib/python3.6/site-packages/pyanaconda/installclass.py", line 246, in <module> baseclass = getBaseInstallClass() File "/usr/lib/python3.6/site-packages/pyanaconda/installclass.py", line 242, in getBaseInstallClass raise RuntimeError("Unable to find an install class to use!!!") RuntimeError: Unable to find an install class to use!!! Odd thing is, if you boot an installer image and do this: python3 -c 'from pyanaconda.installclass import getBaseInstallClass; getBaseInstallClass()' it works fine (doesn't raise an exception). Not sure what's going on there. Some kind of timing problem? This is an automatic blocker, as it prevents the compose of multiple release blocking images. Setting AcceptedBlocker. I reproduced the problem on a F25 host runninng a rawhide mock The problem is that in this file : /usr/lib64/python3.6/site-packages/pyanaconda/installclass.py the line : https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/installclass.py#L165 generates : /usr/local/lib64/python3.6/site-packages/pyanaconda/installclasses which does not exist However this path exist: /usr/lib64/python3.6/site-packages/pyanaconda/installclasses Adding this path to the path list allows classes to be found ignatenkobrain pointed (on IRC) to this other bug : https://bugzilla.redhat.com/show_bug.cgi?id=1426435 Replacing line 165 by "%s/installclasses" % os.path.dirname(os.path.realpath(__file__))]: Fixes the issue. So for now this has been "fixed" by the Python-side change being reverted (see bug 1426435 comment 7), but that is only temporary. Eventually a proper solution will have to be discussed with Fedora Python maintainers & implemented. I checked that now, in the same context as comment 4, in a fresh new rawhide mock that get_python_lib(plat_specific=1) returns /usr/lib64/python3.6/site-packages/ as expected. This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'. yeah, and recent Rawhide nightlies work OK, so we can close this. Please don't re-apply the change until we have a fix for the problem... |