<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SDN Controller Errors]]></title><description><![CDATA[<p dir="auto">I am unable to connect to VMs using VxLAN.<br />
I am unable to reproduce the exact problem, but sometimes this works:</p>
<ol>
<li>Disable the SDN Controller</li>
<li>Delete Configuration (SDN Controller)</li>
<li>Set Override Certs to 'ON'</li>
<li>Save Config</li>
<li>Enable Controller</li>
<li>Start VM</li>
</ol>
<p dir="auto">However, even if the VM is able to connect at start, re-starting the VM without touching/changing any config leads to VM not being able to connect.</p>
<p dir="auto">I get following errors:</p>
<pre><code>2024-04-15T19:39:59.933Z xo:xo-server:sdn-controller:ovsdb-client ERROR No result for select {
   columns: [ '_uuid', 'name' ],
   table: 'Bridge',
   where: [ [ 'external_ids', 'includes', [Array] ] ],
   host: 'xxxxx-1'
</code></pre>
<pre><code>2024-04-15T19:41:51.55XX xo:xo-server:sdn-controller ERROR Error in _objectsUpdated {
error: TypeError: Cannot read properties of undefined (reading 'network')
       at find (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:241:38)
       at Array.find (&lt;anonymous&gt;)
       at getHostTunnelForNetwork (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:241:26)
       at SDNController._addHostToPrivateNetwork (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:1134:20)
       at SDNController._addHostToPrivateNetworks (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:1198:18)
       at SDNController._hostMetricsUpdated (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:994:19)
       at /home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:846:22
       at /home/node/xen-orchestra/node_modules/lodash/lodash.js:4967:15
       at baseForOwn (/home/node/xen-orchestra/node_modules/lodash/lodash.js:3032:24)
       at forOwn (/home/node/xen-orchestra/node_modules/lodash/lodash.js:13082:24)
       at SDNController._objectsUpdated (/home/node/xen-orchestra/packages/xo-server-sdn-controller/src/index.js:838:11)
       at Collection.emit (node:events:529:35)
       at Collection.emit (/home/node/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
       at /home/node/xen-orchestra/packages/xo-collection/src/collection.js:291:16
       at /home/node/xen-orchestra/node_modules/lodash/_createBaseFor.js:17:11
       at baseForOwn (/home/node/xen-orchestra/node_modules/lodash/_baseForOwn.js:13:20)
       at forOwn (/home/node/xen-orchestra/node_modules/lodash/forOwn.js:33:20)
       at /home/node/xen-orchestra/packages/xo-collection/src/collection.js:289:13
       at Xapi._processEvents (file:///home/node/xen-orchestra/packages/xen-api/index.mjs:1066:5)
       at Xapi._watchEvents (file:///home/node/xen-orchestra/packages/xen-api/index.mjs:1226:14),
  object: host_metrics {
     uuid: '9xxx',
     memory_total: 1xxxx83072,
     memory_free: 1xxxx41824,
    live: true,
     last_updated: '20240413T08:39:XX',
     other_config: {}
  }
 }
</code></pre>
]]></description><link>https://xcp-ng.org/forum/topic/8835/sdn-controller-errors</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 23:58:35 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/8835.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Apr 2024 19:57:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SDN Controller Errors on Thu, 18 Apr 2024 07:29:45 GMT]]></title><description><![CDATA[<p dir="auto">@gb-123 AFAIK the host doesn't call XO, if you shut XO off, the private network would continue to work but its state wouldn't change.<br />
It means if you restart an host etc the connection to this host would be lost.</p>
<p dir="auto">The logs depends on how your installed XO or XOA etc so you might want to go through our doc!</p>
<p dir="auto">Cheers</p>
]]></description><link>https://xcp-ng.org/forum/post/75781</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75781</guid><dc:creator><![CDATA[BenjiReis]]></dc:creator><pubDate>Thu, 18 Apr 2024 07:29:45 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Wed, 17 Apr 2024 15:49:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a> said in <a href="/forum/post/75697">SDN Controller Errors</a>:</p>
<blockquote>
<p dir="auto">@gb-123 The tunnel are numbered by order of creation by XAPI, you can't change them.</p>
</blockquote>
<p dir="auto">Bug Report: At the time of adding a host to <em>existing</em> GRE/VxLANs in the network, the XAPI takes into account the Alphabetical name while creating the tunnel numbers. Specific Eg.:</p>
<ol>
<li>Add 2 Hosts to a pool.</li>
<li>Create VxLAN called "VxLAN" -&gt; This will be created as tunnel0</li>
<li>Create GRE called "GRE" -&gt; This will be created as tunnel1 (since tunnel0 already exists)</li>
<li>Add <em>new</em> Host.</li>
</ol>
<p dir="auto">Error : New Host will have GRE as tunnel0 and VxLAN as tunnel1</p>
<p dir="auto">I don't know if the above happened to me as a one-time case scenario or there is a bug, but worth a check.</p>
<blockquote>
<p dir="auto">You should take a look a look at XO's logs to see if you can find something that might trigger the SDN controller.</p>
<p dir="auto">Does the host added frequently has another weird behavior?</p>
</blockquote>
<p dir="auto">Can you let me know the file I should see the log or should I look for <code>journalctl</code> ?<br />
The weird behavior is that after several restarts, the VM gets connected and then after restart looses connection again. But I noticed whenever a VM is started on a host, the Host gets added to the SDN as per the logs above.</p>
<p dir="auto">Just a last question which I need to further diagnose this-<br />
Does the Host ever call on XO  or is it always XO that calls on the Host (Server-Client)?<br />
Or do they use WebSockets connection (so that the host does not need to call XO) ?</p>
<p dir="auto">What would happen if I turn off XO after creating a SDN network ?</p>
]]></description><link>https://xcp-ng.org/forum/post/75734</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75734</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Wed, 17 Apr 2024 15:49:30 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Wed, 17 Apr 2024 10:39:34 GMT]]></title><description><![CDATA[<p dir="auto">@gb-123 The tunnel are numbered by order of creation by XAPI, you can't change them.</p>
<p dir="auto">I don't XCP-ng 8.3 has an issue since we use it internally and the SDN is working fine on our side.<br />
I think some events are triggering the SDN controller to add the host over and over and during the adding of the host the connection might be perturbated. You should take a look a look at XO's logs to see if you can find something that might trigger the SDN controller.</p>
<p dir="auto">Does the host added frequently has another weird behavior?</p>
]]></description><link>https://xcp-ng.org/forum/post/75697</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75697</guid><dc:creator><![CDATA[BenjiReis]]></dc:creator><pubDate>Wed, 17 Apr 2024 10:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 18:48:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
<p dir="auto">Update 4 :<br />
The GRE connection works, but us spotty at times. Sometimes, the VM doesn't connect, but if I restart the VM several times, it starts to connect. This is when I have not changed any setting between starts.</p>
<p dir="auto">(From what I remember, it was working perfectly in 8.2.1. Do you think this is a problem with 8.3 beta ? )</p>
]]></description><link>https://xcp-ng.org/forum/post/75666</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75666</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 18:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 14:42:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
<p dir="auto">Update 3:</p>
<p dir="auto">I managed to sync the tunnels by deleting the network and then recreating all networks one by one. However, I think the code allots tunnel numbers as per alphabetical name sorting rather than taking it from the pool.</p>
<p dir="auto">(VxLan - not working<br />
GRE - working)</p>
]]></description><link>https://xcp-ng.org/forum/post/75638</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75638</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 14:42:54 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 11:53:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
<p dir="auto">Update 2:</p>
<p dir="auto">I added another host, in which the tunnel for GRE is showing as tunnel0 and for VxLAN is showing as tunnel1. However, in the pool, tunnel0 is VxLAN and tunnel1 is GRE.</p>
<p dir="auto">So now GRE has also stopped working on the new Host.</p>
<p dir="auto">Any way I can change the tunnel numbers manually ?</p>
<p dir="auto">I think the code allots tunnel0 and tunnel1 as per name of the connection in the first time.</p>
]]></description><link>https://xcp-ng.org/forum/post/75628</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75628</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 11:53:38 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 10:38:10 GMT]]></title><description><![CDATA[<p dir="auto">GRE Encrypted Network Seems to work fine.</p>
<p dir="auto">VxLAN still not connecting</p>
]]></description><link>https://xcp-ng.org/forum/post/75621</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75621</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 10:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 09:52:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
<blockquote>
<p dir="auto">is there another SDN controller connected to your pools? (not necessarily an XO SDN controller) that would override the certificates of XO?</p>
</blockquote>
<p dir="auto">None. I have just done a clean install of Xcp-NG 8.3 beta 2</p>
<blockquote>
<p dir="auto">Are there any XAPI error (in /var/log/xensource.log) when you restart your VM?</p>
</blockquote>
<p dir="auto">I just ran <code>cat /var/log/xensource.log | grep error</code> and got the following :</p>
<pre><code>xapi: [error||376 |xapi events D:exxcfeaxxbxx|xenops] events_from_xapi: missing from the cache: [ 1xx05x9-x65x-xxxxxxx]
</code></pre>
<p dir="auto">Are the certs copied to the xcp-ng hosts in a pool ?<br />
Is there way to delete all SDN certificates from hosts so that new ones are copied automatically ?</p>
<p dir="auto">Update :<br />
I don't think certificates are at fault. Checked <code>/etc/stunnel/certs</code> and the certificates are same in all hosts</p>
<p dir="auto">New Error while re-creating VxLAN (this time non encrypted)</p>
<pre><code>xo:xo-server:sdn-controller:ovsdb-client ERROR No result for select {
columns: [ 'name', 'options' ],
table: 'Interface',
where: [ [ '_uuid', '==', [Array] ] ],
host: 'xxxxx-2'
}
</code></pre>
<p dir="auto">I'll try the GRE networks now</p>
]]></description><link>https://xcp-ng.org/forum/post/75612</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75612</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 09:52:15 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 07:59:46 GMT]]></title><description><![CDATA[<p dir="auto">@gb-123 That's weird</p>
<p dir="auto">is there another SDN controller connected to your pools? (not necessarily an XO SDN controller) that would override the certificates of XO?</p>
<p dir="auto">Are there any XAPI error (in <code>/var/log/xensource.log</code>) when you restart your VM?</p>
]]></description><link>https://xcp-ng.org/forum/post/75611</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75611</guid><dc:creator><![CDATA[BenjiReis]]></dc:creator><pubDate>Tue, 16 Apr 2024 07:59:46 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Tue, 16 Apr 2024 04:29:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
<p dir="auto">I have also noticed that the same host gets 'added' after a while (restarts of VMs on that Host)</p>
<pre><code>2024-04-16T04:23:54.252Z xo:xo-server:sdn-controller:private-network INFO Host added {
privateNetwork: '',
network: 'VxLAN',
host: 'xxxx-2',
pool: 'XXXX'
}
2024-04-16T04:24:33.462Z xo:xo-server:sdn-controller:private-network INFO duplicates of the previous log were hidden { nDuplicates: 2 }
2024-04-16T04:24:39.152Z xo:xo-server:sdn-controller:private-network INFO Host added {
privateNetwork: 'xxx-xxx-xxx-xxx-xxx',
network: 'VxLAN',
host: 'xxxx-2',
pool: 'XXXX'
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/75605</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75605</guid><dc:creator><![CDATA[gb.123]]></dc:creator><pubDate>Tue, 16 Apr 2024 04:29:45 GMT</pubDate></item><item><title><![CDATA[Reply to SDN Controller Errors on Mon, 15 Apr 2024 20:40:44 GMT]]></title><description><![CDATA[<p dir="auto">Question for <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/benjireis" aria-label="Profile: BenjiReis">@<bdi>BenjiReis</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/75593</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75593</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 15 Apr 2024 20:40:44 GMT</pubDate></item></channel></rss>