Test methods, systems, equipment, and media for power module alarm functions
By setting up a standard environment within the storage system and writing test scripts, interactively selecting test items and types, and utilizing the flag bits of the baseboard management controller to detect the power module alarm function, the problem of laborious and inefficient testing methods in the past has been solved, and efficient alarm function verification has been achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-09-22
- Publication Date
- 2026-06-30
AI Technical Summary
Existing testing methods for power module alarm functions are laborious, inefficient, and costly, requiring the construction of different test environments for different abnormal scenarios.
A standard environment is set up within the storage system, test scripts are written, and users are prompted to select test items and types through interactive methods. Functional or stability tests are performed to determine the normality and stability of the power module alarm function, and the flag bits of the baseboard management controller are used for detection.
It simplifies the testing process, saves time and manpower costs, improves testing efficiency, adapts to different power module specifications, and avoids the need for repeated test environment setup due to abnormal scenarios.
Smart Images

Figure CN117271239B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage system testing, and in particular to a test method, system, device and medium for the alarm function of a power module. Background Technology
[0002] A Power Support Unit (PSU) is a crucial component that provides energy support to various powered devices. Especially in storage devices, storage manufacturers typically employ multiple redundant PSUs to ensure stable power supply. Furthermore, to guarantee the stability and reliability of the storage system, the system monitors the health status of the PSU modules in real time. When a PSU module malfunctions due to internal or external factors, the storage system reports different alarms for different anomalies, alerting the user to the specific PSU and the nature of the malfunction, allowing for timely inspection or replacement of the faulty PSU.
[0003] To verify the accuracy and reliability of the storage system's alarm functions under various abnormal scenarios, existing testing methods for alarm functions involve using different auxiliary testing tools under different abnormal scenarios. For example, when verifying input voltage undervoltage / overvoltage protection and input current undercurrent / overcurrent protection, an adjustable input voltage and current test post is used; when verifying PSU temperature exceeding threshold / overheat protection, the entire storage device is placed in a temperature chamber; and when verifying output voltage undervoltage / overvoltage protection and output current undercurrent / overcurrent protection, even the assistance of a power supply development engineer is required to perform special handling on the PSU's internal components.
[0004] Therefore, it is evident that the current testing methods for the power supply module (PSU) alarm function of storage systems are very cumbersome and labor-intensive, with extremely low testing efficiency and high time and manpower costs. There is an urgent need for a simple and efficient testing method to verify the power supply module + PSU alarm function of storage systems. Summary of the Invention
[0005] Therefore, it is necessary to provide a test method, system, device, and medium for the power module alarm function to address the above-mentioned technical problems, so as to verify the stability and functionality of the power module alarm function.
[0006] Firstly, this application provides a test method for the alarm function of a power module, the method comprising:
[0007] A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built.
[0008] Execute the test script;
[0009] A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0010] Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0011] If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0012] If the test type included in the first feedback data is stability test, then the second test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0013] In some embodiments, the method further includes:
[0014] If the test type in the first feedback data is a functional test, then a first test prompt is generated to prompt the user to select a test item;
[0015] Receive second feedback data generated by the user in response to the first test prompt, wherein the second feedback data contains the selected target test item;
[0016] If the test type in the first feedback data is a stability test, a second test prompt is generated to prompt the user to select the test item and the number of tests;
[0017] Receive third feedback data generated by the user in response to the second test prompt, the third feedback data including the selected target test item and the target number of tests.
[0018] In some embodiments, executing the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal includes:
[0019] Modify the value of the flag bit corresponding to the target test item in the baseboard management controller;
[0020] After the testing cycle, check whether the current storage system reports power module alarm information corresponding to the target test item;
[0021] If the current storage system reports a power module alarm information corresponding to the target test item, then the power module alarm function corresponding to the target test item is determined to be normal.
[0022] If the current storage system does not report power module alarm information corresponding to the target test item, it is determined that the power module alarm function corresponding to the target test item is abnormal.
[0023] In some embodiments, executing the second test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable includes:
[0024] Execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal;
[0025] If the power module alarm function corresponding to the target test item is determined to be normal, the current test count of the target test item is recorded, and the first test rule is continued to be executed until the current test count is equal to the target test count and / or the power module alarm function corresponding to the target test item is determined to be abnormal when the current test count is less than the target test count.
[0026] If the current number of tests equals the target number of tests, then the power module alarm function corresponding to the target test item is determined to be stable.
[0027] If the current number of tests is less than the target number of tests, it is determined that the power module alarm function corresponding to the target test item is abnormal, and the power module alarm function corresponding to the target test item is determined to be unstable.
[0028] In some embodiments, before generating the test initiation prompt to prompt the user to select a test item and test type, the method further includes:
[0029] Check the health status of the current storage system and the corresponding power module;
[0030] If an abnormal alarm is detected in the current storage system and / or the power module, the abnormal alarm is recorded and the execution of the test script is exited.
[0031] If an abnormal alarm is detected in the current storage system and / or the power module, the abnormal alarm is recorded and the execution of the test script is exited.
[0032] If no abnormal alarms are detected in the current storage system and / or the power module, the flag bits and values of the corresponding test items in the baseboard management controller are recorded for each test item in the initial state of the power module.
[0033] In some embodiments, writing the test script within the current storage system includes:
[0034] Obtain the specifications of the power modules within the current storage system;
[0035] Obtain the product type signal of the storage device under test within the current storage system;
[0036] Based on the product type signal of the storage device under test, determine the power module specifications within the current storage system;
[0037] Determine the test script corresponding to the current storage system based on the power module specifications;
[0038] Write the test script into the current storage system.
[0039] In some embodiments, the method includes:
[0040] When it is determined that the power module alarm function corresponding to the target test item is abnormal, the alarm log is recorded, and the alarm log includes the target test item;
[0041] When it is determined that the power module alarm function corresponding to the target test item is normal, the value of the flag bit corresponding to the target test item in the baseboard management controller is modified according to the flag bit corresponding to each test item in the baseboard management controller and the value of the flag bit in the initial state.
[0042] Secondly, this application provides a test system for the alarm function of a power module, the system comprising:
[0043] The test preparation module is used to build a standard storage environment within the current storage system and write test scripts into the current storage system after the standard storage environment is built.
[0044] The test execution module is used to execute the test script;
[0045] The test execution module is also used to generate a test initiation prompt to prompt the user to select a test item and a test type, wherein the test type includes functional testing and stability testing;
[0046] The test execution module is also used to receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0047] The test execution module is further configured to execute the first test rule when the test type contained in the first feedback data is a functional test;
[0048] The test analysis module is used to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0049] The test execution module is also used to execute the second test rule when the test type contained in the first feedback data is a stability test;
[0050] The test analysis module is also used to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0051] Thirdly, this application provides an electronic device, the electronic device comprising:
[0052] One or more processors;
[0053] and a memory associated with the one or more processors, the memory storing program instructions that, when read and executed by the one or more processors, perform the following operations:
[0054] A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built.
[0055] Execute the test script;
[0056] A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0057] Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0058] If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0059] If the test type included in the first feedback data is stability test, then the second test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0060] Fourthly, this application also provides a computer-readable storage medium storing a computer program that causes a computer to perform the following operations:
[0061] A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built.
[0062] Execute the test script;
[0063] A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0064] Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0065] If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0066] If the test type included in the first feedback data is stability test, then the second test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0067] The beneficial effects achieved by this application are as follows:
[0068] This application provides a testing method for power module alarm functions, including: setting up a standard storage environment within the current storage system; writing a test script into the current storage system after setting up the standard storage environment; executing the test script; generating a test initiation prompt to guide the user to select test items and test types, wherein the test types include functional testing and stability testing; receiving first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type; if the test type included in the first feedback data is a functional test, then executing a first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal; if the test type included in the first feedback data is a stability test, then executing a second test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable. This method allows for simple and efficient verification of the functionality and stability of the storage system's power module alarm reporting function, based on user needs; and avoids the need to set up different test environments for different PSU anomaly scenarios, greatly saving testing time and manpower costs, and further improving testing efficiency. Furthermore, different test scripts are determined based on different power module specifications, effectively avoiding the problem that test methods may be inapplicable due to differences in the internal structure of different storage systems. Attached Figure Description
[0069] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:
[0070] Figure 1 This is a schematic diagram of a detection method for a power module alarm function provided in an embodiment of this application;
[0071] Figure 2 This is a flowchart of a detection method for a power module alarm function provided in an embodiment of this application;
[0072] Figure 3 This is an architecture diagram of a power module alarm function detection system provided in an embodiment of this application;
[0073] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0074] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0075] It should be understood that, in the description of this application, unless the context explicitly requires it, the words "comprising," "including," and similar terms throughout the specification and claims should be interpreted as encompassing rather than being exclusive or exhaustive; that is, meaning "including but not limited to."
[0076] It should also be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0077] It should be noted that the terms "S1," "S2," etc., are used only for descriptive purposes and do not specifically refer to the order or sequence, nor are they intended to limit this application. They are merely for the convenience of describing the method of this application and should not be construed as indicating the sequential order of the steps. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0078] The typical alarm process for a power supply unit (PSU) in a storage system is as follows: During PSU operation, the baseboard management controller (BSC) uses different flags to distinguish and mark various states of the PSU. The BSC performs routine checks on each state of the PSU and feeds back the results to the corresponding flags. The storage system also performs routine checks on the BSC's flags and determines whether the power module is operating normally based on the flag markings. Specifically, if all states of the power module are operating normally, the BSC sets the corresponding flag to 0. If the storage system detects a flag of 0, it indicates that the corresponding states within the power module are operating normally, and no alarm is reported. If an anomaly occurs, the BSC sets the corresponding flag to 1. When the storage system detects a flag that has become 1, it reports the alarm information corresponding to that flag. To verify whether alarms are reported correctly, the power module alarm function needs to be tested. As described in the background section, existing methods for detecting power module alarm functions still rely on different auxiliary testing tools to verify the alarm function under different abnormal scenarios, resulting in high testing costs and low efficiency. This application provides a simple and efficient testing method to verify the storage system's ability to report alarms from the power module, and avoids the need to build different test environments for different abnormal scenarios, greatly saving time and manpower costs and improving testing efficiency.
[0079] Example 1
[0080] This application provides a testing method for the power module alarm function of a storage system, specifically as follows: Figure 1 As shown, the process of verifying the power supply module (PSU) alarm function in a storage system using the test method disclosed in this application includes the following:
[0081] S1. Build a standard storage environment within the current storage system, and then write test scripts into the current storage system after building the standard storage environment.
[0082] First, before writing the test script, a standard storage environment needs to be constructed, including: installing the storage controller into the storage chassis; burning the baseboard management controller version of the storage chassis; installing the power module into the storage chassis; and installing the storage management software on the storage device. This ensures that the power module, baseboard management controller, and storage system all meet the test requirements, avoiding potential problems that could prevent the test from proceeding normally. Then, since the alarm types of the power modules corresponding to different signals of storage devices vary slightly, the product type signal of the storage device under test needs to be detected before writing the test script. Based on the product type of the storage device under test, i.e., the MTM (Machine Type Model) value, and based on the product model, the testable power module alarm types are determined, and the testable power module alarm test items in the current storage system are determined. Then, based on the determined test items, the test script is adaptively modified to correspond to the possible test items included in the current storage system, expanding the applicability of the test script. Finally, the test script is written into the current storage system. It can be understood that the test script is a script written to implement the test method disclosed in this application.
[0083] S2. Execute the test script and generate a test initiation prompt to guide the user to select the test item and test type.
[0084] It is worth noting that, before generating the test initiation prompt, to avoid the impact of other abnormal alarms on the power module alarm reporting function, this application embodiment also proposes to check the health status of the current storage system and the corresponding power module. Specifically, first, log in to the storage system, and then execute the test script. The test script will first check the health status of the storage system and the power module to ensure that there are no abnormal alarms in the storage system other than the power module alarm and that all states of the power module are normal. If an abnormal alarm is detected in the current storage system and the power module, or if an abnormal alarm exists in either the current storage system or the power module, the test script will print the relevant alarm information and record the detected abnormal alarm in the environment check abnormal log so that subsequent staff can view and fix the abnormal alarm. At this time, the test script will exit, and after the abnormal alarm is fixed, the test script will be executed again. If no abnormal alarm is detected in the current storage system and / or the power module, this is the initial state. The corresponding flag bits and their values for each test item in the baseboard management controller are recorded in the initial state of the power module. Specifically, this can be recorded in the initial file psu_status_source.log.
[0085] After the test script is executed, a test initiation prompt is generated to interactively guide the user to select test items and test types. Specifically, the user can select the target test item by entering numbers. The test items vary slightly between different power modules. This embodiment uses a typical power module as an example. Within this power module, the numerical input range can be [0, 13], where different numbers correspond to different test items: 0: Input voltage undervoltage; 1: Input voltage overvoltage; 2: Input current undercurrent; 3: Input current overcurrent; 4: Output voltage undervoltage; 5: Output voltage overvoltage; 6: Output current undercurrent; 7: Output current overcurrent; 8: Power supply temperature below the low-temperature threshold; 9: Power supply temperature above the high-temperature threshold; 10: Power supply overheat protection; 11: Power supply input abnormality; 12: Power supply output abnormality; 13: Power module cannot communicate with the storage system. Similarly, the user can select the test type by entering numbers. For example, input 1 can be defined as selecting a functional test type; input 2 can be defined as selecting a stability test type. Of course, in some alternative embodiments, input 2 can be defined as selecting the test type for functional testing; input 1 can be defined as selecting the test type for stability testing, etc., and this application does not limit this. Furthermore, in some alternative embodiments, a pop-up window containing various test items and test types can be directly displayed, allowing the user to directly select the corresponding test item and test type within the window. In some alternative embodiments, voice prompts can also be generated to prompt the user to respond, and the test item and test type selected by the user are determined by detecting and analyzing the content contained in the user's voice feedback data.
[0086] S3. If the test type included in the first feedback data is a functional test, then execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0087] Specifically, the process of executing the first test rule for judgment includes: according to the target test item selected in the first feedback data, the value of the flag bit corresponding to the target test item in the baseboard management controller is determined; the test script records the number of tests executed, the set parameters, the flag bits corresponding to each status of the power module in the baseboard management controller after setting and the actual values of each flag bit, and the alarm values reported by the storage system after one detection cycle in the test log psu_status_alert.log; after waiting for one detection cycle, it checks whether the current storage system reports power module alarm information corresponding to the target test item; if the current storage system reports power module alarm information corresponding to the target test item, it is determined that the power module alarm function corresponding to the target test item is normal; the test script will restore the values of the flag bits corresponding to the target test item in the baseboard management controller that have been modified to the values in the initial state according to the flag bits and their values recorded in the initial file psu_status_source.log, so as to restore the test environment to the initial state before performing the next functional test, avoiding the problem of inaccurate testing caused by other factors. If the current storage system does not report the power module alarm information corresponding to the target test item, it is determined that the power module alarm function corresponding to the target test item is abnormal. At this time, the test script prints the information that the alarm was not reported, which can be recorded in the alarm failure log psu_fail.log. This alarm failure log includes the target test item. Then the test script exits so that the staff can review and resolve the problem that caused the alarm.
[0088] Let's illustrate with a concrete example: Define input voltage undervoltage as flag 0 and input voltage overvoltage as flag 1. Under normal input voltage conditions, the flags and values for undervoltage and overvoltage are 0010. Running the test script, the user selects to construct an input voltage undervoltage alarm reported by the storage system. Responding to the first test prompt, the user interactively inputs the number 1 through the script, selecting the target test item (input voltage undervoltage). The test script writes the alarm value 1 to the flag 0 corresponding to input voltage undervoltage in the baseboard management controller, and queries the flags and values corresponding to each state of the power module after the settings. Then, after one detection cycle, it checks whether the storage system reports an input voltage undervoltage alarm for the power module. Simultaneously, the execution count, set parameters, the flags and their actual values for each state of the power module in the baseboard management controller after the settings, and the alarm value reported by the storage system after one detection cycle are all recorded in the test log psu_status_alert.log. If the storage system has reported alarms, it indicates that the power module input voltage undervoltage alarm function is reporting normally; the test script will restore the environment according to the values of each flag bit in the initial file psu_status_source.log; if no alarm is reported, it indicates that the power module input voltage undervoltage alarm function is reporting abnormally, the test script will print the information of the alarm not being reported, and record it in the alarm abnormality log psu_fail.log, the test script will exit, retain the current environment, and remind the tester to check the code of this alarm function module.
[0089] S4. If the test type included in the first feedback data is stability test, then execute the second test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0090] The process of executing the second test rule for judgment includes: first executing the first test rule (i.e., executing step S3 first), and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal; if the power module alarm function corresponding to the target test item is judged to be normal, the current test count of the target test item is recorded, and the first test rule is continued to be executed until the current test count is equal to the target test count and / or the power module alarm function corresponding to the target test item is judged to be abnormal when the current test count is less than the target test count; if the current test count is equal to the target test count, the power module alarm function corresponding to the target test item is judged to be stable; if the current test count is less than the target test count, that is, when the Nth test is executed, the alarm function of the target test item reports an abnormality, and the power module alarm function corresponding to the target test item is judged to be abnormal, and the power module alarm function corresponding to the target test item is judged to be unstable. The target test count is generated by the current storage system after selecting the stability test, prompting the user to select the test count; after the user responds to the second test prompt and makes a selection, the user sends second feedback data to the current storage system, which includes the selected target test count. Specifically, you can set the number of tests by entering numbers, with the number input range being [1, 9999], or you can set it by voice feedback, and so on.
[0091] Let's illustrate with an example: For instance, undervoltage input is flagged as 0, and overvoltage input is flagged as 1. Under normal input voltage conditions, the flags for undervoltage and overvoltage, along with their corresponding values, are 0010. Running the test script, the user performs a reliability test on the undervoltage input alarm function. The script generates a first test prompt, allowing the user to interactively select test items and perform reliability tests. Then, a second test prompt is generated, allowing the user to input the number of tests. The test script writes the alarm value 1 to the flag 0 corresponding to the target test item in the baseboard management controller. After one detection cycle, it checks whether the storage system reports an undervoltage input alarm for the power module. Simultaneously, for each alarm report, the test script records the number of tests, set parameters, the corresponding flags in the baseboard management controller after setting, their actual values, and the alarm value reported by the storage system after one detection cycle in the test log `psu_st`. If an alarm is reported in atus_alert.log, it indicates that the power module input voltage undervoltage alarm function has reported normally once. The test script will restore the environment according to the values of each flag bit in the initial file psu_status_source.log, and after waiting for one detection cycle, it will continue to set the value of flag bit 0 to 1, and so on in a loop. If the alarm is not reported when it is executed for the Nth time, it indicates that the power module input voltage undervoltage alarm reporting function has malfunctioned when it reports for the Nth time. The test script will print the information that the alarm was not reported for the Nth time, and record it in the alarm exception log psu_fail.log. The test script will then exit, retain the current environment, and remind the tester to check the code of the alarm function module.
[0092] This application provides a simple and efficient testing method. In an interactive manner, users can directly select the test items to be tested and further choose the specific number of tests to assess the stability of those items. Furthermore, the method only requires simple modification of the number of test items within the test script according to different power module specifications, making it widely applicable. In addition, the method disclosed in this application avoids the need to build different test environments for different abnormal scenarios, saving time and manpower costs and further improving testing efficiency.
[0093] Example 2
[0094] Corresponding to Embodiment 1 above, this application also provides a method for testing the alarm function of a power module, such as... Figure 2 The flowchart shown specifically includes:
[0095] 2100. Build a standard storage environment within the current storage system, and write test scripts into the current storage system after the standard storage environment is built;
[0096] Preferably, writing the test script within the current storage system includes:
[0097] 2110. Obtain the specifications of the power module in the current storage system;
[0098] 2120. Obtain the product type of the storage device under test within the current storage system;
[0099] 2130. Determine the power module specifications within the current storage system based on the product type signal of the storage device under test;
[0100] 2140. Determine the test script corresponding to the current storage system based on the power module specifications;
[0101] 2150. Write the test script into the current storage system.
[0102] 2200. Execute the test script.
[0103] Preferably, before generating the test initiation prompt to prompt the user to select a test item and test type, the method further includes:
[0104] 2210. Check the health status of the current storage system and the corresponding power module;
[0105] 2220. If an abnormal alarm is detected in the current storage system and / or the power module, record the abnormal alarm and exit the execution of the test script;
[0106] 2230. If an abnormal alarm is detected in the current storage system and / or the power module, record the abnormal alarm and exit the execution of the test script;
[0107] 2240. If no abnormal alarm is detected in the current storage system and / or the power module, the flag bit and the value of the flag bit corresponding to each test item in the initial state of the power module are recorded in the baseboard management controller.
[0108] 2300. Generate a test initiation prompt to prompt the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0109] 2400. Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0110] Preferably, the method further includes:
[0111] 2410. If the test type in the first feedback data is a stability test, then generate a second test prompt to prompt the user to select the number of tests;
[0112] 2420. Receive second feedback data generated by the user in response to the second test prompt, the second feedback data containing the selected target number of tests.
[0113] 2500. If the test type included in the first feedback data is a functional test, then execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0114] Preferably, the step of executing the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal includes:
[0115] 2510. Modify the value of the flag bit corresponding to the target test item in the baseboard management controller;
[0116] After the testing cycle, check whether the current storage system reports power module alarm information corresponding to the target test item;
[0117] 2520. If the current storage system reports a power module alarm information corresponding to the target test item, then the power module alarm function corresponding to the target test item is determined to be normal.
[0118] 2530 If the current storage system does not report power module alarm information corresponding to the target test item, then the power module alarm function corresponding to the target test item is determined to be abnormal.
[0119] Preferably, the method includes:
[0120] 2540. When it is determined that the power module alarm function corresponding to the target test item is abnormal, the alarm log is recorded, and the alarm log includes the target test item;
[0121] 2550. When it is determined that the power module alarm function corresponding to the target test item is normal, the value of the flag bit corresponding to the target test item in the baseboard management controller is modified according to the flag bit corresponding to each test item in the baseboard management controller and the value of the flag bit in the initial state.
[0122] 2600. If the test type included in the first feedback data is stability test, then execute the second test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0123] Preferably, the step of executing the second test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable includes:
[0124] 2610. Execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal;
[0125] 2620. If it is determined that the power module alarm function corresponding to the target test item is normal, record the current number of tests for the target test item and continue to execute the first test rule until the current number of tests is equal to the target number of tests and / or when the current number of tests is less than the target number of tests, determine that the power module alarm function corresponding to the target test item is abnormal.
[0126] 2630. If the current number of tests equals the target number of tests, then the power module alarm function corresponding to the target test item is determined to be stable.
[0127] 2640. If the current number of tests is less than the target number of tests, it is determined that the power module alarm function corresponding to the target test item is abnormal, and the power module alarm function corresponding to the target test item is determined to be unstable.
[0128] Example 3
[0129] Corresponding to Embodiment 1 and Embodiment 2 above, as Figure 3 As shown in the figure, this application embodiment also provides a test system for the alarm function of a power module, including:
[0130] The test preparation module 310 is used to build a standard storage environment in the current storage system and write test scripts into the current storage system after the standard storage environment is built.
[0131] Test execution module 320 is used to execute the test script;
[0132] The test execution module 320 is also used to generate a test initiation prompt to prompt the user to select a test item and a test type, wherein the test type includes functional testing and stability testing;
[0133] The test execution module 320 is further configured to receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0134] The test execution module 320 is further configured to execute the first test rule when the test type contained in the first feedback data is a functional test;
[0135] Test analysis module 330 is used to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal;
[0136] The test execution module 320 is also used to execute the second test rule when the test type contained in the first feedback data is a stability test;
[0137] The test analysis module 330 is also used to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0138] In some implementation scenarios, the test execution module 320 is further configured to generate a second test prompt to prompt the user to select the number of tests when the test type in the first feedback data is a stability test; and receive second feedback data generated by the user in response to the second test prompt, wherein the second feedback data contains the selected target number of tests.
[0139] In some implementation scenarios, the test execution module 320 is further used to modify the value of the flag bit corresponding to the target test item in the baseboard management controller; the test analysis module 330 is further used to check whether the current storage system reports power module alarm information corresponding to the target test item after the detection cycle; if the current storage system reports power module alarm information corresponding to the target test item, the test analysis module 330 determines that the power module alarm function corresponding to the target test item is normal; if the current storage system does not report power module alarm information corresponding to the target test item, the test analysis module 330 determines that the power module alarm function corresponding to the target test item is abnormal.
[0140] In some implementation scenarios, the test analysis module 330 is also used to execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal;
[0141] If the power module alarm function corresponding to the target test item is determined to be normal, the test execution module 320 is further used to record the current test count of the target test item and continue to execute the first test rule until the current test count is equal to the target test count and / or the power module alarm function corresponding to the target test item is determined to be abnormal when the current test count is less than the target test count; if the current test count is equal to the target test count, the test analysis module 330 is further used to determine that the power module alarm function corresponding to the target test item is stable; if the current test count is less than the target test count, the test analysis module 330 is further used to determine that the power module alarm function corresponding to the target test item is abnormal, and then determines that the power module alarm function corresponding to the target test item is unstable.
[0142] In some implementation scenarios, the test preparation module 310 is further used to check the health status of the current storage system and the corresponding power module; if an abnormal alarm is detected in the current storage system and / or the power module, the test preparation module 310 is further used to record the abnormal alarm and exit the execution of the test script; if an abnormal alarm is detected in the current storage system and / or the power module, the test preparation module 310 is further used to record the abnormal alarm and exit the execution of the test script; if no abnormal alarm is detected in the current storage system and / or the power module, the test preparation module 310 is further used to record the flag bits and values of the corresponding test items in the baseboard management controller in the initial state of the power module.
[0143] In some implementation scenarios, the test preparation module 310 is also used to obtain the power module specifications in the current storage system; obtain the product type of the storage device under test in the current storage system; determine the power module specifications in the current storage system based on the product type signal of the storage device under test; determine the test script corresponding to the current storage system based on the power module specifications; and write the test script into the current storage system.
[0144] In some implementation scenarios, the test execution module 320 is also used to record the alarm log when it is determined that the power module alarm function corresponding to the target test item is abnormal, and the alarm log includes the target test item; when it is determined that the power module alarm function corresponding to the target test item is normal, the value of the flag bit corresponding to the target test item in the baseboard management controller is modified according to the flag bit corresponding to each test item in the baseboard management controller and the value of the flag bit in the initial state.
[0145] Example 4
[0146] Corresponding to all the above embodiments, this application provides an electronic device, including:
[0147] One or more processors; and memory associated with the one or more processors, the memory storing program instructions that, when read and executed by the one or more processors, perform the following operations:
[0148] A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built.
[0149] Execute the test script;
[0150] A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0151] Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0152] If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0153] If the test type included in the first feedback data is stability test, then the second test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0154] in, Figure 4 An exemplary architecture of an electronic device is shown, which may include a processor 410, a video display adapter 411, a disk drive 412, an input / output interface 413, a network interface 414, and a memory 420. The processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420 can communicate with each other via a bus 430.
[0155] The processor 410 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to achieve the technical solution provided in this application.
[0156] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 can store the operating system 421 for controlling the execution of the electronic device 400, and the basic input / output system (BIOS) 422 for controlling the low-level operations of the electronic device 400. Additionally, it can store a web browser 423, a data storage management system 424, and an icon font processing system 424, etc. The aforementioned icon font processing system 424 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when the technical solution provided in this application is implemented through software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.
[0157] Input / output interface 413 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0158] Network interface 414 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0159] Bus 430 includes a pathway for transmitting information between various components of the device, such as processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420.
[0160] In addition, the electronic device 400 can also obtain information on specific claim conditions from the virtual resource object claim condition information database for use in condition judgment, etc.
[0161] It should be noted that although the above-described device only shows the processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, memory 420, bus 430, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.
[0162] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, a cloud server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0163] Example 5
[0164] Corresponding to all the above embodiments, this application also provides a computer-readable storage medium, characterized in that it stores a computer program that causes a computer to perform the following operations:
[0165] A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built.
[0166] Execute the test script;
[0167] A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing;
[0168] Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type;
[0169] If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal.
[0170] If the test type included in the first feedback data is stability test, then the second test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
[0171] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0172] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A test method for the alarm function of a power module, characterized in that, The method includes: A standard storage environment is built within the current storage system, and a test script is written into the current storage system after the standard storage environment is built. Execute the test script; A test initiation prompt is generated to guide the user to select a test item and test type, wherein the test type includes functional testing and stability testing; Receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type; If the test type included in the first feedback data is a functional test, then the first test rule is executed to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal. If the test type included in the first feedback data is stability testing, execute the first test rule to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal; if the power module alarm function corresponding to the target test item is determined to be normal, record the current test count of the target test item, and continue to execute the first test rule until the current test count is equal to the target test count and / or the power module alarm function corresponding to the target test item is determined to be abnormal when the current test count is less than the target test count; if the current test count is equal to the target test count, the power module alarm function corresponding to the target test item is determined to be stable; if the current test count is less than the target test count, the power module alarm function corresponding to the target test item is determined to be abnormal, and the power module alarm function corresponding to the target test item is determined to be unstable.
2. The method according to claim 1, characterized in that, The method further includes: If the test type in the first feedback data is a stability test, then a second test prompt is generated to prompt the user to select the number of tests; Receive second feedback data generated in response to the second test prompt from the user, the second feedback data containing the selected target number of tests.
3. The method according to claim 2, characterized in that, The execution of the first test rule, determining whether the power module alarm function corresponding to the target test item in the current storage system is normal, includes: Modify the value of the flag bit corresponding to the target test item in the baseboard management controller; After the testing cycle, check whether the current storage system reports power module alarm information corresponding to the target test item; If the current storage system reports a power module alarm information corresponding to the target test item, then the power module alarm function corresponding to the target test item is determined to be normal. If the current storage system does not report power module alarm information corresponding to the target test item, it is determined that the power module alarm function corresponding to the target test item is abnormal.
4. The method according to claim 3, characterized in that, Before prompting the user to select a test item and test type, the method further includes: Check the health status of the current storage system and the corresponding power module; If an abnormal alarm is detected in the current storage system and / or the power module, the abnormal alarm is recorded and the execution of the test script is exited. If no abnormal alarms are detected in the current storage system and / or the power module, the flag bits and values of the corresponding test items in the baseboard management controller are recorded for each test item in the initial state of the power module.
5. The method according to any one of claims 1-3, characterized in that, The step of writing the test script into the current storage system includes: Obtain the specifications of the power modules within the current storage system; Obtain the product type of the storage device under test within the current storage system; Based on the product type signal of the storage device under test, determine the power module specifications within the current storage system; Determine the test script corresponding to the current storage system based on the power module specifications; Write the test script into the current storage system.
6. The method according to claim 4, characterized in that, The method includes: When it is determined that the power module alarm function corresponding to the target test item is abnormal, an alarm log is recorded, and the alarm log includes the target test item; When it is determined that the power module alarm function corresponding to the target test item is normal, the value of the flag bit corresponding to the target test item in the baseboard management controller is modified according to the flag bit corresponding to each test item in the baseboard management controller and the value of the flag bit in the initial state.
7. A test system for the alarm function of a power module, characterized in that, The system includes: The test preparation module is used to build a standard storage environment within the current storage system and write test scripts into the current storage system after the standard storage environment is built. The test execution module is used to execute the test script; The test execution module is also used to generate a test initiation prompt to prompt the user to select a test item and a test type, wherein the test type includes functional testing and stability testing; The test execution module is also used to receive first feedback data generated by the user in response to the test initiation prompt, wherein the first feedback data includes the selected target test item and test type; The test execution module is further configured to execute the first test rule when the test type contained in the first feedback data is a functional test; The test analysis module is used to determine whether the power module alarm function corresponding to the target test item in the current storage system is normal. The test execution module is further configured to execute a first test rule when the test type included in the first feedback data is stability test; if the power module alarm function corresponding to the target test item is determined to be normal, record the current test count of the target test item and continue to execute the first test rule until the current test count is equal to the target test count and / or the power module alarm function corresponding to the target test item is determined to be abnormal when the current test count is less than the target test count; if the current test count is equal to the target test count, the power module alarm function corresponding to the target test item is determined to be stable; if the current test count is less than the target test count, the power module alarm function corresponding to the target test item is determined to be abnormal, and the power module alarm function corresponding to the target test item is determined to be unstable. The test analysis module is also used to determine whether the power module alarm function corresponding to the target test item in the current storage system is stable.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; And a memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, It stores a computer program that causes the computer to perform the method described in any one of claims 1-6.