Commit 8ff139e
authored
* xen-api: use https://mvnrepository.com/artifact/com.citrix.hypervisor/xen-api
* xen: set Network.managed to true before creating the network
This should fix
```
2025-04-07 12:08:20,472 WARN [c.c.h.x.r.w.x.CitrixStartCommandWrapper] (DirectAgent-36:[ctx-a59ea070]) (logid:97c16f84) Catch Exception: class com.xensource.xenapi.Types$NetworkUnmanaged due to The network is not managed by xapi. The network is not managed by xapi.
at com.xensource.xenapi.Types.checkResponse(Types.java:2514)
at com.xensource.xenapi.Connection.dispatch(Connection.java:266)
at com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:458)
at com.xensource.xenapi.VLAN.create(VLAN.java:363)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.enableVlanNetwork(CitrixResourceBase.java:1736)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:2885)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1280)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStartCommandWrapper.execute(CitrixStartCommandWrapper.java:106)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStartCommandWrapper.execute(CitrixStartCommandWrapper.java:56)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1791)
```
refer to CA-387821: SDK Tests/JavaSDK failed. Set Network.managed to true before creating the network.
xenserver/xenserver-samples@1684db5
* xenserver: test code to fix duplicated name in XMLRPC response
CustomerMapParser is copied from org.apache.xmlrpc.parser.MapParser:3.1.3
just removed
```
if (this.map.containsKey(this.nameObject)) {
throw new SAXParseException("Duplicate name: " + this.nameObject, this.getDocumentLocator());
}
```
ConnectionNew is copied from com.xensource.xenapi.Connection:8.1.0
* xenserver: fix XmlRpcClientException: Failed to parse server's response: Expected struct, got array
1 parent 75c9fff commit 8ff139e
File tree
7 files changed
+346
-8
lines changed- plugins/hypervisors
- ovm
- xenserver
- src/main/java/com
- cloud/hypervisor/xenserver
- discoverer
- resource
- xensource/xenapi
7 files changed
+346
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
| 1702 | + | |
1702 | 1703 | | |
1703 | 1704 | | |
1704 | 1705 | | |
| |||
2004 | 2005 | | |
2005 | 2006 | | |
2006 | 2007 | | |
| 2008 | + | |
2007 | 2009 | | |
2008 | 2010 | | |
2009 | 2011 | | |
| |||
4829 | 4831 | | |
4830 | 4832 | | |
4831 | 4833 | | |
| 4834 | + | |
4832 | 4835 | | |
4833 | 4836 | | |
4834 | 4837 | | |
| |||
5017 | 5020 | | |
5018 | 5021 | | |
5019 | 5022 | | |
| 5023 | + | |
5020 | 5024 | | |
5021 | 5025 | | |
5022 | 5026 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
0 commit comments