Causal inference device and causal inference method

The cause inference device automates the creation and use of a cause table to quickly identify and correct system construction failures, addressing the inefficiencies and inaccuracies of existing methods by linking environmental constraints to error causes.

WO2024224803A1PCT designated stage expired Publication Date: 2024-10-31ASTEMO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/007853
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2024-03-01
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing systems require significant man-hours to create cause tables and struggle to infer error causes accurately, especially due to environmental differences during system construction.

Method used

A cause inference device that automatically creates a cause table by identifying constraints between the assumed and actual execution environments, using this table to infer the cause of construction failures without manual intervention.

Benefits of technology

Enables rapid identification and correction of system construction failures, reducing the need for man-hours and improving precision in error analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024007853_31102024_PF_FP_ABST
    Figure JP2024007853_31102024_PF_FP_ABST
Patent Text Reader

Abstract

A causal inference device for estimating the cause of a failure in the construction of a system for constructing an infrastructure resource in a prescribed execution environment, said device comprising a computer which has a computing device that executes prescribed computation processing, and a storage device connected to the computing device, and being configured in a manner such that the computing device is provided with: a cause table creation unit which, by using system construction information and execution environment information which is presumed by the system construction information, creates a cause table for recording an error at the time of the construction in association with an infrastructure resource, a constraint on infrastructure resource construction, and a cause of the error; and a causal inference unit that identifies the cause of an error produced when constructing the infrastructure resource by referring to the cause table.
Need to check novelty before this filing date? Find Prior Art

Description

Cause inference device and cause inference method Incorporation by Reference

[0001] This application claims priority from Japanese Patent Application No. 2023-71434, filed on April 25, 2023, the contents of which are incorporated herein by reference.

[0002] The present invention relates to a cause inference device that infers the cause of a failure in system construction.

[0003] In recent years, advances in cloud computing technology have led to the advancement of virtualization of IT (Information Technology) resources. This technological advancement has led to increased attention being paid to automated system construction techniques that utilize virtualization technologies such as virtual servers and containers, as well as infrastructure as code (IaC), which deploys systems based on source code and configuration files.

[0004] The following prior art exists as background art in this technical field: Patent Document 1 (JP 2021-157612 A) describes an information processing system that includes a conversion unit that converts a sheet containing system requirements and application requirements for a cloud service into computer-interpretable code, a storage control unit that stores the code in a storage unit, and a determination control unit that deploys resources on the cloud based on the code, executes tests on the resources, and controls to determine whether the resources can be used.

[0005] Furthermore, Patent Document 2 (JP 2003-150407 A) describes an automatic recovery system that includes a monitoring device and a recovery instruction device and recovers from a failure that has occurred in a monitored device. The monitoring device has a receiving means for receiving electronic information notifying the occurrence of a failure from the monitored device and a storage means for storing the received electronic information. The recovery instruction device has an analyzing means for referencing the storage means of the monitoring device and analyzing the cause of the failure that has occurred in the monitored device, a generating means for generating electronic information for recovering from the failure based on the analysis results by the analyzing means, and a transmitting means for transmitting the electronic information generated by the generating means to the monitored device.

[0006] According to the technology described in Patent Document 1, an order sheet containing system requirements is converted into source code, and resource deployment is automated. By using the technology described in Patent Document 1, a system can be automatically built according to the system requirements, even if the user does not have coding knowledge. However, if the environment the developer envisions differs from the environment the user is attempting to build, the system may fail to be built. In this case, it is necessary to identify the cause of the failure and modify the source code or the environment to be built.

[0007] Regarding this issue, Patent Document 2 describes a technique for acquiring information about an error, identifying the cause of the error by referring to a cause table, determining a countermeasure by referring to a countermeasure table, and executing a correction program or the like based on the countermeasure. This makes it possible to infer the cause of a system construction failure by inputting an error statement from the cause table.

[0008] The technique of Patent Document 2 has a problem in that it requires man-hours to create a cause table, and it is difficult to infer the cause with high accuracy for errors that occur due to differences in the environment.

[0009] The present invention has been made in consideration of the above-mentioned problems, and aims to enable users to infer the cause of construction failures that occur when building a system and take measures to address them without incurring additional man-hours.

[0010] A representative example of the invention disclosed in the present application is as follows: That is, a cause inference device for inferring the cause of a failure in the construction of a system that constructs infrastructure resources in a predetermined execution environment is configured by a computer having an arithmetic unit that executes predetermined arithmetic processing and a storage device connected to the arithmetic unit, wherein the arithmetic unit comprises: a cause table creation unit that uses construction information of the system and information about the execution environment assumed by the construction information of the system to create a cause table that records errors during the construction in association with the infrastructure resources, constraints on the construction of the infrastructure resources, and the causes of the errors; and a cause inference unit that refers to the cause table to identify the cause of an error that occurs during the construction of the infrastructure resources.

[0011] According to one aspect of the present invention, the cause of a system construction failure that occurs can be identified and dealt with promptly. Problems, configurations, and effects other than those described above will become apparent from the following description of the preferred embodiment of the present invention.

[0012] FIG. 1 is a diagram showing an example of the configuration of a cause inference device according to embodiment 1. FIG. 2 is a diagram showing an example of the hardware configuration of the cause inference device according to embodiment 1. FIG. 3 is a flowchart showing an example of the operation of a cause table creation unit according to embodiment 1. FIG. 4 is a diagram showing an example of a constraint list according to embodiment 1. FIG. 5 is a diagram showing an example of source code related to the deployment process of the execution environment according to embodiment 1. FIG. 6 is a diagram showing an example of a cause table according to embodiment 1. FIG. 7 is a flowchart showing an example of the operation of a cause inference unit according to embodiment 1. FIG. 8 is a diagram showing an example of a GUI presented in step S201. FIG. 9 is a diagram showing an example of a GUI presented in step S205. FIG. 10 is a flowchart showing an example of the operation of a cause inference unit according to embodiment 2. FIG. 11 is a diagram showing an example of a GUI presented in step S301.

[0013] 1 is a diagram showing an example of the configuration of a cause inference device 100 according to a first embodiment of the present invention. The cause inference device 100 is configured by a computer having a constraint list 110, a repository 120, a cause table creation unit 130, a cause table 140, and a cause inference unit 150.

[0014] The cause inference device 100 registers in advance the source code of the deployment template 121 and the module 122 in the repository 120. The repository 120 may be a known repository provided by, for example, a cloud service or an OSS. An example of the source code will be described later with reference to FIG. 5 .

[0015] Although FIG. 1 shows an example in which a plurality of templates 121 and modules 122 are managed in one repository 120, the repository 120 may be configured separately for each source code corresponding to a project.

[0016] Here, the source code is utilized to construct a specific system 161 or an execution environment 160 including a network required by the system 161. For example, one system 161 does not have a configuration corresponding to one template 121, and modules 122, which are a set of functions that constitute part of the system 161, are also included in the source code. In this case, a plurality of modules 122 are combined to create system source code for one system 161. Note that, as will be described in detail later, the management information is composed of various types of information to be managed and displayed by the cause inference device 100, and entities or references to the templates 121 and modules 122, which are source codes for constructing the system 161.

[0017] When a user 101 of the cause inference device 100 deploys a template 121 or a module 122 in the repository 120, the cause table creation unit 130 uses the constraint list 110 and the like to associate the system 161 to be deployed with errors that may occur in the event of a construction failure and the cause of the construction failure, thereby creating a cause table 140. For example, the execution environment 160 is created to which the constraints defined in the constraint list 110 are assigned, the template 121 or the module 122 in the repository 120 is deployed, and it is checked whether an error occurs. If an error occurs, it is determined that the construction of the template 121 or the module 122 in the repository 120 failed due to the constraint, and the information about this is added to the cause table 140. A specific example of this processing will be described later with reference to FIG. 4.

[0018] The user 101 inputs to the cause inference unit 150 error information when construction actually fails and information about the system to be constructed.

[0019] Thereafter, the cause inference unit 150 searches the cause table 140 based on the input information to display and correct the cause of the construction failure. A specific example of the process will be described later with reference to FIG.

[0020] The execution environment 160 is an environment for operating the system 161. The execution environment 160 is, for example, a cluster of IT resources managed by an orchestration tool provided by a public cloud service or a private cloud service. The execution environment 160 also includes network IT resources required to operate the system 161, creation authority required to deploy the system 161, and certificates for devices associated with the system 161. The execution environment 160 for operating the system 161 selected by the user 101 may be in a format specified by the user 101. In this case, the execution environment 160 may be a different execution environment for each user 101, or one execution environment may be shared.

[0021] In the following figures and explanations, the execution environment 160 is an Infrastructure as a Service (IaaS) public cloud, a public cloud service, and the deployment process is Terraform. The templates 121 and modules 131 are source code written in HashiCorp Configuration Language (HCL) defined by Terraform. However, this embodiment is not limited to the above configuration. For example, a combination of Kubernetes as the execution environment 160, a container as a target to be built in the execution environment 160, and Helm as the deployment process may be used.

[0022] FIG. 2 is a diagram illustrating an example of the hardware configuration of the cause inference device 100 according to the first embodiment.

[0023] As shown in FIG. 2, the cause inference device 100 has hardware such as a calculation unit 210, a storage unit 220, an input / output unit (interface) 230, and a communication unit 240.

[0024] The calculation unit 210 has a cause table creation unit 130, a cause inference unit 150, and a display unit 213. The calculation unit 210 and each of the functional units included in the calculation unit 210 can be configured by hardware such as a circuit device that implements these functions, or can be configured by a calculation device such as a CPU (Central Processing Unit) executing software that implements these functions.

[0025] The memory unit 220 is configured with a storage device that stores data used by the calculation unit 210, and includes a ROM, which is a non-volatile storage element, and a RAM, which is a volatile storage element. The ROM stores unchanging programs (e.g., BIOS) and the like. The RAM is a high-speed, volatile storage element such as a DRAM (Dynamic Random Access Memory), and temporarily stores programs executed by the processor 1 and data used when the programs are executed. The memory unit 220 also includes a large-capacity, non-volatile auxiliary storage device, such as a magnetic storage device (HDD) or a flash memory (SSD).

[0026] The input / output unit 230 is an interface that receives input from an operator and outputs the processing results of the calculation unit 210 in a format that can be viewed by the user, and is composed of input devices such as a keyboard and a mouse, and output devices such as a display device and a printer. Note that a user terminal connected to the cause inference device 100 via a network may provide the input and output devices. In this case, the cause inference device 100 may have a web server function, and the user terminal may access the cause inference device 100 using a predetermined protocol (for example, http).

[0027] The communication unit 240 is a network interface device that controls communication with other devices according to a predetermined protocol, and is, for example, a communication chip or NIC (Network Interface Card), and controls communication with the runtime environment 160 and communication with the user 101.

[0028] When each unit of the cause inference device 100 receives data, the data may be received via the input / output unit 230 or via the communication unit 240 .

[0029] The programs executed by the calculation unit 210 are provided to the cause inference device 100 from removable media (such as a CD-ROM or flash memory) or via a network, and are stored in a non-volatile auxiliary storage device, which is a non-transitory storage medium, in the storage unit 220. For this reason, the cause inference device 100 should preferably have an interface for reading data from removable media.

[0030] The cause inference device 100 is a computer system configured on one physical computer or on multiple logically or physically configured computers, and may run on a virtual computer built on multiple physical computer resources. For example, multiple programs that realize the functions of the cause inference device 100 may each run on a separate physical or logical computer, or multiple programs may be combined to run on a single physical or logical computer.

[0031] 3 is a flowchart showing an example of the operation of the cause table creator 130 according to embodiment 1. Each step in FIG. 3 will be described below.

[0032] (FIG. 3: Step S101) The cause table creation unit 130 creates a constraint list 110. The constraint list 110 is created by extracting, as constraints, differences between the execution environment 160 assumed by the templates 121 and modules 122 in the repository 120 and the execution environment 160 that the user 101 attempts to build.

[0033] 4 is a diagram showing an example of the constraint list 110. The constraint list 110 includes a major category indicating the type of constraint and a detail section indicating the details of the constraint. For example, the major categories include a "network" for constructing the templates 121 and modules 122 of the repository 120, "authority" for construction, and a "device" to which the system 161 is related. The detail section contains specific setting values ​​required for constructing the execution environment 160, which will be described later.

[0034] For example, the description 111, "Network Subnet Address_prefixes = ["10.0.0.0 / 26"]," means that Subnet is deployed as a resource and the setting value Address_prefixes is deployed as ["10.0.0.0 / 26"]. The description 112, "Authority User role {Action:CreateNetwork,Effect:Deny}," means the authority set when building a template 121 or a module 122 in the repository 120. The description 203, "Device Device role {Action:Publish,Effect:Deny}," means the authority to allow a device connected to the system 161 to be built to operate on the system 161.

[0035] An example of a method for creating the constraint list 110 will be described below. First, the cause table creation unit 130 acquires information about the execution environment 160 in which the user 101 will build the system 161. For example, the network IT resources required to run the system 161 in the execution environment 160 specified by the user 101 may be acquired as source code using a function for exporting the network IT resources as source code from each cloud vendor. Furthermore, for the creation account information specified by the user 101, the creation authority required to deploy the system 161 may be acquired using a function for acquiring authority from each cloud vendor.

[0036] If information about the execution environment 160 to be constructed cannot be obtained, information about the execution environment 160, such as a publicly available general reference architecture, may be used. For example, Azure publishes system examples suitable for various purposes at the Azure Architecture Center, and the source code, including information about secure networks, can be obtained to construct the execution environment 160. Information about execution environments 160 used in the past may also be used.

[0037] After acquiring the information, the cause table creation unit 130 compares the information on the execution environment 160 to be constructed acquired in step S201 with the execution environment 160 assumed by the template 121 and module 122 in the repository 120 to acquire the differences. For example, the cause table creation unit 130 acquires the IT resources related to the network of the assumed execution environment 160 as source code using a function for exporting source code from each cloud vendor. Using this source code, the unit 130 extracts portions related to the same network resources from the source code of the IT resources related to the network of the execution environment 160 to be constructed acquired in step S201 and compares whether each parameter is identical. If the comparison results in inconsistent parameters, the unit 130 associates the corresponding resource with the parameter and saves it as a difference. Furthermore, the unit 130 acquires the creation authority for the account information used when creating the template 121 and module 122 in the repository 120 using a function for acquiring the authority of each cloud vendor. The unit 130 then compares whether the authority is included in the creation authority for the execution environment 160 to be constructed acquired in step S201. As a result of the comparison, if a permission is not included, the creation permission is saved as a difference.

[0038] Then, the cause table creation unit 130 adds the difference saved in step S202 to the constraint list 110. For example, for a difference related to the network, the major constraint category is set to network, the detailed resource is set to the target network resource, and the setting value is set to the parameter of the target execution environment 160 where the difference occurred. Also, for a difference related to authority, the major constraint category is set to authority, the detailed resource is set to the target authority name, and the setting value is set to the content of the authority.

[0039] Although the procedure for automatically creating the constraint list 110 has been described above, the constraint list 110 is used to simulate the execution environment 160 that the user 101 will build. Therefore, the constraint list 110 may be input by the user 101, or may be input from information on an execution environment 160 that was previously built.

[0040] (FIG. 3: Step S102) The cause table creation unit 130 selects a constraint from the constraint list 110 and creates the execution environment 160. For example, a network-related constraint involves deploying infrastructure resources 162 related to the network in the execution environment 160 using a deployment tool based on detailed setting values ​​and source code for deploying detailed resource information. Furthermore, a privilege-related constraint involves creating an account with the appropriate privileges required to deploy the infrastructure resources 162 in the execution environment 160, specifying the account, and then deploying the infrastructure resources 162 in the execution environment 160.

[0041] Fig. 5 is a diagram showing an example of source code related to the deployment process of the execution environment 160. The source code and the deployment process will be explained using Fig. 5. This time, the case where Terraform is used for the deployment process will be explained. Terraform is an open-source automated infrastructure construction tool developed by HashiCorp.

[0042] The template information generally includes source code such as main.tf 300 that defines what infrastructure resources 162 to deploy, a variables file in a format such as variables.tf 310 that defines variables to be assigned to each infrastructure resource 162 and default values ​​for those variables, and a variables input file in a format such as auto.input.tfvars 320 that defines setting values ​​for variables to be assigned to each infrastructure resource 162.

[0043] For example, a statement 301 (resource "aws_s3_bucket" "s3_bucket") means to deploy aws_s3_bucket as a resource. Also, a statement 302 (bucket = "${var.foo}") means to read a statement 311 (variable "foo" {}) defined in variables.tf 310.

[0044] If no value is specified for the variable key "foo" during deployment processing, the default value "foo:1" is used. Note that if another value, for example, the value "foo = "dev-var"" is specified for the variable key "foo" in auto.input.tfvars 320 during deployment processing, description 311 is generated as "foo:"dev-var"".

[0045] Additionally, template files may contain programmatic elements, such as if statements. Terraform defines the programmatic elements that can be used, and the count variable controls how many resources are built. Specifying the value "S3_count = 1" in auto.input.tfvars 320 creates one "resource "aws_s3_bucket" "s3_bucket"".

[0046] As described above, a deployment tool may be used to deploy network resources on the execution environment 160 based on the source code. This process may be created by improving an existing tool such as Terraform.

[0047] Note that multiple constraints may be selected from the constraint list 110. In this case, it is desirable to assign constraints related to authority first, and then assign constraints related to the network, because authority is relevant when deploying an execution environment 160 to which network constraints have been assigned.

[0048] (FIG. 3: Step S103) In step S103, the cause table creation unit 130 deploys the templates 121 and modules 122 of the repository 120 to the created execution environment 160. Then, it may execute tests that have been previously performed on the templates 121 and modules 122 of the repository 120. In this case, because the tests are performed on the templates 121 and modules 122 of the same repository 120, it is estimated that the difference in the execution environment 160 is the main cause of the failure of the confirmed test.

[0049] (FIG. 3: Step S104) It is checked whether an error occurs in the test of step S103. For example, due to authority restrictions, the deployment of the template 121 or module 122 in the repository 120, which had previously been successful, may fail, resulting in an error. This is because the expected authority was not sufficient to create the template 121 or module 122. Furthermore, after the deployment of the template 121 or module 122 in the repository 120, a communication test that had previously been successful may fail. This is because the expected network operation is prohibited due to network restrictions in the execution environment 160.

[0050] (FIG. 3: Step S105) If an error is confirmed in step S104, the cause table creation unit 130 extracts the error content, such as the error statement when the error occurred and the test execution result.

[0051] (FIG. 3: Step S106) The cause table creation unit 130 associates the error detected in step S105 with the error information, construction target information such as the template 121 and module 122 to be constructed, and constraints, and stores them in the cause table 140. Then, as explained in step S103, the cause of failure of a deployment or test that was previously successful in the execution environment 160 is thought to be mainly due to differences resulting from the imposition of constraints from the assumed execution environment 160, and therefore the constraint information is stored in the cause table 140 as the cause.

[0052] 6 is a diagram showing an example of the cause table 140. The cause table 140 created in step S106 will be described with reference to FIG.

[0053] The cause table 140 includes a construction target 401, a constraint 402, an error 403, and a cause 404. The construction target 401 is construction target information such as the template 121 and module 122 to be constructed, and includes, for example, the name of the construction target and the paths of the template 121 and module 122 to be constructed. The constraint 402 is a difference between one execution environment 160 and another execution environment 160, and includes, for example, the setting values ​​of the infrastructure resources 162 related to the network and the paths of the template 121 and module 122. It may also include authority information representing authority. The error 403 is error information, and includes, for example, text information such as text information notifying the occurrence of the error, a summary of the error content, and the location 723 of the error. The cause 404 is the cause of the error for the content of the error that occurred. For example, because the difference in the execution environment 160 due to the constraint 402 is considered to be the cause of the error, the constraint 402 and the cause 404 usually contain the same data.

[0054] The cause table 140 does not need to include all of the information described above, and each item may store information in a different format.

[0055] As explained above, the cause table creation unit 130 recreates the execution environment 160 to which the user 101 is to deploy using constraints selected from the constraint list 110, attempts to deploy templates 121 and modules 122 from the repository 120 that have been confirmed to work on the recreated execution environment 160, and if an error occurs, adds a cause table 140, citing differences in the execution environment 160, i.e., constraints, as the cause. However, the method of identifying the error is not necessarily limited to this method.

[0056] For example, errors may be identified by statically analyzing the source code of the template 121 or module 122 in the repository 120. For example, for permission-related constraints, statically analyzing the source code of the template 121 or module 122 in the repository 120 can confirm whether resources related to the corresponding permission are included. For example, for statement 202 ("Permission User role {Action:CreateNetwork,Effect:Deny}"), network resources related to CreateNetwork cannot be deployed. Therefore, the lexical content of the source code is analyzed based on the grammar of the programming language, converted into a token sequence, and the resulting tree structure is obtained by converting the converted token sequence into a tree structure. Resource names are then checked based on the tree structure to determine whether network-related resource names are included. Since network-related resources are assumed to be undeployable, it is assumed that the network-related resources identified due to this constraint will cause a deployment error, and therefore they may be added to the cause table 140. In this case, the cause table 140 can be created quickly because no simulation is performed. On the other hand, the method of reproducing the execution environment 160 described here has the advantage of broadening the scope of verification because it allows testing of the infrastructure resources 162. These methods may be carried out either alone or in combination.

[0057] Although the present embodiment describes the reproduction of a new execution environment 160 with constraints, the method for reproducing the execution environment 160 is not necessarily limited to this method. For example, if the execution environment 160 deployed by the user 101 can be used by the cause inference device 100, it is not necessary to create a new execution environment 160. In this case, the user 101 attempts to deploy the template 121 and module 122 from the repository 120 to the specified execution environment 160. If an error occurs, the difference in the execution environment 160, i.e., the constraint, is considered to be the cause, and the cause is added to the cause table 140. In this case, it is assumed that multiple constraints exist, and the multiple constraints are added to the cause table 140 as causes. Alternatively, the constraints of the execution environment 160 deployed by the user 101 may be changed. For example, by performing a process to remove the constraints from the execution environment 160 and then attempting to deploy the template 121 and module 122 from the repository 120, the aforementioned constraints are reduced, making it easier to identify the cause. In this case, the time required to reproduce the new execution environment 160 can be shortened, and the cause table 140 can be created in a short time. On the other hand, in the method of reproducing the execution environment 160 described here, by reproducing a new execution environment 160, strong authority to directly use the execution environment 160 is not required, and a robust security state can be maintained. Furthermore, even if the execution environment 160 is already being used by another system 161, the cause table 140 can be created without affecting the other system 161.

[0058] 7 is a flowchart showing an example of the operation of the cause inference unit 150 according to embodiment 1. Each step in FIG. 7 will be described below.

[0059] (FIG. 7: Step S201) The cause inference unit 150 receives construction information and execution environment information from the user 101. The construction information is information about the system 161 and infrastructure resources 162 that the user 101 builds. The execution environment information is information about the external environment, such as the network on which the system 161 and infrastructure resources 162 are built, the authority for building them, and related devices. For example, since each cloud vendor provides standard metadata indicating that the infrastructure resources 162 have the same purpose, it is possible to use this to extract infrastructure resources 162 to which metadata indicating that they are the execution environment 160 has been assigned. Therefore, metadata may be received as external environment information.

[0060] 8 is a diagram showing an example of a GUI presented in step S201. The display unit 213 displays a cause inference GUI 400 shown in Fig. 8. The user 101 inputs construction information and execution environment information on the cause inference GUI 400.

[0061] In the example shown in FIG. 8 , options for a data analysis service, a data acquisition service, and a data visualization service are displayed as a construction target under an item called construction target 501. These data analysis services, data acquisition services, and data visualization services correspond to infrastructure resources 162 deployed by templates 121 and modules 122 in the repository 120. When the user 101 changes the construction target, the inference results of the cause table 140, which will be described later, change. For example, when a data analysis service is selected, a cause related to the data analysis service is inferred from the cause table 140. The options are merely examples, and other options may be used. Alternatively, the user may be prompted to enter source code to be used for deployment without displaying the options.

[0062] 8, as the execution environment information, metadata indicating that it is an execution environment is input in the execution environment metadata 502 field. When the user 101 changes the execution environment metadata 502, the inference results of the cause table 140, which will be described later, change. For example, based on the input metadata, constraint information related to the network is extracted in step S202, which will be described later. That is, based on the input metadata, infrastructure resources 162 related to the network are extracted. The input method is one example, and individual input of infrastructure resources 162 related to the network may be requested.

[0063] 8, information on the account to which the infrastructure resource 162 is deployed is input as execution environment information in the constructor 503 field. When the user 101 changes the constructor 503, the inference results of the cause table 140, which will be described later, change. For example, based on the input constructor 503, restriction information on authority is extracted in step S202, which will be described later. Restrictions on authority are extracted based on the input constructor 503. The input method is one example, and the user may be allowed to select from candidate accounts.

[0064] 8, a device related to the infrastructure resource 162 is input as execution environment information in the device 504 field. When the user 101 changes the device 504, the inference result in the cause table 140, which will be described later, changes. For example, based on the input device 504, information on the certificate assigned to the device is obtained, and constraint information related to the device is extracted in step S202, which will be described later. The input method is one example, and the user may be allowed to select from candidate devices.

[0065] The information displayed in FIG. 8 is an example, and other information may be used.

[0066] (FIG. 7: Step S202) The cause inference unit 150 extracts constraints from the information on the execution environment 160 that the user 101 is attempting to build, based on the construction information received in step S201. For example, as described in step S102, the cause inference unit 150 uses each cloud vendor's source code export function to acquire IT resources related to the network of the assumed execution environment 160 as source code. Using this source code, the unit extracts portions related to the same network resources from the source code of the IT resources related to the network of the execution environment 160 to be built acquired in step S201, and compares whether each parameter is the same. If the comparison results in different parameters, the unit associates the different parameters with the resources and extracts them as constraints. In addition, the unit uses each cloud vendor's function to acquire creation permissions for the account information used when creating the template 121 and module 122 in the repository 120, and compares whether the permissions are included in the creation permissions for the execution environment 160 to be built acquired in step S201. If the comparison results in permissions not being included, the unit extracts the creation permissions as constraints.

[0067] (FIG. 7: Step S203) The cause inference unit 150 infers the cause using the cause table 140. For example, the construction target is searched for in the cause table 140 using the information on the construction target acquired in step S201 as a key. If multiple rows are searched for, the constraints in the cause table 140 are searched for using the constraints acquired in step S202 as a key. The searched constraints are errors that may occur in the cause table 140 included in the identified row. In this case, since the constraint is the cause of the error, values ​​are returned as a pair consisting of the error that may occur and the constraint that is the cause. This process is one example; for example, if there are multiple construction targets, the above-mentioned process may be performed for each infrastructure resource, or all of the identified multiple errors may be returned.

[0068] (FIG. 7: Step S204) The cause inference unit 150 determines whether a cause has been inferred from the result of step S204. If a cause has been inferred, the process proceeds to step S205, and if a cause has not been inferred, the process ends.

[0069] (FIG. 7: Step S205) If the cause is inferred in step S204, the cause inference unit 150 presents the identified error and its cause to the user 101. This makes it possible to understand and correct errors that occur due to differences in the environment.

[0070] FIG. 9 is a diagram showing an example of a GUI presented in step S205. The display unit 213 displays the cause inference GUI 600 shown in FIG. 9 . The user 101 displays the error and its cause identified on the cause inference GUI 600. In FIG. 9 , information about the error identified in step S203 is displayed in Error 601, and the cause of the error identified in step S203 is displayed in Cause 602. Because the error is thought to be caused by a constraint, when the Start Correction button 603 is operated, the execution environment 160 of the user 101 is corrected to eliminate the constraint. Note that this requires the user 101 to have authority to change the execution environment 160, and therefore is executed only if the user 101 allows it. In other cases, the user 101 identifies the constraint that is causing the problem and attempts to correct it. This is because, in an execution environment 160 with high security, the user 101 may not have authority to change the execution environment 160 and may have to contact another administrator, or the problem may not be resolved by the user 101 alone.

[0071] Although the cause table creation unit 130 has been described as automatically adding the cause table 140, the cause table 140 does not necessarily have to be added automatically, and may be created by the user from past cases.

[0072] <Summary of First Embodiment> The cause inference device 100 according to the first embodiment uses information about the environment to be constructed to clarify constraints that will cause a construction failure, associates the system, constraints, and construction failure errors to create a cause table 140, and in the event of a construction failure, can infer the cause of the construction failure from the cause table 140, or can grasp the cause of a construction failure that may occur before construction. Therefore, when the user 101 constructs a new infrastructure resource 162, the cause inference device 100 can quickly grasp and correct errors, thereby reducing the number of steps required for correction. Furthermore, since there is no need to create the cause table 140, the number of steps required for response can be reduced.

[0073] <Second Embodiment> Next, a second embodiment of the present invention will be described. In the second embodiment, if the user 101 fails to build, the cause of the error is identified and corrected. As a result, even when the user 101 responds to an error, the cause of the error can be quickly identified and corrected by referring to the cause table 140. Note that in the second embodiment, differences from the first embodiment will be mainly described, and descriptions of the same configurations and processes as the first embodiment will be omitted.

[0074] 10 is a flowchart showing an example of the operation of the cause inference unit 150 according to embodiment 2. Each step in FIG. 10 will be described below.

[0075] (FIG. 10: Step S301) The cause inference unit 150 receives construction information, error information, and execution environment information from the user 101. The construction information and execution environment information are the same as those in the first embodiment. The error information is information about an error displayed when the user 101 fails in construction. For example, it is an error statement indicating the error content displayed when construction fails and its error code.

[0076] 11 is a diagram showing an example of a GUI presented in step S301. The display unit 213 displays a cause inference GUI 700 shown in Fig. 11. The user 101 inputs construction information, error information, and execution environment information on the cause inference GUI 700.

[0077] In the example shown in Fig. 11, an error statement displayed when construction fails is input as the error information in an item called error information 701. When the user 101 changes the error statement, the inference result in the cause table 140, which will be described later, changes. For example, when an error statement is input, the cause of the target error is inferred from the cause table 140. The input method is one example, and the user may be allowed to select from a list of error statement candidates.

[0078] The information displayed in FIG. 8 is an example, and other information may be displayed.

[0079] (FIG. 7: Step S302) Step S302 is the same as step S202. If no external environment information is input in step S301, step S302 may be skipped.

[0080] (FIG. 7: Step S303) The cause inference unit 150 infers the cause using the cause table 140. For example, the cause inference unit 150 searches for a construction target in the cause table 140 using the error information and construction information acquired in step S301 as keys. If multiple rows are searched, the constraints in the cause table 140 are searched for using the constraints acquired in step S302 as keys. The searched constraints are errors that may cause an error in the cause table 140 included in the identified row. In this case, since the constraint is the cause of the error, the constraint that is the cause is returned as a value. This processing is one example, and if there are multiple errors or construction targets, for example, the above processing may be performed for each of them as an infrastructure resource, or all of the multiple identified causes may be returned.

[0081] (FIG. 7: Steps S304 to S305) Steps S304 to S305 are the same as steps S204 to S205. In step S304, it is determined whether the value of the cause, which is the result of S303, has been returned.

[0082] <Summary of Second Embodiment> In the second embodiment of the present invention, the user 101 can identify the cause of an error in the event of a construction failure and make corrections. As a result, when the user 101 needs to deal with an error, the user 101 can quickly identify and correct the cause of the error by referring to the cause table 140.

[0083] <Regarding Modifications of the Present Invention> The present invention is not limited to the above-described embodiments, and includes various modifications and equivalent configurations within the spirit of the appended claims. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to configurations including all of the described configurations. Furthermore, part of the configuration of one embodiment may be replaced with the configuration of another embodiment. Furthermore, the configuration of another embodiment may be added to the configuration of one embodiment. Furthermore, part of the configuration of each embodiment may be added to, deleted from, or replaced with other configurations.

[0084] Furthermore, the aforementioned configurations, functions, processing units, processing means, etc. may be realized in part or in whole in hardware, for example by designing them as integrated circuits, or may be realized in software by having a processor interpret and execute a program that realizes each function.

[0085] Information such as programs, tables, and files that realize each function can be stored in a storage device such as a memory, hard disk, or SSD (Solid State Drive), or in a recording medium such as an IC card, SD card, or DVD.

[0086] In addition, the control lines and information lines shown are those that are considered necessary for explanation, and do not necessarily represent all the control lines and information lines that are necessary for implementation. In reality, it can be assumed that almost all components are interconnected.

Claims

1. A cause inference device that infers the cause of a failure in the construction of a system that constructs infrastructure resources in a specified execution environment, comprising a computer having an arithmetic unit that executes specified calculation processing and a storage device connected to the arithmetic unit, wherein the arithmetic unit has a cause table creation unit that uses construction information of the system and information about the execution environment assumed by the construction information of the system to create a cause table that records errors during the construction in association with the infrastructure resources, constraints in the construction of the infrastructure resources, and the causes of the errors, and wherein the arithmetic unit has a cause inference unit that refers to the cause table to identify the cause of an error that occurs during the construction of the infrastructure resources.

2. A cause inference device as described in claim 1, characterized in that the cause table creation unit creates a constraint list based on the results of comparing information on a specified execution environment with information on the execution environment assumed by the system's construction information.

3. A cause inference device as described in claim 2, characterized in that the cause table creation unit creates the cause table by applying constraints in the constraint list to source code that constructs the infrastructure resources, and performing a simulation to construct the execution environment.

4. A cause inference device as described in claim 1, wherein the cause table creation unit creates a constraint list based on the results of comparing information about a specified execution environment with information about the execution environment assumed by the system's construction information, statically analyzes source code that constructs the infrastructure resources, and creates the cause table including locations where errors identified by the analysis occur.

5. A cause inference device as described in claim 1, wherein the cause table creation unit identifies locations where errors will occur during construction by simulating construction using source code for constructing the infrastructure resources in a specified execution environment, and creates the cause table from the error statements that have occurred and information on the execution environment.

6. A cause inference device as described in claim 1, wherein the cause inference unit receives information about an infrastructure resource to be constructed and information about an execution environment to be constructed, identifies constraints by comparing the received information with source code that constructs an execution environment without constraints, using the information about the execution environment as constructible source code, and searches for records similar to the identified constraints from the infrastructure resource information stored in the cause table, and identifies the cause of an error that may occur when creating the infrastructure resource.

7. A cause inference device as described in claim 1, wherein the cause inference unit receives error details in the event of a construction failure, infrastructure resource information of the target to be constructed, and information on the execution environment of the target to be constructed, identifies constraints by comparing the received information with source code that constructs an execution environment without constraints, using the information of the execution environment as constructible source code, and searches for records similar to the identified constraints from the infrastructure resource information stored in the cause table, and identifies the cause of an error that may occur when creating the infrastructure resource.

8. A cause inference method in which a computer infers the cause of a failure in the construction of a system that constructs infrastructure resources in a specified execution environment, the computer having a calculation device that executes specified calculation processing and a storage device connected to the calculation device, the cause inference method comprising: a cause table creation step in which the calculation device uses construction information of the system and information about the execution environment assumed by the construction information of the system to create a cause table that records errors during the construction in association with the infrastructure resources, constraints in the construction of the infrastructure resources, and the causes of the errors; and a cause inference step in which the calculation device refers to the cause table to identify the cause of an error that occurs during the construction of the infrastructure resources.

Citation Information

Patent Citations

  • Distributed computer system

    JP2008009865A

  • Identifying a configuration element value as a potential cause of a testing operation failure

    US20160283355A1

  • Software introduction system, software introduction method, and software introduction program

    WO2019045045A1