Versions Compared

Key

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

...

  • 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.
    1. Search the released patches for applicable XenServer version.
    2. Fetch the information about the already applied patches from the agent.
    3. Compare the list of available patches with the list of already applied patches.
    4. Prepare a list of patches that are not yet applied.
    5. Fill/update the patch details into host_updates table.
    6. Make a corresponding entry into patchhost_hostupdates_ref table.

Admin can change the time interval to check the updates by changing the value of update.check.interval global config parameter(by default interval is set to check for updates once a week).

...

  • host_updates (id, uuid, label, description, label, url, timestamp) :  This table contains the details about the patches for different XenServers versions.

    Field

    Type

    NULL

    Key

    Default

    Extra

    id

    bigint(20) unsigned

    NO

    PRI

    NULL

    auto_increment

    uuid

    varchar(40)

    NO

     

    NULL

     

    description

    varchar(999)

    YES

     

    NULL

     

    label

    varchar(40)

    YES

     

    NULL

     

    timestamp

    timestamp

    YES

     

    NULL

     

    url

    varchar(999)

    YES

     

    NULL

     

  • patchhost_hostupdates_ref (id, host_id,patch_id, update_applied) : This table maps the hosts from host table with the applicable patches from host_updates table.

    Field

    Type

    NULL

    Key

    Default

    Extra

    id

    bigint(20) unsigned

    NO

    PRI

    NULL

    auto_increment

    host_id

    bigint(20) unsigned

    NO

    MUL

    NULL

     

    patch_id

    bigint(20) unsigned

    NO

     

    NULL

     

    update_applied

    tinyint(1)

    NO

     

    0

     

...

  • HostUpdatesDao.java
  • HostUpdatesDaoImpl.java
  • HostUpdatesVO.java
  • PatchHostRefDaoHostUpdatesRefDao.java
  • PatchHostRefDaoImplHostUpdatesRefDaoImpl.java
  • PatchHostVOHostUpdatesRefVO.java

New managers interfaces and implementation:

...

Changes to Existing Files:

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

New Agent APIs:

  • hostUpdatesCommand.java
  • hostUpdatesAnswer.java

...