Bug 937040

Summary: boot from multipath fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dinar Valeev <dvaleev>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: aschnell, dimstar, dvaleev, jreidinger, mjwolf, normand, shundhammer
Version: Current   
Target Milestone: ---   
Hardware: PowerPC-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dracut.log
yast logs

Description Dinar Valeev 2015-07-03 15:48:26 UTC
As part of Tumbleweed tests for Power we run multipath test.

https://openqa.opensuse.org/tests/70150

It fails in a way dracut claiming it can't find swap and root devices during boot.
Comment 1 Arvin Schnell 2015-07-03 17:08:47 UTC
Please provide YaST logs.
Comment 2 Dinar Valeev 2015-07-07 10:44:39 UTC
Created attachment 640267 [details]
dracut.log

This log shows, multipath is not enabled in initrd.

YaST logs will come shortly
Comment 3 Dinar Valeev 2015-07-07 13:21:32 UTC
Created attachment 640279 [details]
yast logs
Comment 4 Arvin Schnell 2015-07-07 13:28:19 UTC
Thanks for the logs. The YaST log shows that multipath is enabled during
installation. So this looks like a dracut issue to me.
Comment 5 Dinar Valeev 2015-07-07 13:35:39 UTC
well, 

2015-07-07 09:16:59 <1> (none)(2509) [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94 dracut module 'multipath' will not be installed, because command 'multipath' could not be found!

And I can't find a log entry saying installing multipath-tools package. And in fact rootfs doesn't have multipath installed.
Comment 6 Dinar Valeev 2015-07-07 13:40:53 UTC
Installing multipath-tools in chroot and rerunning dracut, makes system bootable
Comment 7 Arvin Schnell 2015-07-07 14:11:20 UTC
multipath-tools not being installed is a surprise to me since YaST has
a hard requires for it. So I suppose YaST is also not installed. Maybe
someone fiddled with the patterns.

Luckily we already have the idea to improve the dependency handling, see
https://trello.com/c/d7pERqMt/177-os-tw-907331-yast2-partitioner-handling-of-optional-packages-xfsprogs-mdadm.
Comment 8 Josef Reidinger 2015-07-07 14:57:11 UTC
well, it is possible to have working system without yast2. So something else have to handle it. Probably yast2-storage have to say which packages are required.
Comment 9 Arvin Schnell 2015-07-07 15:04:30 UTC
In the past it was not possible to install without YaST being installed.
Apparently this issue was not handled in the "new installer" project. Now
it is included in the trello card.
Comment 10 Dinar Valeev 2015-07-15 11:52:37 UTC
any ideas why yast2-multipath is not pulled in?

Any proposals for a fix?
Comment 11 Dominique Leuenberger 2015-07-15 12:06:02 UTC
(In reply to Arvin Schnell from comment #7)
> multipath-tools not being installed is a surprise to me since YaST has
> a hard requires for it. So I suppose YaST is also not installed. Maybe
> someone fiddled with the patterns.

The minimal text patern has indeed been updated to not install Yast2 (as it's also used to prepare docker/nspawn containers for example).

As such, there can be setups without yast (and yast is not mandatory).

When the installer is instructed to install in a multipath setup, it has to handle the pull-in of multipath-tools accordingly
Comment 12 Dinar Valeev 2015-07-15 13:35:51 UTC
I imagine the same would affect, RAID, encrypted devices and iscsi setups.
Comment 13 Stefan Hundhammer 2015-08-25 14:55:50 UTC
Added infrastructure to install storage related packages on demand during installation.

Later, this will be expanded to the expert partitioner, and we will remove those hard dependencies from libstorage.

Fixed with yast2-storage-3.1.66

Pull request:

  https://github.com/yast/yast-storage/pull/150

More details in Trello (for those who have access):

  https://trello.com/c/NQRRvni6/106-8-sles12-sp1-install-storage-related-packages-only-on-demand

Screenshots with tested scenarios:

  https://w3.suse.de/~shundhammer/storage-pkg/

(check the scenario on each of the YaST screens, then compare with the log output below that screen)
Comment 14 Arvin Schnell 2015-08-28 08:46:37 UTC
Fixed with yast2-storage-3.1.66/