Mihaela Stoica
ec5dcf9751
Update API bindings
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-03-19 14:08:32 +00:00
Mihaela Stoica
f7b27ec222
Merge pull request #1994 from xenserver/REQ-477
...
Merge REQ-477 into master
2018-03-19 13:23:19 +00:00
Cheng Zhang
76365e9dec
CA-286093: Refine VIF hotplug error message
...
VIF hotplug actully needs a shutdown and restart to take effect. Change the error message.
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2018-03-16 14:03:24 +00:00
jishengx
0c13d8786d
CA-274082: Check status of SR uploaded updates during update installa… ( #1937 )
...
* CA-274082: Check status of SR uploaded updates during update installation
* fix review comments
Signed-off-by: Jisheng Xing <jisheng.xing@citrix.com>
2018-03-14 12:19:14 +00:00
Mihaela Stoica
0184470ea3
Merge pull request #1968 from kc284/master
...
CA-284125: Automated updates should prioritise a pending host restart to a mandatory xapi restart
2018-03-08 15:54:39 +00:00
Konstantina Chremmou
34ec571fa1
Return null if the string to deserialize to a XenRef<T> is null. This can
...
happen for calls returning a XenRef<T> when the server is using the JsonRpc
v1.0 and we have an error, in which case the result is null. Similarly, return
DateTime.MinValue when the datetime string is null (or in general unparasable).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-08 10:17:12 +00:00
Mihaela Stoica
929ae78942
CA-284876: Process the VM parameter of the VM_FAILED_SHUTDOWN_ACKNOWLEDGMENT error on host evacuation
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-03-07 11:28:57 +00:00
Konstantina Chremmou
4b6e826ed3
CA-284125: Prioritise a pending host restart over a mandatory toolstack restart.
...
For this purpose, the evacuate-reboot-bringbabiesback triplet was replaced by a
new RestartHostPlanAction, which allows fallback to toolstack restart if live
patching has succeeded. Also, created new abstract class HostPlanAction to
reduce code duplication.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-06 15:12:04 +00:00
Konstantina Chremmou
c5b0af533e
Removed methods GetHostBootTime and GetHostAgentTime because they duplicated logic
...
in the Host extensions. Moved method TryResolveWithTimeout to the Connection class
where it is more relevant. Removed wrapper methods WaitForReboot and WaitForAgent
as they were not particularly useful.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-06 14:17:16 +00:00
Konstantina Chremmou
71e554cc39
Removed duplicate logic calculating VM groups from the WizardPages and moved it the Host class as extension methods.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-06 14:17:15 +00:00
Mihaela Stoica
be3a7b54d6
Add extra parameters to Cluster.pool_create
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-02-28 16:42:30 +00:00
Konstantina Chremmou
5529626ac5
CA-284234: Used patched version of Json.NET.
...
Also, fixed deserialization for errors on servers using JsonRpc v1.0.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-28 11:05:29 +00:00
Mihaela Stoica
ff05fb698c
Merge remote-tracking branch 'upstream/master' into REQ-477
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
# Conflicts:
# XenModel/XenAPI/Auth.cs
# XenModel/XenAPI/Blob.cs
# XenModel/XenAPI/Bond.cs
# XenModel/XenAPI/Console.cs
# XenModel/XenAPI/Converters.cs
# XenModel/XenAPI/Crashdump.cs
# XenModel/XenAPI/DR_task.cs
# XenModel/XenAPI/Event.cs
# XenModel/XenAPI/Feature.cs
# XenModel/XenAPI/GPU_group.cs
# XenModel/XenAPI/Host.cs
# XenModel/XenAPI/Host_cpu.cs
# XenModel/XenAPI/Host_crashdump.cs
# XenModel/XenAPI/Host_metrics.cs
# XenModel/XenAPI/Host_patch.cs
# XenModel/XenAPI/JsonRpcClient.cs
# XenModel/XenAPI/LVHD.cs
# XenModel/XenAPI/Maps.cs
# XenModel/XenAPI/Message.cs
# XenModel/XenAPI/Network.cs
# XenModel/XenAPI/PBD.cs
# XenModel/XenAPI/PCI.cs
# XenModel/XenAPI/PGPU.cs
# XenModel/XenAPI/PIF.cs
# XenModel/XenAPI/PIF_metrics.cs
# XenModel/XenAPI/PUSB.cs
# XenModel/XenAPI/PVS_cache_storage.cs
# XenModel/XenAPI/PVS_proxy.cs
# XenModel/XenAPI/PVS_server.cs
# XenModel/XenAPI/PVS_site.cs
# XenModel/XenAPI/Pool.cs
# XenModel/XenAPI/Pool_patch.cs
# XenModel/XenAPI/Pool_update.cs
# XenModel/XenAPI/Role.cs
# XenModel/XenAPI/SDN_controller.cs
# XenModel/XenAPI/SM.cs
# XenModel/XenAPI/SR.cs
# XenModel/XenAPI/Secret.cs
# XenModel/XenAPI/Session.cs
# XenModel/XenAPI/Subject.cs
# XenModel/XenAPI/Task.cs
# XenModel/XenAPI/Tunnel.cs
# XenModel/XenAPI/USB_group.cs
# XenModel/XenAPI/User.cs
# XenModel/XenAPI/VBD.cs
# XenModel/XenAPI/VBD_metrics.cs
# XenModel/XenAPI/VDI.cs
# XenModel/XenAPI/VGPU.cs
# XenModel/XenAPI/VGPU_type.cs
# XenModel/XenAPI/VIF.cs
# XenModel/XenAPI/VIF_metrics.cs
# XenModel/XenAPI/VLAN.cs
# XenModel/XenAPI/VM.cs
# XenModel/XenAPI/VMPP.cs
# XenModel/XenAPI/VMSS.cs
# XenModel/XenAPI/VM_appliance.cs
# XenModel/XenAPI/VM_guest_metrics.cs
# XenModel/XenAPI/VM_metrics.cs
# XenModel/XenAPI/VTPM.cs
# XenModel/XenAPI/VUSB.cs
# XenModel/XenModel.csproj
2018-02-27 17:42:18 +00:00
Mihaela Stoica
9a8b55b9fd
Update API bindings from the feature branch
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-02-27 16:42:29 +00:00
Konstantina Chremmou
45f35ef099
CA-284233: New bindings to include a converter to serialize null values in string-string maps to empty strings.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-27 15:39:45 +00:00
Konstantina Chremmou
8207a25fc8
Reverted to use of the Marshalling methods, as the Hashtable values can often be null.
...
Also fixed regression within the Masrshalling methods to account for null
values, however I did not reinstate the checks for keys, because Hashtable
returns null if the key does not exist instead of throwing an exception.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-26 15:48:29 +00:00
serencorbett1
fccfc6b1ae
CA-283656: Display Multipathing Capabilities of GFS2 SRs ( #1949 )
...
* CA-283656: Linked SM and SR
* CA-283656: Checks new SR_MULTIPATHABLE capability
* CA-283656: Changed properties into methods
* CA-283656: Change key
Signed-off-by: serenc <seren.corbett@citrix.com>
2018-02-26 13:25:39 +00:00
Konstantina Chremmou
1d54c96d4d
CA-283697 part4: New set of API bindings which now expose:
...
- a new method to update an object from a Hashtable setting only the fields
contained in the Hashtable.
- an improvement on the class constructor from Hashtable whereby the fields
are initialised and only the ones contained in the Hashtable are set (this
is also an improvement towards CA-97777).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-22 13:31:02 +00:00
Konstantina Chremmou
63c6b817d5
CA-40854: The Session's uuid is in reality its opaque_ref. Use the opaque_ref so
...
it's obvious what it is. The Session's uuid will be deprecated from the API bindings.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-21 14:08:01 +00:00
Konstantina Chremmou
20099263a8
Added basic unit tests for the JsonConverters.
...
In theory, these should be added on the SDK side, but at the moment it is
easier to add them in XenCenter because the SDK does not have infrastructure
for NUnit tests yet.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-14 11:10:03 +00:00
Konstantina Chremmou
07e4249766
Updated bindings, including fix for CA-283613: missing JsonConverters for Map(Ref,Int) and Map(Ref,Map(String,String)).
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-14 11:03:48 +00:00
serenc
a2b3dd45b9
CA-282695: Plug PBD after re-enabling clustering
...
Signed-off-by: serenc <seren.corbett@citrix.com>
2018-02-09 10:39:12 +00:00
serenc
c99c4a0f2e
CA-280299: Rescan SRs when choosing SR for copying VM
2018-02-05 10:53:46 +00:00
Konstantina Chremmou
123db499f5
Merge branch 'master' into REQ-420
2018-01-25 13:38:58 +00:00
Konstantina Chremmou
4731d6fb6f
Corrections as per code review.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Konstantina Chremmou
9d2bb0b1ed
CA-275566: Do not switch to the JsonRpc backend when using a simulator URL.
...
Restored API version 2.10 in test database. Private member Session._uuid
has been removed from the SDK.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Konstantina Chremmou
d83b91a987
Removed unnecessary XenConnection constructor which was there only to be used by the tests; used an object initialiser instead.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Konstantina Chremmou
c294e6514a
Moved method DbProxyIsSimulatorUrl from the dump-all file Helpers.cs to DbProxy.cs where it's more relevant.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Konstantina Chremmou
3fd3a42f71
Removed method NewSession; it's used once and only to set the credentials to their existing values thus adding unnecessary complexity.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Konstantina Chremmou
f8e39994a8
Stop throwing JsonParse exceptions in release mode.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Mihaela Stoica
7e648810b8
CP-26618: Log more at INFO level when downloading an update ( #1919 )
...
* CP-26618: Log more at INFO level when downloading an update
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-19 13:34:20 +00:00
Mihaela Stoica
b9e85f93d5
Merge pull request #1914 from serencorbett1/REQ-477
...
CP-26253: changed "images" to "virtual disks" to avoid confusion
2018-01-18 15:39:51 +00:00
Mihaela Stoica
5fb9709b8a
Merge master into REQ-477
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
# Conflicts:
# XenModel/FriendlyNames.resx
# XenModel/Messages.resx
# XenModel/XenAPI/ApiVersion.cs
2018-01-15 14:41:40 +00:00
Mihaela Stoica
6cefd4d202
CA-276976: Add a new precheck in the Update Wizard
...
- The new "server selection" precheck is added for Inverness or greater pools and checks if all the servers in the pool are selected (if update not already applied) when applying an update that has the "enforce-homogeneity" flag set to true
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-12 14:34:50 +00:00
serenc
92a809e433
CP-26253: changed "images" to "virtual disks" to avoid confusion
...
Signed-off-by: serenc <seren.corbett@citrix.com>
2018-01-12 14:05:01 +00:00
Mihaela Stoica
27979638df
CA-276732: Replaced "Buy XenServer online" link
...
Also replaced another broken link, on GuiOldAlert
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-12 12:11:46 +00:00
Mihaela Stoica
01327288f7
CA-250148: Replaced XenCenter plugins link
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-12 12:11:46 +00:00
Mihaela Stoica
f62cc5c521
CA-279502: Added check for the server version before calling VM.get_is_default_template
...
This fixes the error thrown when importing templates with XenCenter 7.3 on servers earlier than 7.2
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-12 11:01:09 +00:00
Mihaela Stoica
018dfb8e79
Rename resource string which causes Messages.resx to become unsorted
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-11 12:45:37 +00:00
serencorbett1
16d0c1cc77
CP-26253: Added changes to UI based on feedback ( #1906 )
...
* CP-26253: Added changes to UI based on feedback
Signed-off-by: serenc <seren.corbett@citrix.com>
* CP-26253: Corrected spelling mistake
Signed-off-by: serenc <seren.corbett@citrix.com>
* CP-26253: Changed "Thin Provisioning (GFS2) SRs" to "thinly provisioned"
Signed-off-by: serenc <seren.corbett@citrix.com>
2018-01-10 15:13:55 +00:00
Konstantina Chremmou
43079c6e17
CP-26469: Added version 2.9 to the API bindings.
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-10 12:57:12 +00:00
Mihaela Stoica
13a8b26fc4
Merge release/jura/master into REQ-637
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
# Conflicts:
# XenModel/Utils/Helpers.cs
2017-12-19 13:12:39 +00:00
Mihaela Stoica
4d55a1c08b
Merge pull request #1899 from krizex/private/yangqi/CA-178651
...
CA-178651 FCoE NIC is not prevented from unplugging
2017-12-19 11:00:02 +00:00
Yang Qian
61b73aa9a8
CA-178651 FCoE NIC is not prevented from unplugging
...
Add api errors
Signed-off-by: Yang Qian <yang.qian@citrix.com>
2017-12-19 17:46:35 +08:00
Mihaela Stoica
59bcf97133
Updated bindings with new API version 2.10. ( #1902 )
...
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-12-18 13:41:37 +00:00
Mihaela Stoica
ffa42c086b
CP-26290: Add new edition
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2017-12-18 13:22:17 +00:00
Mihaela Stoica
8ab61cf12e
Added JuraOrGreater function
...
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2017-12-18 11:39:58 +00:00
Michael
035f4c234e
CA-272797: Limit user to select 8 SRs at most in DR Configure dialog. ( #1896 )
...
* CA-272797: Limit user to select 8 SRs at most in DR Configure dialog.
Signed-off-by: Michael Zhao <michael.zhao@citrix.com>
2017-12-18 09:55:45 +00:00
Gabor Apati-Nagy
00040b5761
Merge pull request #1897 from MihaelaStoica/REQ-477
...
CP-26131: IP Address Configuration when clustering is enabled
2017-12-15 11:11:40 +00:00
serencorbett1
89ae8534fa
CP-26193: Disable remove IP address button when clustering enabled on… ( #1898 )
...
* CP-26193: Disable remove IP address button when clustering enabled on network
* CP-25967: Combine two if statements
* CP-25967: Changed ClusteringEnabled boolean method
* CP-25967: Removed var
Signed-off-by: serenc <seren.corbett@citrix.com>
2017-12-15 11:09:26 +00:00