!59 kata-runtime:修复qemu进程处于D/T状态下kata-runtime卡死的问题
From: @jackey_1024 Reviewed-by: @jingxiaolu,@duguhaotian Signed-off-by: @duguhaotian
This commit is contained in:
commit
6ff1f39a5c
@ -2,7 +2,7 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%define VERSION 2.1.0
|
%define VERSION 2.1.0
|
||||||
%define RELEASE 5
|
%define RELEASE 6
|
||||||
|
|
||||||
Name: kata-containers
|
Name: kata-containers
|
||||||
Version: %{VERSION}
|
Version: %{VERSION}
|
||||||
@ -108,6 +108,12 @@ strip %{buildroot}/usr/bin/containerd-shim-kata-v2
|
|||||||
%doc
|
%doc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 5 2021 jikui <jikui2@huawei.com> - 2.1.0-6
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix kata-runtime hungs when qemu process is D/T
|
||||||
|
|
||||||
* Mon Sep 27 2021 yangfeiyu <yangfeiyu2@huawei.com> - 2.1.0-5
|
* Mon Sep 27 2021 yangfeiyu <yangfeiyu2@huawei.com> - 2.1.0-5
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -0,0 +1,27 @@
|
|||||||
|
From c563b455e3bb0cebfbe2a77c8d5ebac36aac3c76 Mon Sep 17 00:00:00 2001
|
||||||
|
From: jikui <jikui2@huawei.com>
|
||||||
|
Date: Thu, 4 Nov 2021 19:58:33 +0800
|
||||||
|
Subject: [PATCH 1/8] kata-runtime: fix kata-runtime hungs when qemu process is
|
||||||
|
D/T state
|
||||||
|
|
||||||
|
Signed-off-by: jikui <jikui2@huawei.com>
|
||||||
|
---
|
||||||
|
src/runtime/vendor/github.com/kata-containers/govmm/qemu/qmp.go | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/runtime/vendor/github.com/kata-containers/govmm/qemu/qmp.go b/src/runtime/vendor/github.com/kata-containers/govmm/qemu/qmp.go
|
||||||
|
index 97e9245..325250d 100644
|
||||||
|
--- a/src/runtime/vendor/github.com/kata-containers/govmm/qemu/qmp.go
|
||||||
|
+++ b/src/runtime/vendor/github.com/kata-containers/govmm/qemu/qmp.go
|
||||||
|
@@ -717,6 +717,8 @@ func QMPStart(ctx context.Context, socket string, cfg QMPConfig, disconnectedCh
|
||||||
|
if q.version == nil {
|
||||||
|
return nil, nil, fmt.Errorf("failed to find QMP version information")
|
||||||
|
}
|
||||||
|
+ case <-time.After(15 * time.Second):
|
||||||
|
+ return nil, nil, fmt.Errorf("qmp start time out")
|
||||||
|
}
|
||||||
|
|
||||||
|
return q, q.version, nil
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@ -6,3 +6,4 @@
|
|||||||
0006-factory-add-the-template-factory-support-for-hypervi.patch
|
0006-factory-add-the-template-factory-support-for-hypervi.patch
|
||||||
0007-kata-containers-support-with-iSulad.patch
|
0007-kata-containers-support-with-iSulad.patch
|
||||||
0008-kata-containers-adpat-with-iSulad.patch
|
0008-kata-containers-adpat-with-iSulad.patch
|
||||||
|
0009-kata-containers-fix-kata-runtime-hungs-when-qemu-proces.patch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user