Commit Graph

19 Commits

Author SHA1 Message Date
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
Cheng Zhang
d380500dda CA-186236: Make HealthCheck follow xenserver master change
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-11-03 12:39:41 +08:00
Cheng Zhang
b650c226e7 CP-13592: Refactor reg read function
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-08-11 15:41:31 +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
ce36434611 Merge pull request #555 from huizh/CP-13057
CP-13057: Add config provider for XenServerHealthCheckService.
2015-07-17 14:37:03 +01:00
Hui Zhang
ef1faf7776 CP-13057: Add config provider for XenServerHealthCheckService.
Introduce XenServerHealthCheckConfigProvider to implement IXenAdminConfigProvider.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-07-17 14:51:27 +08: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
Cheng Zhang
a750a5b770 CP-13071: Make the CIS upload domain and upload timer interval configurable in service
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-14 14:50:42 +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
Mihaela Stoica
ea786180fc Fix line endings (to Windows) 2015-07-01 15:58:58 +01: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
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
825aa3abd5 CP-12769: Include task information in ServerList
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 16:02:14 +08:00
Cheng Zhang
934b0cf381 CP-12770: use server connection details received from XenCenter
1. Create named pipe: “HealthCheckServicePipe”
2. Receive credential send from XenServer and decrypt it
3. Update credential setting and save encrypted credential using current user scope system user.
4. Create work thread to handle the pipe communication.
5. If HealthCheckServicePipe already existed before service start, stop service and output service error log
6. If sign off information is received for a host (XenserverName or IP without username and password) then the existing saved credentials will be deleted
7. If the HealthCheckService connects to a host that is no longer enrolled, then it will delete the existing saved credentials

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 09:54:11 +08:00
Cheng Zhang
038b8792e3 CP-12624: Upload a CallHome report to CIS on demand
1. Add Upload a CallHome report to CIS on demand logic
2. Add test cases to check the function

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-10 19:02:29 +08:00
Cheng Zhang
8333bfcb19 CP-12158: Rework review comments
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-10 17:32:52 +08:00
Cheng Zhang
e220e489c9 CP-12158: Read the Call Home upload schedule and determine if an upload can start
1.Add logic to firm an upload can start.
2.Lock will be added if upload can start
3.Add unit test

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-08 16:32:54 +08:00
Cheng Zhang
b9267e00a2 CP-12158: Add debug log for XenServer Health Check Service
Log will be located at ${PROGRAMDATA}/Citrix/XenServerHealthCheck/logs/XenServerHealthCheck.log

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-04 15:15:33 +08:00
Cheng Zhang
1c55e8199a CP-12157: Create XenServerHealthCheck service framework
1.Create a service named XenServerHealthCheck
2.Read the XenCenter Server List from configuration
3.Try to connect to these servers
4.Modify protection of XenCenter config from CurrentUset to LocalMachine

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-05-28 17:18:18 +08:00