Bug 1310495 - Kexec fails on Fedora 23 ppc64le
Summary: Kexec fails on Fedora 23 ppc64le
Alias: None
Product: Fedora
Classification: Fedora
Component: kexec-tools
Version: 23
Hardware: ppc64le
OS: Linux
Target Milestone: ---
Assignee: Dave Young
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PPCTracker F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
Reported: 2016-02-22 03:03 UTC by adi.gangidi
Modified: 2016-04-02 04:20 UTC (History)
9 users (show)

Fixed In Version: kexec-tools-2.0.10-10.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-04-02 04:20:35 UTC
Type: Bug

Attachments (Terms of Use)
Logs in couple of instances where failure is observed. This log changes often resulting in no log at all (1.29 KB, application/zip)
2016-02-22 03:03 UTC, adi.gangidi
no flags Details

System ID Private Priority Status Summary Last Updated
IBM Linux Technology Center 139558 0 None None None 2016-03-23 08:54:59 UTC

Description adi.gangidi 2016-02-22 03:03:41 UTC
Created attachment 1129123 [details]
Logs in couple of instances where failure is observed. This log changes often resulting in no log at all

Description of problem:

Kexec fails on Fedora 23 ppc64le

We've reproduced a 1-1 Kexec failure on Fedora 23 ppc64le Bare Metal Install (Stock OS). We also tested it on live host OS and also observed that it fails too.  

Here's all the stuff we tried:
​Kexec From   Kexec To       Status
​Fedora 23   ​Fedora 23       ​Failure
​Fedora 23   Ubuntu 15.04    Failure
​Fedora 23   ​Ubuntu 15.10    Failure

Kexec works on following ppc64le Stock Host OS without issues:  Ubuntu 15.10, 15.04, CentOS 7.2 

Kexec Fails on following ppc64le Stock Host OS:    Fedora 23 , Debian 8.3 

Logs:  System hang happens with random logs (More often with no logs at all). I've attached couple of snippets of logs we were able to obtain. 

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

Kernel Version:
[root@ppc-builder ~]# uname -a
Linux ppc-builder 4.2.6-301.fc23.ppc64le #1 SMP Thu Nov 26 19:44:15 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

OS Version:

[root@ppc-builder ~]# cat /etc/os-release
VERSION="23 (Server Edition)"
PRETTY_NAME="Fedora 23 (Server Edition)"
VARIANT="Server Edition"

How reproducible:

Steps to Reproduce:
Install kexec-tools
b. Run: 
kexec -l vmlinuz —initrd=“initrd.img” —command-line=`cat /proc/cmdline`
c. Run:
kexec -e​
Host Console hangs indefinitely, without providing ability to get any logs.

Actual results:
kexec -e results in a system hang (with different logs)

Expected results:
kexec -e should result in reloading of new kernel and initrd provided

Additional info:

Comment 2 Dave Young 2016-02-26 03:45:53 UTC
Here is a patch posted to kexec-tools upstream:

I think ubuntu works just because they are using old version of kexec-tools


Comment 3 Dave Young 2016-02-26 03:53:46 UTC
Antony, can you retest with my patch in comment #2, It seems another problem in the patches in comment #1, but we may have multiple problems in the report though.
Patch in comment #2 works for me. But I will appreciate for your further testing because it is the only patch I need to make kexec work.


Comment 4 Dave Young 2016-02-26 07:06:07 UTC
Antony, sorry, I find my test environment is not correct, I used a latest branch locally. In F23 patch in comment #2 is not necessary. Will see if I can test F23 on a ppc64 machine.

Comment 5 Dave Young 2016-02-26 09:04:38 UTC
I reproduced the problem in F23, patches mentioned in comment #1 works, seems I can not reproduce the problem in my patch (comment #2) with Fedora kernel. But it can be easily reproduced with RHEL kernel in Fedora with latest upstream kexec-tools.

Test result like below for me:
Fedora kernel load Fedora kernel: need only the ABI v2 patches.
Fedora kernel load RHEL kernel: need only ABI v2 patches.
Fedora kernel load RHEL kernel with upstream kexec-tools: need both ABI v2 patches and the fs2dt fix in comment #2

So till now for Fedora 23 we should only need the ABI v2 patches, when we rebase kexec-tools in rawhide we may need both.

I'm still not sure why the different kernel version matters. Will discuss it in kexec list further.


Comment 6 Dave Young 2016-03-23 03:10:50 UTC

Above is the upstream patches, but it need review from powerpc people.

Any of IBM people in cc list can help review them?


Comment 8 Dave Young 2016-03-24 06:27:06 UTC
Cool, thanks a lot. Will post patch for Fedora 24 kexec-tools.

adi.gangidi@rackspace.com, do you need it in Fedora 23?


Comment 9 Antony Messerli 2016-03-24 15:05:05 UTC
Yes, if we could please.  We're actively working with Fedora 23 and would like do some more testing with it.  If it's too much trouble, I can always get a build in copr.

Thanks for everyone's help so far!

Comment 10 Dave Young 2016-03-25 01:00:04 UTC
Ok, will fix it in f23 as well.

Comment 11 Fedora Update System 2016-03-25 02:52:26 UTC
kexec-tools-2.0.10-10.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4e3a1242aa

Comment 12 Fedora Update System 2016-03-26 15:19:40 UTC
kexec-tools-2.0.10-10.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4e3a1242aa

Comment 13 Fedora Update System 2016-04-02 04:20:30 UTC
kexec-tools-2.0.10-10.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.