Commit Graph

379 Commits

Author SHA1 Message Date
Alexander Schulz
b4bba6b679 remove automatic updates question on startup 2024-01-01 21:08:12 +01:00
Alexander Schulz
a2b0d7f205 Show nightly build in main window title 2024-01-01 20:49:38 +01:00
Alexander Schulz
a49162d9a1 removed xenserver specific code: updates, patches, rolling upgrades, yum repos, help manager 2024-01-01 20:08:28 +01:00
Alexander Schulz
f586cc26ba removed licencing, crashdumpmenu, upsell pages, hidden feature configuration, pvs 2024-01-01 17:34:01 +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
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
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
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
de1120f18b
More fixes including CA-381728, CA-381618, CA-381225 (#3205)
* CA-381728: If no post-update tasks exist, XenCenter should explicitly state so.

Also, livepatches should be shown if other guidance is absent.

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

* Missing placeholders for building locally without applying branding.

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

* Missing help links.

Also removed scripts that are not used any more.

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

* CA-381618: The HA/WLB off check is a pool, not a host check.

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

* CA-381225: Corrected order of running update guidance (also uses input from CA-381718).

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

* UPDATES_URL has been renamed to XC_UPDATES_URL.

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

---------

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-08-21 13:35:49 +01:00
Danilo Del Busso
81bf424013
CA-381500: Remove "(Unlicensed)" for post Nile hosts in MainWindow
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
2023-08-15 09:23:36 +01:00
Konstantina Chremmou
e4012a7bd5
Merge pull request #3194 from xenserver/master
Master->feature/cdn-updates
2023-08-09 14:20:55 +01:00
Konstantina Chremmou
2af72aae25 Separate client updates from lcm server updates so they don't appear on the Notifications tab page.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-08-09 13:54:15 +01:00
Konstantina Chremmou
9e25970850 CP-44368 workaround: do not CFU on connection if the users are less privileged than pool operator.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-08-09 13:53:21 +01:00
Konstantina Chremmou
9a006f3fbf CA-380723: Do not allow sync if an update repo is not configured.
Also, corrections to the sync button/link enabled state.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-08-07 15:15:38 +01:00
Konstantina Chremmou
538dc61c94 The users TabPage should not appear for hosts in a pool, only standalone hosts or pool. Corrected message.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-08-07 12:26:13 +01:00
Konstantina Chremmou
c4892897dd Several corrections:
- Last sync date was not shown for standalone hosts.
- Unlocalised string and incomplete release info.
- Converted Synchronise button to a split button to synchronize all/selected pools.
- Update the label above the updates from CDN page when filters are on.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-31 23:18:04 +01:00
Konstantina Chremmou
60284077e3 CP-43266: Added new notifications page to list updates from CDN.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-31 11:33:25 +01:00
Konstantina Chremmou
a557d83397 Alert the user if they haven't synced in a long time. Also:
- Alert sorting was not correct.
- A dismissal request was sent to the server even if there were no server side messages to dismiss.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-31 11:33:25 +01:00
Konstantina Chremmou
9473452657 Restored icons showing updated state of pools and hosts.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-28 09:36:54 +01:00
Konstantina Chremmou
8f18678acc Retrieve the list of available updates for a synchronised pool.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-28 09:36:54 +01:00
Konstantina Chremmou
385130fef6 CP-43265: Added new dialog to configure updates for servers.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-28 09:36:54 +01:00
Konstantina Chremmou
291199182e Minor refactoring.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-24 21:21:48 +01:00
Konstantina Chremmou
00246d7429 Disallow connection to havana servers.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-07-12 09:55:42 +01:00
Konstantina Chremmou
6d83365cfc Merge branch 'master' into feature/merge
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>

# Conflicts:
#	XenAdmin/Dialogs/PropertiesDialog.cs
2023-06-13 15:08:36 +01:00
Konstantina Chremmou
0c1ace1aaf CP-41473: Restored the Notifications>Updates TabPage.
Also, moved the filter indication label from the Alerts/Updates/Events page
to the main window because the Updates page top toolstrip looked too clattered.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-06-13 14:48:23 +01:00
Konstantina Chremmou
6bed1dcde3 CP-41473: Restored options to check for server updates and new versions automatically.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-06-13 14:48:23 +01:00
Konstantina Chremmou
d599bf4024 CP-43102: Only allow connections to Havana and Naples or greater servers.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2023-06-13 14:48:23 +01:00
Konstantina Chremmou
82940850e9 CP-43102: Removed Dundee code.
The check DundeeOrGreater always returns true since we disallow connection to anything earlier than Havana.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2023-06-13 14:48:23 +01:00
Konstantina Chremmou
60bb234f7b Renamed Post2X version to Cloud. Added more Xml docs.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-06-13 14:48:23 +01:00
Konstantina Chremmou
bffe739b86 It was not possible to load a xapi database from the CLI.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-05-31 12:14:07 +01:00
Konstantina Chremmou
9d6d1a185d Simplified SrAction by splitting it to four different actions. Fixed RBAC permissions when detaching SR and destroying PBDs.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-04-03 13:55:02 +01:00
Konstantina Chremmou
c70116691a Corrections as per code review:
- Bumped branding to v4.11.
- Reverted VS version in the solution file.
- Removed brand override registry entry.
- Converted HealthCheck warning pop-up to info pop-up.
- Moved status report actions to a separate folder.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-02-21 16:05:10 +00:00
Konstantina Chremmou
7063b3e130 CP-42155: Removed HealthCheck service and related dialogs.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-02-21 16:05:09 +00:00
Konstantina Chremmou
d7b519a53c Updated copyright notice on files.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-01-30 16:24:16 +00:00
Konstantina Chremmou
72f411b950 CP-41433: Legacy console name is not applicable any more.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-01-25 12:50:49 +00:00
Konstantina Chremmou
ca021b95dd CP-41433: Do not rebrand released versions.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-01-25 12:50:49 +00:00
Konstantina Chremmou
f7796582c3 CP-41433: Use the product name for the installation path, and the settings/logs parent folder.
Also, renamed the placeholder because msbuild converts spaces to underscores
and in debug mode the settings path is different from the one expected.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-01-25 12:50:49 +00:00
Konstantina Chremmou
fbe8c60336 Merge remote-tracking branch 'upstream/feature/vtpm'
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>

# Conflicts:
#	XenAdmin/MainWindow.cs
#	XenAdmin/Properties/Resources.resx
#	XenModel/Utils/Helpers.Versions.cs
#	XenModel/XenAPI/Pool.cs
2023-01-10 15:17:23 +00:00
Konstantina Chremmou
6dd175eab0 Fixed exception thrown by actions without an API task (typically actions running synchronous calls).
Also, catch and log all exceptions and Failures.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2022-12-14 01:00:54 +00:00
Konstantina Chremmou
5252272853 Changed the order of some of the initial and final operations.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-11-14 09:45:34 +00:00
Konstantina Chremmou
d1132f5823 Removed undocumented and buggy command line functionality. Moved command line arguments handling to the main window.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-11-14 09:45:34 +00:00
Konstantina Chremmou
6644ef920a CP-41108: Replaced the separate splash screen executable with a form within the application executable.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-11-14 09:45:33 +00:00
Konstantina Chremmou
a4e7462948 Fixed issue where the version on the update dropdown was not refreshed if a new update was found.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-10-07 13:20:56 +01:00
Konstantina Chremmou
126bf9131c Use the correct xapi tag for vTPM support.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-09-13 16:35:32 +01:00
Konstantina Chremmou
1a786b38bf CP-39688: Added vTPM manager for creating and removing vTPMs.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-08-19 17:11:50 +01:00
Konstantina Chremmou
9c61f64ec5 Show the status of the DownloadUpdatesXmlAction on the Events tab (previously it was shown on the Updates tab).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-06-16 11:47:54 +01:00
Konstantina Chremmou
414eff9c2f CP-39817: Removed the option to check for server new versions since it is not relevant any longer.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-06-16 11:21:42 +01:00
Konstantina Chremmou
7deb50ee79 CP-39817: Added CFU button to replace the functionality of the Refresh button Remove updates tab page.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-06-16 11:21:42 +01:00
Konstantina Chremmou
e5d090d614 CP-39817: Removed the updates tab page.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2022-06-16 11:21:42 +01:00