...
- Requirements
- Search available updates released for applicable XenServer versions and display them on CloudStack dashboard so that admin can see the available updates and apply them manually.
- Non-requirements
- Cloudstack will only list the available updates and it is not responsible for applying the updates on the host.
- Test guidelines
- Configuration
- There are two global configuration parameters:
- xen.update.url - URL to get latest Xenserver Updates. Default value for it is http://updates.xensource.com/XenServer/updates.xml;
- update.check.interval (in sec) - How frequently should CloudStack check for Xenserver Updates. By default CloudStack will check for new updates once a week.
- User permission
- Root-Admin would have privilege to list the available updates.
Use Cases
*Admin can check the updates available to any host and install them manually.
*Admin can decide on how frequently he wants Cloudstack to check for updates and set the interval by changing the global config parameter update.check.interval .
Architecture and Design description
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.
- Search the released patches for applicable XenServer version.
- Fetch the information about the already applied patches from the agent.
- Compare the list of available patches with the list of already applied patches.
- Prepare a list of patches that are not yet applied.
- Fill/update the patch details into host_updates table.
- Make a corresponding entry into host_updates_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).
...