Commit Graph

7160 Commits

Author SHA1 Message Date
Alexander Schulz
980788a0ab remove jenkinsfile; change maintainers 2023-12-31 16:05:17 +01:00
Alexander Schulz
a5946b281b github scripts removed 2023-12-31 14:51:58 +01:00
Alexander Schulz
51b784fb2c Maintainers Message removed; License file updated 2023-12-30 19:59:25 +01:00
Alexander Schulz
5500de0757 Working build with latest changes from https://github.com/xenserver/xenadmin December 2023 2023-12-30 19:56:51 +01:00
Alexander Schulz
1ec327dc06 Mergeconflicts resolved, it builds again! 2023-12-30 18:58:02 +01:00
Alexander Schulz
cd477a4e18 Merge branch 'master' of https://github.com/xenserver/xenadmin into development
# Conflicts:
#	Branding/Branding.resx
#	Branding/HomePage.mht
#	Branding/HomePage.zh-CN.mht
#	Branding/Images/000_XenCenterAlerts_h32bit_24.png
#	Branding/Images/DlgBmp.bmp
#	Branding/Images/XS.png
#	Branding/Images/about_box_graphic_423x79.png
#	Branding/Images/alerts_32.png
#	Branding/Images/splash.bmp
#	Branding/Images/upsell_16.png
#	Branding/Images/wizard_background.png
#	CFUValidator/CFUValidator.csproj
#	Jenkinsfile
#	LICENSE
#	MAINTAINERS
#	README.md
#	WixInstaller/XenCenter.wxs
#	WixInstaller/branding.wxi
#	WixInstaller/codepagechange.vbs
#	WixInstaller/en-us.wxl
#	WixInstaller/ja-jp.wxl
#	WixInstaller/wix_src.patch
#	WixInstaller/zh-cn.wxl
#	XenAdmin.sln
#	XenAdmin/Commands/Controls/ContextMenuBuilder.cs
#	XenAdmin/Commands/Controls/MigrateVMToolStripMenuItem.cs
#	XenAdmin/Commands/Controls/VMLifeCycleToolStripMenuItem.cs
#	XenAdmin/Commands/CopyTemplateCommand.cs
#	XenAdmin/Commands/CopyVMCommand.cs
#	XenAdmin/Commands/CrossPoolCopyVMCommand.cs
#	XenAdmin/Commands/CrossPoolMigrateCommand.cs
#	XenAdmin/Commands/CrossPoolMoveVMCommand.cs
#	XenAdmin/Commands/DragDropCrossPoolMoveHaltedVMCommand.cs
#	XenAdmin/Commands/DragDropMigrateVMCommand.cs
#	XenAdmin/Commands/MoveVMCommand.cs
#	XenAdmin/ConsoleView/VNCTabView.cs
#	XenAdmin/Core/Updates.cs
#	XenAdmin/Dialogs/AboutDialog.resx
#	XenAdmin/Dialogs/LegalNoticesDialog.cs
#	XenAdmin/Dialogs/WarningDialogs/LicenseWarningDialog.ja.resx
#	XenAdmin/Dialogs/WarningDialogs/LicenseWarningDialog.resx
#	XenAdmin/Dialogs/WarningDialogs/LicenseWarningDialog.zh-CN.resx
#	XenAdmin/Help/HelpManager.cs
#	XenAdmin/Images.cs
#	XenAdmin/MainWindow.Designer.cs
#	XenAdmin/MainWindow.cs
#	XenAdmin/MainWindow.ja.resx
#	XenAdmin/MainWindow.resx
#	XenAdmin/MainWindow.zh-CN.resx
#	XenAdmin/Properties/Resources.Designer.cs
#	XenAdmin/Properties/Settings.Designer.cs
#	XenAdmin/Properties/Settings.settings
#	XenAdmin/SettingsPanels/BootOptionsEditPage.cs
#	XenAdmin/TabPages/GeneralTabPage.Designer.cs
#	XenAdmin/TabPages/GeneralTabPage.cs
#	XenAdmin/TabPages/GeneralTabPage.resx
#	XenAdmin/VNC/VNCException.cs
#	XenAdmin/Wizards/CrossPoolMigrateWizard/CrossPoolMigrateDestinationPage.cs
#	XenAdmin/Wizards/CrossPoolMigrateWizard/CrossPoolMigrateWizard.cs
#	XenAdmin/Wizards/CrossPoolMigrateWizard/Filters/CrossPoolMigrateCanMigrateFilter.cs
#	XenAdmin/Wizards/NewNetworkWizard_Pages/NetWTypeSelect.cs
#	XenAdmin/Wizards/NewSRWizard.cs
#	XenAdmin/Wizards/NewSRWizard_Pages/Frontends/LVMoISCSI.cs
#	XenAdmin/XenAdmin.csproj
#	XenAdmin/app.config
#	XenAdminTests/ArchiveTests/ArchiveFactoryTests.cs
#	XenAdminTests/ArchiveTests/ArchiveIteratorTests.cs
#	XenAdminTests/ArchiveTests/ArchiveWriterTests.cs
#	XenAdminTests/ArchiveTests/ThirdPartyArchiveWriterTests.cs
#	XenAdminTests/CompressionTests/CompressionFactoryTests.cs
#	XenAdminTests/CompressionTests/ThirdPartyCompressionStreamTests.cs
#	XenAdminTests/HealthCheckTests/RequestUploadTaskTests.cs
#	XenAdminTests/UnitTests/CPUMaskingTest.cs
#	XenAdminTests/UnitTests/TimeUtilTests.cs
#	XenAdminTests/UnitTests/WlbTests/WlbPoolConfigurationTests.cs
#	XenAdminTests/UnitTests/WlbTests/WlbScheduledTaskTests.cs
#	XenAdminTests/UnitTests/WlbTests/WlbScheduledTasksTests.cs
#	XenAdminTests/XenAdminTests.csproj
#	XenModel/Actions/HealthCheck/GetHealthCheckAnalysisResultAction.cs
#	XenModel/Actions/HealthCheck/HealthCheckAuthenticationAction.cs
#	XenModel/Actions/HealthCheck/UploadServerStatusReportAction.cs
#	XenModel/Actions/HealthCheck/XenServerHealthCheckUpload.cs
#	XenModel/Actions/VM/ImportVmAction.cs
#	XenModel/Actions/VM/VMCrossPoolMigrateAction.cs
#	XenModel/Actions/VM/VMPauseAction.cs
#	XenModel/FriendlyNames.Designer.cs
#	XenModel/FriendlyNames.ja.resx
#	XenModel/FriendlyNames.resx
#	XenModel/FriendlyNames.zh-CN.resx
#	XenModel/HealthCheckSettings.cs
#	XenModel/InvisibleMessages.Designer.cs
#	XenModel/InvisibleMessages.ja.resx
#	XenModel/InvisibleMessages.resx
#	XenModel/InvisibleMessages.zh-CN.resx
#	XenModel/Messages.Designer.cs
#	XenModel/Messages.ja.resx
#	XenModel/Messages.resx
#	XenModel/Messages.zh-CN.resx
#	XenModel/SshConsole.cs
#	XenModel/Utils/Helpers.cs
#	XenModel/XenAPI-Extensions/SR.cs
#	XenModel/XenAPI/ApiVersion.cs
#	XenModel/XenModel.csproj
#	XenServerHealthCheck/Registry.cs
#	scripts/check_copyright.ps1
#	scripts/check_i18n.ps1
#	scripts/check_spelling.ps1
#	scripts/deps-map.json
#	scripts/dictionary.txt
#	scripts/download_hotfixes.ps1
#	scripts/download_packages.ps1
#	scripts/hotfix-map.json
#	splash/util.h
#	xe/Xe.csproj
#	xe/app.manifest
2023-12-30 16:43:15 +01:00
Konstantina Chremmou
b210cd2c2d Added archiving note.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-12-13 15:07:53 +00:00
Konstantina Chremmou
57f31bfe53 CP-46828: Added button to open the status report location when completed.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-12-04 10:34:53 +00:00
Konstantina Chremmou
5c858be4af
Merge pull request #3259 from danilo-delbusso/bug/launch-xencenter_CA-385151
CA-385151 & CP-45516: Fix skipped patch + Bump pipeline to v4.12
2023-11-17 10:24:48 +00:00
Danilo Del Busso
903bc9149d
CP-45516: Bump pipeline to v4.12
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
2023-11-16 14:04:40 +00:00
Danilo Del Busso
4996f567bc
CA-385151: Fix skipped MsiRMFilesInUse patch
The patch was skipped, and the "Launch XenCenter" button did not show anymore. This was because the custom property `XS_WixUIRMPressedOk` is defined within the patch.

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
2023-11-16 13:58:46 +00:00
Konstantina Chremmou
de27c1289d
Merge pull request #3248 from kc284/dvdisolist
CP-43651, one inconsistency, layout tweaks, and minor refactoring on MultipleDvdIsoList.
2023-11-16 12:06:52 +00:00
Konstantina Chremmou
368aa63a0f
Merge pull request #3258 from kc284/master
CP-46393: Bumped branding library to v5.4. Small branding issue.
2023-11-16 11:53:48 +00:00
Konstantina Chremmou
01a831f3c4 CP-46393: Bumped branding library to v5.4.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-15 15:57:24 +00:00
Konstantina Chremmou
b9cb2d34f1 Removed hardcoded application name.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-15 15:54:56 +00:00
Konstantina Chremmou
22e1973023 Corrected positioning of DVD ISO list control.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-14 17:03:49 +00:00
Konstantina Chremmou
3b773c738f
CA-383483: Rewrote the migration logic to fix regression (#3241)
* Simplified the class name by renaming CrossPoolMigrateCanMigrateFilter to CrossPoolMigrateFilter.
* CA-383483: Rewrote (again) the migration logic because the fix to CA-294370 regressed migration from local to local storage.
Also, minor refactoring to some methods for more efficient calculations.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-14 13:25:34 +00:00
Konstantina Chremmou
f92e988866
Merge pull request #3255 from xenserver/feature/nrpe
Merge branch feature/nrpe to master
2023-11-10 10:54:59 +00:00
Bengang Yuan
eda68f60cf CA-384629: NRPE threshold check label mistake 2023-11-02 09:02:55 +00:00
Bengang Yuan
90bcef37e8 CA-384579: Call previous NRPE plugin xapi to resolve certs permission issue 2023-11-02 02:08:54 +00:00
Konstantina Chremmou
e42f607899 CP-40844: Bumped pipeline version to v4.11.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 12:03:45 +00:00
Bengang Yuan
7a3d17fdb9 CA-384333: Update IPv4 regex and remove redundant codes. 2023-11-01 11:50:35 +00:00
Danilo Del Busso
93da92f1bc
Merge pull request #3250 from xenserver/feature/64-vcpus
Merge full 64 vCPUs support
2023-11-01 11:39:55 +00:00
Konstantina Chremmou
e28aa63aa5 The user could not create DVD from the Console TabPage while the same operation was possible from the VmStorage TabPage.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 10:49:59 +00:00
Konstantina Chremmou
6f1daff1fc Compacted logic that toggles control visibility.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 10:49:59 +00:00
Konstantina Chremmou
85347aa95c CP-43651: Ask for confirmation when the user clicks to create a DVD drive.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 10:49:59 +00:00
Konstantina Chremmou
2e9c144bd9 Corrected sizes.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 10:47:45 +00:00
Konstantina Chremmou
736f338cd2 Added tooltips with the original check names.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 10:47:45 +00:00
Konstantina Chremmou
fcd9b195f6 Minor layout tweaks (margins, padding, alignment).
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 00:29:15 +00:00
Konstantina Chremmou
3be1d02a11 Minor code smells.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-11-01 00:29:15 +00:00
Chris
9a80dc9225
CP-40844: Adds download source action that gets the latest source code in the production stage (#3153)
* CP-40844 adds download source action that gets the latest source code in the production stage.

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 refactors download file actions

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

Adds source url to branding.sh

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP40844 refactors code and implements reviewers comments, aswell as better message handeling

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 Sorts messages

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 removes stray console logging

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 Changes to use FirstOrDefault to avoid null exceptions/errors

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 removes unessessary usings

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 code tidy up

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 Removes erroneous root tag from merge conflict resolution

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

CP-40844 sorts messages

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 fixes misnamed method and adds sourceurl parameter to brandmanager

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 Source url now uses XCUpdates url and just substitues the name of the file

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 Adds source url to xenadmin-build.ps1

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 defines log4net in each class not just inherited

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 removes unused class variable

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 removes unneeded class variable and uses parent property instead. Simplifies messages for source download and client update.

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 reduces public exposure of member variables/properties

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 merges download x file actions into single file.

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 overide ReleaseDownloadedContent in DownloadAndUpdateClientAction to handle disposal of FileStream

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 minor fixes/tidy up

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 defaults the download latest source button to be invisible.

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 if there is no client update detected then we shouldnt show a where to save dialog

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 Directs user to xenserver website to download source if automatic update checks are turned off. Renames message OUT_OF_DATE_WEBSITE to WEBSITE_DOWNLOADS

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 updates source param to sourceUrl in XCUpdates.xml

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 moves strings to Messages and applys source name string to relevant places

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 removes sourceurl from brand manager

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* CP-40844 uses string literal rather than string join

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>

* Some more corrections.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>

---------

Signed-off-by: Chris Lancaster <Christopher.Lancaste1@citrix.com>
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
Co-authored-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-30 13:40:18 +00:00
Konstantina Chremmou
ad8ef2e124
Merge pull request #3227 from kc284/xsi-1500-wlb-resume
CA-383040/XSI-1500: Resume WLB when reverting resolved actions after an update
2023-10-27 15:46:08 +01:00
Danilo Del Busso
82ffd50271 CA-379971: Ensure ParallelAction is not waiting on _lock when no actions are running
There is a chance that all actions have completed before we hit the `Wait` call, we need to make sure we don't hit a deadlock.

This can happen if for instance there is only one action, and it is a "dummy" action, such as the one used in the EUA check.

Also I have removed the compound assignment for the `volatile _completedActionsCount` since Visual Studio was flagging it as a "suspicious usage of a volatile variable". I personally don't think it's a problem but better safe than sorry.

Contains minor whitespace fixes, too

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
2023-10-26 11:17:03 +01:00
Danilo Del Busso
14a3539f28 CA-384191: Fix missing values for min VM restrictions
- Min and max should also include the defaults when looking across all templates
- Ensure exception isn't hit unnecessarily when parsing restriction value for VMs
- Allow use of `GetRestrictionValueFromMatchingTemplate` with template objects
- Parallelize `GetRestrictionValueAcrossTemplates` call

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
2023-10-26 00:59:06 +01:00
Konstantina Chremmou
fb9383df11 CP-45226: Added friendly name for new datasource 'hostload'.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:43:01 +01:00
Konstantina Chremmou
f7c9d43a64 Fixed column resizing on the Graph dialog.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:43:01 +01:00
Konstantina Chremmou
0f4d105518
Merge pull request #3223 from kc284/master
Random corrections and enhancements
2023-10-25 11:06:53 +01:00
Konstantina Chremmou
4dbfaff5bc Show WlbUpsell page for unlicensed pools.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:02:30 +01:00
Konstantina Chremmou
fce47b8152 Fixed duplicate message on the UpsellDialog.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:02:30 +01:00
Konstantina Chremmou
7b41c3a82c Hide from designer TabPage properties that are not meaningful at design time. Minor tidy up.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:02:30 +01:00
Konstantina Chremmou
9b2204d3df Removed snapshot page from the designer. Add it to the main window like the other pages.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:02:30 +01:00
Konstantina Chremmou
56628d4b83 Converted the StatusStrip of the MainWindow to a clickthrough StatusStrip.
So the user can click it immediately without having to bring the window into focus first.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-25 11:02:29 +01:00
Bengang Yuan
28cdeadd94 Resolve NRPE code review comments from Tina. 2023-10-24 15:47:40 +01:00
Bengang Yuan
2ad5fd8792 Resolve NRPE code review comments from Tina. 2023-10-24 15:47:40 +01:00
Bengang Yuan
7dfe809c66 Check NRPE plugin before showing properties dialog. 2023-10-24 15:47:40 +01:00
Bengang Yuan
aac73932ce All the configurations of host in a pool are the same. Fix some review comments. 2023-10-24 15:47:40 +01:00
Bengang Yuan
5815dfa086 For pool, add a CheckBox for decide if to sync the NRPE configuration to all hosts. 2023-10-24 15:47:40 +01:00
Bengang Yuan
a720105fb9 Rename private instance class fields name, add parameters changing check, etc. 2023-10-24 15:47:40 +01:00
Konstantina Chremmou
794e1f3fbd Some corrections in wording, code style, C# usage, and null checks.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-24 15:47:40 +01:00
Konstantina Chremmou
a20ea5ab6e Moved NRPE related files to the same folder.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-10-24 15:47:40 +01:00