[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)

2015-10-23 Thread Thomas Bruno
The root cause is netcf not handling network alias
https://bugzilla.redhat.com/show_bug.cgi?id=1185850

https://rhn.redhat.com/errata/RHBA-2015-0363.html

Patch located in this post:
https://lists.fedorahosted.org/pipermail/netcf-devel/2015-January/000924.html

** Also affects: netcf (Ubuntu)
   Importance: Undecided
   Status: New

** Bug watch added: Red Hat Bugzilla #1185850
   https://bugzilla.redhat.com/show_bug.cgi?id=1185850

-- 
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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[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)

2015-10-23 Thread Thomas Bruno
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, );
 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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs