[libvirt] [Patch] Network schema fixes and updates
by Satoru SATOH
This is a patch to make network schema (network.rng) to support some
neat features (/netowrk/domain, //dhcp/host/*).
---
docs/schemas/network.rng | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng
index 34c0163..a4281a5 100644
--- a/docs/schemas/network.rng
+++ b/docs/schemas/network.rng
@@ -1,6 +1,7 @@
<!-- A Relax NG schema for the libvirt network XML format -->
<element name="network" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+ <interleave>
<!-- The name of the network, used to refer to it through the API
and in virsh -->
<element name="name"><text/></element>
@@ -43,6 +44,11 @@
</element>
</optional>
<optional>
+ <element name="domain">
+ <attribute name="name"><text/></attribute>
+ </element>
+ </optional>
+ <optional>
<!-- The IP element sets up NAT'ing and an optional DHCP server
local to the host. -->
<!-- FIXME: address, netmask and the start and end of the ranges
@@ -63,7 +69,15 @@
<attribute name="end"><text/></attribute>
</element>
</zeroOrMore>
+ <zeroOrMore>
+ <element name="host">
+ <attribute name="mac"><text/></attribute>
+ <attribute name="name"><text/></attribute>
+ <attribute name="ip"><text/></attribute>
+ </element>
+ </zeroOrMore>
</element>
</element>
</optional>
+ </interleave>
</element>
--
1.6.3.2
15 years, 4 months
[libvirt] [PATCH] Fix node dumpxml infinite loop
by Cole Robinson
With current git, doing:
'virsh nodedev-dumpxml computer'
locks up the daemon. The list iteration in update_caps was only happening
conditionally: if that condition wasn't met, we loop forever.
- Cole
15 years, 4 months
[libvirt] fix for crash in NPIV code
by Dave Allan
DV found a place in the NPIV code that was freeing the wrong thing in
the error case causing a segfault. The patch to fix it follows.
Dave
diff --git a/src/node_device.c b/src/node_device.c
index cd9f0ef..c5b839b 100644
--- a/src/node_device.c
+++ b/src/node_device.c
@@ -489,8 +489,8 @@ get_wwns(virConnectPtr conn,
if (*wwnn == NULL || *wwpn == NULL) {
/* Free the other one, if allocated... */
- VIR_FREE(wwnn);
- VIR_FREE(wwpn);
+ VIR_FREE(*wwnn);
+ VIR_FREE(*wwpn);
ret = -1;
virReportOOMError(conn);
}
15 years, 4 months
[libvirt] PATCH : Opennebula documentation
by "Abel Míguez Rodríguez"
Hi,
Attached is the OpenNebula driver documentation and a patch. The main Documentation file is "drvone.html.in" along with it a patch that includes: the API supported by the driver, an entry at "Documentation>Drivers" and a link to the documentation at "drivers.hmtl.in"
Thanks
--- sitemap.html.in.bak 2009-07-01 12:43:53.000000000 +0200
+++ sitemap.html.in 2009-06-30 18:19:44.000000000 +0200
@@ -148,6 +148,10 @@
<a href="drvvbox.html">VirtualBox</a>
<span>Driver for VirtualBox</span>
</li>
+ <li>
+ <a href="drvone.html">OpenNebula</a>
+ <span>Driver for OpenNebula</span>
+ </li>
</ul>
</li>
<li>
--- drivers.html.in.bak 2009-07-01 14:54:57.000000000 +0200
+++ drivers.html.in 2009-07-01 14:55:33.000000000 +0200
@@ -23,6 +23,7 @@
<li><strong><a href="drvtest.html">Test</a></strong></li>
<li><strong><a href="drvopenvz.html">OpenVZ</a></strong></li>
<li><strong><a href="drvvbox.html">VirtualBox</a></strong></li>
+ <li><strong><a href="drvone.html">OpenNebula</a></strong></li>
</ul>
</body>
</html>
--- hvsupport.html.in.bak 2009-07-01 12:41:36.000000000 +0200
+++ hvsupport.html.in 2009-07-01 13:02:38.000000000 +0200
@@ -22,6 +22,7 @@ updated on <i>2008-06-05</i>.
<th><a href="drvkvm.html">KVM</a></th>
<th><a href="remote.html">Remote</a></th>
<th><a href="drvvbox.html">VirtualBox</a></th>
+ <th><a href="drvone.html">ONE</a></th>
</tr>
<tr>
<td> virConnectClose </td>
@@ -31,6 +32,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectGetCapabilities </td>
@@ -40,6 +42,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.1 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectGetHostname </td>
@@ -49,6 +52,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.3.3 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virConnectGetMaxVcpus </td>
@@ -58,6 +62,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virConnectGetType </td>
@@ -67,6 +72,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectGetURI </td>
@@ -76,6 +82,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.3.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectGetVersion </td>
@@ -85,6 +92,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectListDefinedDomains </td>
@@ -94,6 +102,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectListDomains </td>
@@ -103,6 +112,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectNumOfDefinedDomains </td>
@@ -112,6 +122,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectNumOfDomains </td>
@@ -121,6 +132,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectOpen </td>
@@ -130,6 +142,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virConnectOpenAuth </td>
@@ -139,6 +152,7 @@ updated on <i>2008-06-05</i>.
<td> </td>
<td> </td>
<td> </td>
+ <td> </td>
</tr>
<tr>
<td> virConnectOpenReadOnly </td>
@@ -148,6 +162,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainAttachDevice </td>
@@ -157,6 +172,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainBlockPeek </td>
@@ -166,6 +182,7 @@ updated on <i>2008-06-05</i>.
<td> 0.4.3 </td>
<td> x </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainBlockStats </td>
@@ -175,6 +192,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.2 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainCoreDump </td>
@@ -184,6 +202,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainCreate </td>
@@ -193,6 +212,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainCreateLinux </td>
@@ -202,6 +222,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainDefineXML </td>
@@ -211,6 +232,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainDestroy </td>
@@ -220,6 +242,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainDetachDevice </td>
@@ -229,6 +252,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainFree </td>
@@ -238,6 +262,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetAutostart </td>
@@ -247,11 +272,12 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.1 </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetConnect </td>
<td> 0.3.0 </td>
- <td colspan="5"> not a HV function </td>
+ <td colspan="6"> not a HV function </td>
</tr>
<tr>
<td> virDomainGetID </td>
@@ -261,6 +287,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetInfo </td>
@@ -270,6 +297,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetMaxMemory </td>
@@ -279,6 +307,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetMaxVcpus </td>
@@ -288,6 +317,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetName </td>
@@ -297,6 +327,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetOSType </td>
@@ -306,6 +337,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetSchedulerParameters </td>
@@ -315,6 +347,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetSchedulerType </td>
@@ -324,6 +357,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetUUID </td>
@@ -333,6 +367,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetUUIDString </td>
@@ -342,6 +377,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainGetVcpus </td>
@@ -351,6 +387,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainInterfaceStats </td>
@@ -360,6 +397,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.2 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainGetXMLDesc </td>
@@ -369,6 +407,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainLookupByID </td>
@@ -378,6 +417,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainLookupByName </td>
@@ -387,6 +427,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainLookupByUUID </td>
@@ -396,6 +437,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainLookupByUUIDString </td>
@@ -405,6 +447,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainMigrate </td>
@@ -414,6 +457,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> 0.3.2 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainPinVcpu </td>
@@ -423,6 +467,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainReboot </td>
@@ -432,6 +477,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainRestore </td>
@@ -441,6 +487,8 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.3.2 </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
+
</tr>
<tr>
<td> virDomainResume </td>
@@ -450,6 +498,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainSave </td>
@@ -459,6 +508,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.3.2 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainSetAutostart </td>
@@ -468,6 +518,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.1 </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainSetMaxMemory </td>
@@ -476,6 +527,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> x </td>
<td> ≥ 0.3.0 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainSetMemory </td>
@@ -485,6 +537,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainSetSchedulerParameters </td>
@@ -494,6 +547,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainSetVcpus </td>
@@ -503,6 +557,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> ≥ 0.3.0 </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virDomainShutdown </td>
@@ -512,6 +567,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainSuspend </td>
@@ -521,6 +577,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virDomainUndefine </td>
@@ -530,17 +587,18 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> ≥ 0.6.4 </td>
</tr>
<tr>
<td> virGetVersion </td>
<td> All </td>
<td> All </td>
- <td colspan="4"> Returns -1 if HV unsupported. </td>
+ <td colspan="5"> Returns -1 if HV unsupported. </td>
</tr>
<tr>
<td> virInitialize </td>
<td> 0.1.0 </td>
- <td colspan="5"> not a HV function </td>
+ <td colspan="6"> not a HV function </td>
</tr>
<tr>
<td> virDomainMemoryPeek </td>
@@ -550,6 +608,7 @@ updated on <i>2008-06-05</i>.
<td> 0.4.3 </td>
<td> x </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virNodeGetInfo </td>
@@ -559,6 +618,7 @@ updated on <i>2008-06-05</i>.
<td> ≥ 0.2.0 </td>
<td> ≥ 0.3.0 </td>
<td> ≥ 0.6.3 </td>
+ <td> x </td>
</tr>
<tr>
<td> virNodeGetFreeMemory </td>
@@ -568,6 +628,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> x </td>
<td> x </td>
+ <td> x </td>
</tr>
<tr>
<td> virNodeGetCellsFreeMemory </td>
@@ -577,6 +638,7 @@ updated on <i>2008-06-05</i>.
<td> x </td>
<td> x </td>
<td> x </td>
+ <td> x </td>
</tr>
</table>
<h3>Network functions</h3>
Abel Miguez Rodriguez
----
Distributed System Architecture Group
(http://dsa-research.org)
GridWay, http://www.gridway.org
OpenNEbula, http://www.opennebula.org
15 years, 4 months
[libvirt] libvirt 0.6.4: Confusing error message during virDomainRestore() if network not started
by Charles Duffy
Howdy, 'yall -- I found myself scratching my head for a few minutes
trying to start a VM image via virDomainRestore().
Looking through the header definition in the XML, it read as follows:
<interface type="network">
<mac address="00:15:3d:49:ec:0e"/>
<source network="fvte-MIXED-DEFAULT"/>
<target dev="vnet3"/>
<model type="e1000"/>
</interface>
...and on trying to do a virDomainRestore(), it exited with the following:
Traceback (most recent call last):
File "/usr/bin/fvte", line 8, in <module>
load_entry_point('fvte==1.0', 'console_scripts', 'fvte')()
File "/local/home-aux/cduffy/public_git/fvte/src/m1/fvte/cli.py",
line 1838, in main
cli.cmdloop()
File "/opt/python25/lib/python2.5/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/local/home-aux/cduffy/public_git/fvte/src/m1/fvte/cli.py",
line 1791, in onecmd
cmd.Cmd.onecmd(self, c)
File "/opt/python25/lib/python2.5/cmd.py", line 219, in onecmd
return func(arg)
File "/local/home-aux/cduffy/public_git/fvte/src/m1/fvte/cli.py",
line 1538, in do_mode
self._vmm.vh_set_runmode(name, desired)
File "/local/home-aux/cduffy/public_git/fvte/src/m1/fvte/vmmanip.py",
line 324, in vh_set_runmode
succp = (0 == virt['connect'].restore(ramfile))
File "/opt/python25/lib/python2.5/site-packages/libvirt.py", line
1224, in restore
if ret == -1: raise libvirtError ('virDomainRestore() failed',
conn=self)
libvirt.libvirtError: internal error Failed to add tap interface
'vnet%d' to bridge 'fvtebr0' : No such device
The actual issue was that the fvte-MIXED-DEFAULT network was not
running, and an appropriate "virsh net-start" allowed the domain to
restore correctly; detecting this condition and providing a clearer
error message would probably be a Good Thing.
15 years, 4 months
[libvirt] While connecting through xen+ssh, virConnectClose doesn't close the connection
by Alexandru Nedelcu
Hi,
I'm trying to create a Perl script with Sys::Virt (perl bindings). I'm also
using Virsh for testing / experimenting, so this is in no way related to my
Perl script (I mentioned it because there might be a sollution that I could
use / implement).
When connecting to libvirtd using a xen+ssh// connection, it connects,
libvirt commands are executing, but on virsh "quit" (or when my script
terminates), the connection is blocked. It bothers me because my script
doesn't terminate.
While running with LIBVIRT_DEBUG=1 I get the following messages:
14:30:51.086: debug : virDomainFree:1893 : domain=0x8791ff8
14:30:51.086: debug : virUnrefDomain:367 : unref domain 0x8791ff8 malcolm 1
14:30:51.086: debug : virReleaseDomain:325 : release domain 0x8791ff8
malcolm
14:30:51.087: debug : virReleaseDomain:337 : unref connection 0x87308a0 3
14:30:51.087: debug : virDomainFree:1893 : domain=0x8791f28
14:30:51.087: debug : virUnrefDomain:367 : unref domain 0x8791f28 Domain-0 1
14:30:51.087: debug : virReleaseDomain:325 : release domain 0x8791f28
Domain-0
14:30:51.087: debug : virReleaseDomain:337 : unref connection 0x87308a0 2
14:30:51.087: debug : virConnectClose:1203 : conn=0x87308a0
14:30:51.087: debug : call:6947 : Doing call 2 (nil)
14:30:51.087: debug : call:7017 : We have the buck 2 0x8796f68 0x8796f68
14:30:51.090: debug : processCallRecvLen:6605 : Got length, now need 28
total (24 more)
14:30:51.090: debug : processCalls:6873 : Giving up the buck 2 0x8796f68
(nil)
14:30:51.090: debug : call:7048 : All done with our call 2 (nil) 0x8796f68
Is this normal?
Thanks,
15 years, 4 months