CN117271239A - Method, system, equipment and medium for testing alarm function of power module - Google Patents

Method, system, equipment and medium for testing alarm function of power module Download PDF

Info

Publication number
CN117271239A
CN117271239A CN202311232621.8A CN202311232621A CN117271239A CN 117271239 A CN117271239 A CN 117271239A CN 202311232621 A CN202311232621 A CN 202311232621A CN 117271239 A CN117271239 A CN 117271239A
Authority
CN
China
Prior art keywords
test
storage system
power module
current storage
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311232621.8A
Other languages
Chinese (zh)
Inventor
王浩
薛成威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311232621.8A priority Critical patent/CN117271239A/en
Publication of CN117271239A publication Critical patent/CN117271239A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a method, a system, equipment and a medium for testing an alarm function of a power module, which comprise the steps of building a standard storage environment in a current storage system and writing a test script in the current storage system; executing the test script; generating a test initiation prompt to prompt a user to select a test item and a test type; receiving first feedback data generated by a user in response to a test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type; if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarming function corresponding to the target test item in the current storage system is normal or not; if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarming function corresponding to the target test item in the current storage system is stable or not. And verifying the functionality and stability of the reporting of the power module alarming function.

Description

Method, system, equipment and medium for testing alarm function of power module
Technical Field
The present invention relates to the field of testing storage systems, and in particular, to a method, a system, an apparatus, and a medium for testing an alarm function of a power module.
Background
PSU (Power Support Unit), i.e. the power supply module, is an important component for providing energy support for various charged devices. In particular, on a storage device, each storage manufacturer typically provides energy support for the storage device in a manner that uses multiple PSUs for redundancy to ensure electrical stability of the storage device. Meanwhile, in order to ensure the running stability and reliability of the storage system, the storage system can monitor the health state of the PSU module in real time, and when the PSU module is abnormal due to internal or external factors, the storage system correspondingly reports different alarms according to different abnormal conditions so as to remind a user of which PSU on the storage device has the abnormal condition, so that the user can check or replace the fault PSU in time.
In order to verify the accuracy and reliability of the storage system to the alarm function of the PSU in various abnormal scenes, the existing test method for the alarm function is as follows: and verifying the alarm function by means of different auxiliary test tools under different abnormal scenes. For example: when the under-voltage/over-voltage protection and the under-current/over-current protection of the input voltage are verified, verification is carried out by means of an electric pile capable of adjusting the input voltage and the input current; when verifying that the PSU has the temperature exceeding threshold value/overheat protection, placing the whole storage device in an incubator for verification; when verifying the output voltage under-voltage/over-voltage protection and the output current under-current/over-current protection, even a power supply development engineer is needed to assist in performing special treatment on the interior of the PSU.
Therefore, it can be seen that the current test method for reporting the power module PSU related alarm function to the storage system is very cumbersome and laborious, and has extremely low test efficiency, high time cost and labor cost, and a need for a simple and efficient test method for verifying the power module+psu alarm function of the storage system is urgent.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a method, a system, a device and a medium for testing the alarm function of a power module to verify the stability and the functionality of the alarm function of the power module.
In a first aspect, the present application provides a method for testing an alarm function of a power module, where the method includes:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
If the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
In some embodiments, the method further comprises:
if the test type in the first feedback data is a functional test, generating a first test prompt to prompt a user to select a test item;
receiving second feedback data generated by a user in response to the first test prompt, wherein the second feedback data comprises a selected target test item;
if the test type in the first feedback data is a stability test, generating a second test prompt to prompt a user to select a test item and test times;
third feedback data generated by a user in response to the second test prompt is received, the third feedback data including the selected target test item and the target number of tests.
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:
modifying the value of a flag bit corresponding to the target test item in the baseboard management controller;
after the detection period, checking whether the current storage system reports the power module alarm information corresponding to the target test item;
if the current storage system reports the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is normal;
and if the current storage system does not report the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is abnormal.
In some embodiments, the 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:
executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
If the power module corresponding to the target test item is judged to be normal in alarming function, recording the current test times of the target test item, and continuing to execute a first test rule until the current test times are equal to the target test times and/or judging that the power module corresponding to the target test item is abnormal in alarming function when the current test times are smaller than the target test times;
if the current test times are equal to the target test times, judging that the power module corresponding to the target test item has stable alarm function;
and if the current test times are smaller than the target test times, judging that the power module corresponding to the target test item has abnormal alarm functions, and judging that the power module corresponding to the target test item has unstable alarm functions.
In some embodiments, before generating the test initiation prompt to prompt the user to select the test item and the test type, the method further comprises:
checking the health state of the current storage system and the corresponding power module;
if the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
If the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
if the current storage system and/or the power supply module are detected to have no abnormal alarm, recording corresponding zone bits of each test item in the baseboard management controller in an initial state corresponding to the power supply module and the values of the zone bits.
In some embodiments, the writing test scripts within the current storage system includes:
acquiring the specification of a power supply module in the current storage system;
acquiring a product type signal of a storage device to be tested in the current storage system;
determining the specification of a power module in the current storage system according to the product type signal of the storage device to be tested;
determining a test script corresponding to the current storage system according to the specification of the power module;
and writing the test script into the current storage system.
In some embodiments, the method comprises:
when judging that the power module corresponding to the target test item has abnormal alarm function, recording the alarm log, wherein the alarm log comprises the target test item;
When the power module corresponding to the target test item is judged to be normal in alarm function, modifying the value of the flag bit corresponding to the target test item in the baseboard management controller according to the flag bit corresponding to each test item in the initial state and the value of the flag bit in the baseboard management controller.
In a second aspect, the present application provides a test system for a power module alarm function, the system comprising:
the test preparation module is used for building a standard storage environment in the current storage system and writing a test script in the current storage system after the standard storage environment is built;
the test execution module is used for executing the test script;
the test execution module is further used for generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
the test execution module is further used for receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
the test execution module is further configured to execute a first test rule when the test type included in the first feedback data is a functional test;
The test analysis module is used for judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
the test execution module is further configured to execute a second test rule when the test type included in the first feedback data is a stability test;
the test analysis module is further used for judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
In a third aspect, the present application provides an electronic device, including:
one or more processors;
and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the following:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
Receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program that causes a computer to perform the operations of:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
Receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
The beneficial effect that this application realized is:
the application provides a test method of a power module alarming function, which comprises the steps of building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built; executing the test script; generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test; receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type; if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not; and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not. The method can simply and efficiently verify the functionality and stability of the function of reporting the alarm of the power module by the storage system according to the self-selection requirement of the user; and the problem that different test environments are required to be built due to different PSU abnormal scenes is avoided, the test time and the labor cost are greatly saved, and the test efficiency is further improved. In addition, different test scripts are determined according to different power module specifications, so that the problem that a test method is inapplicable due to different internal structures of different storage systems is effectively avoided.
Drawings
For a clearer description of the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art, wherein:
fig. 1 is a schematic diagram of a detection method for a power module alarm function provided in an embodiment of the present application;
FIG. 2 is a flowchart of a method for detecting an alarm function of a power module according to an embodiment of the present application;
FIG. 3 is a diagram of a detection system architecture for a power module alarm function according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be understood that throughout the description of this application, unless the context clearly requires otherwise, the words "comprise," "comprising," and the like in the description and the claims are to be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
It should also be appreciated that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
It should be noted that the terms "S1", "S2", and the like are used for the purpose of describing steps only, and are not intended to be limited to the order or sequence of steps or to limit the present application, but are merely used for convenience in describing the method of the present application and are not to be construed as indicating the sequence of steps. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
The flow of power module PSU alarms on the storage system is typically: in the running process of the PSU, the base plate management controller distinguishes and marks different zone bits of each state of the PSU, the base plate management controller can routinely detect and check each state of the PSU and feed back the zone bits to each zone bit for marking, the storage system can routinely detect and check each zone bit of the base plate management controller, and whether the power supply module runs normally is judged according to the marks of each zone bit. Specifically, if all states of the power supply module run normally, the baseboard management controller marks the flag bit corresponding to each state of the power supply module as 0, and if the storage system detects that the flag bit is 0, the power supply module is indicated that each running state corresponding to the power supply module is normal at the moment, and no alarm is reported; if an abnormality occurs in a certain item, the baseboard management controller marks the flag bit in the corresponding state as 1, and when the storage system detects that the state of the flag bit is changed into 1, alarm information corresponding to the flag bit is reported. In order to verify whether the alarm can be reported normally, the alarm function of the power module needs to be detected. As described in the background art, the existing detection method for the power module alarm function also stays in verifying the alarm function by means of different auxiliary test tools for different abnormal scenes, and has high test cost and low efficiency. The simple and efficient test method is used for verifying the function of the storage system for reporting the alarm to the power module, and can avoid building different test environments due to different abnormal scenes, so that the time and labor cost are greatly saved, and the test efficiency is improved.
Example 1
The embodiment of the application provides a testing method for a power module alarm function of a storage system, and specifically as shown in fig. 1, a process for verifying a power module PSU alarm function in the storage system by using the testing method disclosed by the embodiment of the application comprises the following steps:
s1, building a standard storage environment in a current storage system, and writing a test script in the current storage system after building the standard storage environment.
First, before writing a test script, a standard storage environment needs to be built, including: installing a storage controller into a storage chassis; burning a baseboard management controller version of the storage chassis; installing a power module into a storage chassis; and installing storage management software on the storage equipment so that the power supply module, the baseboard management controller and the storage system all meet the test requirement, and avoiding the problem that the test cannot be performed normally. Then, as the alarm types of the power modules corresponding to the storage devices with different signals are slightly different, the product type signals of the storage devices to be tested need to be detected before the test script is written; determining a measurable power module alarm test item of the power module in the current storage system according to the product type of the storage device to be tested, namely a MTM (Machine Type Model) value, and determining the measurable power module alarm type according to the product type; then, according to the determined test items, adaptively modifying the test script so that the test script corresponds to the test items possibly existing in the current storage system, and expanding the applicability of the test script; and finally, writing the test script into the current storage system. It can be understood that the test script is a script written to implement the test method disclosed in the present application.
S2, executing a test script, and generating a test initiation prompt to prompt a user to select test items and test types.
It is noted that, before the test initiation prompt is generated, in order to avoid the influence of other abnormal alarms on the reporting of the power module alarm function, the embodiment of the application further proposes to check the health status of the current storage system and the corresponding power module. Specifically, the storage system is logged in first, then the test script is executed, and the test script can check the health states of the storage system and the power module first, so that the storage system is ensured to have no abnormal alarm except the alarm of the power module, and each state of the power module is normal. If the abnormal alarms exist in the current storage system and the power supply module or one of the current storage system and the power supply module, the test script prints out relevant alarm information at the moment, and records the detected abnormal alarms into an environment inspection abnormal log at the same time, so that subsequent staff can check and repair the abnormal alarms; at this time, the test script is exited, and after the abnormal alarm is repaired, the test script is executed again. If the current storage system and/or the power supply module is detected to have no abnormal alarm, the current storage system and/or the power supply module is in an initial state, corresponding zone bits of all test items in the baseboard management controller in the initial state corresponding to the power supply module and the values of the zone bits are recorded, and the values can be recorded in an initial file psu_status_source.log.
After the test script is executed, a test initiation prompt is generated to interactively prompt the user to select test items and test types. Specifically, the user may select the target test item in a digital input manner, and the test items in different power modules are not completely consistent, which is described in this embodiment by taking a typical test item contained in a power module as an example, in the power module, the digital input range may be [0, 13], where different numbers correspond to different test items, specifically: 0: input voltage undervoltage; 1: input voltage overvoltage; 2: input current undercurrent; 3: the input current flows through; 4: the output voltage is under-voltage; 5: the output voltage is overvoltage; 6: output current undercurrent; 7: the output current flows through; 8: the power supply temperature is lower than the low temperature threshold; 9: the temperature of the power supply is higher than the high-temperature threshold; 10: overheat protection of the power supply; 11: abnormal power input; 12: abnormal power supply output; 13: the power module is unable to communicate with the storage system. Likewise, the user may select a test type by inputting a number, for example, may define an input 1, and then select a test type for a functional test; input 2 is defined for selecting the test type of the stability test. Of course, in some alternative embodiments, input 2 may also be defined, then the test type for the selected functionality test; input 1 is defined, which is not limited in this application for the purpose of selecting a test type for stability testing, etc. Furthermore, in some alternative embodiments, a pop-up prompt containing various test items and test types may be popped up directly, and the user may select the corresponding test item and test type directly within the window. In some alternative embodiments, a voice prompt may also be generated prompting the user for a response, and determining the test item and test type selected by the user by detecting and analyzing content contained in the voice data fed back by the user.
And S3, if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not.
Specifically, the process of executing the first test rule to perform the judgment includes: according to the target test item selected in the first feedback data, the value of the zone bit corresponding to the target test item in the baseboard management controller is calculated; the test script records the executed test times, the set parameters, the actual values of the corresponding zone bits and the actual values of the zone bits of each state of the power supply module in the base plate management controller which are inquired after the setting, and the values of the report alarms on the storage system after one detection period in a test log psu_status_alert; after waiting for a detection period, checking whether the current storage system reports the power module alarm information corresponding to the target test item; if the current storage system reports the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is normal; the test script restores the value of each zone bit and the value of the zone bit in the baseboard management controller corresponding to the target test item in the baseboard management controller subjected to modification to the value in the initial state according to the value of each zone bit in the baseboard management controller in the initial state recorded in the initial file psu_status_source.log, so as to restore the test environment to the initial state, and then perform the next functional test, thereby avoiding the problem of inaccurate test caused by other factors. If the current storage system does not report the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is abnormal; at this time, the test script prints out the information of the alarm which is not reported, and can record the information into an alarm failure log psu_fail.log, wherein the alarm failure log comprises target test items, and then the test script is exited; so that the subsequent staff can check and solve the problem of generating the alarm.
The following description will be given by way of a specific example: for example, an input voltage under-voltage is defined, a flag bit is 0, the input voltage over-voltage is 1, and under the normal state of the input voltage of the power supply module, the inquired input voltage under-voltage and over-voltage are divided into corresponding flag bits and corresponding values as follows: 0010. running a test script, wherein a user selects an input voltage undervoltage alarm to be reported by a storage system, responds to a first test prompt, through interactive input number 1 of the script, selects a target test item (input voltage undervoltage item), writes an alarm value 1 into a zone bit 0 corresponding to the input voltage undervoltage in a baseboard management controller, inquires zone bits corresponding to all states of a set power supply module and values corresponding to all zone bits, and then after waiting for 1 detection period, checks whether the storage system reports the alarm of the input voltage undervoltage of the power supply module, and records the execution times, the setting parameters, actual values of zone bits corresponding to all states of the power supply module in the baseboard management controller inquired after the setting, and the alarm value reported by the storage system after 1 detection period in a test log psu_status_alert. If the memory of the memory system reports an alarm, the alarm function of the input voltage under-voltage of the power supply module is reported normally; the test script restores the environment according to the values of all the zone bits in the initial file psu_status_source.log; if the alarm is not reported, the power module input voltage under-voltage alarm function is indicated to report the abnormality, the test script prints out the information of the alarm which is not reported, and the information is recorded in an alarm abnormality log psu_fail.log, the test script exits, the current environment is reserved, and the tester is reminded of checking the codes of the alarm function module.
And S4, if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarming function corresponding to the target test item in the current storage system is stable or not.
The process of executing the second test rule to determine includes: executing a first test rule (i.e. executing step S3) firstly, and judging whether the power module alarm function corresponding to a target test item in the current storage system is normal or not; if the power module corresponding to the target test item is judged to be normal in alarming function, recording the current test times of the target test item, and continuing to execute the first test rule until the current test times are equal to the target test times and/or judging that the power module corresponding to the target test item is abnormal in alarming function when the current test times are smaller than the target test times; if the current test times are equal to the target test times, judging that the power module corresponding to the target test item has stable alarm function; if the current test times are smaller than the target test times, namely, when the Nth test is executed, reporting the alarm function of the target test item to be abnormal, and judging that the alarm function of the power module corresponding to the target test item is abnormal at the moment, and judging that the alarm function of the power module corresponding to the target test item is unstable. The target test times are the test times selected by the user, and the current storage system generates a second test prompt to prompt the user to select the test times after the stability test is selected; after the user responds to the second test prompt to select, the second feedback data is fed back to the current storage system, wherein the second feedback data comprises the selected target test times. Specifically, the number of tests may be set by inputting a number, the number input range is [ 1, 9999 ], setting may be performed by voice feedback, and so on.
The description will be given by way of an example: for example: under-voltage input, the flag bit is 0, over-voltage input is 1, under normal input voltage input state of the power supply module, the inquired under-voltage and over-voltage input flag bit and corresponding values are: 0010. running a test script, wherein a user performs reliability test on an input voltage undervoltage alarm function, generates a first test prompt to realize test item selection and reliability test in an interactive mode of the script, regenerates a second test prompt to enable the user to input test times, writes an alarm value 1 into a zone bit 0 corresponding to a target test item in a baseboard management controller, checks whether a storage system reports an alarm of the input voltage undervoltage of the power module after waiting for 1 detection period, and simultaneously, records the test times, set parameters, actual values of corresponding zone bits and zone bits in the baseboard management controller which are queried after setting, and values of alarms reported by the storage system after 1 detection period in a test log psu_status_alert.log, and if the alarms are reported, indicates that the input voltage undervoltage alarm function of the power module reports normally 1 time; the test script restores the environment according to the value of each zone bit in the initial file psu_status_source.log, and continuously sets the value of zone bit 0 to be 1 after waiting for 1 detection period, so as to circularly execute the test script; if the alarm is not reported when the N-th time is executed, the power module input voltage under-voltage alarm reporting function is indicated to be abnormal when the N-th time is reported, the test script prints out the alarm information which is not reported when the N-th time is executed, and meanwhile, the alarm information is recorded in an alarm abnormal log psu_fail.log, the test script exits, the current environment is reserved, and a tester is reminded of checking codes of the alarm function module.
The embodiment of the application provides a simple and efficient test method, and in an interactive mode, a user can directly select a test item to be detected and further select specific test times to realize the detection of the stability of the test item. And the number of test items in the test script is simply modified according to different power module specifications, so that the applicability is wide. In addition, the method disclosed by the embodiment of the application avoids constructing different testing environments due to different abnormal scenes, saves time and labor cost, and further improves testing efficiency.
Example two
Corresponding to the first embodiment, the present application further provides a method for testing the alarm function of the power module, which is shown in a flowchart in fig. 2, and specifically includes:
2100. building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
preferably, the writing the test script in the current storage system includes:
2110. acquiring the specification of a power supply module in the current storage system;
2120. acquiring the product type of the storage equipment to be tested in the current storage system;
2130. Determining the specification of a power module in the current storage system according to the product type signal of the storage device to be tested;
2140. determining a test script corresponding to the current storage system according to the specification of the power module;
2150. and writing the test script into the current storage system.
2200. Executing the test script;
preferably, before generating the test initiation prompt to prompt the user to select the test item and the test type, the method further includes:
2210. checking the health state of the current storage system and the corresponding power module;
2220. if the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
2230. if the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
2240. if the current storage system and/or the power supply module are detected to have no abnormal alarm, recording corresponding zone bits of each test item in the baseboard management controller in an initial state corresponding to the power supply module and the values of the zone bits.
2300. Generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
2400. receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
preferably, the method further comprises:
2410. if the test type in the first feedback data is a stability test, generating a second test prompt to prompt a user to select the test times;
2420. and receiving second feedback data generated by a user in response to the second test prompt, wherein the second feedback data comprises the selected target test times.
2500. If the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
preferably, the executing 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:
2510. modifying the value of a flag bit corresponding to the target test item in the baseboard management controller;
After the detection period, checking whether the current storage system reports the power module alarm information corresponding to the target test item;
2520. if the current storage system reports the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is normal;
2530, if the current storage system does not report the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is abnormal.
Preferably, the method comprises:
2540. when judging that the power module corresponding to the target test item has abnormal alarm function, recording the alarm log, wherein the alarm log comprises the target test item;
2550. when the power module corresponding to the target test item is judged to be normal in alarm function, modifying the value of the flag bit corresponding to the target test item in the baseboard management controller according to the flag bit corresponding to each test item in the initial state and the value of the flag bit in the baseboard management controller.
2600. And if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
Preferably, the executing the second test rule, determining whether the power module alarm function corresponding to the target test item in the current storage system is stable, includes:
2610. executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
2620. if the power module corresponding to the target test item is judged to be normal in alarming function, recording the current test times of the target test item, and continuing to execute a first test rule until the current test times are equal to the target test times and/or judging that the power module corresponding to the target test item is abnormal in alarming function when the current test times are smaller than the target test times;
2630. if the current test times are equal to the target test times, judging that the power module corresponding to the target test item has stable alarm function;
2640. and if the current test times are smaller than the target test times, judging that the power module corresponding to the target test item has abnormal alarm functions, and judging that the power module corresponding to the target test item has unstable alarm functions.
Example III
Corresponding to the first and second embodiments, as shown in fig. 3, an embodiment of the present application further provides a testing system for an alarm function of a power module, including:
a test preparation module 310, configured to build a standard storage environment in a current storage system, and write a test script in the current storage system after the standard storage environment is built;
a test execution module 320, configured to execute the test script;
the test execution module 320 is further configured to generate a test initiation prompt to prompt a user to select a test item and a test type, where the test type includes a functional test and a stability test;
the test execution module 320 is further configured to receive first feedback data generated by a user in response to the test initiation prompt, where the first feedback data includes a selected target test item and a test type;
the test execution module 320 is further configured to execute a first test rule when the test type included in the first feedback data is a functional test;
the test analysis module 330 is configured to determine whether a power module alarm function corresponding to the target test item in the current storage system is normal;
The test execution module 320 is further configured to execute a second test rule when the test type included in the first feedback data is a stability test;
the test analysis module 330 is further configured to determine whether a power module alarm function corresponding to the target test item in the current storage system is stable.
In some implementations, 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 receiving second feedback data generated by a user in response to the second test prompt, wherein the second feedback data comprises the selected target test times.
In some implementations, the test execution module 320 is further configured to modify a value of a flag bit in the baseboard management controller corresponding to the target test item; the test analysis module 330 is further configured to check, after a detection period, whether the current storage system reports power module alarm information corresponding to the target test item; if the current storage system reports the 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 the 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.
In some implementation scenarios, the test analysis module 330 is further configured to execute a first test rule to determine whether a 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, the test execution module 320 is further configured to record the current test frequency of the target test item, and continue executing the first test rule until the current test frequency is equal to the target test frequency and/or determine that the power module alarm function corresponding to the target test item is abnormal when the current test frequency is less than the target test frequency; if the current test times are equal to the target test times, the test analysis module 330 is further configured to determine that the power module corresponding to the target test item has a stable alarm function; and if the current test times are smaller than the target test times, the test analysis module 330 is further configured to determine that the power module corresponding to the target test item has an abnormal alarm function, and determine that the power module corresponding to the target test item has an unstable alarm function.
In some implementations, the test preparation module 310 is further configured to check the health status of the current storage system and the corresponding power module; if it is detected that an abnormal alarm exists in the current storage system and/or the power module, the test preparation module 310 is further configured to record the abnormal alarm, and exit executing the test script; if it is detected that an abnormal alarm exists in the current storage system and/or the power module, the test preparation module 310 is further configured to record the abnormal alarm, and exit executing the test script; if it is detected that the current storage system and/or the power module does not have an abnormal alarm, the test preparation module 310 is further configured to record a flag bit corresponding to each test item in the baseboard management controller in an initial state corresponding to the power module and a value of the flag bit.
In some implementations, the test preparation module 310 is further configured to obtain a power module specification within the current storage system; acquiring the product type of the storage equipment to be tested in the current storage system; determining the specification of a power module in the current storage system according to the product type signal of the storage device to be tested; determining a test script corresponding to the current storage system according to the specification of the power module; and writing the test script into the current storage system.
In some implementation scenarios, the test execution module 320 is further configured to record the alarm log when determining that the power module corresponding to the target test item has an abnormal alarm function, where the alarm log includes the target test item; when the power module corresponding to the target test item is judged to be normal in alarm function, modifying the value of the flag bit corresponding to the target test item in the baseboard management controller according to the flag bit corresponding to each test item in the initial state and the value of the flag bit in the baseboard management controller.
Example IV
Corresponding to all the embodiments described above, an embodiment of the present application provides an electronic device, including:
One or more processors; and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the following:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
Fig. 4 illustrates an architecture of an electronic device, 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, among others. The processor 410, video display adapter 411, disk drive 412, input/output interface 413, network interface 414, and memory 420 may be communicatively coupled via bus 430.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing relevant programs to implement the technical solutions provided herein.
The Memory 420 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, etc. The memory 420 may store an operating system 421 for controlling the execution of the electronic device 400, and a Basic Input Output System (BIOS) 422 for controlling the low-level operation of the electronic device 400. In addition, a web browser 423, a data storage management system 424, an icon font processing system 424, and the like may also be stored. The icon font processing system 424 may be an application program that specifically implements the operations of the foregoing steps in the embodiments of the present application. In general, when the technical solutions provided in the present application are implemented by software or firmware, relevant program codes are stored in the memory 420 and invoked by the processor 410 for execution.
The input/output interface 413 is used to connect to an input/output module to realize information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The network interface 414 is used to connect communication modules (not shown) to enable communication interactions of the device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 430 includes a path to transfer information between various components of the device (e.g., processor 410, video display adapter 411, disk drive 412, input/output interface 413, network interface 414, and memory 420).
In addition, the electronic device 400 may also obtain information of specific acquisition conditions from the virtual resource object acquisition condition information database, for performing condition judgment, and so on.
It should be noted that although the above devices only show the processor 410, the video display adapter 411, the disk drive 412, the input/output interface 413, the network interface 414, the memory 420, the bus 430, and the like, in the specific implementation, the device may further include other components necessary to achieve normal execution. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the present application, and not all the components shown in the drawings.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an 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 perform the method described in the embodiments or some parts of the embodiments of the present application.
Example five
Corresponding to all the above embodiments, the present embodiments also provide a computer-readable storage medium, characterized in that it stores a computer program, which causes a computer to perform the following operations:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
Receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing description of the preferred embodiments of the present application is not intended to limit the invention to the particular embodiments of the present application, but to limit the scope of the invention to the particular embodiments of the present application.

Claims (10)

1. A method for testing an alarm function of a power module, the method comprising:
building a standard storage environment in a current storage system, and writing a test script in the current storage system after the standard storage environment is built;
executing the test script;
generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
if the test type contained in the first feedback data is a functional test, executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
and if the test type contained in the first feedback data is a stability test, executing a second test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
2. The method according to claim 1, characterized in that the method further comprises:
if the test type in the first feedback data is a stability test, generating a second test prompt to prompt a user to select the test times;
and receiving second feedback data generated by a user in response to the second test prompt, wherein the second feedback data comprises the selected target test times.
3. The method of claim 2, wherein executing the first test rule to determine whether the power module alert function corresponding to the target test item in the current storage system is normal comprises:
modifying the value of a flag bit corresponding to the target test item in the baseboard management controller;
after the detection period, checking whether the current storage system reports the power module alarm information corresponding to the target test item;
if the current storage system reports the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is normal;
and if the current storage system does not report the power module alarm information corresponding to the target test item, judging that the power module alarm function corresponding to the target test item is abnormal.
4. The method of claim 3, wherein executing the second test rule to determine whether the power module alert function corresponding to the target test item in the current storage system is stable comprises:
executing a first test rule, and judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
if the power module corresponding to the target test item is judged to be normal in alarming function, recording the current test times of the target test item, and continuing to execute a first test rule until the current test times are equal to the target test times and/or judging that the power module corresponding to the target test item is abnormal in alarming function when the current test times are smaller than the target test times;
if the current test times are equal to the target test times, judging that the power module corresponding to the target test item has stable alarm function;
and if the current test times are smaller than the target test times, judging that the power module corresponding to the target test item has abnormal alarm functions, and judging that the power module corresponding to the target test item has unstable alarm functions.
5. The method of any of claims 3-4, wherein prior to generating a test initiation prompt to prompt a user to select a test item and a test type, the method further comprises:
checking the health state of the current storage system and the corresponding power module;
if the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
if the current storage system and/or the power supply module are detected to have abnormal alarms, recording the abnormal alarms, and exiting to execute the test script;
if the current storage system and/or the power supply module are detected to have no abnormal alarm, recording corresponding zone bits of each test item in the baseboard management controller in an initial state corresponding to the power supply module and the values of the zone bits.
6. The method of any of claims 1-4, wherein writing test scripts in the current storage system comprises:
acquiring the specification of a power supply module in the current storage system;
acquiring the product type of the storage equipment to be tested in the current storage system;
Determining the specification of a power module in the current storage system according to the product type signal of the storage device to be tested;
determining a test script corresponding to the current storage system according to the specification of the power module;
and writing the test script into the current storage system.
7. The method according to claim 5, characterized in that the method comprises:
when judging that the power module corresponding to the target test item has abnormal alarm function, recording the alarm log, wherein the alarm log comprises the target test item;
when the power module corresponding to the target test item is judged to be normal in alarm function, modifying the value of the flag bit corresponding to the target test item in the baseboard management controller according to the flag bit corresponding to each test item in the initial state and the value of the flag bit in the baseboard management controller.
8. A system for testing an alarm function of a power module, the system comprising:
the test preparation module is used for building a standard storage environment in the current storage system and writing a test script in the current storage system after the standard storage environment is built;
The test execution module is used for executing the test script;
the test execution module is further used for generating a test initiation prompt to prompt a user to select a test item and a test type, wherein the test type comprises a functional test and a stability test;
the test execution module is further used for receiving first feedback data generated by a user in response to the test initiation prompt, wherein the first feedback data comprises a selected target test item and a test type;
the test execution module is further configured to execute a first test rule when the test type included in the first feedback data is a functional test;
the test analysis module is used for judging whether the power module alarm function corresponding to the target test item in the current storage system is normal or not;
the test execution module is further configured to execute a second test rule when the test type included in the first feedback data is a stability test;
the test analysis module is further used for judging whether the power module alarm function corresponding to the target test item in the current storage system is stable or not.
9. An electronic device, the electronic device comprising:
One or more processors;
and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program, which causes a computer to perform the method of any one of claims 1-7.
CN202311232621.8A 2023-09-22 2023-09-22 Method, system, equipment and medium for testing alarm function of power module Pending CN117271239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311232621.8A CN117271239A (en) 2023-09-22 2023-09-22 Method, system, equipment and medium for testing alarm function of power module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311232621.8A CN117271239A (en) 2023-09-22 2023-09-22 Method, system, equipment and medium for testing alarm function of power module

Publications (1)

Publication Number Publication Date
CN117271239A true CN117271239A (en) 2023-12-22

Family

ID=89219143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311232621.8A Pending CN117271239A (en) 2023-09-22 2023-09-22 Method, system, equipment and medium for testing alarm function of power module

Country Status (1)

Country Link
CN (1) CN117271239A (en)

Similar Documents

Publication Publication Date Title
CN106951364B (en) Test method and device
US20150100296A1 (en) Method and system for automated test and result comparison
CN205881469U (en) Fault detection equipment of electronic equipment and memory that is used for having a plurality of memory locations of standing transient fault and permanent fault
US20120054715A1 (en) System and method for use in replaying software application events
CN107015891B (en) Information processing method and test chip
CA2811617C (en) Commit sensitive tests
CN112463501A (en) Method, equipment and storage medium for rapidly positioning fault of abnormal power failure
CN110191017B (en) Monitoring system and method for monitoring routing equipment abnormity
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN117271239A (en) Method, system, equipment and medium for testing alarm function of power module
CN113608953B (en) Test data generation method and device, electronic equipment and readable storage medium
CN116185777A (en) Method, device and system for monitoring power consumption of server and server
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
US8739130B2 (en) Quality assurance testing
JP2010152539A (en) Failure detection system verification device, failure detection system verification method and failure detection system verification control program
CN110399258B (en) Stability testing method, system and device for server system
CN110377477B (en) Electronic equipment, functional module, main board of electronic equipment and detection method
CN110967615B (en) Circuit board fault diagnosis device and method
CN113917385A (en) Self-detection method and system for electric energy meter
CN106979794B (en) Sensor testing method and device
CN111188782A (en) Fan redundancy test method and device and computer readable storage medium
CN113535547B (en) Test method based on functional safety
CN117055718B (en) System, method, device, equipment and storage medium for detecting power consumption of server
CN116483641B (en) Method, system and medium for abnormal power failure detection of hard disk
JPH0854922A (en) Process controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination