Bug 1033202

Summary: InvalidLayoutVariantSpec: '' is not a valid keyboard layout and variant specification
Product: [Fedora] Fedora Reporter: Paul Blankenbaker <paul.blankenbaker>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dshea, g.kaviyarasu, jonathan, paul.blankenbaker, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:ef882a31010e3e2f645ba31095d02786c05ac6f367e8d83c97e73a48f9325cc9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-27 09:29:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: anaconda-ks.cfg
none
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log
none
File: packaging.log
none
Kickstart file generated by x86_64 MATE spin of final Fedora 20 release
none
Screen shot showing error when doing liveinst using kickstart file generated by x86_64 MATE spin of final Fedora 20 release none

Description Paul Blankenbaker 2013-11-21 17:12:17 UTC
Description of problem:
Summary:

* Installed Fedora 20 MATE spin Beta 32 bit on Virtual Box
   - Used default language settings
   - Used English keyboard
   - Reclaimed all disk space
   - Let ananconda partition automatically
   - Added root user account while installing
   - Added user account with admin privileges while installing

* Installation completed normally and worked as expected

* Copied anaconda-ks.cfg file produced under /root to different system

* Repeated installation using the anaconda-ks.cfg file: sudo liveinst --kickstart=/tmp/anaconda-ks.cfg

* Installation fails at end configuration stage (had expected it to just re-install normally)

Problem appears to be reproducible and related to the "keyboard" line in the ananconda-ks.cfg (though that line looks valid to me).

Work around:

* Comment out or remove the "keyboard" line in the anaconda-ks.cfg file.
* Repeat installation with modified ananconda-ks.cfg
* Will be forced to choose a keyboard by GUI interface
* Installation completes normally

Name of ISO image downloaded: Fedora-Live-MATE-Compiz-i686-20-Beta-5.iso
md5sum: 1f8114d6525f218a821de01ff196b044

Version-Release number of selected component:
anaconda-20.25.6-1.fc20.i686

The following was filed automatically by anaconda:
anaconda 20.25.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/keyboard.py", line 103, in parse_layout_variant
    raise InvalidLayoutVariantSpec(msg)
  File "/usr/lib/python2.7/site-packages/pyanaconda/keyboard.py", line 858, in set_layouts
    (layout, variant) = parse_layout_variant(layout_variant)
  File "/usr/lib/python2.7/site-packages/pyanaconda/keyboard.py", line 229, in write_keyboard_config
    options)
  File "/usr/lib/python2.7/site-packages/pyanaconda/kickstart.py", line 1479, in execute
    keyboard.write_keyboard_config(self, ROOT_PATH)
  File "/usr/lib/python2.7/site-packages/pyanaconda/install.py", line 70, in doConfiguration
    ksdata.keyboard.execute(storage, ksdata, instClass)
  File "/usr/lib/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
InvalidLayoutVariantSpec: '' is not a valid keyboard layout and variant specification

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base --lang en_US.UTF-8 --kickstart=/tmp/anaconda-ks.cfg
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-MATE-Compiz-i686-20- rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.6-301.fc20.i686
other involved packages: python-libs-2.7.5-8.fc20.i686
product:        Fedora
release:        Fedora release 20 (Heisenbug)
type:           anaconda
version:        20

Comment 1 Paul Blankenbaker 2013-11-21 17:12:22 UTC
Created attachment 827374 [details]
File: anaconda-ks.cfg

Comment 2 Paul Blankenbaker 2013-11-21 17:12:30 UTC
Created attachment 827375 [details]
File: anaconda-tb

Comment 3 Paul Blankenbaker 2013-11-21 17:12:34 UTC
Created attachment 827376 [details]
File: anaconda.log

Comment 4 Paul Blankenbaker 2013-11-21 17:12:38 UTC
Created attachment 827377 [details]
File: environ

Comment 5 Paul Blankenbaker 2013-11-21 17:12:43 UTC
Created attachment 827378 [details]
File: journalctl

Comment 6 Paul Blankenbaker 2013-11-21 17:12:47 UTC
Created attachment 827379 [details]
File: lsblk_output

Comment 7 Paul Blankenbaker 2013-11-21 17:12:51 UTC
Created attachment 827380 [details]
File: nmcli_dev_list

Comment 8 Paul Blankenbaker 2013-11-21 17:12:54 UTC
Created attachment 827381 [details]
File: os_info

Comment 9 Paul Blankenbaker 2013-11-21 17:12:58 UTC
Created attachment 827382 [details]
File: program.log

Comment 10 Paul Blankenbaker 2013-11-21 17:13:04 UTC
Created attachment 827383 [details]
File: storage.log

Comment 11 Paul Blankenbaker 2013-11-21 17:13:07 UTC
Created attachment 827384 [details]
File: ifcfg.log

Comment 12 Paul Blankenbaker 2013-11-21 17:13:11 UTC
Created attachment 827385 [details]
File: packaging.log

Comment 13 David Shea 2014-01-02 21:22:51 UTC
Does this problem still occur with the released version of F20?

Comment 14 Paul Blankenbaker 2014-01-02 23:29:50 UTC
Yes, this problem still occurs when using the released version of F20 (I just verified it using the x86_64 MATE spin image for install: Fedora-Live-MATE-Compiz-x86_64-20-1.iso).

Still same procedure:

1. Boot from Live install ISO image and perform normal ISO install.

2. Grab a copy of /root/anaconda-ks.cfg produced by the install.

3. Boot from Live install ISO again and try to perform ISO install using generated kickstart file:

sudo liveinst --kickstart=/tmp/anaconda-ks.cfg

In the past, this would automate the installation. The current release crashes.

I will try to attach a screen shot and the latest kickstart config from the release version that crashed.

However, you will probably need to repeat the experiment on your system as I think the kickstart file generated by anaconda tends to be customized based on your hardware at the time of installation.

Comment 15 Paul Blankenbaker 2014-01-02 23:31:04 UTC
Created attachment 844763 [details]
Kickstart file generated by x86_64 MATE spin of final Fedora 20 release

Comment 16 Paul Blankenbaker 2014-01-02 23:32:50 UTC
Created attachment 844764 [details]
Screen shot showing error when doing liveinst using kickstart  file generated by x86_64 MATE spin of final Fedora 20 release

Comment 17 Vratislav Podzimek 2014-02-27 09:29:38 UTC

*** This bug has been marked as a duplicate of bug 1057442 ***