[Bug 1481295] Re: virt-manager after upgrade: Error polling connection 'qemu:///system': internal error: could not get interface XML description: File operation failed - Failed to read (null)
Thomas Bruno
tebruno99 at gmail.com
Fri Oct 23 18:15:01 UTC 2015
Putthing this in debian/patch/fix-virtmanager and adding fix-virtmanager
to debian/patch/series solved this issue:
diff --git a/src/dutil_linux.c b/src/dutil_linux.c
index a3b0176..5d69d19 100644
--- a/src/dutil_linux.c
+++ b/src/dutil_linux.c
@@ -1041,7 +1041,14 @@ static void add_link_info(struct netcf *ncf,
ERR_NOMEM(!path, ncf);
state = read_file(path, &length);
FREE(path);
- ERR_THROW_STRERROR(!state, ncf, EFILE, "Failed to read %s", path);
+ if (!state) {
+ /* missing operstate is *not* an error. It could be due to an
+ * alias interface, which has not entry in /sys/class/net at
+ * all, for example.
+ */
+ state = strdup("");
+ ERR_NOMEM(!state, ncf);
+ }
if ((nl = strchr(state, '\n')))
*nl = 0;
prop = xmlSetProp(link_node, BAD_CAST "state", BAD_CAST state);
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to netcf in Ubuntu.
https://bugs.launchpad.net/bugs/1481295
Title:
virt-manager after upgrade: Error polling connection 'qemu:///system':
internal error: could not get interface XML description: File
operation failed - Failed to read (null)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netcf/+bug/1481295/+subscriptions
More information about the Ubuntu-server-bugs
mailing list