Commit Graph

503 Commits

Author SHA1 Message Date
Mihaela Stoica
fe6144ba70 CP-17920: Add dialog for PVS cache configuration
- this commit contains a temporary image for PVS_site

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-09-26 17:44:17 +01:00
Mihaela Stoica
f2b1443064 Merge branch 'master' into CAR-2184
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

Conflicts:
	XenModel/Messages.Designer.cs
	XenModel/Messages.resx
2016-09-26 13:26:31 +01:00
Mihaela Stoica
c6eab65fdf Merge pull request #1154 from kc284/master
Some corrections on VMStorage page and disk move/migrate/detach
2016-09-22 15:21:48 +01:00
mcintyre94
dd42394a25 CP-16922: Implement GUI for enabling PVS read caching (#1179)
* CP-16922: UI changes to PvsPage to replace the single configure button with a separate enable and disable one, per the design doc

* CP-16922: Intermediate checkin - command + dialog implemented, but PVS page has some layout problems.

* CP-16922:  Implement GUI for enabling PVS read caching and marking/unmarking VMs for prepopulation

Fix the broken layout by reverting MainWindow.resx (which shouldn't have changed) back to the previous commit. Also removed duplicate properties button code.

*  CP-16922: PVS Page changes, to properly display all VMs (not just ones with proxy), only populating proxy columns if there is a proxy set.

* CP-16922: Use a CommandButton for the enable button, connected to the same command as the VM main menu button, and using the table selection as its selection manager.

* CP-16922: Delete the old enable button click behaviour (because it now has a proper command), was causing the dialog to show up twice

* CP-16922: Properly list VMs by hiding those that should be hidden (in addition to non-VMs, also hide the __gui__ prefix and others covered by Show function). Also fixes a bug in NewVMGroupVMsPage discovered when fixing this - it would show VMs that should be hidden if you used the search bar.


* CP-16922: Use ButtonText on the Command to set the text on the PVS enable button

* CP-16922: Add the disable PVS read-caching command, and its associated proxy destroy action. Both based off enable equivalents (main difference is no dialog for now). Not used yet but will be in main window menu + disable button

* CP-16922: Add disable PVS read-caching to the main window menu (under enable), with the disable command attached to it


* CP-16922: Add support for disabling PVS read-caching for selected hosts via the PVS tab page by converting the disable button into a CommandButton in the same way as the enable button, using its own command + selection manager (because Selection Managers only bind to one control)

* CP-16922: Design - adding the "read caching enabled" column from the design, so that we display both whether caching is enabled and whether the VM is currently cached. If it's disabled all other values are missing.


* CP-16922: Add the PVS site column per the design to show the site a VM's PVS Proxy is on if it has a proxy


* CP-16922: Add an event handler for VMs changing so that newly provisioned VMs immediately show up in the PVS tab page


* CP-16922: Support for properly remembering the selection when the VM list is refreshed. A new method returns the list of VMs for the selected rows, and we can then check if the VM for the row being added is in this list. If there was no previous selection then we still select the first row by default.


* CP-16922: Remove prepopulate, which is being removed from the design. The next XAPI version will remove it, so just pass False as prepopulate for now, and remove the option from the dialog and PVS tab page.


* CP-16922: Improve UI appearance for a missing Storage Repository. Per the design, if there is no SR show the message None (memory only) instead of an empty cell

* CP-16922: Improved sorting behaviour. All columns (except VM name, which always uses it) use the VM tag as a sorting fallback (since they all have duplicates). New default sort which sorts by caching enabled first (yes before no), and then VM tag as a tiebreaker. Support for remembering the current sort on refresh, ie when a value changes.

* CP-16922: Refactoring to use a VM extension method to get the PVSProxy (or null if none exists) for a VM. This was used in the PVS Page + commands which are now much simpler.


* CP-16922: Move where the SelectionChanged event handler is set when refreshing the PVS table, so that the command buttons are updated correctly.

* CP-16922: Improvements to PVS read-caching dialog. Set accept/cancel buttons properly + adjust tab values, so focus acts as expected


* CP-16922: Remove the images from the menu for Enable/Disable PVS read-caching, most commands in the menu don't have one

* CP-16922: Sorting out the strings for the actions + ParallelAction calls, and moving them into the resx. Also reverting wrong MainWindow.resx changes.

* CAR-2184: XAPI changes. I've made the minimal possible changes to PvsPage to ensure it compiles, but it's had a lot of feature work (CP-16922) that supersedes this, these small changes should keep that merge painless.


* CAR-2184 XAPI: Reverse the unrelated changes, only keep the PVS ones.

* CP-16922: Merge latest XAPI changes, notably changes to Pvs_site.create

* CP-16922: Change tab show/hide logic for PVS tab, show it even if there are no PVS sites.

* CP-16922: Implement GUI for enabling PVS read caching

Design changes - remove the storage repo column and replace it with status, which is populated with a friendly version of the pvs_proxy_status enum. Also populate site list using site.name_label

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>

*  CP-16922: Implement GUI for enabling PVS read caching

Adjusting the CanExecute of Enable PVS read-caching command to require at least one PVS site to be created. Since the PVS tab can show up without any sites, we need this because we can't create a proxy without a site.

* CP-16922: Code review changes.

Tidied up messages, and ensured actions run async properly, and without exiting before their task.

* CP-16922: Code review changes.

Update dialog resx, wider combobox on dialog, update action descriptions before setting RelatedTask, add friendly message body for PVS error notifications.
2016-09-22 15:08:15 +01:00
Callum McIntyre
336e4d8149 CA-218260: Reverting to Snapshots causes VM to go back to parent host
Move the test for whether we can boot the VM on the previous host into the VmSnapshotRevertAction, and run it using the Session of the action.
2016-09-22 13:36:43 +01:00
Callum McIntyre
d30ff533fd CA-218260: Correcting nesting
The else if (vm.power_state == vm_power_state.Suspended) block had been incorrectly moved out an indent level to the outer if.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-09-21 17:45:42 +01:00
Callum McIntyre
502e386e53 CA-218260: Reverting to Snapshots causes VM to go back to parent host
Where we have a host the VM is running on (ie vm.resident_on is not null) at the time it is reverted, attempt to start/resume on that host if possible, instead of the home server of the VM.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-09-21 17:39:03 +01:00
Mihaela Stoica
a04e8dbccf Merge pull request #1123 from GaborApatiNagy/CA-150816
CA-150816: fix: G11n:I18n: Hardcode issue "Set VM other_config" on Authentication dialog.
2016-09-20 14:02:18 +01:00
Gabor Apati-Nagy
9b383054af CA-222118: CentOS 7 VM's XenServer Tools installation message is misleading in Notifications
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-09-19 14:10:21 +01:00
Callum McIntyre
2b215ffd78 Merge branch 'master' of https://github.com/xenserver/xenadmin into CP-17848
Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>

# Conflicts:
#	XenAdmin/Wizards/PatchingWizard/PatchingWizardModeGuidanceBuilder.cs (resolved using master)
2016-09-09 12:59:29 +01:00
Konstantina Chremmou
d2a3a17369 Fixed typos.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-09-06 14:53:46 +01:00
Mihaela Stoica
24d67cca10 Fix an error in ParallelAction with no subactions
- Immediately complete the ParallelAction when there are no subactions to be executed, to avoid on infinite lock while waiting for the actions to be completed.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-09-01 17:42:07 +01:00
Callum McIntyre
c9ed8a1f68 CP-17848: XAPI changes to support new update packaging calls/structrures 2016-08-30 17:11:47 +01:00
Gabor Apati-Nagy
1c5ba794b4 CA-217232: Fixed regression caused by the fix for CA-216935
Changes following the code review
2016-08-18 16:00:50 +01:00
Gabor Apati-Nagy
53619c775d Merge remote-tracking branch 'github_xenadmin/master' into REQ-156_github_master
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>

Conflicts:
	XenAdmin/Wizards/PatchingWizard/PatchingWizard_PrecheckPage.cs
	XenAdmin/Wizards/PatchingWizard/PatchingWizard_SelectServers.cs
	XenModel/Actions/ParallelAction.cs
	XenModel/FriendlyNames.resx
	XenModel/Messages.Designer.cs
	XenModel/Messages.resx
2016-08-18 12:22:40 +01:00
Konstantina Chremmou
73a549a4d0 Improvements made while investigating CA-218953:
- when the cd drive or the tools iso cannot be found, the action should fail.
- if the tools SR is broken, do not show the error on a pop-up because the UX is
bad when installation is attempted on multiple VMS.
- added one more entry to the list of possible tools iso names.
- small performance improvement.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-08-17 22:35:01 +01:00
Gabor Apati-Nagy
c7482b8c93 CA-150816: fix: G11n:I18n: Hardcode issue "Set VM other_config" on Authentication dialog.
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-08-15 17:43:20 +01:00
Mihaela Stoica
b35564cb85 CA-147142: ReadOnly user should not be allowed to delete crash dump files
- Made the action PureAsyncAction, so that it automatically checks if the current user can perform all the necessary api calls

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-08-15 14:27:43 +01:00
Konstantina Chremmou
5f75c0dd74 CA-217847: Fixed issue where servers were marked as unable to be updated automatically
even when automatic mode was supported for them. The problem was that the xenserver
versions were not retrieved from the DownloadUpdatesXmlAction once the latter had run.
Also, minor refactoring.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-08-09 16:53:02 +01:00
Mihaela Stoica
72be4e1141 CP-16935: Configure Control domain memory for a host
- Added Control Domain memory entry in the host memory control on Memory tab.
- Control domain memory is editable for Ely and greater hosts.
- Can be changed from a dialog that requires host to be in maintenance mode and triggers a host reboot after the memory is changed.
- This dialog is available from Server main menu and from the host memory tab.
- Also removed unused unit controls on host and VM memory bars.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-08-09 14:50:04 +01:00
Mihaela Stoica
4046ce0f95 Merge pull request #1096 from GaborApatiNagy/master_batch_new2
CA-217382: Batch updates: Install batch updates is not showing low di…
2016-08-09 14:17:48 +01:00
Konstantina Chremmou
208d4aa1f9 Merge pull request #1099 from GaborApatiNagy/CA-217844
CA-217844: Handling Automatic update not supported
2016-08-09 14:05:12 +01:00
Mihaela Stoica
f914f03c21 CA-210549: Make MultipleAction and ParallelAction cancellable
- Fixed the way we calculate PercentComplete for ParallelAction: use the sum of actions in actionsByConnection and actionsWithNoConnection instead of subActions.Count, to avoid waiting for the completion of actions that we never start, because we exclude actions with disconnected connections from actionsByConnections
2016-08-09 10:03:11 +01:00
Gabor Apati-Nagy
e28ca1ded1 CA-217844: Handling Automatic update not supported
If there is no <minimalpatches /> tag, the version is not supported. This check has priority over licensed state when displaying the reason why a server is not supported.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-08-08 18:30:54 +01:00
Gabor Apati-Nagy
16afbd3bed CA-217382: Batch updates: Install batch updates is not showing low disk space error in pre-checks when host dom0 is full
Fixes following the code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-08-08 18:05:42 +01:00
Konstantina Chremmou
e9ca8b529a CA-217843 best effort: Run RestoreDismissedUpdates action asynchronously to prevent UI hiccups.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-08-08 14:37:47 +01:00
Gabor Apati-Nagy
f93a977ddf CA-217382: Batch updates: Install batch updates is not showing low disk space error in pre-checks when host dom0 is full
Implemented pre-check to check whether there is enough free disk space
before starting updating a pool.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-08-05 18:05:09 +01:00
Mihaela Stoica
56038e3eba CA-210549: Make MultipleAction and ParallelAction cancellable
- The multiple action is cancellable if is at least one sub action is not completed
- When a multiple action is cancelled, we try to cancel all sub actions that are not completed
- Also changed the way we calculate the percent complete for the parent action, to report partial progress of the sub actions

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-08-05 15:46:07 +01:00
Gabor Apati-Nagy
3ca0db4b98 Merge pull request #1072 from Frezzle/CA-209198
CA-209198: Allowed to attempt to install hotfix when it is already applied
2016-07-25 15:04:21 +01:00
Konstantina Chremmou
917754c937 CA-192541: Added detail to the Import/Export OVF/OVA and Import Disk Image actions
title so we can tell the one from the other. For consistency I used a format similar
to Import/export XVA. I also removed the gerund from the latter as it cannot be
used when the action is completed.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2016-07-19 23:53:17 +01:00
Frezzle
5555709337 [CA-209198] Allowed to attempt to install hotfix when it is already applied
XenCenter no longer ignores checking if the master host already has the specified patch applied; it now checks before trying to apply it, which means we get no error in the Patching Wizard's Patching Page.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
2016-07-19 17:49:40 +01:00
Konstantina Chremmou
91d2715a00 Merge pull request #1059 from MihaelaStoica/CA-203345
CA-203345: Exporting snapshot jams and cant be cancelled (when export…
2016-07-14 11:26:17 +01:00
Konstantina Chremmou
ea60eaa24e Merge pull request #1065 from xenserver/CAR-2217
Request to merge CAR-2217 into master
2016-07-11 14:11:00 +01:00
Mihaela Stoica
727c7a5212 CA-203345: Exporting snapshot jams and cant be cancelled (when exporting 2 snapshots to the same file)
Replaced the call to Task.destroy() with the DestroyTask() method, which additionally sets RelatedTask to null. This ensures that we stop polling the task for its progress and report the error.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-07-07 15:27:45 +01:00
Konstantina Chremmou
56265bbfd6 CP-17756: The dom0 VM is found now using the new field Host.control_domain as
there can be more than one control domains. For older hosts return the control
domain with domid 0. Renamed property.
2016-07-04 13:21:52 +01:00
Konstantina Chremmou
051afb48c2 Merge pull request #1012 from MihaelaStoica/CA-209502
CA-209502: Exception while deleting multiple folders
2016-07-01 09:04:48 +01:00
Mihaela Stoica
bcc120f0b2 CA-209502: FolderAction refactoring
- created subclasses for each folder action type (create, rename, delete, move)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-06-30 15:41:46 +01:00
Gabor Apati-Nagy
994f5b4811 Merge remote-tracking branch 'github_xenadmin/master' into master_batch_new2 2016-06-29 16:52:13 +01:00
Konstantina Chremmou
d35c162e76 CP-17689: Restrict maximum host failures to tolerate to the number specified by the other-config:hci-limit-fault-tolerance field. 2016-06-29 12:57:29 +01:00
Mihaela Stoica
b42a9e6556 Merge pull request #1043 from Frezzle/CA-213410
[CA-213410] XenCenter ignores proxy settings in some places
2016-06-28 18:02:03 +01:00
Frezzle
be94dc2f45 [CA-213410] XenCenter ignores proxy settings in some places
Assigned Proxy property in all WebClient, WebRequest and HttpWebRequest instances.
Removed "proxy not supported" message from Download Appliance dialog, since the download does work with a proxy.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
2016-06-27 17:59:02 +01:00
Konstantina Chremmou
877081d3e8 Merge pull request #1031 from Frezzle/proxy-auth
CP-17231: Implement proxy authentication setting in XenCenter
2016-06-27 11:38:09 +01:00
Frezzle
07a62a703d CA-211369: focus of the machine/console switching back to the vm post snapshot with disk and memory is performed incorrectly/misleading (#1019)
[CA-211369] Console switching when snapshot completes

ConsolePanel.setCurrentSource() being called in ConsolePanel.Snapshot() was causing the console view to switch to the target snapshotted VM's console, but only if the user is already on a console tab. The screenshot now happens before the snapshot begins, instead of after; this way, the screenshot always occurs when not on the console tab.

Signed-off-by: Frederico Mazzone <fredericom@citrite.net>
2016-06-22 16:27:14 +01:00
Frederico Mazzone
9fa8740cb9 [CP-17401] Use Proxy authentication in Health Check Service
Removed last bits of code relating to "Bypass proxy server for local addresses" option.
New proxy settings are sent from XenCenter to health check service and used to configure the proxy using GetProxyFromSettings().
Health check service now correctly saves its proxy settings and updates the static Proxy property for the Session class; done in new ReconfigureConnectionSettings().

Signed-off-by: Frederico Mazzone <fredericom@citrite.net>
2016-06-22 13:05:21 +01:00
Frederico Mazzone
46c15efe57 [CP-17231] Implement proxy authentication setting in XenCenter
Added 2 textboxes for proxy username and password; encrypted when saved and decrypted when loaded.
Added 2 checkboxes; one for bypassing proxy for xenserver connections, one for providing proxy credentials.
Removed checkbox for bypassing proxy for local addresses.
Controls are no longer enabled/disabled when the related proxy option is selected/deselected.
Making changes to a control (e.g. username, bypass checkbox, etc) selects the 'Use this proxy server' option automatically.
Removed "Bypass proxy server for local addresses" option.
Basic and Digest authentication implemented. Tested with FreeProxy (Basic+Digest), CCProxy (Basic) and AnalogX Proxy (no authentication); each were tested with correct credentials, incorrect credentials and missing credentials; all gave expected results.

Signed-off-by: Frederico Mazzone <fredericom@citrite.net>
2016-06-20 17:15:00 +01:00
Gabor Apati-Nagy
7a84b305ef CP-17699: Developer testing and improvements
for Batch Updating

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-06-17 14:15:59 +01:00
Gabor Apati-Nagy
8692b4b0a6 CP-15790: Added a Debug.Assert
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-06-08 14:16:35 +01:00
Mihaela Stoica
fcee4d8876 CA-77990: Report required actions for all VMs at once in the hotfix wizard / RPUW (#951)
* CA-77990: Report required actions for all VMs at once in the hotfix wizard / RPUW

* CA-77990: Resolve precheck problems in parallel in the Patching wizard

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

* CA-77990: Resolve precheck problems in parallel in the Patching wizard

Changes following code review: Made the ParallelAction work across connections and removed CrossConnectionParallelAction

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

* CA-77990: Modified ParallelAction to create queue on RunSubActions only, with the correct queue size

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-06-07 17:40:59 +01:00
Gabor Apati-Nagy
9ec512921b CP-15790: Prepare XenCenter for unit testing of Automatic Updates
Added support for defining custom update.xml location in Registry. This
can be either a local file or an URL. This will be beneficial when testing XenCenter.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-06-07 16:02:57 +01:00
Mihaela Stoica
5d58222248 CA-209502: Exception while deleting multiple folders
- Changed the FolderAction class so that it can be used to delete or move multiple folders across connections, instead of having multiple actions (one for each holder) which can not run in parallel.
- The api calls that update the EMPTY_FOLDERS entry in pool's other_config are preformed last for all connections, avoiding cross-thread exceptions when two threads try to add/remove the same key.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-06-03 15:38:52 +01:00
Gabor Apati-Nagy
9ea99ec91a Merge remote-tracking branch 'github_xenadmin/master' into master_batch_new2 2016-06-03 13:28:48 +01:00
Gabor Apati-Nagy
5b37c036d8 CA-187187: Enable AD on pool failing when one of the hosts have failed
Calling disable as best effort. (We always call disable AD before enabling AD -  CA-48122)

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-06-02 15:09:01 +01:00
Gabor Apati-Nagy
235ebe9b33 Merge branch 'master' of https://github.com/xenserver/xenadmin into master_batchupdate_new 2016-05-05 13:59:28 +01:00
Gabor Apati-Nagy
deb4d5724c CP-15717: UI: Implement basic upload/precheck/patch/cleanup logic
Fixes following the code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-05-04 13:47:41 +01:00
Gabor Apati-Nagy
fdb930bb19 CP-15717: UI: Implement basic upload/precheck/patch/cleanup logic
cleaned up code

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-05-04 11:21:23 +01:00
Gabor Apati-Nagy
466f01b926 CP-15717: UI: Implement basic upload/precheck/patch/cleanup logic
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-05-04 11:06:39 +01:00
Gabor Apati-Nagy
d3914a2318 CP-15717: UI: Implement basic upload/precheck/patch/cleanup logic
intermediate commit

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-05-04 11:02:16 +01:00
Mihaela Stoica
219209f1fe CA-209281: Check pool.policy_no_vendor_device on VM create before setting VM's has_vendor_device property
Signed-off-by: Mihaela Stoica <Mihaela.Stoica@citrix.com>
2016-04-27 09:58:33 +01:00
Mihaela Stoica
fe56eb3444 CA-206761: Health Check shows "No issues found" when the report analysis is not yet available
- updated the url

Signed-off-by: Mihaela Stoica <Mihaela.Stoica@citrix.com>
2016-04-22 12:19:20 +01:00
Mihaela Stoica
8f63854b96 CA-206761: Health Check shows "No issues found" when the report analysis is not yet available
Changes following code review

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-04-11 15:57:32 +01:00
Mihaela Stoica
7e832494c1 CA-206761: Health Check shows "No issues found" when the report analysis is not yet available
- Try to get the analysis progress from cis (as an integer value representing percentage 0 - 100). If this function returns a valid progress less than 100, then we don't try to get the report analysis and continue to display "Analysis not yet available"
- If the progress is 100 then we get the analysis result and display it
- If the progress cannot be obtained, then we try to get the analysis result; If an empty result is obtained within 10 minutes from the upload completion, then we assume that the analysis is still in progress and continue to display "Analysis not yet available"

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-04-08 14:26:52 +01:00
Sharath Babu
18289192b7 Incorporating review comments.
Signed-off-by: Sharath Babu <Sharath.Babu@citrix.com>
2016-04-06 05:05:56 +00:00
Mihaela Stoica
bb434db027 CA-205199: Reattaching an SR fails with error "The SR is not attached"
Set the name and description of the SR after the PBDs have been created and plugged.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-03-30 15:39:00 +01:00
Sharath Babu
81563c65b8 CA-204328: VMSS policy wizard not filtering out messages accordingly
Added filter functionality for filtering messages in policy wizard.

Signed-off-by: Sharath Babu <Sharath.Babu@citrix.com>
2016-03-29 07:52:48 +00:00
Gabor Apati-Nagy
438eb59009 Merge pull request #899 from MihaelaStoica/CA-204172
CA-204172: Switch Health Check URLs to the production site
2016-03-16 14:01:19 +00:00
Gabor Apati-Nagy
25e83b72bf CP-15712: Add Automatic mode (internal parameter)
Removed Contained

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-03-16 13:41:10 +00:00
Stephen Turner
feea3f2ad0 CA-203766: Replace more uses of 'via' 2016-03-16 13:17:47 +00:00
Gabor Apati-Nagy
312cd931ca CP-15712: Add Automatic mode (internal parameter)
Disableded non-required pages in the wizard
Added placeholder for new pages
Changed sequence of pages
Removed unnecessary code

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-03-16 11:38:16 +00:00
Mihaela Stoica
9c9312c113 CA-204172: Switch Health Check URLs to the production site
Also use 0 (never expire) for the diagnostic token.

Signed-off-by: Mihaela Stoica <Mihaela.Stoica@citrix.com>
2016-03-16 10:00:23 +00:00
Gabor Apati-Nagy
7acbce0ca1 Merge remote-tracking branch 'github_xenadmin/master' into master_batchupdate_2 2016-03-10 14:57:29 +00:00
Mihaela Stoica
72ec9df41a CA-201645: The Install Update wizard should delete patch installation file if manual mode is selected
- Added PoolPatchCleanAction which is called for each pool after the patch has been applied on all selected hosts

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-03-03 11:34:00 +00:00
Stephen Turner
3073fd071d CA-200888: Write the control domain perfmon config to the correct control domain, and don't blank it when editing a VM 2016-02-26 15:42:24 +00:00
Stephen Turner
5093ef677c CA-201421: tools ISO is missing in drop-down list 2016-02-25 17:18:48 +00:00
Gabor Apati-Nagy
1ca313c1e0 Revert "CA-178985: Removed ova.xml import from XenCenter" 2016-02-24 15:33:18 +00:00
Koushik Chakravarty
556229c0a1 CAR-2146: Removed enum typecast, fixed some texts in UI
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-19 17:32:18 +05:30
Koushik Chakravarty
217264aae6 CAR-2146: Fixed FriendlyNames, removed CreateVMSS file and refactored some
code

Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 17:33:38 +05:30
Koushik Chakravarty
025e263a4c CAR-2146: Reworked and removed some more redundant code
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
e13b2b7beb CAR-2146: Changed the SDK API naming terminology
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
6889e15872 CAR-2146: Isolated type specific checks in VMGroup helper class
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
e11974d864 CAR-2146: Integrated new SDK changes, re-using existing VMPP Dialog
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
cf5040e9a9 CAR-2146: SDK Integration for VMSS and Testing
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
2a3c62a931 CAR-2146: Added new VMSS Dialog, made text modifications in existing
wizard

Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Koushik Chakravarty
b3fe4aa2a3 CAR-2146: VMSS - Wizard modifications - framework ready
Signed-off-by: Koushik Chakravarty <Koushik.Chakravarty@citrix.com>
2016-02-18 16:27:17 +05:30
Mihaela Stoica
7a46698141 CP-16068: Pick up new RPU hotfixes
- XenCenter build system picks up the RPU hotfixes from Artifactory
- RPU001 and RPU002 replace XS62E006 and XS65ESP1006
- Removed hotfixes from the solution, moved  XS60E001 to Branding folder
- also cleaned up code in the HotfixFactory class, removing MNR and Cowley hotfixes (not supported anymore)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-02-11 22:18:06 +00:00
Gabor Apati-Nagy
39ae204363 Merge remote-tracking branch 'github_xenadmin/master' 2016-02-08 10:14:25 +00:00
Gabor Apati-Nagy
b8e447afa3 CA-196315: XS65ESP1018 not showing up in XenCenter Updates (on staging)
Fixed code to treat uuids of patches case-insensitive when consuming, but not changing them (eg. to lowercase) to keep compatibility with older XAPIs.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-02-08 10:14:05 +00:00
Mihaela Stoica
20970ff122 CP-15399: Move check for updates url to Branding.cs
- InvisibleMessages.resx contains the default url for check for updates, which can be overwritten in Branding.cs
- Added an extra parameter to DownloadUpdatesXmlAction for the updates url. If this is not specified (or null), then the default one (from InvisibleMessages) is used

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-02-04 10:39:14 +00:00
Gabor Apati-Nagy
71a44aff12 CP-15710: Code to Construct an Update Sequence
This code constructs an update sequence/schedule for each host in a pool.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-02-02 19:14:59 +00:00
Rob Hoes
b9f4d24ca7 Use new SR.is_tools_sr and VDI.is_tools_iso fields to detect the Tools SR/VDI
If the new field is not present, we'll fall back to the old method, which is by
name_label (SR.is_tools_sr/VDI.is_tools_iso will be false in that case).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
2016-01-29 15:40:49 +00:00
Mihaela Stoica
3ccfcc7e3a Merge pull request #782 from cheng--zhang/CP-15398
CP-15398: Make version, xsupdate and xensearch rebrandable
2016-01-22 13:16:03 +00:00
Cheng Zhang
1485a056e9 CP-15399: Make xsupdate rebrandable
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2016-01-22 13:50:12 +08:00
Mihaela Stoica
77a255c2ad Merge pull request #784 from robhoes/master
CA-192640: Don't log exceptions when HealthCheck service is not insta…
2016-01-20 14:52:29 +00:00
Rob Hoes
1de9f35566 CA-192640: Don't log exceptions when HealthCheck service is not installed (part 2)
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
2016-01-20 14:47:39 +00:00
Mihaela Stoica
9aee7a4f9b Merge pull request #773 from GaborApatiNagy/CA-187681
CA-187681: xs-tools ISO doesn't get mounted on dlvm xva(Centos 7 HVM)
2016-01-20 12:27:29 +00:00
Gabor Apati-Nagy
89a91bd247 CA-187681: Improvement for VM.IsWindows property
vm.guest_metrics.PV_drivers_up_to_date is obsolete (and can be wrong) for new type Windows VMs and this led to early escape from this action.
2016-01-20 12:13:35 +00:00
Cheng Zhang
15ef3410a3 CP-15398: Make file name and dir rebrandablei
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2016-01-19 18:40:55 +08:00
Mihaela Stoica
89694b98e3 Merge pull request #775 from GaborApatiNagy/CA-159790_2
CA-159790: [XSO-208] & CA-103752
2016-01-18 21:58:21 +00:00
Gabor Apati-Nagy
5d82d9e3ff CA-103752: XenCenter ‘Event Log’ window does not show any host/pool information for ‘Actions’ level logs while applying license to host
Setting Host or Pool on the ApplyLicenseEditionAction when there is one XenObject in the list

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2016-01-15 13:45:54 +00:00
Rob Hoes
f5a12452ca CA-192640: Don't log exceptions when HealthCheck service is not installed
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
2016-01-14 13:52:20 +00:00
Gabor Apati-Nagy
274c98d8d9 CP-14822: UI: New VM Creation: update code to apply recommendations
This changeset implements the followings:

On creation of a new VM,
* XenCenter will use licensed state of the host to determine whether it should obey/apply the template-recommendation regarding the vendor device.
* If the host is licensed, and the selected template's recommendations suggest that has_vendor_device can be set/should be set to true, as part of VM creation, XenCenter will set the vm's has_vendor_device based on the recommendation using set_has_vendor_device API call (after it has cloned the template and before calling vm.provision).
* XenCenter will not expose details whether 1G or 2G VM is going to be created.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-12-17 15:31:41 +00:00
Gabor Apati-Nagy
652c7225f8 CA-189084: Control domain memory alerts not getting generated in Xencenter.
Removed unnecessary code found in code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-12-10 13:43:54 +00:00
Gabor Apati-Nagy
4baa36efab CA-189084: Control domain memory alerts not getting generated in Xencenter.
Dom0 memory alerts have to be configured in the other_config of the control domain (dom0) and not of the the host. This changeset implements this exception.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-12-07 17:57:54 +00:00
Stephen Turner
ac71c2c454 CA-190904: Remove obsolete SR.upgrade and SR.share menu items 2015-11-30 11:53:54 +00:00
Gabor Apati-Nagy
34612db6f8 Merge pull request #746 from GaborApatiNagy/CA-178985
CA-178985: Removed ova.xml import from XenCenter
2015-11-25 13:48:44 +00:00
Gabor Apati-Nagy
f0ea3aa807 CA-178985: Removed ova.xml import from XenCenter
because it has been broken and we decided not to keep this feature

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-11-25 12:12:20 +00:00
Gabor Apati-Nagy
4586832d5f CA-178985: Removed ova.xml import from XenCenter
because it has been broken and we decided not to keep this feature

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-11-25 11:01:28 +00:00
Gabor Apati-Nagy
d79351a8f4 CA-187909: Special characters should be UrlEncoded on HTTP calls
A bit of refactoring

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-11-23 14:47:28 +00:00
Gabor Apati-Nagy
104d5554fb CA-187909: Special characters should be URLencoded on HTTP calls
UrlEncoded all the strings that are used to create URLs. (Such as untrusted user input: string fileName)

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-11-16 17:50:43 +00:00
Mihaela Stoica
3c956f28ac CP-14780: Revert Windows Update changes (part2)
Revert "Merge pull request #708 from GaborApatiNagy/master_windows_update"

This reverts commit fe03f1382f, reversing
changes made to 423065a2c8.

Conflicts:
	XenAdminTests/TabsAndMenus/MainMenuGeorge.cs
2015-11-10 13:13:23 +00:00
Stephen Turner
f2f590e3e7 CP-14647: More changes after read-through, including getting rid of OEM edition 2015-11-08 16:31:48 +00:00
Stephen Turner
448ee7fa4e CP-14647: Intermediate check-in #6
Fix two warnings-as-errors, and update sample dbs to newer API
2015-11-08 11:28:03 +00:00
Stephen Turner
8ea7e73b55 CP-14647: Intermediate check-in #5
This should cover everything except updating the tests to use more recent
servers.
2015-11-08 11:28:02 +00:00
Stephen Turner
ce609e31ff CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
Stephen Turner
c667e51fd2 CP-14647: Intermediate check-in #3 2015-11-08 11:27:59 +00:00
Stephen Turner
cf6534275e CP-14647: Intermediate check-in #2 2015-11-08 11:27:57 +00:00
Stephen Turner
b587ab832e CP-14647: Intermediate check-in #1 2015-11-08 11:27:56 +00:00
Mihaela Stoica
0963f8ccd2 CA-186234: Group the issues found in a pool when retrieving CIS analysis results for a pool
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-11-06 15:01:31 +00:00
Mihaela Stoica
af7852c7a0 CA-180576: Provide a option to give case number when uploading a report from the Server Status Report wizard
- added Case Number edit box on the Destination page of the wizard
- valid case number needs to be 9 or less digits

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-11-03 15:48:14 +00:00
Mihaela Stoica
fe9f4cf555 CP-14085: Added Assert for CPU feature masking
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-10-28 14:02:29 +00:00
Mihaela Stoica
0a6955d157 CP-14085: Feature leveling not needed on pool-join
Feature leveling should "just work" for Dundee and higher hosts, without the need for us to level them explicitly

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-10-23 12:08:19 +01:00
Mihaela Stoica
2d154cf8f7 CA-180128: Ignoring XmlRpcIllFormedXmlException in DoWithSessionRetry (when disruption is expected)
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-10-20 11:02:01 +01:00
Mihaela Stoica
fe03f1382f Merge pull request #708 from GaborApatiNagy/master_windows_update
Upgrade VMs
2015-10-19 16:29:52 +01:00
Gabor Apati-Nagy
7b7bcb0aa5 CP-14379, CP-14461, CP-14462, CP-14463, CP-14464, CP-14465, CP-14467:
Implementing Upgrading VMs to Windows Update

New screen features:
-Create skeleton of the Upgrade VM dialog
-Implement a Go To Console link (just a link that opens a vm console)
-Implement logic to show the right status for a VM (includes rules to
get the states). Includes updating the dialog whenever the status changes.
-Add status texts to Messages, proper text on the UI
-Add stub methods to VM class in XenAPI-Extensions to r/w states from
Guest Agent
-UI: Implement rules what vms to display, checkbox rules, read only vms,
and when to enable the Upgrade button
-Implement Upgrade button (writes state for GA, mounts ISO) + maximum
parallel executions/actions

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-10-16 12:47:00 +01:00
Mihaela Stoica
5c80fcc4ea CA-180120: Changed the progress description displayed on the Upload page in the Patching wizard
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-10-15 14:15:10 +01:00
Hui Zhang
50c2f588d7 CA-185063: Health Check Service: Filename is missed in CIS report.
Add status report filename in the CIS Upload URL.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-10-09 15:55:59 +08:00
Mihaela Stoica
1405ec29f4 CA-180128: Make RelatedTask property setter aware of ExpectDisruption flag
When the pool's ssl_legacy settings are changed, we may temporarily lose connection. The action generally copes well, because PollToCompletion is aware of the ExpectDisruption flag.
But when the action's RelatedTask is assigned, we perform more api calls, which may fail with WebException. When disruption is expected, we need to ignore it and try again on a new session (CancellingAction.DoWithSessionRetry).
2015-10-06 16:25:32 +01:00
Carmen Agimof
e44c7b20e2 Merge pull request #679 from MihaelaStoica/CA-183321
CA-183321 and more thin-lvhd-related fixes
2015-09-23 14:19:12 +01:00
Gabor Apati-Nagy
0ac03285da Merge pull request #682 from MihaelaStoica/CP-13983
CP-13983: Fix the SR convert action
2015-09-23 12:36:05 +01:00
Gabor Apati-Nagy
ad80ced66d Merge pull request #673 from MihaelaStoica/CA-182884
Use the Enum functions for string-to-enum and enum-to-string conversions
2015-09-23 12:35:28 +01:00
Mihaela Stoica
0de5a2d310 CP-13983: Fix the SR convert action
- use SR.opaque_ref instead of uuid

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-09-22 11:05:39 +01:00
Mihaela Stoica
f507b65126 CA-183321: Fixed the bug where the disk initial and incremental allocations values were ignored while creating new VM's disk
When creating a new VM, we no longer use vm.provision to create VM's disks, but instead we create the disks ourselves using vdi.create; this way we can specify the initial and incremental allocations for the new disks.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-09-18 15:51:17 +01:00
Mihaela Stoica
2766a18987 Use the ToString() function directly for enum-to-string conversions
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-09-15 13:55:18 +01:00
Gabor Apati-Nagy
bf8e2cfc77 Merge pull request #669 from agimofcarmen/CA-179502
CA-179502: Reviewed all use of MemorySizeStringMB and came to the con…
2015-09-11 12:20:40 +01:00
Mihaela Stoica
23db625d15 Change the validity period of the diagnostic token to one year.
- This is temporary, until the API accepts max_age=0 (never expire)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-09-10 15:29:35 +01:00
Carmen Agimof
4fadf796ad CA-179502: Reviewed all use of MemorySizeStringMB and came to the conclusion that all its usages must be replaced with MemorySizeStringSuitableUnits. 2015-09-10 14:36:46 +01:00
Carmen Agimof
cd4281ffab Merge pull request #651 from MihaelaStoica/CP-13077
CP-13077: Changes to the Health Check feature to work properly with RBAC
2015-09-09 13:16:15 +01:00
Mihaela Stoica
fb8a6665a6 Merge pull request #664 from agimofcarmen/CP-13984
CP-13984: Changes the wording on Convert SR dialog (replace upgrade with convert).
2015-09-08 15:35:36 +01:00
Carmen Agimof
0dd8fa7f05 CP-13984: Changes the wording on Convert SR dialog (replace upgrade with convert). 2015-09-08 15:32:47 +01:00
Mihaela Stoica
b13e72c14f Merge pull request #662 from agimofcarmen/CA-181442
CA-181442: Removes unused variable.
2015-09-08 14:57:06 +01:00
Carmen Agimof
e04203a5a3 Removes unused variable. 2015-09-08 13:58:13 +01:00
Mihaela Stoica
d7fa39bb75 Merge pull request #655 from agimofcarmen/CA-181442
CA 181442: Cancelling the wizard while upload is in progress does not cause an unhandled exception anymore.
2015-09-08 12:05:30 +01:00
Mihaela Stoica
62bc632f02 CP-13074: Update the URLs used for retrieving the analysis results 2015-09-07 17:58:53 +01:00
Carmen Agimof
22b3450dcd CA-181442: Make the list that contained all NewUploadedPatches a Dictionary that matches the patch with its path. This is helpful when trying to upload to a server where the update it is already uploaded (and therefore we do not do the upload again and we cannot get the patch).
Adds a flag in the UploadPatchAction that is used when checking if the file should be deleted on cancel.
2015-09-07 12:18:01 +01:00
Carmen Agimof
05884ea9be CA-181442: Cancelling the wizard while upload is in progress does not cause an unhandled exception anymore. 2015-09-04 17:18:26 +01:00
Carmen Agimof
9b0f478952 CA-181390: Solved issue related to taking a file from disk that is not in the list of updates taken from the Citrix website. Created a dictionary that contains all the uploaded updates(the patch path) and on which hosts they were applied.
- Not applied updates do not appear anymore in the General Tab of a pool. (Related to CA-180577)
- If we apply a patch that was already applied (happens when we take a file from disk that is not in the updates list taken from the Citrix website -> no metadata), on cancel we are now removing the uploaded patch from the host.
2015-09-04 17:09:22 +01:00
Mihaela Stoica
53b01c425c CP-13077: Changes to the Health Check feature to work properly with RBAC
Changed all the health check actions to perform the necessary role checks
- HealthCheckAuthenticationAction: changed so it does not save the tokens, so no role checks required in this action (all the checks are performed in SaveHealthCheckSettingsAction)
- GetHealthCheckAnalysisActions: added role checks

On the Health Check Overview dialog, a pool is displayed as read-only if connected as a user with roles that don't permit changing the health check settings:
- the following actions are not available: enroll, edit settings, disable health check, request upload, get analysis result
2015-09-03 11:49:53 +01:00
Gabor Apati-Nagy
402994a7a1 Merge pull request #638 from MihaelaStoica/CP-12156_2
CP-12156: Obtain and display the result of the CIS analysis of the last uploaded report
2015-08-27 14:04:17 +01:00
Gabor Apati-Nagy
19d9d1589c CP-13100: XenCenter: Convert a thickly provisoned LVM-based SR to a thinly provisioned SR
Some checks following the code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-08-27 13:50:56 +01:00
Mihaela Stoica
e38c707ffb CP-12156: Removed unused variable
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-27 01:04:56 +01:00
Mihaela Stoica
2eba1c705f Merge remote-tracking branch 'upstream/master' into CP-12156_2
Conflicts:
	XenModel/XenAPI-Extensions/Pool.cs
	XenModel/XenModel.csproj
2015-08-27 01:03:58 +01:00
Mihaela Stoica
44e18df03d CP-12156: Obtain and display the result of the CIS analysis of the last uploaded report
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-27 00:30:02 +01:00
Gabor Apati-Nagy
77beffacf9 Merge remote-tracking branch 'github_xenadmin/master' into CP-13100
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>

Conflicts:
	XenAdmin/TabPages/GeneralTabPage.cs
2015-08-26 17:58:38 +01:00
Gabor Apati-Nagy
cb90872c6c CP-13100: XenCenter: Convert a thickly provisoned LVM-based SR to a thinly provisioned SR
Added new functionality (using percentages yet)

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-08-26 17:54:03 +01:00
Hui Zhang
0761aa5be2 CP-13848: XenCenter transfers proxy settings to HealthCheckService.
Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-08-25 20:32:58 +08:00
Mihaela Stoica
ff64416407 Move HealthCheckSettings class to a separate file
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-21 15:19:24 +01:00
Mihaela Stoica
0a3deaf526 Merge pull request #624 from agimofcarmen/CA-147944_II
CA-147944: Use GB for VM Memory if large values
2015-08-20 17:17:12 +01:00
Mihaela Stoica
cb35725dd7 CP-13074: Finalize the CIS domain names and product key used for retrieving the authentication tokens and upload
- change the URLs to the production site
- for development and testing these settings should be changed to the staging site via registry keys

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-20 16:59:58 +01:00
Carmen Agimof
4da67c0590 CA-147944: Use GB for VM Memory if large values
- Memory Tab uses GB units for values greater or equal to 1 GB, otherwise show in MB;
- Search Tab displays values in GB or MB in the same as the Memory Tab (e.g. 512 MB of 1 GB, 256 MB of 512 MB, 2.5 GB of 16 GB).
- The shiny bar present in the Memory Tab and in Memory Settings dialog shows the scaling in the following way: If smaller than 1 GB, then show as before, else show only labels with values multiples of half a GB.
- The units used in Memory Setting Dialog are set depending on the static_max. If it is greater or equal to 1 GB, then the units are GB, else MB. The user does not have the possibility of changing them.
2015-08-20 12:41:39 +01:00
Gabor Apati-Nagy
b123bf8dda Merge pull request #619 from stephen-turner/CP-13374
CP-13374 XenCenter can now turn on and off ssl-legacy
2015-08-19 17:31:42 +01:00
Stephen Turner
59a432ff40 CP-13374: Remove unused variable 2015-08-19 09:21:47 +01:00
Stephen Turner
227ee84da7 CP-13374 XenCenter can now turn on and off ssl-legacy.
The main functionality is working, but the ExpectDisruption flag isn't fully working yet.
2015-08-18 09:35:55 +01:00
Hui Zhang
aef05ab064 CP-13072: HealthCheckService: Use proxy for bundle upload.
Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-08-17 15:54:19 +08:00
Cheng Zhang
3f2e8a51da CA-179369: Change CIS default setting
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-08-11 16:09:45 +08:00
Stephen Turner
cdfc665458 Merge pull request #596 from GaborApatiNagy/master_CA-177058
CA-177058: [SCTX-2146] VM Power Admin could not create VMs - RBAC issues with XS 6.5
2015-08-05 12:21:27 +01:00
Gabor Apati-Nagy
f6b632d0b6 Merge pull request #593 from agimofcarmen/CA-178243
CA-178243: When only Automatic check for XenServer updates was checke…
2015-08-04 17:30:22 +01:00
Carmen Agimof
c8e5138031 CA-178243: Refactors code, simplifying it. Now we only keep one list in DownloadUpdatesXmlAction for XenServerVersions and added a property that returns the list with the versions if Automatic check for XS version is checked and a new list which is empty when is not checked. 2015-08-04 17:28:29 +01:00
Gabor Apati-Nagy
191820abf4 CA-177058: [SCTX-2146] VM Power Admin could not create VMs - RBAC issues with XS 6.5 2015-08-04 11:25:59 +01:00
Carmen Agimof
9de57d38c2 CA-178243: When only Automatic check for XenServer updates was checked in Updates Options, when opening XC, the grid appeared empty in the Updates Tab. This was because to get the list of XS updates, we need the list of XS versions. Created a list of XenServer versions that is used only to get the XenServer updates. 2015-08-03 15:06:01 +01:00
Mihaela Stoica
f6c477eb67 Merge remote-tracking branch 'hui/CA-178338' into CP-13073 2015-07-30 10:31:38 +01:00
Hui Zhang
d6ff10654d CA-178338: XenServerHealthCheckService: bundle uploading update.
1. Add logs to track the uploading process.
2. Catch the potential exception.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-07-30 17:02:48 +08:00
Mihaela Stoica
61b5821e4f CP-13073: Rename files (Call Home to Health Check)
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-29 09:12:46 +01:00
Mihaela Stoica
a9be9846ff CP-13073: Rename Call Home to Health Check in code
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-29 08:44:41 +01:00
Gabor Apati-Nagy
ecb048b9ee Merge pull request #572 from MihaelaStoica/CP-13120
CP-13120: User-friendly errors when Health Check authorization fails
2015-07-28 16:14:28 +01:00
Mihaela Stoica
bfa5db8b40 Merge pull request #574 from GaborApatiNagy/master_CA-173497
CA-173497: Thin provisioning: Repair of SR of thin-provisioning on SR hang without return
2015-07-27 13:12:10 +01:00
Gabor Apati-Nagy
50797b5805 CA-173497: Thin provisioning: Repair of SR of thin-provisioning on SR hang without return
-When detaching an SR, we detach the slaves first
-When reattaching the SR, we attach the master first

This fix was required by thin provisioning, but it does worth to use the same logic regardless of the provisioning method.
2015-07-24 14:48:09 +01:00
Mihaela Stoica
b22331fb68 CP-13120: User-friendly errors when Health Check authorization fails 2015-07-24 09:01:04 +01:00
Mihaela Stoica
f727af1c51 CP-12679: Upload the report from the Server Status Report wizard
- added the upload action, called after the report is successfully saved on disk.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-20 15:15:51 +01:00
Mihaela Stoica
96f9b9c6ac CP-12679: Upload the report from the Server Status Report wizard
- make pre product key (used for authentication) configurable via registry entries

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-20 15:15:45 +01:00
Mihaela Stoica
df8ac2ce74 CP-12679: Upload the report from the Server Status Report wizard
- moved XenServerHealthCheckUpload.cs to XenModel

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-20 15:15:42 +01:00
Mihaela Stoica
f262692693 Rename Health Check service name to "XenServerHealthCheck" 2015-07-17 16:05:15 +01:00
Cheng Zhang
09d0245082 CP-12769: Send credential only when HealthCheckService is running.
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-15 13:49:23 +08:00
Mihaela Stoica
8679858177 Added copyright/license headers
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-10 13:36:26 +01:00
Mihaela Stoica
d366c57f55 CP-12890: Allow user to specify XenServer credentials to use for Health Check
- added new fields to the Health Check Settings dialog (XenServer credentials)
- these credentials are saved as xapi secrets, and on un-enroll they are being removed
- removed the Authenticate button; the authentication is now done on pressing the OK button
- the Health Check Settings dialog is displayed on "Enroll now" and "Edit Health Check settings"
- display the "Last Successful Upload" on the Health Check Overview dialog
- use uniform format when converting time to string and string to time

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-06 17:02:55 +01:00
Cheng Zhang
a0431e5cb9 CP-12770: rework comments
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 19:12:43 +08:00
Cheng Zhang
50817a5746 CP-12769: Add timeout for pipe client connecting
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 18:19:44 +08:00
Cheng Zhang
324c249285 CP-12769: Send server connection details to the Health Check Service
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 11:53:56 +08:00
Gabor Apati-Nagy
43fb63d522 Merge pull request #521 from MihaelaStoica/CP-12164
CA-12164: Server Status Report wizard: Add option to upload the serve…
2015-06-30 15:45:47 +01:00
Mihaela Stoica
9c13c7e4b9 CA-12164: Server Status Report wizard: Add option to upload the server status report to CIS
In the CallHomeAuthenticationAction.SetUploadTokenSecret() check if the tokenKey is null (public static, may be reused later).

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-30 12:04:24 +01:00
Gabor Apati-Nagy
bebd1583ca Merge pull request #514 from MihaelaStoica/CP-12164
CA-12164: Server Status Report wizard: Add option to upload the serve…
2015-06-30 11:58:50 +01:00
Gabor Apati-Nagy
3402ca03d8 CP-12314: CAR-576 XC: New SR type for FCoE
Added 'path' for FCoE device config
2015-06-29 14:44:32 +01:00
Mihaela Stoica
551d7657ca CP-12314: Add New SR type for FCoE in the SR wizard
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-29 14:44:29 +01:00
Mihaela Stoica
d4f41660b8 Merge pull request #505 from GaborApatiNagy/master_CP-12641
CP-12641 and CP-12475: XenCenter work for thin provisioning
2015-06-29 14:08:16 +01:00
Mihaela Stoica
f0e7f5328f CA-12164: Server Status Report wizard: Add option to upload the server status report to CIS
- add the option on the destination page of the wizard
- for authentication purposes, MyCitrix credentials are required.
- these credentials are only used to obtain an upload token that will be used for the upload.
- the upload token expires in 24 hours and is not saved in the xapi database.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-25 23:51:11 +01:00
Gabor Apati-Nagy
306a8b0acb CP-12641 and CP-12475: XenCenter work for thin provisioning
-New SR wizard: new page
-Add Virtual Disk dialog: new fields

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-06-17 09:59:21 +01:00
Mihaela Stoica
0cd0b5f0d7 CP-12626: Use health_check_config field for Call Home enrollment settings
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-16 14:47:33 +01:00
Mihaela Stoica
2dd4c52350 CP-12153: Call Home Authentication
- added getter and setter to the token property to prevent "Field never assigned" warning

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-03 15:14:39 +01:00
Mihaela Stoica
f8e47e82b5 CP-12153: Call Home Authentication
- changes following code review
- added some more logging of exceptions, also some null checks

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-02 16:47:19 +01:00
Mihaela Stoica
9c3982542e CP-12153: Call Home Authentication
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-06-02 14:48:59 +01:00
Mihaela Stoica
9783c6dc7e CP-12152: Call Home enrollment 2015-05-18 15:23:32 +01:00
Gabor Apati-Nagy
ffb620461f CA-147254: Adding DVD drive fails with obscure error message 2015-05-15 16:32:37 +01:00
Mihaela Stoica
830d8f6f60 CP-11292: Remove storage motion constraints: changes following code review
- added some null checks
- in the Cross pool migrate wizard, add Transfer network page for all cases except intra-pool move (which is performed via VMMoveAction)
- added comments to VMCrossPoolMigrateAction constructor to make it cleared what the copy parameter means

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-04-15 09:37:12 +01:00
Mihaela Stoica
e314a654f7 CP-11292: Remove storage motion constraints: Allow cross-pool copy for stopped VMs
- modified the VMCopyCommand to launch a cross pool copy if permitted
- added the CrossPoolCopyVMCommand which opens the Cross pool migration wizard in "copy" mode
- modified the cross pool migrate action with an extra "copy" parameter, which will add a copy option to the vm.migrate_send function call

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-03-31 14:27:04 +01:00
Gabor Apati-Nagy
eb61f8fe0c CA-165367: Reclaim freed space feature fails on Local storage on Slave host 2015-03-27 15:06:17 +00:00
Gabor Apati-Nagy
23319daeba Merge pull request #393 from MihaelaStoica/CP-11032
CP-11032: Remove storage motion constraints: Allow cross-pool move of stopped and suspended VMs
2015-03-24 18:11:48 +00:00
Stephen Turner
1eef9002c8 Hotfix download progress bar makes GUI unresponsive 2015-03-19 14:23:54 +00:00
Mihaela Stoica
d616009824 CP-11032: Remove storage motion constraints: Allow cross-pool move of stopped and suspended VMs
- With these changes, a stopped or suspended VM can be moved across pools; this is performed as a vm migrate operation.
- The intra pool move will continue to be a vdi.copy + destroy operation for stopped VMs, but for suspended VMs we need to do it a as vm migrate operation.
- We use the Cross Pool migrate wizard for both intra and cross pool move operations, but introduced a wizard mode parameter in order to adapt the wizard to the specific operation we want to perform (migrate, move or copy)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-03-17 16:35:12 +00:00
Gabor Apati-Nagy
35b3edd590 CA-163778: [CAR-1711] Cleanup not working
-When calling cleanup_disk_space, excluded patch is passed only when it is
not null

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-03-13 13:47:45 +00:00
Gabor Apati-Nagy
f6dad3c2a2 CA-163777: [CAR-1711] Incorrect message for cleanup
-Added missing parameter to get_required_space plugin call.
-The required space is not shown in the notification when we are unable to tell how much space is required .

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-03-11 14:49:07 +00:00
Gabor Apati-Nagy
be8cd99839 CP-11364: XC to use xapi.secret when creating CIFS SRs 2015-03-10 14:59:05 +00:00
Mihaela Stoica
18ee60104b CA-162966: Fix the bug where the GPU value could not be updated via VM Properties for Linux HVM
- The problem was that we didn't create a vgpu if the vgpu_type was null. But for Linux HVM, this is gpu passthrough case.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-03-04 16:50:49 +00:00
Mihaela Stoica
c7f3ea5b30 Merge pull request #358 from GaborApatiNagy/CP-10144
CP-10144: Support CIFS as an SR type in XenCenter
2015-03-03 17:07:37 +00:00
Gabor Apati-Nagy
2d98dd9d85 CP-10144: Support CIFS as an SR type in XenCenter
-Added support for CIFS (SR type, SR Wizard)
-Added some Debug.Asserts to the Create SR action to watch for clear text paswords

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-03-03 15:51:56 +00:00
Mihaela Stoica
6d4e68b308 CA-161620: Changes following code review
- log the error description as Error, not Warning
- slightly changed the action title

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-03-03 14:51:44 +00:00
Mihaela Stoica
de4ff847c5 CA-161620: If the supplemental pack installation fails, then XenCenter will display a message suggesting the user refers to the users guide for installing via the CLI.
- When the install fails, log the full error description
- Added a specific exception for the supp pack installation failure
- Better action title (depending on the number of servers it applies to)
- Added a "More Info" button on the "Update" page, which displays a message with more information on the supp pack installation failure

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-27 17:00:03 +00:00
Mihaela Stoica
9c0bdcf08c Merge branch 'master' of https://github.com/xenserver/xenadmin into CP-10625 2015-02-25 15:50:59 +00:00
Gabor Apati-Nagy
29b7342597 Merge pull request #339 from MihaelaStoica/CA-161097
CA-161097: Pause the automatic refresh on Container processes page when the page is not visible
2015-02-25 15:15:54 +00:00
Mihaela Stoica
bf2e9bcfb1 CP-10625: Provide Xencenter user interface to enable/disable integrated GPU passthrough
- Added a "Integrated GPU passthrough" section to the PoolGpuEdit page.
- This section is only visible for a host that has GPU capability and the enabling/disabling of integrated GPU passthrough is not restricted.
- With this addition, the GPU page can now be displayed for a pooled host as well (previously only pool or standalone host)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-25 13:01:03 +00:00
Mihaela Stoica
08d4b6e306 CA-161097: Changes following code review
- Disable the Refresh button while a refresh is in progress.
- Introduced ExecuteContainerPluginAction - an action that stores the container it was called for, so that on completion we can decide whether to update the view or not (if the container displayed has changed, then we shouldn't update the view with the results from a previously selected container).

These changes apply to container Processes and Details tabs.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-25 12:44:03 +00:00
Mihaela Stoica
8a9b2d8c70 Merge branch 'master' of https://github.com/xenserver/xenadmin into CP-10926
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

Conflicts:
	XenModel/XenAPI-Extensions/VDI.cs
	XenModel/XenAPI-Extensions/VM.cs
2015-02-23 17:57:18 +00:00
Stephen Turner
8aae324f0a Merge 2015-02-23 14:34:35 +00:00
Stephen Turner
5adab0cfa6 CAR-1711: Download update from a pool name, not an IP address 2015-02-20 13:39:13 +00:00
Stephen Turner
a2883d8252 CA-161460: Present a helpful error message when a patch we are trying to download from another server has been deleted 2015-02-20 13:07:20 +00:00
Mihaela Stoica
eab66b9bf0 CA-161002: Internationalize strings on the Cloud Config Parameters page and CreateVMAction
- also added Help Id got the Cloud Config Parameters page

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-19 14:48:52 +00:00
Mihaela Stoica
1a484b99ff CP-11135: Expand patch precheck to account for OUT_OF_SPACE exception
- Pool_patch.precheck can fail with the xapi error OUT_OF_SPACE when is trying to copy the patch from master to the slaves. This happens before the patch-precheck checks if enough space is available for installation. Therefore is different from the error we are currently processing, PATCH_PRECHECK_FAILED_OUT_OF_SPACE
- If the precheck fails with OUT_OF_SPACE then we try and retrieve the disk space requirements and report a HostOutOfSpaceProblem.
- Changed the PatchPrecheckCheck to try and find problem from a xapi failure, as well as from the result of the precheck  call.
- Also removed ampersand from the the link labels (More Info and Clean up)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-16 11:11:30 +00:00
Mihaela Stoica
9c652cd687 CP-10926: Add dialog for customizing the config drive in XenCenter after VM creation
- The cloud config parameters page is only visible on a VM that already has a config drive.
- The cloud config parameters can only be changed when the VM is halted.
- In the New VM wizard, if a template is selected that already has a config drive, them the wizard will display the existing configuration, not the default one.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-13 14:43:13 +00:00
Gabor Apati-Nagy
878229e9a8 CP-10798: XenCenter work for CAR-1711: Pre-Checks for hotfix installation space
-Fixed code following the code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-02-12 14:00:51 +00:00
Gabor Apati-Nagy
91789256e8 CP-10798: XenCenter work for CAR-1711: Pre-Checks for hotfix installation space
-Added HostOutOfSpaceProblem to let the user to clean up disk space when getting PATCH_PRECHECK_FAILED_OUT_OF_SPACE error at precheck stage in the patch install wizard.
-A bit of refactoring of DiskSpaceRequirements class in order to be reused here

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-02-12 13:13:45 +00:00
Mihaela Stoica
fe8c876a83 CP-10927: Add container restart operation
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-11 11:08:37 +00:00
Gabor Apati-Nagy
69b957cc63 Merge pull request #319 from MihaelaStoica/CA-160904
CA-160904: Fix NullReferenceException on the New VM Wizard
2015-02-10 11:45:30 +00:00
Gabor Apati-Nagy
746db783ec Merge pull request #317 from MihaelaStoica/CAR-1736
CP-10900: Add functionality for enabling/disabling/querying the containe...
2015-02-10 11:44:49 +00:00
Mihaela Stoica
640aef8c1e CP-10900: Add functionality for enabling/disabling/querying the container monitoring on a per-VM-basis to XenCenter
- Changed 'Enlightenment' to 'Container Enlightenment'

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-10 11:42:29 +00:00
Mihaela Stoica
dbebab2563 CP-10927: Internationalize existing container commands and actions
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-09 16:53:29 +00:00
Mihaela Stoica
8b9d089687 CA-160904: Fix NullReferenceException on the New VM Wizard
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-09 11:16:01 +00:00
Mihaela Stoica
c3b667ec7f CP-10900: Add functionality for enabling/disabling/querying the container monitoring on a per-VM-basis to XenCenter
New Page: Enlightenment on VM Properties Dialog, visible only for:
- VMs on Cream Or Greater hosts
- that can be enlightened, regardless of their power state

A VM can be enlightened if the key "xscontainer-monitor" exists in other_config.
A VM is enlightened if other_config:xscontainer-monitor if true.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-06 17:46:58 +00:00
Gabor Apati-Nagy
d1b6996809 Merge pull request #316 from MihaelaStoica/CP-10799
CP-10799: Ensuring sufficient disk space for service pack installation: ...
2015-02-06 15:04:55 +00:00
Gabor Apati-Nagy
2d89776d49 Merge pull request #315 from MihaelaStoica/CAR-1711
CP-10797: Ensuring sufficient disk space for service pack installation: ...
2015-02-06 13:51:36 +00:00
Mihaela Stoica
e6784d1837 CP-10799: Ensuring sufficient disk space for service pack installation: Display hotfix installation size on the Updates page
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-06 12:32:29 +00:00
Mihaela Stoica
19f66414a7 CP-10797: Ensuring sufficient disk space for service pack installation: Changes following code review
- don't update the progress bar when checking disk space (only the description)
- the color used for "in progress" action description (above the progress bar) should be the system default font color, not black
- actions should throw ArgumentNullException, not NullReferenceException

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-06 10:34:18 +00:00
Mihaela Stoica
48636e12d6 CP-10797: Ensuring sufficient disk space for service pack installation: In the Install Update Wizard check if there is enough space to upload a hotfix
- Before starting the upload to the master hosts, check if there is enough disk space (check only performed for Cream or greater hosts)
- If enough space available the upload starts automatically; otherwise an error is displayed
- If we can free up enough disk space then we offer the option to Clean up. Otherwise we provide the user with the information on required and available space and the user will have to manually free up required space.

- Also Disable the Upload page for oem updates

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-02-05 17:01:14 +00:00
Gabor Apati-Nagy
fddb5a032b Merge remote-tracking branch 'creedence-docker/master' into docker
Conflicts:
	XenAdmin/Wizards/NewVMWizard/NewVMWizard.cs
	XenModel/Messages.resx
2015-02-04 16:23:20 +00:00
Mihaela Stoica
f617b4ca26 CP-10621, CP-10824: Supp Pack installation through XenCenter: Changes following code review
UploadSupplementalPackAction:
- use http-put with the default timeout
- throw current exception in RemoveVDI (instead of encapsulating it in a new one)
- add other_config key before uploading to make sure the vdi has this flag set from the beginning of its lifetime
- upload progress bar now shows the total progress per row

Also included a cosmetic rewrite of PatchingWizard_PatchingPage,GetUpdateName function

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-01-28 09:51:25 +00:00
Mihaela Stoica
a6b58acbd2 CP-10824: Supp Pack installation through XenCenter: Add other_config entry for the temporary VDI
- add an entry in the VDI's other_config to identify it as supp pack iso, so that we can easily find these vdis and remove if needed

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-01-27 11:00:35 +00:00
Mihaela Stoica
5b33590df0 CP-10824: Supp Pack installation through XenCenter: Install supp pack from vdi
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-01-26 15:43:36 +00:00
Mihaela Stoica
11d86f1c90 CP-10621: Supp Pack installation through XenCenter: Select and upload a supp pack in the hotfix wizard
- Select a supp pack in the hotfix wizard
- Recognise that it's a supp pack not a hotfix
- Check if there's enough space on a SR to contain it: (1) default SR if shared or (2) any shared SR or (3) local SR on each host in pool
- Create a VDI to contain it
- Upload the supp pack to the VDI

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-01-23 12:31:44 +00:00
Mihaela Stoica
dbdd3cc02c CA-157501: Fixing inconsistent GPU dialogs in XS "Standard" when compared with "Enterprise"
New properties:
- Pool.HasGpu = Pool has at least one PGPU
- Pool.HasVGpu = Pool has at least one PGPU that HasVGpu
- PGPU.HasVGpu = PGPU has at least one supported_VGPU_type that is not pass-through

New or modified helper functions:
- Helpers.GpuCapability = GPU feature not restricted (by licensing) and Pool.HasGpu
- Helpers.VGpuCapability = vGPU feature not restricted (by licensing) and Pool.HasVGpu
- Helpers.ClearwaterSp1OrGreater = API version is 2.1 or greater

The GPU dialogs are displayed as follows:
- GPU page on VM properties dialog: Visible only if VM.CanHaveGpu and the GPU feature not restricted (by licensing)
- GPU page on New VM Wizard: Visible only if VM.CanHaveGpu and the pool has GPU capability (Helpers.GpuCapability)
- GPU page on Pool properties dialog: Visible only if the pool has vGPU capability (Helpers.VGpuCapability)
- GPU tab: Visible only if the pool has GPU capability (Helpers.GpuCapability) and is Clearwater SP1 or greater
- On the GPU tab, the "Placement policy" panel: Visible only if the pool has vGPU capability (Helpers.VGpuCapability)
- On the GPU tab, the "Edit" button on the "vGPU types" panel: Visible only if the PGPU.HasVGpu and vGPU feature not restricted (by licensing)

Also:
- VM.CanHaveVGpu function renamed to CanHaveGpu
- On the GPU tab, renamed "Allowed vGPU types" to "vGPU types
2015-01-19 16:49:47 +00:00
Gabor Apati-Nagy
d50f8a7d94 Merge branch 'master' into master_github
Conflicts:
	XenModel/Messages.resx
	XenModel/XenAPI-Extensions/Host.cs
	mk/xenadmin-build.sh
2015-01-19 15:22:59 +00:00
Mihaela Stoica
13c6d323c3 CA-147163: Non-modal hotfix upload progress dialog
- Added new page to the patching wizard, called "Upload" which displays the upload actions for each server and the progress of these actions
- MultipleAction: added the functionality to optionally stop the action on first failure
- Fixed the error where an existing patch downloaded from another server and then uploaded to a new one was not deleted on cancelling the wizard [CA-156788]

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-01-09 12:54:12 +00:00
Mihaela Stoica
a109726218 CA-153178: Add context menu for Docker containers in the XC treeview and start, stop, pause and resume commands 2014-12-05 10:28:55 +00:00
Gabor Apati-Nagy
afbbf25325 CA-153179: Add options for customizing the config drive to the XC VM creation wizard
Todo: tidy up code & code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2014-12-04 18:04:43 +00:00
Mihaela Stoica
65b4ef1f37 CA-152052: Fix the issue where the License Manager showed the wrong state when assigning/releasing license from pool
The problem was that the License Manager was listening to PropertyChanged events on the master only, not on slaves.
When the master's properties change (e.g. edition) we update the row in the license manager; but in some cases a slave (or more) hasn't been updated yet (as it may be updated in another event.from) and we think that the pool is partially updated.
Our solution is to listen to Host BatchCollectionChanged event, which is triggered once per cache update for the host collection (it any property changed for any of the hosts).
The sleep in the ApplyLicenseEditionAction is not needed anymore, nor is the extra call to update the cell after the action is completed, because the cell is getting updated correctly on the BatchCollectionChanged event.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-11-24 16:57:42 +00:00