Bug 1599378

Summary: TypeError: __new__() missing 4 required positional arguments: 'kernel', 'initrd', 'root', and 'args'
Product: [Fedora] Fedora Reporter: Dave Kil <dave>
Component: anacondaAssignee: Vendula Poncova <vponcova>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: anaconda-maint-list, jonathan, kellin, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:595b2719043738a396e88047a81778b7ca3c057dac91b4bf0a1d6e6d9c421f1c;
Fixed In Version: anaconda-31.6-1 anaconda-30.25.4-1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-04 00:01:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dbus.log
none
File: dnf.librepo.log
none
File: environ
none
File: hawkey.log
none
File: ks.cfg
none
File: lorax-packages.log
none
File: lsblk_output
none
File: lvm.log
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

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.