Bug 1665473

Summary: Installation from live iso doesn't start
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: dowdle, Jasper.Hartline, jikortus, massi.ergosum, rvykydal, sbueno, vponcova
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-33.16.3.1-2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:22:50 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: 1678953    
Bug Blocks: 1515824    
Attachments:
Description Flags
journalctl
none
anaconda.log
none
dbus.log
none
program.log
none
storage.log none

Description Jan Stodola 2019-01-11 14:18:32 UTC
Description of problem:
A live iso image was built using livemedia-creator and a provided rhel-livemedia.ks, both are part of the lorax package.
The installer doesn't show after clicking the "Install to Hard Drive" icon and the following traceback can be found in journalctl: 

Starting installer, one moment...
terminal size detection failed, using default width
anaconda 29.19.0.30-1.el8 for Red Hat Enterprise Linux 8.0 (pre-release) started. 
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)
 * when reporting a bug add logs from /tmp as separate text/plain attachments
Traceback (most recent call last):
  File "/sbin/anaconda", line 582, in <module>
    startup_utils.set_installation_method_from_anaconda_options(anaconda, ksdata)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/startup_utils.py", line 407, in set_installation_method_from_anaconda_options
    ksdata.method.method = source.method_type
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 91, in __setattr__
    super(FC3_Method, self).__setattr__(name, value)
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 69, in method
    self._get_command(value).seen = True
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 48, in _get_command
    raise AttributeError("Unknown method: {}".format(method))
AttributeError: Unknown method: livecd

Version-Release number of selected component (if applicable):
lorax-28.14.21-1.el8
anaconda-29.19.0.30-1.el8

How reproducible:
always

Steps to Reproduce:
1. yum install lorax
2. make a copy of /usr/share/doc/lorax/rhel-livemedia.ks and modify installation urls and root password
2. livemedia-creator --make-iso --ks rhel-livemedia.ks --no-virt
3. boot the created boot.iso and try to install to hard drive

Actual results:
Installer not started, traceback in journalctl

Expected results:
Installer starts successfully

Comment 1 Jan Stodola 2019-01-11 14:19:29 UTC
Created attachment 1520032 [details]
journalctl

Comment 2 Jan Stodola 2019-01-11 14:19:43 UTC
Created attachment 1520033 [details]
anaconda.log

Comment 3 Jan Stodola 2019-01-11 14:19:58 UTC
Created attachment 1520034 [details]
dbus.log

Comment 4 Jan Stodola 2019-01-11 14:20:14 UTC
Created attachment 1520035 [details]
program.log

Comment 5 Jan Stodola 2019-01-11 14:20:29 UTC
Created attachment 1520036 [details]
storage.log

Comment 10 Jasper O'neal Hartline 2019-09-10 18:20:27 UTC
You should try to install anaconda-runtime in your %packages section of your ks.cfg
So try that anaconda-runtime

Comment 11 Massimiliano 2020-01-11 16:42:29 UTC
The same while attempting to install a live image built with CentOS 8:

Starting installer, one moment...
anaconda 29.19.0.43-1.el8_0 for CentOS Linux 8.0.1905 (pre-release) started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)
 * when reporting a bug add logs from /tmp as separate text/plain attachments
Traceback (most recent call last):
  File "/sbin/anaconda", line 582, in <module>
    startup_utils.set_installation_method_from_anaconda_options(anaconda, ksdata)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/startup_utils.py", line 407, in set_installation_method_from_anaconda_options
    ksdata.method.method = source.method_type
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 91, in __setattr__
    super(FC3_Method, self).__setattr__(name, value)
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 69, in method
    self._get_command(value).seen = True
  File "/usr/lib/python3.6/site-packages/pykickstart/commands/method.py", line 48, in _get_command
    raise AttributeError("Unknown method: {}".format(method))
AttributeError: Unknown method: livecd

It seems related to bug #1622248

Comment 16 Scott Dowdle 2020-08-23 06:36:33 UTC
What info is needed?

I'm having the problem too.  The only way I can build live media is with cockpit-composer... and anaconda seems to no longer understand what a livecd install is.

Comment 18 Jan Stodola 2020-09-08 19:17:12 UTC
Executing the installer using 'sudo /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base' is not a supported way of installation from live media even on Fedora, so the problems described in the comments above won't/can't be fixed.

Testing was done using anaconda-33.16.3.21-1.el8 and the package anaconda-live-33.16.3.21-1.el8. The installer started and it was possible to finish the installation and boot the installed system.
Please note that the package anaconda-live is not part of BaseOS/AppStream, since RHEL installations from live media are not supported in RHEL-8.3.
The problem with anaconda-live being expected by rhel-livemedia.ks from lorax is tracked in bug 1876563.

Moving to VERIFIED.

Comment 21 errata-xmlrpc 2020-11-04 03:22:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4729

Comment 22 Red Hat Bugzilla 2023-09-14 04:44:53 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days