SUSE / machinery

A systems management toolkit for Linux
GNU General Public License v3.0
159 stars 32 forks source link

Installing bootloader failed - SLES 12 install using exported autoinst.xml #1033

Open gsanso opened 9 years ago

gsanso commented 9 years ago

Installing bootloader failed during SLES 12 installation using exported autoinst.xml:

ceph_autoyast_error_s

 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Creating initrd: /boot/initrd-3.12.43-52.6-default
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-3.12.43-52.6-default 3.12.43-52.6-default
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: bash ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: i18n ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 No KEYMAP configured.
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: ifcfg ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: drm ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: plymouth ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: btrfs ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: kernel-modules ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module unix
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module ehci-platform
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module atkbd
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module i8042
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module pcmcia
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module sdhci_acpi
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module swap
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: resume *** 
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: rootfs-block ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: terminfo ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: udev-rules ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Skipping udev rule: 91-permissions.rules
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Skipping udev rule: 80-drivers-modprobe.rules
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: haveged ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: systemd ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Failed to install module ipv6
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: usrmount ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: base ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: fs-lib ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: shutdown ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including module: suse ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Including modules done ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Installing kernel module dependencies and firmware ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Installing kernel module dependencies and firmware done ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Resolving executable dependencies ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Resolving executable dependencies done***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Hardlinking files ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Hardlinking files done ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Stripping files ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Stripping files done ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Generating early-microcode cpio image ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Constructing GenuineIntel.bin ****
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Store current command line parameters ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Stored kernel commandline:
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94  resume=/dev/disk/by-id/ata-ST3250310NS_9SF04SN0-part1
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 root=UUID=b2b87a14-5d58-4df5-ae3e-fcda33cec31d rootflags=rw,relatime,space_cache rootfstype=btrfs
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Creating image file ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 *** Creating image file done ***
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Some kernel modules could not be included:
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 unix
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 ehci-platform
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 atkbd
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 i8042
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 pcmcia
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 sdhci_acpi
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 swap
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 ipv6
 [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 Update bootloader...
 [zypp++] ExternalProgram.cc(checkStatus):513 Pid 21091 successfully completed
 [zypp::posttrans] RpmPostTransCollector.cc(executeScripts):88 EXECUTE posttrans: kernel-firmware-20140807git-3.11.noarch.rpmHhds0H

 [Ruby] routines/misc.rb:1564 Boot device - disk: /dev/sda
 [Ruby] modules/Bootloader.rb:621 Reinitialize bootloader library before saving: true
 [Ruby] routines/lib_iface.rb:123 Initializing lib for grub2
 [Ruby] modules/BootArch.rb:167 Type of architecture: x86_64
 [Ruby] routines/lib_iface.rb:131 Putting partitioning into library
 [Ruby] modules/BootStorage.rb:638 Skip genarating partinfo, md_info, mountpoints and multipath_mapping
" [Ruby] routines/lib_iface.rb:84 Information about partitioning: [[""/dev/sda1"", ""/dev/sda"", ""1"", ""130"", ""Linux swap"", ""`primary"", ""0"", ""522""], [""/dev/sda2"", ""/dev/sda"", ""2"", ""15"", ""Extended"", ""`extended"", ""522"", ""29879""], [""/dev/sda5"", ""/dev/sda"", ""5"", ""131"", ""Linux native"", ""`logical"", ""523"", ""5221""], [""/dev/sda6"", ""/dev/sda"", ""6"", ""131"", ""Linux native"", ""`logical"", ""5744"", ""5223"", ""/dev/disk/by-uuid/6b569fd9-ac3f-46e1-869a-3bb55d706a71""], [""/dev/sda7"", ""/dev/sda"", ""7"", ""131"", ""Linux native"", ""`logical"", ""10966"", ""19435""]]"
 [Ruby] routines/lib_iface.rb:88 Information about MD arrays: $[]
 [Ruby] routines/lib_iface.rb:92 Mapping real disk to multipath: $[]
 [Ruby] routines/lib_iface.rb:238 Storing multipath map: $[]
 [Ruby] routines/lib_iface.rb:240 Multipath was not detected
 [Ruby] routines/lib_iface.rb:134 Library initialization finished
 [Ruby] routines/lilolike.rb:712 Don't convert XEN section - it is not running in domU
" [Ruby] modules/BootCommon.rb:666 device map before mapping $[""/dev/sda"":""hd0""]"
 [Ruby] modules/BootStorage.rb:268 MountByDev2Dev: /dev/sda
 [Ruby] modules/BootStorage.rb:422 Dev2MountByDev: /dev/sda as kernel device name: /dev/sda
 [Ruby] modules/BootStorage.rb:448 Mount-by: `uuid
" [Ruby] modules/BootCommon.rb:673 device map after mapping $[""/dev/sda"":""hd0""]"
 [Ruby] modules/BootCommon.rb:692 SetSecureBoot true
 [Ruby] routines/lib_iface.rb:314 Set SecureBoot
 [Ruby] routines/lib_iface.rb:238 Storing multipath map: $[]
 [Ruby] routines/lib_iface.rb:240 Multipath was not detected
 [Ruby] routines/lib_iface.rb:226 Storing device map
" [Ruby] routines/lib_iface.rb:158 Storing bootloader sections [$[""__modified"":""1"", ""append"":""${extra_cmdline}  console=ttyS0,115200 resume=/dev/sda1 splash=silent quiet showopts"", ""image"":""/boot/vmlinuz-3.12.43-52.6-default"", ""menuentry"":""SLES12"", ""name"":""SLES12"", ""root"":""UUID=b2b87a14-5d58-4df5-ae3e-fcda33cec31d"", ""type"":""image"", ""usage"":""linux""], $[""__modified"":""1"", ""append"":""${extra_cmdline}  console=ttyS0,115200 resume=/dev/sda1 splash=silent quiet showopts"", ""image"":""/boot/vmlinuz-3.12.43-52.6-default"", ""menuentry"":""Advanced options for SLES12>SLES12, with Linux 3.12.43-52.6-default"", ""name"":""Advanced options for SLES12>SLES12, with Linux 3.12.43-52.6-default"", ""root"":""UUID=b2b87a14-5d58-4df5-ae3e-fcda33cec31d"", ""type"":""image"", ""usage"":""linux""], $[""__modified"":""1"", ""append"":""${extra_cmdline} showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe"", ""image"":""/boot/vmlinuz-3.12.43-52.6-default"", ""menuentry"":""Advanced options for SLES12>SLES12, with Linux 3.12.43-52.6-default (recovery mode)"", ""name"":""Advanced options for SLES12>SLES12, with Linux 3.12.43-52.6-default (recovery mode)"", ""root"":""UUID=b2b87a14-5d58-4df5-ae3e-fcda33cec31d"", ""type"":""image"", ""usage"":""linux_failsafe""]]"
" [Ruby] routines/lib_iface.rb:190 Storing global settings $[""__lines"":[$[""comment_after"":"""", ""comment_before"":[], ""key"":""<?xml"", ""value"":""\""1.0\"" encoding=\""UTF-8\""?>""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<!DOCTYPE"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""\""http"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<html"", ""value"":""\""http://www.w3.org/1999/xhtml\"" lang=\""en\"" xml:lang=\""en\"">""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<head>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<title>Object"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<link"", ""value"":""\""made\"" href=\""mailto:%5bno%20address%20given%5d\"" />""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<style"", ""value"":""\""text/css\""><!--/*--><![CDATA[/*><!--*/""], $[""comment_after"":"" #000000; background-color: #FFFFFF; }"", ""comment_before"":[], ""key"":""body"", ""value"":""""], $[""comment_after"":"" #0000CC; }"", ""comment_before"":[], ""key"":""a"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""p,"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""span"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""/*]]>*/--></style>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</head>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<body>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<h1>Object"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<p>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""The"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""If"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""spelling"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</p>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<p>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""If"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""the"", ""value"":""\""mailto:%5bno%20address%20given%5d\"">webmaster</a>.""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</p>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<h2>Error"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<address>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<a"", ""value"":""\""/\"">10.100.103.110</a><br />""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""<span>Apache/2.4.10"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</address>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</body>"", ""value"":""""], $[""comment_after"":"""", ""comment_before"":[], ""key"":""</html>"", ""value"":""""]], ""boot_mbr"":""true"", ""default"":""SLES12""]"
 [Ruby] routines/lib_iface.rb:293 Writing files to system
 [Ruby] routines/misc.rb:1174 Saving /etc/sysconfig/bootloader for grub2
 [Ruby] modules/Bootloader.rb:635 Calling bootloader executable
 [Ruby] routines/lib_iface.rb:305 Updating bootloader configuration
 [bash] ShellCommand.cc(shellcommand):78 Perl-Bootloader: 2015-06-24 08:48:11 <3> pbl-yaml-7434.8 Core::RunCommand.1658: Error: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg' failed with exit code 1, output:
 [bash] ShellCommand.cc(shellcommand):78 <<<<<<<<<<<<<<<<
 [bash] ShellCommand.cc(shellcommand):78 /etc/default/grub: line 5: ?xml=1.0 encoding=UTF-8?>: No such file or directory
 [bash] ShellCommand.cc(shellcommand):78 
 [bash] ShellCommand.cc(shellcommand):78 >>>>>>>>>>>>>>>>
 [Ruby] grub2/misc.rb:366 Updating disk system area, activate partition: false, install generic boot code in MBR: false
" [Ruby] grub2/misc.rb:377 Doing MBR backup: MBR Disk: /dev/sda, loader devices: [""/dev/sda""]"
 [Ruby] modules/BootStorage.rb:1542 Partitions building /dev/sda: $[]
 [Ruby] grub2/misc.rb:126 loader_device is disk device, so use its 2 partition
" [Ruby] grub2/misc.rb:145 Partition for activating: $[""dev"":""/dev/sda2"", ""mbr"":""/dev/sda"", ""num"":2]"
" [Ruby] grub2/misc.rb:395 Creating backup of boot sectors of [""/dev/sda""]"
 [bash] ShellCommand.cc(shellcommand):78 1+0 records in
 [bash] ShellCommand.cc(shellcommand):78 1+0 records out
 [bash] ShellCommand.cc(shellcommand):78 512 bytes (512 B) copied, 7.5183e-05 s, 6.8 MB/s
 [Ruby] routines/i386.rb:100 MBR of /dev/sda contains[ui] ThinkPad sequence: false
 [bash] ShellCommand.cc(shellcommand):78 Perl-Bootloader: 2015-06-24 08:48:26 <3> pbl-yaml-7434.9 Core::RunCommand.1658: Error: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg' failed with exit code 1, output:
 [bash] ShellCommand.cc(shellcommand):78 <<<<<<<<<<<<<<<<
 [bash] ShellCommand.cc(shellcommand):78 /etc/default/grub: line 5: ?xml=1.0 encoding=UTF-8?>: No such file or directory
 [bash] ShellCommand.cc(shellcommand):78 
 [bash] ShellCommand.cc(shellcommand):78 >>>>>>>>>>>>>>>>
" [Ruby] routines/lib_iface.rb:352 Initializing bootloader ret: """""
 [Ruby] modules/BootGRUB2.rb:116 GRUB return value: false
 [Ruby] modules/Bootloader.rb:1519 Skip creating /selinux directory
 [Ruby] modules/Bootloader.rb:1525 handleSELinuxPAM called
 [Ruby] modules/Bootloader.rb:1531 call disableSELinuxPAM
 [Ruby] modules/Bootloader.rb:641 Installing bootloader failed

This is the target host's partition layout:

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    610303    608256   297M 83 Linux
/dev/sda2          610304  63520767  62910464    30G 83 Linux
/dev/sda3        63520768  71907327   8386560     4G 82 Linux swap / Solaris
/dev/sda4        71907328 976773119 904865792 431.5G  f W95 Ext'd (LBA)
/dev/sda5        71909376 155797503  83888128    40G 83 Linux
/dev/sda6       155799552 976752639 820953088 391.5G 83 Linux

And this one is the target host proposed layout during SLES 12 installation:

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1              63   8385929   8385867     4G 82 Linux swap / Solaris
/dev/sda2  *      8385930 488392064 480006135 228.9G  f W95 Ext'd (LBA)
/dev/sda5         8385993  92277359  83891367    40G 83 Linux
/dev/sda6        92278784 176168959  83890176    40G 83 Linux
/dev/sda7       176171008 488390655 312219648 148.9G 83 Linux

The target host has more than one physical disk:

ix64ph1078:~ # lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0   297M  0 part 
├─sda2   8:2    0    30G  0 part 
├─sda3   8:3    0     4G  0 part [SWAP]
├─sda4   8:4    0     1K  0 part 
├─sda5   8:5    0    40G  0 part /boot/grub2/i386-pc
└─sda6   8:6    0 391.5G  0 part /home
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0    40G  0 part 
└─sdb2   8:18   0 425.8G  0 part 
sdc      8:32   0  74.5G  0 disk 
├─sdc1   8:33   0  11.2G  0 part [SWAP]
└─sdc2   8:34   0  63.4G  0 part /mnt/veeamrepo
sdd      8:48   0 119.2G  0 disk 
├─sdd1   8:49   0    10G  0 part [SWAP]
└─sdd2   8:50   0 109.2G  0 part 
sr0     11:0    1  1024M  0 rom  
cornelius commented 9 years ago

@schubi2 Could you have a look and see if this is a bug in Machinery or somewhere else?