Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 843475 Details for
Bug 987088
Trying to create VM with host IO pressure: Unable to complete install: 'monitor socket did not show up: No such file or directory'
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch
0001-Add-monitor-timeout-configuration.patch (text/plain), 2.53 KB, created by
Pavel Fux
on 2013-12-30 17:03:07 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Pavel Fux
Created:
2013-12-30 17:03:07 UTC
Size:
2.53 KB
patch
obsolete
>From 89063e242b46a781b7416a5d395ece9afea635a5 Mon Sep 17 00:00:00 2001 >From: Pavel Fux <pavel@stratoscale.com> >Date: Thu, 19 Dec 2013 15:20:57 +0200 >Subject: [PATCH] Add monitor timeout configuration > >--- > src/qemu/qemu.conf | 7 +++++++ > src/qemu/qemu_conf.c | 2 ++ > src/qemu/qemu_conf.h | 2 ++ > src/qemu/qemu_monitor.c | 13 +++++++++++++ > 4 files changed, 24 insertions(+) > >diff --git a/src/qemu/qemu.conf b/src/qemu/qemu.conf >index 0f0a24c..6ba6207 100644 >--- a/src/qemu/qemu.conf >+++ b/src/qemu/qemu.conf >@@ -409,3 +409,10 @@ > # Defaults to -1. > # > #seccomp_sandbox = 1 >+ >+ >+#If you sometimes get the message "failed to connect to monitor socket" >+#that could be because qemu did not wait enough time, you can try increasing >+#this timeout, the default is 3 seconds >+# >+#monitor_socket_open_timeout = 30 >diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c >index 7c3f317..4f35801 100644 >--- a/src/qemu/qemu_conf.c >+++ b/src/qemu/qemu_conf.c >@@ -520,6 +520,8 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg, > > GET_VALUE_LONG("seccomp_sandbox", cfg->seccompSandbox); > >+ GET_VALUE_LONG("monitor_socket_open_timeout", cfg->monitorSocketOpenTimeout); >+ > ret = 0; > > cleanup: >diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h >index 77d3d2f..625e69d 100644 >--- a/src/qemu/qemu_conf.h >+++ b/src/qemu/qemu_conf.h >@@ -148,6 +148,8 @@ struct _virQEMUDriverConfig { > unsigned int keepAliveCount; > > int seccompSandbox; >+ >+ int monitorSocketOpenTimeout; > }; > > /* Main driver state */ >diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c >index 1b1d4a1..b5deb6b 100644 >--- a/src/qemu/qemu_monitor.c >+++ b/src/qemu/qemu_monitor.c >@@ -29,6 +29,7 @@ > #include <fcntl.h> > > #include "qemu_monitor.h" >+#include "qemu_conf.h" > #include "qemu_monitor_text.h" > #include "qemu_monitor_json.h" > #include "virerror.h" >@@ -47,6 +48,8 @@ > #define DEBUG_IO 0 > #define DEBUG_RAW_IO 0 > >+extern virQEMUDriverPtr qemu_driver; >+ > struct _qemuMonitor { > virObjectLockable parent; > >@@ -252,6 +255,16 @@ qemuMonitorOpenUnix(const char *monitor, pid_t cpid) > int monfd; > int timeout = 3; /* In seconds */ > int ret, i = 0; >+ virQEMUDriverConfigPtr cfg = NULL; >+ >+ if (qemu_driver != NULL){ >+ cfg = virQEMUDriverGetConfig(qemu_driver); >+ if (cfg->monitorSocketOpenTimeout > 3){ >+ timeout = cfg->monitorSocketOpenTimeout; >+ } >+ virObjectUnref(cfg); >+ cfg = NULL; >+ } > > if ((monfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { > virReportSystemError(errno, >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pavel
: review+
Actions:
View
|
Diff
Attachments on
bug 987088
: 843475