Commit Graph

3477 Commits

Author SHA1 Message Date
Callum McIntyre
25c7accae5 [CA-207601] License expiry time in general tab is incorrect
The problem here was that TimeSpan.Minutes is always below 60, eg. for 67 minutes it is 7 (with TimeSpan.Hours being 1 then). So our TimeSpan was correct, but if it was between 1 and 2 hours then we would write the minutes in the second hour (which is below 60), ignoring the hour. The fix is to use s.TotalMinutes which for 67 minutes is 67. Hours also had a similar issue, except it would be off by 24 hours for spans between 1 and 2 days.
2016-10-27 16:07:07 +01:00
Konstantina Chremmou
3a2444ea49 CA-226817: Do not allow OVF/OVA import on a host incompatible with the VM's hardware
platform version. Also, preserve between export and import the VM's has_vendor_device settings.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-10-27 16:03:16 +01:00
Mihaela Stoica
8b9985f894 Merge pull request #1246 from GaborApatiNagy/CA-227067
CA-227067: General tab: XenCenter does not show Reboot required when Toolstack restart is required
2016-10-27 15:33:32 +01:00
Konstantina Chremmou
27f31431ca Merge pull request #1242 from mcintyre94/CA-223486
[CA-223486] Storage Link Status validation is wrongly included in Precheck During RPU
2016-10-27 15:26:40 +01:00
Mihaela Stoica
98133addc4 Merge pull request #1241 from mcintyre94/CA-220457
[CA-220457] Add friendly names for new graphs, and filter duplicates
2016-10-27 15:10:16 +01:00
Gabor Apati-Nagy
fa7dbc14ed CA-227067: General tab: XenCenter does not show Reboot required when Toolstack restart required
On the General tab XenCenter shows a list of updates that requires the host to be restarted. This is shown for applied updates for which the required guidance hasn't been done (eg. restartHost or restartAgent after-apply-guidances)

This commit fixes a regression that caused restartToolstack warnings to be not shown in the list of warnings.

The displayed messages are also improved, XenCenter will show Toolstack restart or host restart appropriately and not just restart only as it used to.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-10-27 14:27:20 +01:00
Callum McIntyre
c1e3346bd4 [CA-223486] Only add the licensing check if any hosts need to be checked
This will avoid having an empty group if no host needs checking.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-27 14:01:17 +01:00
Gabor Apati-Nagy
83b1fedaa1 Merge pull request #1244 from MihaelaStoica/master
Update the API bindings
2016-10-27 13:08:08 +01:00
Callum McIntyre
318faeedad [CA-223486] Refactoring and expanding fltering to all pre-Clearwater only checks
We now enumerate pre-Creedence and pre-Clearwater servers once, and check hosts only in those lists for the checks that only apply to those servers.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-27 11:39:01 +01:00
Mihaela Stoica
04bfa61958 Merge pull request #1243 from sriharshak/master
L10N:TRanslations checkpin
2016-10-27 11:03:13 +01:00
Mihaela Stoica
673e280c85 Update the API bindings
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-10-27 11:01:50 +01:00
Callum McIntyre
fd46c9b24e [CA-220457] Move the match Regex objects to be static class objects
Moved from BuildList method to the GraphHelpers class. Since they're only used in this class for this search, and there's similar but broader Regex objects in the Helpers class that are used for parsing, I think it's better to keep them in this class to avoid confusion.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-27 10:41:44 +01:00
Callum McIntyre
299ed430cc [CA-223486] Only add the check for hosts that it applies to, instead of all selected ones.
This avoids unnecessary checks where we are upgrading multiple pools from different versions. Also made the same change for the unrelated pre-Clearwater only checks which had the same issue.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-27 10:18:26 +01:00
sri harsha tagore k
5b482aa43a L10N:TRanslations checkpin 2016-10-27 14:46:55 +05:30
Callum McIntyre
0ba1e5c6df [CA-223486] Storage Link Status validation is included in Precheck During RPU
We now only include the StorageLink check if we have any hosts earlier than Creedence in the RPU.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-26 17:28:11 +01:00
Gabor Apati-Nagy
e36eea4a8e Merge pull request #1240 from MihaelaStoica/CA-220475
CA-220475: [PAR-173] XenCenter fails when updating network MTU with V…
2016-10-26 16:15:43 +01:00
Callum McIntyre
173149b749 [CA-220457] Add friendly names for new graphs, and filter duplicates
We have some new RRDs - read, write, read_latency and write_latency. This adds support for them by adding a friendly name and using it to display them. It also adds some filtering (see GraphHelpers.cs) because for backward compatibility io_throughput_read and io_throughput_write (which differ from read and write only in scale) are still available, but shouldn't be displayed in XC. If the new read or write are available, we filter these old datasources out.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-26 16:03:12 +01:00
Mihaela Stoica
941fd6ce74 CA-220475: [PAR-173] XenCenter fails when updating network MTU with VLAN tag already in use error
- use the PIF of the master when trying to find out if an external network has changed

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-10-26 13:07:47 +01:00
Gabor Apati-Nagy
325f2c2c6e Merge pull request #1238 from xenserver/CAR-2245
CAR-2245: XenCenter changes for CAR-2245 Standarize packaging formats
2016-10-24 17:56:16 +01:00
Gabor Apati-Nagy
3955704ec0 Merge pull request #1236 from mcintyre94/CA-226012
[CA-211267] Add a lightweight polling mechanism to the appliance tasks, to provide an accurate timer
2016-10-24 17:39:53 +01:00
Callum McIntyre
d39a1a7cd3 [CA-211267] Change MAX_ITERATIONS to use SLEEP_TIME, making it a bit clearer and ensuring it's always approx 24h
Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-24 17:33:31 +01:00
Callum McIntyre
f11ed643b6 Add a timeout of approximately 24 hours to the TickUntilCompletion method. 2016-10-24 16:13:44 +01:00
Callum McIntyre
bb78309279 [CA-211267] Remove the passing this around and null action check, change TickUntilCompletion to be non-static 2016-10-24 14:22:35 +01:00
Callum McIntyre
7d7a040335 [CA-211267] Add a null check, use Run() to stop child classes directly calling InitialiseTicker()
TickUntilCompletion() is now a static method and again takes an ApplianceAction parameter. It does a null check on each while iteration to handle the case where another thread nulls the action. Also added Run() method to ApplianceAction which initialises the ticker (now a private method), and let child classes call Run() instead.
2016-10-24 11:59:28 +01:00
Konstantina Chremmou
56d7f52b16 Merge pull request #1235 from MihaelaStoica/master
CP-19257: Icon for Kylin Linux
2016-10-24 10:46:10 +01:00
Callum McIntyre
15b4705942 [CA-211267] Move the sleep time into a const int of the class. Also removed the ApplianceAction parameter from TickUntilCompletion (it behaved like a static method), to make it more similar to TaskPoller.PollToCompletion 2016-10-24 10:06:59 +01:00
Callum McIntyre
de43761039 [CA-211267] Add a lightweight polling mechanism to the appliance tasks, to provide an accurate timer
For other actions we get a ticking timer in the Events view because they use PollToCompletion, which calls their Changed event every 900ms. These actions don't use PollToCompletion, and didn't regularly call their Changed event - so their timer didn't tick regularly. This change adds a lightweight mechanism to call their changed event every 900ms until they complete. This allows the events page timer to tick every second in the same way as it does for other actions.
2016-10-24 09:56:09 +01:00
Konstantina Chremmou
1744ca0415 Merge pull request #1237 from MihaelaStoica/CA-226256
CA-226256: Trying to change boot order toggles boot flags
2016-10-24 08:47:09 +01:00
Mihaela Stoica
93149f75f8 CA-226256: Trying to change boot order toggles boot flags
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-10-21 18:53:17 +01:00
Mihaela Stoica
6eb2c80895 CP-19257: Icon for Kylin Linux
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-10-21 18:46:38 +01:00
Mihaela Stoica
3f01ae39b8 Merge pull request #1234 from GaborApatiNagy/CAR-2245_temp
CP-19218: Fixed: Swallowing exceptions
2016-10-21 13:21:32 +01:00
Mihaela Stoica
4b67140b1d Merge pull request #1224 from kc284/master
Some enhancements on the New Graph Dialog:
2016-10-21 13:16:20 +01:00
Konstantina Chremmou
ac01c0e120 Fixed size changes done by the VS designer.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-10-21 13:11:46 +01:00
Gabor Apati-Nagy
b2a82ae514 CP-19218: Fixed: Swallowing exceptions
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-10-21 13:08:26 +01:00
Mihaela Stoica
2c550c8b60 Merge pull request #1225 from mcintyre94/CA-226012
[CA-226012] Use branding version in the SERVER_TOO_OLD message
2016-10-21 12:37:18 +01:00
Mihaela Stoica
1992e2bc58 Merge pull request #1231 from sriharshak/master
L10N:Bug fixes for "CA-226245" and "CA-226244"
2016-10-21 12:18:01 +01:00
Gabor Apati-Nagy
7393a6d40e Merge pull request #1233 from GaborApatiNagy/CAR-2245_temp
Removed unused field (Release build failed on this)
2016-10-21 11:31:18 +01:00
Gabor Apati-Nagy
55a4957056 Removed unused field (Release build failed on this)
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-10-21 11:29:32 +01:00
mcintyre94
5af266e354 Merge pull request #1232 from GaborApatiNagy/CAR-2245_temp
CA-226261: Install HFX Wizard: Mode page: both radio buttons selected
2016-10-21 11:00:20 +01:00
Callum McIntyre
5cb4cc8ba1 Add the branding for 6.0 to branding.sh and re-branding.sh 2016-10-21 10:58:32 +01:00
sri harsha tagore k
4d65c1cf1e L10N:Bug fixes for "CA-226245" and "CA-226244" 2016-10-21 15:17:21 +05:30
Konstantina Chremmou
5dc6749474 Merge pull request #1227 from MihaelaStoica/master
CA-226112: Disable PVS read caching causes System.NullReferenceException
2016-10-21 10:39:41 +01:00
Gabor Apati-Nagy
92b59a9e44 CA-226261: Install HFX Wizard: Mode page: both radio buttons selected
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-10-21 10:20:25 +01:00
Mihaela Stoica
6bffb803a1 CA-226112: Disable PVS read caching causes System.NullReferenceException
- code simplification

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-10-21 07:10:23 +01:00
Gabor Apati-Nagy
9a15ff36bf Merge pull request #1229 from GaborApatiNagy/CAR-2245_temp
Merge master into CAR-2245
2016-10-20 19:17:23 +01:00
Gabor Apati-Nagy
56af13e14d Merge remote-tracking branch 'github_xenadmin/CAR-2245' into CAR-2245_temp 2016-10-20 19:15:30 +01:00
Gabor Apati-Nagy
668979c29f Merge remote-tracking branch 'github_xenadmin/master' into CAR-2245_temp
Conflicts:
	XenAdmin/TabPages/GeneralTabPage.cs
	XenAdmin/Wizards/PatchingWizard/PatchingWizardModeGuidanceBuilder.cs
	XenAdmin/Wizards/PatchingWizard/PatchingWizard_ModePage.cs
	XenAdmin/Wizards/PatchingWizard/PatchingWizard_SelectServers.cs
	XenAdminTests/WizardTests/PatchingWizard/PatchingWizardModeGuidanceBuilderTests.cs
	XenModel/Network/Cache.cs
	XenModel/XenModel.csproj
2016-10-20 19:12:57 +01:00
Gabor Apati-Nagy
735feec3e4 CP-19218: Using livepatch_status (for newer bindings)
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-10-20 18:12:13 +01:00
Gabor Apati-Nagy
1c7f6ac643 Merge remote-tracking branch 'github_xenadmin/CAR-2245' into CAR-2245_temp 2016-10-20 17:58:20 +01:00
Gabor Apati-Nagy
a4e390183a Merge pull request #1228 from GaborApatiNagy/CAR-2245_temp
CP-19303: XenCenter: Use new livepatching codes
2016-10-20 17:57:52 +01:00