Kernel Panic while rebooting cloud instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-azure (Ubuntu) |
Expired
|
High
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
High
|
Dimitri John Ledkov |
Bug Description
Very occasionally systemd panics on reboots of an azure instance. A workaround to this issue is described in comment #20
------------
Description: In the event a particular Azure cloud instance is rebooted it's possible that it may never recover and the instance will break indefinitely.
In My case, it was a kernel panic. See specifics below..
Series: Disco
Instance Size: Basic_A3
Region: (Default) US-WEST-2
Kernel Version: 4.18.0-1013-azure #13-Ubuntu SMP Thu Feb 28 22:54:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I had a simple script to reboot an instance (X) amount of times, I chose 50, so the machine would power cycle by issuing a "reboot" from the terminal prompt just as a user would. Once the machine came up, it captured dmesg and other bits then rebooted again until it reached 50.
After the 4th attempt, my script timed out, I took a look at the instance console log and the following displayed on the console.
[ OK ] Reached target Reboot.
/shutdown: error while loading shared libra[ 89.498980] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 89.498980]
[ 89.500042] CPU: 0 PID: 1 Comm: shutdown Not tainted 4.18.0-1013-azure #13-Ubuntu
[ 89.508026] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090007 06/02/2017
[ 89.508026] Call Trace:
[ 89.508026] dump_stack+
[ 89.508026] panic+0xe7/0x247
[ 89.508026] do_exit.
[ 89.508026] do_group_
[ 89.508026] __x64_sys_
[ 89.508026] do_syscall_
[ 89.508026] entry_SYSCALL_
[ 89.508026] RIP: 0033:0x7f7bf0154d86
[ 89.508026] Code: Bad RIP value.
[ 89.508026] RSP: 002b:00007ffd6b
[ 89.508026] RAX: ffffffffffffffda RBX: 00007f7bf015e420 RCX: 00007f7bf0154d86
[ 89.508026] RDX: 000000000000007f RSI: 000000000000003c RDI: 000000000000007f
[ 89.508026] RBP: 00007f7bef9449c0 R08: 00000000000000e7 R09: 00000000ffffffff
[ 89.508026] R10: 00007ffd6be6974c R11: 0000000000000206 R12: 0000000000000018
[ 89.508026] R13: 00007f7bef944ac8 R14: 00007f7bef944a00 R15: 0000000000000000
[ 89.508026] Kernel Offset: 0x16000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000
[ 89.508026] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 89.508026] ]---
this only occurred once in my testing.
Changed in linux-azure (Ubuntu): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in linux-azure (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
tags: | added: kernel-hyper-v |
tags: | added: id-5c9e3d984ba1ad4df84a6b1c |
Changed in linux-azure (Ubuntu): | |
status: | In Progress → Incomplete |
Changed in linux-azure (Ubuntu): | |
assignee: | Colin Ian King (colin-king) → nobody |
Minor note: this appears to be a kernel panic during shutdown rather than a boot hang issue.