Commit Graph

16 Commits

Author SHA1 Message Date
Gabor Apati-Nagy
7c0bc50b4a CA-176169: Changed copyright statements to include the comma in Citrix Systems,
Inc.

Signed-off-by: Gabor Apati-Nagy<gabor.apati-nagy@citrix.com>
2017-01-16 19:59:50 +00:00
Gabor Apati-Nagy
6f1ae68a09 CA-148491: XenServer breaks if any XenAPI client leaks sessions
Fixing XenServerHealthCheck to use modern overload of session.login_with_password. With this change XC and all its components are now sending an originator field (with some version added to it).

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-12-14 13:11:49 +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
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
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
1fc91d2381 CP-13592: Add reg to store upload url and time interval
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-08-07 12:07:20 +08: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
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
Mihaela Stoica
136b8c9c96 CP-12679: Upload the report from the Server Status Report wizard
- added the upload url as a parameter to XenServerHealthCheckUpload constructor

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-20 15:13:44 +01:00
Mihaela Stoica
14119bc008 CP-12160: Changes following code review
- added CallHomeSettings.TryParseStringToDateTime() function, which does not throw an exception if the conversion fails

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-07 15:32:14 +01:00
Mihaela Stoica
6fee699ee0 CP-12160: Fix some issues found during the integration tests
- Use string.IsNullOrEmpty() instead of string.Length
- Reset NewUploadRequest after a successful upload (if the upload started after the request time)
- When trying to determine if an “on demand” upload is due, avoid parsing exception if the NewUploadRequest if the field is empty.
- Also added more detailed logging.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-06 17:10:00 +01:00
Cheng Zhang
c0585f0681 CP-12769: Using uniform format of time to string and string to time
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-02 17:54:00 +08:00
Hui Zhang
d8b8ff96c5 CP-12160: XenServerHealthCheck: upload server status report to CIS.
Update to return from the uploading thread when service stops.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-07-02 16:12:49 +08:00
Cheng Zhang
903931e63d CP-12769: Fix issue when integration test with CIS
1.	Using en-us to transfer upload request time
2.	Check the pipe is closed before close it.
3.	On demand upload will not have 24 hour due problem since it only check once in half an hour
4.	Avoid get upload token by empty session.

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-02 13:53:44 +08:00
Hui Zhang
384b033305 CP-12160: XenServerHealthCheck: upload server status report to CIS.
When an upload request is triggered,
1. fetch the upload token from CallHomeSettings,
2. generate the server status report and upload it to CIS server,
3. update the corresponding fields of CallHomeSettings when the
   upload is finished successfully or failed.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-07-01 19:22:32 +08:00