Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Architecture and Design description

This hostUpdates feature will come as a separate plugin which will enumerate all the hosts managed by CloudStack to provide the udpates. We will use this PluggableService to add the HostUpdate feature APIs into CloudStack, so for that we will add the HostUpdatesService seperate service in the components.xml. The manager from HostUpdates plugin will find this entry and call the HostUpdatesService to handle API calls.  We will build this plugin as a seperate target, so we will get a .jar file to use hostUpdates functionality. 

Search for Host Updates

At regular intervals, update.check.interval, management server will look for all available updates for a Hypervisior. For Xenserver, it'll downloads the latest update information from http://updates.xensource.com/XenServer/updates.xml. The location is configurable through xen.update.url in global configuration.

...

New objects interfaces:

  • HostUpdatesRef.java
  • HostUpdatesService.java

New VO and Dao objects:

...

Changes to Existing Files:

  • Add a new method "searchForHostUpdates" in ManagementService.java and implemented in ManagementServerImpl.javaAdd a new methodin CitrixResourceBase.java to get the information about the applied patches to a host using XAPI *calls.
  • Add a call in ResourceManagerImpl.java to delete the update entries from patch_host_ref table only if admin removes the associated host.
  • Add new call createHostUpdateResponse in interface ResponseGenerator.java *and implemented it in *ApiResponseHelper.java .
  • Add a new component HostUpdatesManager.

...

  • hostUpdatesCommand.java
  • hostUpdatesAnswer.java

 These agent APIs will not be present in hostUpdates plugin, these APIs will come the api project under com.cloud.agent.api packages.

Logging and Debugging

All logs will go to management-server.log

...