Search

CN-115168095-B - Method, device and medium for collecting task information of storage management software

CN115168095BCN 115168095 BCN115168095 BCN 115168095BCN-115168095-B

Abstract

The application relates to the technical field of storage, and discloses a method, a device and a medium for collecting task information of storage management software, wherein the method comprises the following steps: and creating a module association table according to the history log information to record association levels of all the modules and dependency relations among the modules, determining a direct association module and an indirect association module corresponding to the current task failure module according to the module association table when the task fails, calling a pre-built module information collector to collect abnormal information of the current task failure module, obtaining an abnormal information set by the direct association module and the indirect association module, and determining a reason of the current task failure according to the abnormal information set. Therefore, when the module fails to execute the task, according to the pre-established module association table, abnormal information of the current task module is collected, abnormal information of the module directly and indirectly associated with the current task module is also collected, the reason of the failure of the task is determined according to the accurately positioned and comprehensive abnormal information, and the reliability of the storage system is improved.

Inventors

  • MA CONG
  • XIE PENG

Assignees

  • 济南浪潮数据技术有限公司

Dates

Publication Date
20260512
Application Date
20220727

Claims (6)

  1. 1. A method of storing and managing software task information collection, comprising: creating a module association table according to the history log information so as to record association levels of different modules in the storage management software and dependency relations among the different modules; when a task failure signal is acquired, determining a direct association module and an indirect association module corresponding to the current task failure module according to the module association table; Invoking a pre-built module information collector to collect the current task failure module, wherein the abnormal information of the direct association module and the indirect association module is acquired as an abnormal information set; determining the reason of failure of the current task according to the abnormal information set; Collecting the abnormal information of the current task failure module, wherein the obtaining the abnormal information set by the direct association module and the indirect association module comprises the following steps: collecting abnormal information of the current task failure module in a period from the start of the task to the termination of the task of the current task by the direct association module and the indirect association module; storing the abnormal information collected by the past task failure to obtain the abnormal information set; The determining the reason for the failure of the current task according to the abnormal information set comprises the following steps: classifying the target abnormal information in a preset period to obtain a classification result; Respectively determining the frequency of abnormal information of the current task failure module, the direct association module and the indirect association module according to the classification result; determining the current task failure module according to the frequency of abnormal information corresponding to each module, wherein the current association level corresponds to the direct association module and the indirect association module; Determining the reason of failure of the current task according to each current association level; The current task failure module is determined according to the frequency of abnormal information corresponding to each module, and the current association level corresponding to the direct association module and the indirect association module comprises: When the frequency of the abnormal information is greater than a first threshold value, determining that the current association level is an important level; when the frequency of the abnormal information is greater than a second threshold value and is smaller than or equal to the first threshold value, determining that the current association level is a medium level; When the frequency of the abnormal information is not greater than a second threshold value, determining that the current association level is a general level; after determining the current task failure module according to the frequency of the abnormal information corresponding to each module, the current association level corresponding to the direct association module and the indirect association module further comprises: determining whether the current task failure module, the current association level corresponding to the direct association module and the indirect association module is the same as the association level in the module association table; And if the module association tables are different, updating the module association tables based on the current association level.
  2. 2. The method of storage management software task information collection of claim 1, further comprising: when the autonomous modification instruction is acquired, modifying the module association table according to the autonomous modification instruction.
  3. 3. The method for collecting task information of storage management software according to claim 1, wherein creating a module association table according to the history log information to record association levels of different modules in the storage management software and dependency relationships between the different modules comprises: classifying each abnormal information in the history log information to determine the frequency of abnormal information of different modules; Determining the association levels corresponding to different modules according to the frequencies of the abnormal information corresponding to the modules; And determining the association degree between different modules according to the history log information so as to determine the dependency relationship between different modules.
  4. 4. An apparatus for storing and managing collection of software task information, comprising: the creation module is used for creating a module association table according to the history log information so as to record association levels of different modules in the storage management software and dependency relations among the different modules; The first determining module is used for determining a direct association module and an indirect association module corresponding to the current task failure module according to the module association table when the task failure signal is acquired; The calling module is used for calling a pre-constructed module information collector to collect the current task failure module, and the abnormal information of the direct association module and the indirect association module is used for obtaining an abnormal information set; The second determining module is used for determining the reason of the failure of the current task according to the abnormal information set; The calling module is further configured to: collecting abnormal information of the current task failure module in a period from the start of the task to the termination of the task of the current task by the direct association module and the indirect association module; storing the abnormal information collected by the past task failure to obtain the abnormal information set; the second determining module is further configured to: classifying the target abnormal information in a preset period to obtain a classification result; Respectively determining the frequency of abnormal information of the current task failure module, the direct association module and the indirect association module according to the classification result; determining the current task failure module according to the frequency of abnormal information corresponding to each module, wherein the current association level corresponds to the direct association module and the indirect association module; Determining the reason of failure of the current task according to each current association level; the second determining module is further configured to: When the frequency of the abnormal information is greater than a first threshold value, determining that the current association level is an important level; when the frequency of the abnormal information is greater than a second threshold value and is smaller than or equal to the first threshold value, determining that the current association level is a medium level; When the frequency of the abnormal information is not greater than a second threshold value, determining that the current association level is a general level; the second determining module is further configured to: determining whether the current task failure module, the current association level corresponding to the direct association module and the indirect association module is the same as the association level in the module association table; And if the module association tables are different, updating the module association tables based on the current association level.
  5. 5. A device for storing and managing the task information collection of software, which is characterized by comprising a memory for storing a computer program; A processor for implementing the steps of the method of storing and managing software task information collection according to any one of claims 1 to 3 when executing said computer program.
  6. 6. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of a method of storing and managing software task information collection according to any one of claims 1 to 3.

Description

Method, device and medium for collecting task information of storage management software Technical Field The present application relates to the field of storage technologies, and in particular, to a method, an apparatus, and a medium for collecting task information of storage management software. Background The Browser/Server (B/S) structure is a network structure after Web rising, and the B/S structure utilizes the technology of a Web Browser which is mature continuously, so that the powerful functions which can be realized by special software in the past are realized, and the development cost is saved. The existing storage management software realizes the visual interface management of the storage system based on the B/S architecture, and a user can realize the storage resource management through interface operation. At present, because the ecological environment is complex in storage, the task execution failure may be caused by various factors in the operation executed by the interface, however, many current alarming or error prompting messages are not comprehensive enough, so that the user cannot determine the reason of the task failure, and the error or fault cannot be removed in time. For example, when performing a task of creating a storage pool, if the creation fails because a selected storage disk has been borrowed or is full of disks, the user is currently only alerted to the current storage pool failure and cannot be notified of the cause of the specific failure. At this time, research personnel are often required to locate and remove errors or faults, so that the labor cost is increased, and meanwhile, bad experience is brought to users. Therefore, how to quickly obtain the failure reasons of the tasks in the storage management software, and improve the experience of the user is a problem to be solved by those skilled in the art. Disclosure of Invention The application aims to provide a method, a device and a medium for collecting task information of storage management software, which are used for rapidly positioning reasons of task failure in the storage management software, reducing access of developers and improving user experience. In order to solve the technical problems, the application provides a method for collecting task information of storage management software, which comprises the following steps: creating a module association table according to the history log information so as to record association levels of different modules in the storage management software and dependency relations among the different modules; when a task failure signal is acquired, determining a direct association module and an indirect association module corresponding to the current task failure module according to the module association table; Invoking a pre-built module information collector to collect the current task failure module, wherein the abnormal information of the direct association module and the indirect association module is acquired as an abnormal information set; and determining the reason of the failure of the current task according to the abnormal information set. Preferably, collecting the abnormal information of the current task failure module, the direct association module and the indirect association module to obtain an abnormal information set includes: collecting abnormal information of the current task failure module in a period from the start of the task to the termination of the task of the current task by the direct association module and the indirect association module; And storing the abnormal information collected by the past task failure to obtain the abnormal information set. Preferably, the determining the reason for the failure of the current task according to the abnormal information set includes: classifying the target abnormal information in a preset period to obtain a classification result; Respectively determining the frequency of abnormal information of the current task failure module, the direct association module and the indirect association module according to the classification result; determining the current task failure module according to the frequency of abnormal information corresponding to each module, wherein the current association level corresponds to the direct association module and the indirect association module; And determining the reason of the failure of the current task according to each current association level. Preferably, the determining the current task failure module according to the frequency of the abnormal information corresponding to each module, and the current association level corresponding to the direct association module and the indirect association module includes: When the frequency of the abnormal information is greater than a first threshold value, determining that the current association level is an important level; when the frequency of the abnormal information is greater than a second threshold value and is smaller than or equ