1. Technical Field
The present invention relates generally to an improved data processing system and in particular to a method and apparatus for processing data. Still more particularly, the present invention relates to a method, apparatus, and computer instructions for monitoring software combinations.
2. Description of Related Art
Software modules are often put together to form suites or packages. A software module is a self-contained software component that interacts with a larger system. Software modules are designed to handle a specific task within a larger program or suite of programs. For example, a software module may be a word processing program, a spreadsheet program, a filter, or a dynamic link library (DLL). Different software modules may provide different functionality in which the software modules in a suite or packages are able to easily interact or exchange data. Additionally, some software modules may provide library functions or filtering functions. Developers are constantly generating new versions of software. For example, a newer library or spreadsheet program may be developed for use with other software modules.
Typically, newer versions of software are often backwards compatible. For example, a newer spreadsheet program may generate files in a format that are not readable by an older version of that program. Oftentimes, the newer spreadsheet program reads files generated by the older version of the program. Although such an assumption is usually correct, this type of assumption cannot always be made. For most information technology environments, “usually correct” is unacceptable.
Determinations of compatibility are currently made by the administrators of networks. This situation also is unacceptable because of the reliance on the knowledge of the administrators. If an administrator is incorrect about the compatibility of an upgrade of a software module or an addition of a new software module to a set of software modules, errors or failures may occur.
Therefore, it would be advantageous to have an improved method, apparatus, and computer instructions for monitoring and testing software combinations.
The present invention provides a method, apparatus, and computer instructions for testing compatibility of software version, an inventory is performed on an existing set of software modules resident in the data processing system responsive to an installation of a new software module in a data processing system. A knowledge base of versions of respective software modules is referenced to determine whether the new software module is compatible with the existing set of software modules. The new software module is tested in a test data processing system in combination with the existing set of software modules in response to a negative determination.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
With reference now to the figures,
In the depicted example, server 104 is connected to network 102 along with storage unit 106. In addition, clients 108, 110, and 112 are connected to network 102. These clients 108, 110, and 112 may be, for example, personal computers or network computers. In the depicted example, server 104 provides data, such as boot files, operating system images, and applications to clients 108-112. Clients 108, 110, and 112 are clients to server 104. Network data processing system 100 may include additional servers, clients, and other devices not shown. In the depicted example, network data processing system 100 is the Internet with network 102 representing a worldwide collection of networks and gateways that use the Transmission Control Protocol/Internet Protocol (TCP/IP) suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, government, educational and other computer systems that route data and messages. Of course, network data processing system 100 also may be implemented as a number of different types of networks, such as for example, an intranet, a local area network (LAN), or a wide area network (WAN).
Referring to
Peripheral component interconnect (PCI) bus bridge 214 connected to I/O bus 212 provides an interface to PCI local bus 216. A number of modems may be connected to PCI local bus 216. Typical PCI bus implementations will support four PCI expansion slots or add-in connectors. Communications links to clients 108-112 in
Additional PCI bus bridges 222 and 224 provide interfaces for additional PCI local buses 226 and 228, from which additional modems or network adapters may be supported. In this manner, data processing system 200 allows connections to multiple network computers. A memory-mapped graphics adapter 230 and hard disk 232 may also be connected to I/O bus 212 as depicted, either directly or indirectly.
Those of ordinary skill in the art will appreciate that the hardware depicted in
The data processing system depicted in
With reference now to
An operating system runs on processor 302 and is used to coordinate and provide control of various components within data processing system 300 in
Those of ordinary skill in the art will appreciate that the hardware in
The depicted example in
The present invention provides a method, apparatus, and computer instructions for monitoring and testing software combinations. The mechanism of the present invention allows for users or customers who are adding or upgrading software modules to an existing set of software modules to determine whether compatibility problems are present.
Turning now to
In this example, product combination center 400 may include binaries or executable code for software modules, as well as installation programs. When a client requests a software module, product combination center 400 provides an installation program to install the software module. This installation program may be sent directly to the client, may reside on the server, or a portion of the installation program may reside on the server while another portion is sent to the client.
The mechanism of the present invention may include processes in a program to determine whether a new software module may require testing. As used herein, a “new software module” is an additional software module not currently found in a set of software modules or replacement or upgrade software module, which replaces a software module currently found in a set of software modules on the client. An identification of whether a combination of software modules is compatible is stored in knowledge base 402. This knowledge base may be located in various locations such as on the same server as product combination 400 or on a different data processing system.
Knowledge base 402 in these examples is a database containing static and/or dynamic information regarding compatibility of combinations of software modules. This information may include, for example, prerequisites and co-requisites for different combinations of software modules. A prerequisite is a software component that is required to be installed and sometimes configured before target software component can be installed.
An example of a prerequisite is IBM® DB2®, a database required for running an IBM Directory application, which is available from International Business Machines Corporation. DB2 is a relational database product that manages all aspects of data such as, for example, replication, recovery, high speed access, and data administration. A co-requisite is a peer software component that is required to be installed in order for the target software component to be fully operational once it is installed. An example of co-requisite is two software programs that depend on each other such as two DLLs that use functionality from each other. Knowledge base 402 may reside in a variety of locations depending on the particular implementation. In these examples, knowledge base 402 resides on the same server as product combination 400.
If testing of a combination of software modules is required, this testing may be performed through test tool suite 404. Test tools are typically provided with the installation program in order to validate a program has been installed correctly. However, other test tools may validate that a program is configured and running correctly. These test tools may rely on customer specific test scenarios that exercise certain functions of the program. For example, a customer may be a set of validation tests that are run against a new product version before it is moved from the test environment to their production environment. If the customer has developed Java2 Platform, Enterprise Edition (J2EE) components that run on Websphere applications and support their external Web site, then these in-house applications are re-run on the a new version of a Web Application Server (WAS) before it is marked as compatible. Websphere applications, such as WAS, are available from International Business Machines Corporation. WAS is a J2EE application server that provides an operating environment for e-business applications that perform transactions over the internet.
In these examples, installation 406 and installation 408 are examples of software module installations undergoing testing. Monitoring of this testing may be performed through statistical data reporting 410, which may be located locally with installation 406 and installation 408. Although the installation and testing may occur on the client machines, these installations initially are performed on a test computer. In this manner, any errors or failures in compatibility testing do not affect the actual client.
Statistical data reporting 410 is a monitoring process used to determine whether the installations are running correctly. Monitoring of these installations may occur with the installation program on the test computer or another process on the test computer, sending back heartbeat information to indicate that a failure or error has not occurred with the combination. This data is sent to knowledge base 402 to provide additional statistical data for combinations being tested at installations 406 and 408. If the testing is successful or if knowledge base 402 indicates that the combination at the client results in absence of errors, the software module or software modules may then be installed at the client.
With reference now to
Compatibility between DB2 and WAS is illustrated for different versions of these software modules in install matrix 500. As can be seen, entries 502, 504, and 506 indicate that no data is available for the proposed combination of software modules. Entries 508 and 510 in install matrix 500 indicated that the installations were “okay” in 15 of 20 and 5 of 20 installations, while entry 512 indicates of the combination that the installation was unsuccessful.
In the illustrated example, install matrix 500 shows a simple case of two types of software modules with different versions. Install matrices may include mode complex cases with more software modules.
Turning next to
Client 600 has environment 602, which includes the operating system, register settings, and other software configurations or settings. In this example, software modules 604 are present in environment 602. When a user or administrator desires to add another software module or upgrade a software module to a newer version in software modules 604, a request can be made to a server, such as server 606.
In response to receiving the request, server 606, initiates install process 608 to install the new software module. Install process 608 may reside entirely on server 606 or may be sent to client 600 for execution. Alternatively, a portion of install process 608 may reside on server 606, while another portion of install process 608 may be sent to client 600.
Install process 608 identifies software modules 604 and then queries knowledge base 610 to determine whether information is present regarding the combination of software modules. If knowledge base 610 indicates that the combination of software modules 604 with the new or upgrade version requested is positive then the installation of the new software module on client 600 continues. The new software module is obtained from software modules 612 on server 606.
In some cases, the combination of software modules for client 600 may include both successful and unsuccessful installs when a response is returned by knowledge base 610. In such a case, if the combination has been used before, but is risky, this fact may be presented to the user or customer to allow the user or customer to determine whether to install the new software module. In this case, the combination may be tested prior to installation on client 600. In addition, if knowledge base 610 contains no information about the combination, testing of the combination also may be performed.
If testing of the combination is to be performed, install process 608 initiates an installation of the software module with software modules 604 on a test computer such as test computer 614. Environment 616 on test computer 614 is a duplicate of environment 602 on client 600. Software modules 618 include software modules 604 from client 600 as well as the new software module selected for client 600. Test process 620 is used to monitor the software modules 618 on test computer 614. Test process 620 is an example of a test tool suite, such as test tool suite 404 in
Additionally, heartbeat process 622 may be installed on different client machines to gather data on different combinations of software modules already present on those client machines. This data is sent back and stored in knowledge base 610. In this manner, data may be obtained regarding currently installed combinations to provide more data regarding compatibility of different combinations.
If the testing of software modules 618 is successful, then installation process 608 will install the new software module on client 600. On the other hand, if the testing is unsuccessful, install process 608 may search knowledge base 610 for a closest match to software modules 604. The closest match may require one or more modules currently in software modules 604 to be replaced to provide for compatibility with the new software module that has been selected to be combined with software modules 604. As described above, the new software module may be an additional software module to be added to software modules 604 or may be a new version of a software module replacing one of the software modules in software modules 604.
The user or administrator for client 600 is prompted with this option. If the closest match combination of software modules is desired, the change is then made on client 600. With this change, a compatible combination of software modules may be set up on client 600.
Turning next to
The process begins by identifying a new software module to be installed on a target computer (step 700). Existing software modules are identified on the target computer (step 702). A query of a knowledge base is made for the combination of the software modules (step 704). This combination includes the software modules currently on the client as well as the new software module.
Next, a determination is made as to whether a negative result is returned for the combination (step 706). In these examples, a negative result may be a result in which the combination has failed on all installations. In addition, a negative result is considered to be present in these examples if data regarding the compatibility of the combination of software modules is absent. Further, a negative result may also include a situation in which some selected percentage of combinations is incompatible. For example, the result may state that 30 percent of the installations for the combination failed or caused errors.
If a negative result is returned, a determination is made whether to test the combination (step 708). This determination may be made through prompting the user or administrator as to whether a test of the combination is desired. For example, a prompt such as follows may be presented: “This combination has not been tried before, would you like to test the combination?” or “This combination has resulted in errors in 7 percent of the installations, would you like to test the combination?”.
If the combination is to be tested, the environment for the client is identified and the new software module is installed on a test computer using the identified environment (step 710). Reproducing this environment includes setting up the same operating system as found on the client. Examples of parameters gathered to reproduce the environment include the operating system type, product names, version, and install locations. In addition, other settings, such as those for virtual memory or memory usage also are reproduced in replicating the environment of the client on the test computer. Thereafter, the combination of the software modules is tested (step 712).
The testing procedure in these examples employs a test suite to carry out a compatibility test. Test suites contain the basic test criteria, such as adding a user to the software application and modifying a user's role. These criteria are application specific. The output of each test in the test suite is a success or a failure. The entire test suite is run for the current install. Test output supports the “range” of answers given to a customer. Existing installs provide a pass/fail of a compatibility test during install may require upgrading components, such as an operating system. In this case, a message such as “Your machine operating system must be upgraded before continuing”.
Test metrics such as performance ranges X amount of time on 10 of 12 systems. Test metrics can also include time of service. In this case, a message such as “This program has operated for an average of 11 months on 2000 systems.” may be provided to the customer. Test cases may be scheduled to run on different days due to the large number of systems (tens of thousands). In this case it could take a long time to gather test data from all the system. Another range related answer provided by these tests to the customer may be, for example “Of 85 percent of the system reporting thus far, 99 percent have passed the xyz test”.
After testing is complete, a determination is made as to whether the testing was successful (step 714). If the testing was not successful, a closest match to the existing software modules is identified in which the addition of the new software module results in a compatible combination (step 716). This match may require one or more existing software modules to be replaced to provide compatibility with the new software module. A prompt is made to the user indicating the best match (step 718). This prompt tells the user about the closest match and asks the user as to whether to make the needed changes. User input is received in response to the prompt (step 720).
A determination is then made as to whether the installation is to proceed (step 722). If installation is to proceed, the current installation of the existing software modules is altered to meet the closest match (step 724). This alteration includes removing one or more current software modules on the client and replacing it with one or more replacement software modules to meet the closest match to the configuration. Then, the new software module is installed on the target computer (step 726) with the process terminating thereafter.
With reference again to step 714, if the testing of the combination on the test computer is successful, an entry is added into the knowledge base for the test results (step 728). The new software module is then installed on the target computer (step 730) with the process terminating thereafter.
Turning back to step 708, if the combination is not to be tested, a determination is made as to whether to install the new software module (step 732). If the new software module is to be installed, the process proceeds to step 730 as described above. The process also proceeds to step 730 if a negative result is not received in step 706. In these examples, a positive result is received if the compatibility of the software modules in prior installations in the knowledge base is greater than some threshold. This threshold may vary depending on the particular implementation. In some cases, any incompatibility may result in a negative result instead of a positive result from the knowledge base.
Turning to
The process begins by identifying all installed locations (step 800). An unprocessed install location is selected for processing (step 802). Data is then obtained from the selected install location (step 804). The data may be obtained through requests to one or more processes or agents on the install location in which these agents are used to collect data regarding compatibility of an installation.
Thereafter, a knowledge base is updated (step 806). A determination is then made as to whether additional unprocessed locations are present (step 808). If additional unprocessed locations are present, the process returns to step 804. Otherwise, a statistical report is created (step 810) with the process terminating thereafter.
Thus, the present invention provides an improved method, apparatus, and computer instructions for installing software combinations. The mechanism of the present invention allows for detecting when a new combination is being attempted. An install program identifies a new software module and queries a knowledge base as to the compatibility of the combination of the new software module with the existing software modules on the client or target computer. The mechanism of the present invention also allows for testing of the combination of the new software module with the existing software modules. The results of this testing is included in a repository of results in the knowledge base. This feature allows for the use of this result for other future installations. Further, monitoring of heartbeat processes may be placed on current installations of software modules to gather data on the compatibility of different combinations of software modules.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media, such as a floppy disk, a hard disk drive, a RAM, CD-ROMS, DVD-ROMs, and transmission-type media, such as digital and analog communications links, wired or wireless communications links using transmission forms, such as, for example, radio frequency and light wave transmissions. The computer readable media may take the form of coded formats that are decoded for actual use in a particular data processing system.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. For example, the illustrated embodiments are directed toward installation of a single new software module. The mechanism of the present invention also may be applied to the installation of multiple new software modules. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Name | Date | Kind |
---|---|---|---|
4558413 | Schmidt et al. | Dec 1985 | A |
5339435 | Lubkin et al. | Aug 1994 | A |
5675802 | Allen et al. | Oct 1997 | A |
5694540 | Humelsine et al. | Dec 1997 | A |
5787280 | Joseph et al. | Jul 1998 | A |
5794052 | Harding | Aug 1998 | A |
5966539 | Srivastava | Oct 1999 | A |
6063134 | Peters et al. | May 2000 | A |
6073109 | Flores et al. | Jun 2000 | A |
6195765 | Kislanko et al. | Feb 2001 | B1 |
6199204 | Donohue | Mar 2001 | B1 |
6202207 | Donohue | Mar 2001 | B1 |
6425118 | Molloy et al. | Jul 2002 | B1 |
6438743 | Boehm et al. | Aug 2002 | B1 |
6453468 | D'Souza | Sep 2002 | B1 |
6457170 | Boehm et al. | Sep 2002 | B1 |
6477703 | Smith et al. | Nov 2002 | B1 |
6484315 | Ziese | Nov 2002 | B1 |
6501995 | Kinney et al. | Dec 2002 | B1 |
6513045 | Casey et al. | Jan 2003 | B1 |
6526571 | Alzikowitz et al. | Feb 2003 | B1 |
6735757 | Kroening et al. | May 2004 | B1 |
6948059 | Sprecher et al. | Sep 2005 | B1 |
7069541 | Dougherty et al. | Jun 2006 | B2 |
20020104042 | Wong et al. | Aug 2002 | A1 |
20030041096 | Johnson | Feb 2003 | A1 |
20040128651 | Lau | Jul 2004 | A1 |
Number | Date | Country |
---|---|---|
1164475 | Dec 2001 | EP |
10083284 | Mar 1998 | JP |
10260820 | Sep 1998 | JP |
Number | Date | Country | |
---|---|---|---|
20050022176 A1 | Jan 2005 | US |