Bug 1599378 - TypeError: __new__() missing 4 required positional arguments: 'kernel', 'initrd', 'root', and 'args'
Summary: TypeError: __new__() missing 4 required positional arguments: 'kernel', 'init...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vendula Poncova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:595b2719043738a396e88047a81...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-09 16:05 UTC by Dave Kil
Modified: 2019-04-04 00:01 UTC (History)
6 users (show)

Fixed In Version: anaconda-31.6-1 anaconda-30.25.4-1.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-04 00:01:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.11 MB, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: anaconda.log (32.32 KB, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: dbus.log (3.21 KB, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: dnf.librepo.log (9.77 KB, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: environ (636 bytes, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: hawkey.log (897 bytes, text/plain)
2018-07-09 16:05 UTC, Dave Kil
no flags Details
File: ks.cfg (2.07 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: lorax-packages.log (25.49 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: lsblk_output (1.73 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: lvm.log (161.50 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: nmcli_dev_list (1.65 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: os_info (556 bytes, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: program.log (49.81 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: storage.log (85.08 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: syslog (447.65 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: ifcfg.log (6.43 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details
File: packaging.log (139.72 KB, text/plain)
2018-07-09 16:06 UTC, Dave Kil
no flags Details

Description Dave Kil 2018-07-09 16:05:48 UTC
Description of problem:
Trying to reboot with reboot --kexec via kickstart generates the below error.  This appears to be an issue with kexec.py being run under Python 3.  Kexec reboot seems to work fine under CentOS 7.

Version-Release number of selected component:
anaconda-28.22.10

The following was filed automatically by anaconda:
anaconda 28.22.10 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kexec.py", line 46, in run_grubby
    boot_info = _BootInfo()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/kexec.py", line 87, in setup_kexec
    boot_info = run_grubby()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 472, in start
    self.run_task()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 193, in doConfiguration
    configuration_queue.start()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 291, in run
    threading.Thread.run(self)
TypeError: __new__() missing 4 required positional arguments: 'kernel', 'initrd', 'root', and 'args'

Additional info:
addons:         com_redhat_kdump, com_redhat_docker
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 text ks=hd:fd0:/FEDORA28.CFG
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.16.3-301.fc28.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        28

Comment 1 Dave Kil 2018-07-09 16:05:53 UTC
Created attachment 1457523 [details]
File: anaconda-tb

Comment 2 Dave Kil 2018-07-09 16:05:55 UTC
Created attachment 1457524 [details]
File: anaconda.log

Comment 3 Dave Kil 2018-07-09 16:05:56 UTC
Created attachment 1457525 [details]
File: dbus.log

Comment 4 Dave Kil 2018-07-09 16:05:57 UTC
Created attachment 1457526 [details]
File: dnf.librepo.log

Comment 5 Dave Kil 2018-07-09 16:05:58 UTC
Created attachment 1457527 [details]
File: environ

Comment 6 Dave Kil 2018-07-09 16:05:59 UTC
Created attachment 1457528 [details]
File: hawkey.log

Comment 7 Dave Kil 2018-07-09 16:06:00 UTC
Created attachment 1457529 [details]
File: ks.cfg

Comment 8 Dave Kil 2018-07-09 16:06:01 UTC
Created attachment 1457530 [details]
File: lorax-packages.log

Comment 9 Dave Kil 2018-07-09 16:06:02 UTC
Created attachment 1457531 [details]
File: lsblk_output

Comment 10 Dave Kil 2018-07-09 16:06:03 UTC
Created attachment 1457532 [details]
File: lvm.log

Comment 11 Dave Kil 2018-07-09 16:06:04 UTC
Created attachment 1457533 [details]
File: nmcli_dev_list

Comment 12 Dave Kil 2018-07-09 16:06:05 UTC
Created attachment 1457534 [details]
File: os_info

Comment 13 Dave Kil 2018-07-09 16:06:06 UTC
Created attachment 1457535 [details]
File: program.log

Comment 14 Dave Kil 2018-07-09 16:06:08 UTC
Created attachment 1457536 [details]
File: storage.log

Comment 15 Dave Kil 2018-07-09 16:06:09 UTC
Created attachment 1457537 [details]
File: syslog

Comment 16 Dave Kil 2018-07-09 16:06:10 UTC
Created attachment 1457538 [details]
File: ifcfg.log

Comment 17 Dave Kil 2018-07-09 16:06:12 UTC
Created attachment 1457539 [details]
File: packaging.log

Comment 18 Dave Kil 2018-07-09 17:54:28 UTC
Adding the following to the kickstart in the %pre section works around the problem:
sed -i 's/_BootInfo()/_BootInfo/g' \
  /usr/lib64/python3.6/site-packages/pyanaconda/kexec.py

Comment 19 Vendula Poncova 2019-03-19 12:15:30 UTC
Fixed in a pull request: https://github.com/rhinstaller/anaconda/pull/1903

Comment 20 Fedora Update System 2019-04-02 16:48:32 UTC
anaconda-30.25.4-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7f36d739dc

Comment 21 Fedora Update System 2019-04-03 02:27:36 UTC
anaconda-30.25.4-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7f36d739dc

Comment 22 Fedora Update System 2019-04-04 00:01:53 UTC
anaconda-30.25.4-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


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