The present invention relates to a system update device and a system update method.
System administrators develop a procedure for a system construction operation and a procedure for a system update operation on the basis of, for example, an appropriate template acquired from a storage unit storing procedure templates. However, administrators are sometimes required to manually develop a procedure from the beginning depending on the situation.
For example, when a system update operation is executed and if appropriate procedure templates for the current system configuration before the update and the target system configuration after the update are not stored in the storage unit, an administrator is required to manually develop an appropriate procedure from the beginning.
As described above, a system construction operation and a system update operation in which a procedure according to a request is manually developed are referred to as an imperative system construction operation and an imperative system update operation. In particular, since an updating operation itself is often complicated, the imperative system update operation has a problem that developing a procedure takes enormous man-hours.
In contrast to the imperative system construction operation and the imperative system update operation, a system construction operation and a system update operation in which a procedure according to a request is automatically generated are referred to as a declarative system construction operation and a declarative system update operation. In the declarative system construction operation and the declarative system update operation, the storage unit stores system components, such as parts, and the relations between the components.
For example, in the declarative system update operation, the stored information is used to divide the current system configuration and the target system configuration into respective components. Then, the divided components of the respective configurations are compared with each other, whereby an operation procedure capable of updating the current system configuration to the target system configuration is generated each time the update operation is executed.
As described above, the declarative system update operation has an advantage that no procedure needs to be manually developed. That is, the declarative system update operation is an operation for automatically updating the system configuration to the update target configuration. The declarative system construction operation is an operation for automatically constructing the construction target system.
As a technique for automatically generating a construction procedure and an update procedure on the basis of a difference between the current system configuration and the target system configuration, using the above declarative system construction technique and declarative system update technique, Non Patent Literature (NPL) 1 to NPL 3 each disclose a procedure generation device.
As shown in
The procedure generation device shown in
Then, the procedure generation device shown in
As a result of searching for the procedure, Workflow as shown in
In addition, Patent Literature (PTL) 1 also discloses a software update device capable of automating software update operations for a plurality of information processing devices, including an action confirmation operation, thereby reducing the load on a system administrator.
In addition, PTL 2 also discloses an operation manual management method for specifying the execution order of a plurality of operations for a plurality of related components.
In addition, PTL 3 discloses a firmware update device that can handle malfunction during updating and has a short system down time due to updating, while reducing the nonvolatile memory capacity for storing firmware.
In addition, NPL 4 discloses about the MaxSAT solver.
Network Operations and Management Symposium, Istanbul, 2016, pages 808-811.
In general, when a construction operation procedure and an update operation procedure are developed, a rollback procedure (an exception handling procedure), which is the procedure of the operation executed when an exception occurs, is also required to be developed each time an operation is executed.
The required rollback procedure is a procedure to be used to return the state of a system to the initial state when, for example, the next execution target task that constitutes a normal procedure cannot be executed. The initial state is the state of the system before an operation is executed.
Exceptions that can occur are, for example, lack of resources, stop due to a user's interruption, occurrence of abnormality in firmware after update, and extension of scheduled execution time. The exception state is a state of the target system other than the states of the target system that can occur during execution of the normal procedure.
For example, when a communication service provided by a communication network of a telecommunications carrier is stopped, the damage to the carrier is large. In addition, when a communication service is stopped, the telecommunications carrier is also required to report the failure to the relevant government ministries and agencies.
As described above, in order to operate a communication network, it is required to promptly restore the communication service when an exception occurs, and a safe restoration operation plan is required in advance. For example, a recovery operation plan “guaranteeing that recovery is done within 30 minutes at most if an exception occurs” is required.
The procedure generation device shown in
However, if the procedure generation device cannot generate a procedure that can be rolled back, the administrator fails to handle the exception. In addition, if the procedure generation device takes a long time to execute the computation process for generating a rollback procedure, it can be too late to handle the exception.
Thus, it is preferable that rollback procedures generated on the basis of a safe recovery operation plan are prepared in advance for all points at which an exception can occur. Note that, all the points are basically all the points during a construction operation or all the points during an update operation.
The administrator inputs, for example, a component model indicating the current system configuration and a component model indicating the modification target system configuration to the system update device (step S001). The system update device designs an update operation procedure on the basis of the input component models (step S002).
In addition, the system update device constructed on the basis of the above design concept designs rollback procedures for all points at which an exception can occur during an update operation (step S003). The system update device stores the designed rollback procedure group in the storage unit (step S004).
Then, the system update device modifies the configuration of the target system in accordance with the designed update operation procedure (step S005). By executing the process of step S005, the state of the target system transitions from the initial state to the target state. The target state is the state of the system after the operation is executed.
In addition, when an exception occurs during execution of the update operation procedure, the system update device acquires, from the storage unit, a rollback procedure corresponding to the state of the system when the exception has occurred. Then, the system update device executes rollback in accordance with the acquired rollback procedure (step S006). By executing the process of step S006, the state of the target system transitions from the state when the exception has occurred to the initial state.
That is, in the system update process shown in
However, the system update process shown in
Thus, when the method of preparing the rollback procedures for the states during the update operation is adopted, the resource amount required for the preparation of the rollback procedures (particularly, the resource amount required for the computation process) can become enormous.
In addition, when the update operation procedure is represented by a partially-ordered set of tasks, the number of states that occur during execution of a predetermined task is not fixed to one. An ordered set is a set in which the concept of order is defined. Of ordered sets, a partially-ordered set is an ordered set that allows the cases in which the order of elements cannot be compared. In addition, of ordered sets, a totally ordered set is an ordered set that does not allow the cases in which the order of elements cannot be compared.
That is, a procedure represented by a totally ordered set (hereinafter referred to as a totally ordered procedure) is a serial procedure in which tasks are arranged in a line. Alternatively, a procedure represented by a partially-ordered set (hereinafter, referred to as a partially-ordered procedure) is a procedure in which two or more tasks are arranged in random order to be executable.
The partially-ordered procedure shown in
One rectangle shown in
In the partially-ordered procedure shown in
That is, when the system construction or the system update is executed in accordance with the partially-ordered procedure as shown in
As a method for reducing the resource amount required to prepare rollback procedures, for example, PTL 3 discloses a method for simply generating a rollback procedure by generating reverse operations of operations included in an update operation procedure and arranging the generated reverse operations in the reverse order of the update operation procedure.
However, due to the complexity of a system being updated, a rollback procedure simply generated by the above method is sometimes un-executable. In order to generate an executable rollback procedure, preparation based on the update operation procedure is required.
For this reason, one of an object of the present invention is to provide a system update device and a system update method that can solve the above problems and reduce the resource amount required to prepare rollback procedures.
In an exemplary embodiment of the present invention, a system update device includes a reverse operation generation unit that generates a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order, a first procedure generation unit that generates a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order, and an adjustment unit that, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, adjusts information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
In an exemplary embodiment of the present invention, a system update method includes generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order, generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order, and adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
In an exemplary embodiment of the present invention, a system update program causes a computer to execute a reverse operation generation process for generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order, a procedure generation process for generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order, and an adjustment process for adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
In an exemplary embodiment of the present invention, a computer-readable recording medium stores a system update program causing, when executed by a computer, the computer to execute generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order, generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order, and adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
According to the present invention, it is possible to reduce the resource amount required to prepare rollback procedures.
Hereinafter, exemplary embodiments of the present invention will be described with reference to the drawings.
The processes of step S101, step S102, step S104, and step S106 shown in
The system update device in the present exemplary embodiment designs rollback procedures for all points at which an exception can occur during an update operation (step S103). However, rollback procedures designed in step S103 are procedures computed in a computation process that can be executed with a realistic resource amount. As described later, the rollback procedures designed in step S103 can include inappropriate procedures.
In addition, the system update device in the present exemplary embodiment combines, when an exception occurs during execution of an update operation procedure, procedures as described later according to the rollback procedure designed in step S103 corresponding to the state of the system when the exception occurs (step S105). With the process of step S105, the rollback procedure is quickly prepared.
With the system update process shown in
[Description of Configuration]
The unidirectional arrows shown in the block diagram each indicate the direction in which data (information) flows. However, the possibility that data flows bidirectionally at the positions where the arrows are shown is not excluded.
As shown in
The execution order adjustment unit 112 has a function of adjusting the execution order of tasks constituting the procedure designed by the procedure planning unit 111. In addition, the procedure execution unit 113 has a function of executing, for a system being updated 500, the procedure in which the task execution order has been adjusted by the execution order adjustment unit 112. That is, the procedure execution unit 113 executes the process of step S104 and the process of step S106 shown in
The procedure execution unit 113 is communicably connected to the system being updated 500. If an exception occurs in the system being updated 500 during execution of the procedure, the procedure execution unit 113 is notified that the exception has occurred. The occurrence of the exception is notified to the procedure execution unit 113 by manual confirmation, an external system monitoring service, or the like. Alternatively, the system being updated 500 itself may notify the procedure execution unit 113 of the occurrence of the exception.
As shown in
The rollback procedure comprehension unit 121 has a function of controlling the reverse execution procedure planning unit 122 and the partial rollback procedure storage unit 123 in order to prepare rollback procedures in advance for all points at which an exception can occur.
The reverse execution procedure planning unit 122 has a function of planning a reverse execution procedure to be used as the rollback procedure corresponding to a state that can occur during execution of an update operation procedure. The reverse execution procedure planning unit 122 plans a reverse execution procedure on the basis of the procedure in which the task execution order is adjusted by the execution order adjustment unit 112. The specific content of the reverse execution procedure will be described later.
The partial rollback procedure storage unit 123 has a function of storing a partial rollback procedure designed by the reverse execution procedure planning unit 122. That is, each constituent element of the pre-processing block performs the process of step S103 shown in
As shown in
Specifically, the rollback procedure generation unit 131 acquires, according to the current state, the partial rollback procedure and the reverse execution procedure from the partial rollback procedure storage unit 123. Then, the rollback procedure generation unit 131 generates a rollback procedure by combining the acquired partial rollback procedure and reverse execution procedure. The rollback procedure generation unit 131 inputs the generated rollback procedure to the procedure execution unit 113.
The state management unit 132 has a function of managing the current state of the system being updated 500 during execution of the update operation procedure. The current state is the latest state of the system being updated 500. That is, each constituent element of the post-processing block performs the process of step S105 shown in
In the following, the process of step S103 shown in
The system update device 100 in the present exemplary embodiment uses the feature that a rollback procedure can be generated by arranging “reverse tasks” of tasks constituting a normal procedure in the “reverse order” of the normal procedure (hereinafter, referred to as reverse execution) in many cases. The reverse execution procedure in the present exemplary embodiment is a procedure generated by this method.
The left of
The rollback procedure for returning the state shown in the left of
The task “delete app.war”, the task “restore serverXml”, and the task “start tomcat” shown in the right of
With the method for generating the rollback procedure on the basis of the tasks executed before the occurrence of the exception, the consumed resource amount is reduced as compared to the method for generating the rollback procedure corresponding to each state in advance. The system update device 100 in the present exemplary embodiment basically generates the rollback procedure with the above method.
However, in some cases, the rollback procedure cannot be generated by simply arranging “reverse tasks” as described above.
In the procedure shown in
In addition, if appropriate operations are not complemented when access to an external repository is required to deploy app1.war, the task “deploy app1.war”, which is the reverse task of the task “app1.war delete”, cannot be executed.
Thus, the system update device 100 in the present exemplary embodiment generates the rollback procedure with the policy of increasing the number of reversely-executable tasks as much as possible and planning the partial rollback procedure only for reversely-un-executable tasks.
The processes of the constituent elements of the pre-processing block based on the above policy will be described. The execution order adjustment unit 112 adjusts the execution order of the tasks constituting the update operation procedure in a manner such that the rollback procedure can be generated by reverse execution.
The procedure shown in the upper of
The lower of
In addition, the reverse execution procedure planning unit 122 plans a partial rollback procedure in advance only for a reversely-un-executable task although the execution order is adjusted.
The left of
Thus, the reverse execution procedure planning unit 122 plans a partial rollback procedure that is a partial rollback procedure for the task “delete app1.war”. As shown in the right of
Next, the processes of the constituent elements of the post-processing block based on the above policy will be described.
The left of
The rollback procedure generation unit 131 generates the reverse execution procedure shown in the right of
The rollback procedure generation unit 131 acquires the partial rollback procedure planned in advance from the partial rollback procedure storage unit 123 using the original procedure as a key. Then, the rollback procedure generation unit 131 combines the acquired partial rollback procedure and the reverse execution procedure.
The right of
In the following, a specific example in which the system update device 100 in the present exemplary embodiment prepares a rollback procedure will be described with reference to
The state element models shown in
The ellipses in the state elements shown in
In addition, each dashed arrow shown in
For example, the dependency from the state transition t of the state element E1 to the state s of the state element E2 indicates that the execution of the state transition t depends on the state s. That is, the state element E1 can execute the state transition t only when the state of the state element E2 is the state s.
In addition, the dashed-lined rounded quadrangles shown in
The broken-line rounded rectangles shown in
The procedure planning unit 111 inputs the planned update operation procedure to the reverse execution procedure planning unit 122. The reverse execution procedure planning unit 122 can generate a reverse execution procedure by simply reversely executing the procedure of the left group and the procedure of the right group shown in
However, the procedure of the center group shown in
When the groups for which the partial rollback procedure plan is required are adjacent to each other, the following pre-process is required to be performed.
If groups for which partial rollback procedure plans are required are adjacent to each other, inconvenience can occur in subsequent procedures. Thus, as shown in
For example, the task “bot.service:t->f” shown in
The execution order adjustment unit 112 executes an execution order complementation process for the reverse execution procedure whose execution order is required to be adjusted among the reverse execution procedures generated as the reverse execution procedure shown in
The process for generating a system reverse execution procedure P′ from a system reverse execution procedure P by the execution order adjustment unit 112 executing the execution order complementation process will be described below with reference to
The procedure P shown in
In the process A, the execution order adjustment unit 112 enumerates task groups d1, d2, . . . , and dn that satisfy the following two conditions.
(1) Executable in parallel with task t
(2) To affect the executable condition of task t
In the process A shown in
Next, in the process B, the execution order adjustment unit 112 generates a set X(t, di) of order relation candidates that is drawn between the task t and the task di(i=1, . . . , n). The set X includes the candidate “t->di” and the candidate “di->t”.
When the influence on the above executable conditions is taken into consideration, “d1->t” is drawn between the task t and the task d1 as an order relation candidate. In addition, “t->dz” is drawn between the task t and the task d2. In addition, “d3->t” is drawn between the task t and the task d3. Thus, the set X of the order relation candidates collected for all the tasks t by the above procedure is expressed by X={d1->t, t->d2, d3->t} as shown in
Then, the execution order adjustment unit 112 generates a constraint Cexec(t) for all the tasks t to be “task t is executable”. The timing at which the task t can be executed is one of the following timings with reference to the process B shown in
1. After the task d1 is executed
2. After the task d3 is executed but before the task d2 is executed
If “adopting the order relation a->b” is described as [a->b], the constraint Cexe(t) for being “task t is executable” is described as follows.
C
exe(t)=([d1->t] OR ([d3->t] AND [t->d2])) Expression (1)
Then, the execution order adjustment unit 112 generates a constraint Cord for being “the order relation of the procedure P is consistent”. “The order relation is consistent” means that the following two rules are maintained.
1. (Asymmetric law) [a->b] and [b->a] must not hold at the same time
2. (Transitive law) If [a->b] and [b->c] hold, then [a->c] also holds
Thus, the constraint Cord for being that the order relation of the procedure shown in
C
ord=NOT ([t->d2] AND [d1->t]) Expression (2)
Note that, NPL 4 discloses a more complicated example of the expression of constraint Cexe(t) and the expression of constraint Cord.
Then, the execution order adjustment unit 112 adopts, as the procedure P′, the minimum necessary order structure among the procedures that uses the constraint solver to satisfy Cord and as many Cexe(t) as possible. The execution order adjustment unit 112 configures the procedure P′ by adopting the minimum necessary order relation from the set X and adding it to the procedure P.
As the constraint solver, the MaxSAT solver disclosed in NPL 4 is used, for example. When the MaxSAT solver is used, partial ordering of the procedure is achieved. In addition, NPL 4 discloses an example of the above constraint.
The procedure P′2 shown in
In addition, the partial rollback procedure of the center group is not shown in
In the following, the process for generating a partial rollback procedure reference table D from the partial procedure P by the reverse execution procedure planning unit 122 executing the partial rollback procedure planning process will be described with reference to
First, the reverse execution procedure planning unit 122 enumerates all execution situations S(S={s0, s1, . . . , sn}) that can occur when the reversely-un-executable partial procedure P is executed.
The execution situation S is described in the balloon shown in the lower part of the left of
As shown in the lower part of the left of
The procedure shown in the upper part of the right of
In addition, as shown in the lower part of the right of
If the linearization is executed, the partial procedure P in the original update operation procedure is required to be also replaced with the linearized procedure. The linearization of a procedure may not be executed according to the procedure.
Then, the reverse execution procedure planning unit 122 obtains, for each execution situation a partial rollback procedure Pi for transitioning the state of the state model to the state before the partial procedure P is executed.
The left of
For the situation in which the exception shown in the left of
In addition, when obtaining the partial rollback procedure and when there is a peripheral task depending on the planning target partial rollback procedure, the reverse execution procedure planning unit 122 adds a temporary state element.
The temporary state element shown in the left of
The right of
That is, by executing the additional process shown in
If there is a dependency from the partial rollback procedure to a peripheral state element, the reverse execution procedure planning unit 122 adds an order relation between the partial rollback procedure and the peripheral reverse task.
Referring to the state element models in the balloon shown in
In order to add the order relation, the reverse execution procedure planning unit 122 generates order relation candidates and solves constraints on the generated candidates, similarly to, for example, the execution order complementation process by the execution order adjustment unit 112. In the example shown in
The reverse execution procedure planning unit 122 adds the order relation from the task “repo.connect:f->t” to the task “dependPackage:f->t”, on the basis of the obtained minimum order structure. The reverse execution procedure planning unit 122 further adds the order relation from the task “dependPackage:f->t” to the task “repo.connect:t->f”.
That is, by executing the additional processing shown in
Then, the reverse execution procedure planning unit 122 generates a partial rollback procedure reference table D that is a table that returns the partial rollback procedure Pi using the execution situation si as a key.
The reverse execution procedure planning unit 122 inputs, to the partial rollback procedure storage unit 123, the partial rollback procedure reference table D including the partial rollback procedure corresponding to each execution situation when an exception occurs, and a means (not shown) capable of solving the dependencies with the peripheries shown in
The reverse execution procedure planning unit 122 also inputs the generated reverse execution procedure to the partial rollback procedure storage unit 123. The partial rollback procedure storage unit 123 stores the input partial rollback procedure reference table D and reverse execution procedure.
[Description of Operation]
In the following, the operation of the system update device 100 in the present exemplary embodiment for generating a procedure will be described with reference to
First, state element models are input to the procedure planning unit 111 (step S110). The procedure planning unit 111 plans an update operation procedure on the basis of the input state element models (step S120). The procedure planning unit 111 inputs the planned update operation procedure to the execution order adjustment unit 112.
Then, the execution order adjustment unit 112 performs an execution order complementation process on the basis of the input update operation procedure (step S130). The execution order adjustment unit 112 inputs the update operation procedure in which the execution order is complemented to the rollback procedure comprehension unit 121.
Then, the rollback procedure comprehension unit 121 inputs only the reversely-executable part of the input update operation procedure to the reverse execution procedure planning unit 122. The reverse execution procedure planning unit 122 generates a reverse execution procedure on the basis of the input part (step S140).
Then, the rollback procedure comprehension unit 121 inputs the reversely-un-executable part of the input update operation procedure to the reverse execution procedure planning unit 122. The reverse execution procedure planning unit 122 performs a partial rollback procedure planning process on the basis of the input part (step S150). After executing the partial rollback procedure planning process, the system update device 100 terminates the procedure generation process.
Next, the operation of the system update device 100 in the present exemplary embodiment for executing the procedure will be described with reference to
First, the update operation procedure in which the execution order is complemented by the execution order adjustment unit 112 is input to the procedure execution unit 113 (step S210).
Then, the procedure execution unit 113 executes the tasks constituting the input update operation procedure (step S220). After executing the task, the procedure execution unit 113 stores the current state of the system being updated 500 in the state management unit 132 (step S230).
Then, the procedure execution unit 113 confirms whether it has been notified that an exception has occurred in the system being updated 500 (step S240). When it has not been notified that an exception has occurred (No in step S240), the procedure execution unit 113 performs the process of step S290.
When it has been notified that an exception has occurred (Yes in step S240), the procedure execution unit 113 confirms whether the entire executed update operation procedure can be reversely executed (step S250).
When reverse execution can be executed for the entire update operation procedure (Yes in step S250), the procedure execution unit 113 instructs the rollback procedure generation unit 131 to generate a rollback procedure by reverse execution on the basis of the update operation procedure.
Then, the rollback procedure generation unit 131 acquires the reverse execution procedure according to the current state from the partial rollback procedure storage unit 123 as the rollback procedure (step S260). Then, the procedure execution unit 113 acquires the acquired rollback procedure from the rollback procedure generation unit 131. After acquiring the rollback procedure, the procedure execution unit 113 performs the process of step S280.
When reverse execution cannot be executed for a part of the update operation procedure (No in step S250), the procedure execution unit 113 inputs the update operation procedure being executed to the rollback procedure generation unit 131.
The rollback procedure generation unit 131 acquires the partial rollback procedure corresponding to the reversely-un-executable partial procedure of the input procedure from the partial rollback procedure storage unit 123 using the current state stored in the state management unit 132. The rollback procedure generation unit 131 also acquires the reverse execution procedure corresponding to the acquired partial rollback procedure.
Then, the rollback procedure generation unit 131 generates a rollback procedure by combining the reverse execution procedure generated by reversely executing the reversely-executable partial procedure and the acquired partial rollback procedure (step S270). The rollback procedure generation unit 131 inputs the generated rollback procedure to the procedure execution unit 113. After the procedure is input, the procedure execution unit 113 performs the process of step S280.
In step S280, the procedure execution unit 113 executes the input rollback procedure. By executing the rollback procedure, the state of the system being updated 500 returns to the initial state. After executing the rollback procedure, the system update device 100 terminates the procedure execution process.
In step S290, the procedure execution unit 113 confirms whether there is an unexecuted task among the tasks constituting the input update operation procedure. If there is an unexecuted task (Yes in step S290), the procedure execution unit 113 performs the process of step S220 again.
If all the tasks constituting the update operation procedure have been executed (No in step S290), the system update device 100 terminates the procedure execution process.
Next, the execution order complementation process of step S130, which is a sub process constituting the procedure generation process shown in
First, the execution order adjustment unit 112 enumerates task groups that can be executed in parallel with the reversely-un-executable task t and that affect the executable condition of the reversely-un-executable task t (step S131).
Then, the execution order adjustment unit 112 generates a set of order relation candidates to be drawn between the reversely-un-executable task t and the enumerated task groups (step S132).
Then, the execution order adjustment unit 112 generates a constraint Cexe(t) for all the tasks t to be “task t is executable” (step S133).
Then, the execution order adjustment unit 112 generates a constraint Cord for the order relation of the reverse execution procedure to be consistent (step S134).
Then, the execution order adjustment unit 112 adopts, as the reverse execution procedure, the procedure having the minimum necessary order structure that satisfies Cord and as many Cexe(t) as possible (step S135). After the adoption, the execution order adjustment unit 112 terminates the execution order complementation process.
Next, the partial rollback procedure planning process of step S150, which is a sub process constituting the procedure generation process shown in
First, the reverse execution procedure planning unit 122 transforms the reversely-un-executable partial procedure P into a linear procedure by adding an appropriate order relation (step S151). The process of step S151 may be omitted.
Then, the reverse execution procedure planning unit 122 enumerates all the execution situations S that can occur when the reversely-un-executable partial procedure P is executed (step S152).
Then, the reverse execution procedure planning unit 122 plans, for each execution situation a partial rollback procedure Pi for transitioning the state of the state model to the state before the partial procedure P is executed (step S153).
Then, the reverse execution procedure planning unit 122 generates a means capable of solving the dependencies of the planned partial rollback procedure Pi with the peripheries (step S154).
Then, the reverse execution procedure planning unit 122 generates a partial rollback procedure reference table D that is a table that returns the partial rollback procedure Pi using the execution situation si as a key (step S155). The partial rollback procedure reference table D includes the partial rollback procedure Pi corresponding to each execution situation si when an exception occurs, and a means capable of solving the dependency of the partial rollback procedure Pi with the peripheries.
Then, the reverse execution procedure planning unit 122 inputs the partial rollback procedure reference table D and the reverse execution procedure to the partial rollback procedure storage unit 123. The partial rollback procedure storage unit 123 stores the partial rollback procedure reference table D and the reverse execution procedure (step S156). After the storing, the reverse execution procedure planning unit 122 terminates the partial rollback procedure planning process.
[Description of Effects]
The execution order adjustment unit 112 of the system update device 100 in the present exemplary embodiment complements the execution order for the reverse execution procedure generated by reversely executing the update operation procedure. By complementing the execution order, the generated reverse execution procedure can be used as a rollback procedure. That is, since the rollback procedure is generated by a simple reverse execution process, the system update device 100 can reduce the resource amount required for preparing rollback procedures.
In addition, the rollback procedure generation unit 131 of the system update device 100 in the present exemplary embodiment combines the reverse execution procedure generated by reversely executing the reversely-executable part of the update operation procedure and the partial rollback procedure generated in the planning process for the reversely-un-executable part of the update operation procedure. By combining, the rollback procedure generation unit 131 generates a usable rollback procedure. That is, since the target part of the planning process is reduced, the system update device 100 can reduce the resource amount required for preparing rollback procedures.
[Description of Configuration]
Next, a second exemplary embodiment of the present invention will be described with reference to the drawings.
The normal-system block and the post-processing block shown in
That is, the system update device 200 in the present exemplary embodiment executes the execution order complementation process in the first exemplary embodiment without executing the partial rollback procedure planning process in the first exemplary embodiment. The pre-processing block of the system update device 200 targets an update operation procedure not including a reversely-un-executable partial procedure. In the present exemplary embodiment, the rollback procedure comprehension unit 121 generates a reverse execution procedure.
[Description of Operation]
In the following, the operation of the system update device 200 in the present exemplary embodiment for generating a procedure will be described with reference to
The processes of step S310 to step S330 shown in
Then, the rollback procedure comprehension unit 121 generates a reverse execution procedure on the basis of the input update operation procedure (step S340). The rollback procedure comprehension unit 121 inputs the generated reverse execution procedure to the partial rollback procedure storage unit 123.
Then, the partial rollback procedure storage unit 123 stores the input reverse execution procedure (step S350). After the storing, the system update device 200 terminates the procedure generation process.
Next, the operation of the system update device 200 in the present exemplary embodiment for executing the procedure will be described with reference to
The processes of step S410 to step S440 shown in
[Description of Effects]
The execution order adjustment unit 112 of the system update device 200 in the present exemplary embodiment complements the execution order for the reverse execution procedure generated by reversely executing the update operation procedure. By complementing the execution order, the generated reverse execution procedure can be used as a rollback procedure. That is, since the rollback procedure is generated by a simple reverse execution process, the system update device 200 can reduce the resource amount required for preparing rollback procedures.
[Description of Configuration]
Next, a third exemplary embodiment of the present invention will be described with reference to the drawings.
The pre-processing block and the post-processing block shown in
That is, the system update device 300 in the present exemplary embodiment executes the partial rollback procedure planning process in the first exemplary embodiment without executing the execution order complementation process in the first exemplary embodiment. The pre-processing block of the system update device 300 targets an update operation procedure that does not require execution order complementation in the generated reverse execution procedure.
[Description of Operation]
In the following, the operation of the system update device 300 in the present exemplary embodiment for generating a procedure will be described with reference to
The processes of step S510 to step S520 shown in
The procedure planning unit 111 inputs the planned update operation procedure to the rollback procedure comprehension unit 121. The rollback procedure comprehension unit 121 inputs only the reversely-executable part of the input update operation procedure to the reverse execution procedure planning unit 122. The reverse execution procedure planning unit 122 generates a reverse execution procedure on the basis of the input part (step S530).
Then, the rollback procedure comprehension unit 121 inputs the reversely-un-executable part of the input update operation procedure to the reverse execution procedure planning unit 122. The reverse execution procedure planning unit 122 performs a partial rollback procedure planning process on the basis of the input part (step S540). After executing the partial rollback procedure planning process, the system update device 300 terminates the procedure generation process.
In addition, the process by the system update device 300 in the present exemplary embodiment for executing the procedure is the same as the procedure execution process shown in
[Description of Effects]
The rollback procedure generation unit 131 of the system update device 300 in the present exemplary embodiment combines the reverse execution procedure generated by reversely executing the reversely-executable part of the update operation procedure and the partial rollback procedure generated in the planning process for the reversely-un-executable part of the update operation procedure. By combining, the rollback procedure generation unit 131 generates a usable rollback procedure. That is, since the target part of the planning process is reduced, the system update device 300 can reduce the resource amount required for preparing rollback procedures.
In the following, a specific example of the hardware configuration of each of the system update device 100, the system update device 200, and the system update device 300 in the respective exemplary embodiments will be described.
The system update device shown in
The system update device 100, the system update device 200, and the system update device 300 are implemented by software by the CPU 101 shown in
That is, the CPU 101 loads the programs stored in the auxiliary storage unit 104 in the main storage unit 102 and executes the programs to control the operation of each of the system update device 100, the system update device 200, and the system update device 300, whereby the functions are implemented by software.
The main storage unit 102 is used as a work region of data and a temporary save region of data. The main storage unit 102 is, for example, a random access memory (RAM).
The communication unit 103 has a function of inputting and outputting data to and from peripheral devices via a wired network or a wireless network (information communication network).
The auxiliary storage unit 104 is a non-transitory tangible storage medium. The non-transitory tangible storage medium is, for example, a magnetic disk, a magneto-optical disk, a compact disk read only memory (CD-ROM), a digital versatile disk read only memory (DVD-ROM), or a semiconductor memory.
The input unit 105 has a function of inputting data and processing instructions. The input unit 105 is an input device, such as a keyboard or a mouse.
The output unit 106 has a function of outputting data. The output unit 106 is, for example, a display device, such as a liquid crystal display device, or a printing device, such as a printer.
In addition, as shown in
The auxiliary storage unit 104 stores programs for implementing, for example, the procedure planning unit 111, the execution order adjustment unit 112, the procedure execution unit 113, the rollback procedure comprehension unit 121, the reverse execution procedure planning unit 122, the rollback procedure generation unit 131, and the state management unit 132 shown in
The main storage unit 102 is used as, for example, a storage region of the partial rollback procedure storage unit 123. In addition, the procedure planning unit 111 and the procedure execution unit 113 may execute a communication process via the communication unit 103.
The system update device 100, the system update device 200, and the system update device 300 may be implemented by hardware. For example, the system update device 100 may have a circuit including a hardware component, such as a large scale integration (LSI) or the like, for implementing the functions as shown in
In addition, a part of or all of the constituent elements are implemented by a general purpose circuitry, a dedicated circuitry, a processor, or the like, or a combination thereof. These may be constituted by a single chip (for example, the LSI), or by a plurality of chips connected via a bus. A part of or all of the constituent elements may be implemented by a combination of the above circuitry or the like and a program.
In the case in which a part of or all of the constituent elements are implemented by a plurality of information process devices, circuitries, or the like, the information process devices, circuitries, or the like may be arranged in a concentrated manner, or dispersedly. For example, the information process devices, circuitries, or the like may be implemented as a form in which each is connected via a communication network, such as a client-and-server system or a cloud computing system.
Next, an outline of the present invention will be described.
With such a configuration, the system update device can reduce the resource amount required for preparing rollback procedures.
The system update device 10 may include a planning unit (for example, the reverse execution procedure planning unit 122) that plans a procedure of an operation for transitioning the state of a state element corresponding to a part of the update procedure including an operation for which the reverse operation cannot be generated to the current state from an arbitrary state during execution of the update procedure, and a second procedure generation unit (for example, the rollback procedure generation unit 131) that generates a new rollback procedure by combining the rollback procedure which is generated on the basis of a part of the update procedure not including an operation for which the reverse operation cannot be generated and the planned procedure.
With such a configuration, the system update device can handle more update procedures to generate rollback procedures.
The system update device 10 may include a management unit (for example, the state management unit 132) that manages a latest state of the system being updated during execution of the update procedure, in which the second procedure generation unit may generate a new rollback procedure on the basis of the managed latest state.
With such a configuration, the system update device can generate a procedure of an operation for rolling back the state of the system from the current state to the initial state.
The system update device 10 may include an execution unit (for example, the procedure execution unit 113) that executes a procedure.
With such a configuration, the system update device can execute the rollback procedure when an exception occurs.
The update procedure may be a procedure in which two or more operations are arranged in random order to be executable.
With such a configuration, the system update device can generate rollback procedures for all the states that the system being updated can reach while the partially-ordered procedure is being executed.
The first procedure generation unit 12 may generate the update procedure on the basis of an initial state of the system being updated and a target state of the system being updated.
With such a configuration, the system update device can generate an update procedure.
The present invention has been described with reference to the exemplary embodiments and examples, but is not limited to the above exemplary embodiments and examples. Various changes that can be understood by those skilled in the art within the scope of the present invention can be made to the configurations and details of the present invention.
This application claims priority based on Japanese Patent Application No. 2018-063841 filed on Mar. 29, 2018, the disclosure of which is incorporated herein in its entirety.
In addition, a part or all of the above exemplary embodiments can also be described as follows, but are not limited to the following.
(Supplementary note 1) A system update device comprising:
a reverse operation generation unit configured to generate a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order;
a first procedure generation unit configured to generate a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order; and
an adjustment unit configured to, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, adjust information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
(Supplementary note 2) The system update device according to Supplementary note 1, further comprising:
a planning unit configured to plan a procedure of an operation for transitioning the state of a state element corresponding to a part of the update procedure including an operation for which the reverse operation cannot be generated to the current state from an arbitrary state during execution of the update procedure; and
a second procedure generation unit configured to generate a new rollback procedure by combining the rollback procedure which is generated on the basis of a part of the update procedure not including an operation for which the reverse operation cannot be generated and the planned procedure.
(Supplementary note 3) The system update device according to Supplementary note 2, further comprising:
a management unit configured to manage a latest state of the system being updated during execution of the update procedure, wherein
the second procedure generation unit is configured to generate a new rollback procedure on the basis of the managed latest state.
(Supplementary note 4) The system update device according to any one of Supplementary notes 1 to 3, further comprising an execution unit configured to execute a procedure.
(Supplementary note 5) The system update device according to any one of Supplementary notes 1 to 4, wherein
the update procedure is a procedure in which two or more operations are arranged in random order to be executable.
(Supplementary note 6) The system update device according to any one of Supplementary notes 1 to 5, wherein
the first procedure generation unit is configured to generate the update procedure on the basis of an initial state of the system being updated and a target state of the system being updated.
(Supplementary note 7) A system update method comprising:
generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order;
generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order; and
adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
(Supplementary note 8) The system update method according to Supplementary note 7, further comprising:
planning a procedure of an operation for transitioning the state of a state element corresponding to a part of the update procedure including an operation for which the reverse operation cannot be generated to the current state from an arbitrary state during execution of the update procedure; and
generating a new rollback procedure by combining the rollback procedure which is generated on the basis of a part of the update procedure not including an operation for which the reverse operation cannot be generated and the planned procedure.
(Supplementary note 9) A system update program causing a computer to execute:
a reverse operation generation process for generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order;
a procedure generation process for generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order; and
an adjustment process for adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
(Supplementary note 10) The system update program according to Supplementary note 9, the program causing the computer to further execute:
a planning process for planning a procedure of an operation for transitioning the state of a state element corresponding to a part of the update procedure including an operation for which the reverse operation cannot be generated to the current state from an arbitrary state during execution of the update procedure; and
a combining process for generating a new rollback procedure by combining the rollback procedure which is generated on the basis of a part of the update procedure not including an operation for which the reverse operation cannot be generated and the planned procedure.
(Supplementary note 11) A computer-readable recording medium storing a system update program causing, when executed by a computer, the computer to execute:
generating a reverse operation, which is an operation for transitioning the state of a state element to the current state from an arbitrary state during execution of an update procedure on the basis of operations included in the update procedure, wherein the operations are for transitioning, from the current state to a target state, the state of a state element configuring a system being updated, and the update procedure is a procedure including multiple operations arranged in a predetermined order;
generating a rollback procedure, which is a procedure including multiple generated reverse operations arranged in reverse of the predetermined order; and
adjusting, in order that a condition be satisfied under which an un-executable reverse operation included in the generated rollback procedure becomes executable, information indicating an execution order between the operation that is the origin from which the un-executable reverse operation was generated and another operation included in the update procedure.
(Supplementary note 12) The recording medium storing the system update program according to Supplementary note 11, the program causing, when executed by the computer, the computer to further execute:
planning a procedure of an operation for transitioning the state of a state element corresponding to a part of the update procedure including an operation for which the reverse operation cannot be generated to the current state from an arbitrary state during execution of the update procedure; and
generating a new rollback procedure by combining the rollback procedure which is generated on the basis of a part of the update procedure not including an operation for which the reverse operation cannot be generated and the planned procedure.
The present invention is preferably applicable to the field of automatic generation of exception handling procedures (rollback procedures).
Number | Date | Country | Kind |
---|---|---|---|
2018-063841 | Mar 2018 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2019/008057 | 3/1/2019 | WO | 00 |