1. Technical Field
This invention relates to the field of computer systems. More specifically, the invention relates to computer software plugin modules and installation thereof.
2. Description of the Prior Art
In computer network application, it is common for an application running at a particular computer to interact with or use another application that may be located at the same computer or at a different computer in communication therewith via a network connection. Technology in the computer area is subject to change on an ongoing basis, both in the hardware and software technologies. As a result, computer applications in a network environment are often faced with changes in the network environment, whether they are changes in software application used by a program or changes in hardware, such as changing the machines or connections used to run services in the network environment. The challenge of adapting to new technologies resides not only with the end user or client side, but also with the network service provider.
A base module is basic software and/or hardware that enables client machines and servers to operate. A plugin module extends the functionality of the base module with value added services, wherein the value added services may be standard compliant services or proprietary services. The plugin is the smallest identifiable compiled code used to implement a feature or a set of features. In one embodiment, the plugin module may provide additional services needed for a new device type that is not supported by the base module. Computer software products that require modification or extension after the base module software products are up and running on a client machine are typically extended using a plugin module that interfaces the client system where the software product resides. The client machines must recognize and install the appropriate plugin to complete a software extension and must interface both the plugin module and the software product. The responsibility for all knowledge of how to verify the appropriateness of the use of a specific plugin module resides both in the host computer system as well as all related modules that expect to use the plugin.
The base of information grows exponentially as plugin modules are added and evolve over the life cycle of the software product. Upgrades to existing modules may be required each time a new individual plugin is defined. For example, in a conventional client-server system, management of distributed state information for the system requires storage of per-client state information at the service end so that services can rely on certain facts about the client state. Similarly, a server stores overhead information about the particular program(s) and version(s) available at a client to permit proper interaction between the server and client. In one embodiment, extensions are used to maintain compatibility information as plugin modules expand. Each new software extension or plugin module creates a new set of module interdependencies that must be maintained in all modules that expect to use the newly created plugin. The controlling system must contain all information about the management of the plugin prior to actually loading it and providing its services to the software system. User intervention is typically required to effectuate the plugin module.
A server and storage management architecture directly leads to a need to support multiple server types, device types, fabric-types, services, etc., wherein fabric is another term for storage area networks. As a management application associated with the architecture evolves, there is a need to add support for additional devices, fabric types, and services that may have been added to the architecture. Added services may have dependencies on base services. New services may need to be backward compatible with one or more dependent service versions. In addition, the architecture needs to support an application packaging and deployment model for revenue generation as the customer's needs grow, while reducing customer difficulties experienced during deployment.
One prior art solution is shown in U.S. Pat. No. 6,871,345 issued to Crow et al. This patent describes a plugin manager that uses plugins with some introspection capability to determine what resources they need. The plugin manager allows for plugin deployment. However, there is no teaching or support of packaging plugin modules to classify services in a hierarchical manner.
Therefore, there is a need to provide an internal identifier to a plugin module and a package of plugin modules. The package identifiers should be assigned in a hierarchical manner to support compatibility determination between specified packages.
This invention comprises a method and system for managing installation of plugin packages and associated plugin modules.
In one aspect of the invention, a method is provided for packaging software. A first identifier is assigned to a first package of one or more plugin modules, including an installed plugin module with an internal namespace. The first identifier is associated with identifying data in the internal namespace. In addition, one or more non-installed plugin modules are compiled into a second package of plugin modules. A second identifier is assigned to the second package of plugin modules. The second identifier is assigned in a hierarchical relationship to the first package identifier and it is associated with identifying data in the internal namespace of the non-installed plugin module. Thereafter, the second identifier of the second package of plugin modules is compared with the first identifier of the first package of plugin modules to determine compatibility of the second package with the first package.
In another aspect of the invention, a computer system is provided with a first package having at least one plugin module and an associated first identifier. The installed plugin module has an internal namespace. This first identifier is associated with identifying data in the internal namespace of the installed module. In addition, a second package is provided having at least one non-installed plugin modules. The second package is assigned an identifier in a hierarchical manner with respect to the first package. In addition, the second package identifier is associated with identifying data in an internal namespace of a non-installed package. A manager is provided in the system to compare the second identifier with the first identifier to determine compatibility of the packages of plugin modules.
In another aspect of the invention, an article is provided with a computer readable medium. Instructions in the medium are provided for assigning a first identifier to a first package of one or more plugin modules, which includes an installed plugin module having an internal namespace. The first identifier is associated with identifying data in the internal namespace. Instructions in the medium are also provided for compiling one or more non-installed plugin modules into a second package of plugin modules. A second identifier is assigned to the second package of plugin modules through instructions in the medium. The second identifier is assigned in a hierarchical relationship to the first package identifier and is associated with identifying data in an internal namespace of a non-installed plugin module. Instructions in the medium are provided for comparing the second identifier of the second package of plugin modules with the first identifier of the first package of plugin modules, and for determining compatibility of the second package of plugin modules with the first package of plugin modules through the comparison of the identifiers.
Other features and advantages of this invention will become apparent from the following detailed description of the presently preferred embodiment of the invention, taken in conjunction with the accompanying drawings.
Plugin modules and packages of plugin modules are each assigned unique identifying data based upon characteristics associated therewith. A namespace is created in each plugin module to house the identifying data. During installation of a plugin module, compatibility of the plugin module designated for installation with previously installed plugin modules is determined based upon the identifying data stored in the namespace of both the installed plugin module and the previously installed plugin modules. The compatibility of the plugin modules is based exclusively upon an internal comparison. Accordingly, compatibility of the plugin modules eliminates the requirement to utilize external data or resource(s) during or prior to the installation process.
The smallest software unit, i.e. compiled code, in this scheme may be in the form of a base module or a plugin module. In one embodiment, the base module or plugin module may be in the form of a shared library or a Java jar file. The base module supports the basic services required for basic configuration of a storage device, fabric, or server. For example, in the context of a storage device, one base module may support one or more disk types, and a second base module may support servers, tapes, and fabric types. A plugin module is different than a base module in that it provides additional features needed for a new device type that is not supported by the base module. Each plugin module is self describing and may include one or more of the following attributes: a name of the plugin, a version identifier associated with the plugin, the capabilities of the plugin, a list of dependencies, and a checksum. The attributes of the plugin may be compiled into code and be always in memory. In one embodiment, the memory that stores the plugin attributes is volatile memory. The name of the plugin is used for development, test, and field support, and is not visible to the customer. In one embodiment, the name may be in the form of a string. Similarly, the version identifier is used for development, test, and field support, and is not visible to the customer. In one embodiment, the version identifier is an integer. The capability vector may be a compilation of data indicating the device the plugin can support. In one embodiment, the capability vector may be a compilation of bits. The dependency list may be a compilation of data that communicates compatibility of the base or plugin module with other modules or packages of modules. In one embodiment, the dependency list may be in the form of a compatibility vector. Capture of the dependencies presents a method for resolving dependency issues among both base modules and plugin modules, and enabling customers to purchase missing plugins in packages. The checksum of bytecode of a plugin is a security feature to ensure that properties of the plugin have not been corrupted. The properties described herein, i.e. name, version, capability vector, dependency list, and checksum, should not be considered limiting. This list of properties may be reduced or expanded as needed. Each plugin is self describing based upon its properties, including the above described properties.
The next hierarchical larger software unit from a plugin is a package comprising zero or one base modules and at least one plugin modules. In one embodiment, a package may be an aggregation of plugin libraries or Java jar files. A package is an installable entity on a server or client machine. Each package may be defined to be compatible and assigned to function with a specific storage device, server, or fabric type. Each plugin module in a package is compatible with other plugin modules in the same package. In one embodiment, one or more plugins of a package may have dependencies on other plugin modules that reside in another package.
Each package of plugin modules includes a version identifier. In one embodiment, a package version identifier is generated at the time of release of the package of plugin modules. The package identifier may be generated using an identifier from each plugin module that comprise the package of plugin modules. In one embodiment, the package version string is generated by packaging scripts or a java program prior to a management application release of the package. The package version identifier is incremented each time a plugin module version in the package changes to provide a hierarchical packaging model. Regardless of the version of the plugin in a package, plugin modules in a package with a defined version are tested for backward compatibility with plugin modules in a package with an assigned prior version identifier based upon the defined hierarchy. For example, plugin modules in a package with versionN+1 are tested for compatibility with plugin modules in a prior package with versionN. Each version of a package bears a correlation with the most recently changed plugin module or an added plugin module in a hierarchy of packages of plugin modules to ensure backward compatibility. Furthermore, each package may support one or more services. A service or services can be deployed by determining which package, i.e. grouping of plugin modules, supports the desired service. Accordingly, each package of plugin modules will guarantee support of an adjacent previous version, but will not guarantee support of other earlier versions.
At the time of release of the management application, a package identity plugin is created returning a map comprised of the package, the name of the device, server, and/or fabric type, and the name of the plugin. In one embodiment the package identity plugin may be generated by packaging scripts or a java application. This map is generated using the plugin identity class for each plugin in the package. This class also captures the package version string that is generated prior to the management application release. In one embodiment, the package version string is generated by packaging scripts or a java program. This packaging technique encapsulates the server, device and/or fabric type and service information in the namespace of the plugin module(s) and plugin package(s). As such, the plugin module(s) and associated package(s) are self describing. The version information for the plugins and associated packages are maintained internally. There is no need to consult a resource external to the plugin and/or associated plugin package during an upgrade installation, since all of the required data is maintained internally with the plugin and/or associated plugin package. 15
The invention can take the form of a hardware embodiment, a software embodiment or an embodiment containing both hardware and software elements. In one embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk B read/write (CD-R/W) and DVD.
A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
In one embodiment, a manager is provided to facilitate upgrade of packages.
For the purposes of this description, a computer-useable or computer-readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Each plugin module and package of modules is a self describing entity that includes a namespace. The information in the namespace of each self describing entity encapsulates the server, device and/or fabric type and service information of the plugin module(s) and plugin package(s). Placement of one or more plugin modules into a package includes assignment of an identifier to the package. The identifier is maintained in the package namespace. During installation of a package of plugin modules, the namespace of the package is consulted to compare the package identifiers to determine compatibility with a previously installed package of plugin modules. The identifiers are assigned in a hierarchical manner and each package of plugin modules is only compatible with an adjacently previous package of plugin modules. Following comparison and approval of the compatibility of the package of plugins, a dependency list in the namespace of the individual plugin modules that are assigned to the package are consulted to determine if any additional package of plugin modules or individual plugin modules are required to support the installation. The data in the namespace eliminates the need to consult an external source for installation to determine compatibility of the current install with an existing base module or previously installed plugin module(s).
It will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without departing from the spirit and scope of the invention. In particular, property files capturing the information in the plugin identity class and the package identity plugin can be used. Accordingly, the scope of protection of this invention is limited only by the following claims and their equivalents.