Bug 1099222

Summary: liveimg payload in text mode does not work
Product: [Fedora] Fedora Reporter: Fabian Deutsch <fdeutsch>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, clumens, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-21.35-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 14:35:29 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:
Attachments:
Description Flags
patch to hide some spokes
none
source spoke is shwon none

Description Fabian Deutsch 2014-05-19 19:28:42 UTC
Description of problem:
liveimg payload in text mode does not work.

Version-Release number of selected component (if applicable):
Fedora 19

How reproducible:
Always

Steps to Reproduce:
1. $ cat /usr/share/anaconda/interactive-defaults.ks 
# Kickstart defaults file for an interative install.
# This is not loaded if a kickstart file is provided on the command line.
auth --enableshadow --passalgo=sha512
bootloader --location=mbr
firstboot --enable

liveimg --url=file:///dev/mappe/HostVG-Image--0.0

2. anaconda -T
3.

Actual results:
…
Installation

 1) [!] Timezone settings                 2) [!] Installation source
        (Timezone is not set.)                   (Processing...)
 3) [!] Software selection                4) [!] Installation Destination
        (Processing...)                          (No disks selected)
 5) [x] Network configuration             6) [!] Root password
        (Wired (ens3) connected)                 (Password is not set.)
 7) [!] User creation
        (No user will be created)
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
An unknown error has occured, look at the /tmp/anaconda-tb* file(s) for more details

===============================================================================
An unknown error has occurred
===============================================================================
anaconda 20.25.16-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/__init__.py", line 255, in environments
    raise NotImplementedError()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/software.py", line 68, in _initialize
    self.payload.environments
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 192, in run
    threading.Thread.run(self, *args, **kwargs)
NotImplementedError

What do you want to do now?
1) Report Bug
2) Debug
3) Run shell
4) Quit

Please make your choice from above: 


Expected results:
anaconda uses the liveimg pointed to by --url

Additional info:

Comment 1 Fabian Deutsch 2014-09-09 15:51:07 UTC
Created attachment 935804 [details]
patch to hide some spokes

I am still seeing this with the netinst iso from Fedora 20.

I investigated this a bit, one issue is that the TUI tries to initialize the source and software spokes (with a liveimg payload).

The attached patch 0001 will at least set the "showability" of the two spokes to False, if a liveimg is used.

But I'm seeing more problems - the installation source spoke is still shown, and the hint is saying that no source is selected (see next screenshot).

Comment 2 Fabian Deutsch 2014-09-09 15:52:35 UTC
Created attachment 935805 [details]
source spoke is shwon

Comment 3 Fabian Deutsch 2014-09-09 15:53:11 UTC
The ks used is:

$ cat boot.ks 
selinux --enforcing
network --bootproto=dhcp
rootpw --plaintext r
firstboot --disable

reboot


clearpart --all --initlabel
bootloader --append="console=ttyS0" --timeout=1

part / --size=3096 --fstype=ext4 --label=Image-0.0 --fsoptions=discard


liveimg --url=rootfs.tar.xz

Comment 4 Fabian Deutsch 2014-09-11 14:35:29 UTC
This is going to be fixed in F21.