CN111124889B - ICOS system-based host Numa test method, system and equipment - Google Patents

ICOS system-based host Numa test method, system and equipment Download PDF

Info

Publication number
CN111124889B
CN111124889B CN201911208386.4A CN201911208386A CN111124889B CN 111124889 B CN111124889 B CN 111124889B CN 201911208386 A CN201911208386 A CN 201911208386A CN 111124889 B CN111124889 B CN 111124889B
Authority
CN
China
Prior art keywords
numa
host
icos
nova
computer
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.)
Active
Application number
CN201911208386.4A
Other languages
Chinese (zh)
Other versions
CN111124889A (en
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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911208386.4A priority Critical patent/CN111124889B/en
Publication of CN111124889A publication Critical patent/CN111124889A/en
Application granted granted Critical
Publication of CN111124889B publication Critical patent/CN111124889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method, a system and equipment for testing a host Numa based on an ICOS system, which comprise the following steps: selecting a target host in an operating state in an ICOS system environment, and performing ssh connection; entering a target host and acquiring system information of the target host; configuring/etc/kolla/nova-computer/nova.conf files according to parameters; restarting the nova _ computer container; and judging whether the Numa normally operates or not according to the page information. The invention tests whether the page and the bottom layer are displayed in a consistent way by inputting different test ranges. The automatic Numa test is realized, and the test of testers is facilitated.

Description

Host Numa testing method, system and equipment based on ICOS system
Technical Field
The invention relates to the technical field of system testing, in particular to a method, a system and equipment for testing a host Numa based on an ICOS system.
Background
The cloud data center operating system (ICOS) is an intelligent operating system which is based on open source OpenStack and combines self-research of cloud and sea series products, has rich functions, high availability, safety and comprehensive supporting tools, and is oriented to next-generation cloud data centers and cloud native applications.
For ICOS systems, testing of the host portion is an important test portion of the overall system test.
When an ICOS system is tested, the normal operation of a host node, hardware information, network, BMC configuration and Numa in the system needs to be tested, and a monitoring part completely operates normally.
Currently, a systematic test method is not provided for a host Numa test of an ICOS system, so that a tester can test conveniently.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a method, a system and equipment for testing a host Numa based on an ICOS system, which realize automatic Numa testing and are convenient for testers to test.
In order to achieve the purpose, the invention is realized by the following technical scheme: a host Numa testing method based on an ICOS system comprises the following steps:
s1: selecting a target host in an operating state in an ICOS system environment, and performing ssh connection;
s2: entering a target host and acquiring system information of the target host;
s3: configuring a/etc/kolla/nova-computer/nova.conf file according to preset parameters;
s4: restarting the nova _ computer container;
s5: and judging whether the Numa normally operates or not according to the page information.
Further, the step S2 includes:
inquiring the node range, and entering the host in ssh;
by executing the lscpu, host information including a node is displayed.
Further, the step S3 includes:
and editing the default item in the file, and setting the value of the vcpu _ pin _ set as an arbitrary value outside the node range.
Further, the step S4 further includes:
the command docker stop nova _ computer & & docker start nova _ computer is executed.
Further, the step S5 includes:
if Numa in the page information range is displayed as green, the Numa operates normally.
Further, the step S5 further includes:
if the Numa in the page information range is displayed as red, the Numa is abnormal, and abnormal information is reported to the system.
Correspondingly, the invention also discloses a host Numa test system based on the ICOS system, which comprises the following components: the connection unit is used for selecting a target host in an operating state in an ICOS system environment and performing ssh connection;
the access unit is used for entering the target host and acquiring system information of the target host;
the configuration unit is used for configuring the/etc/kolla/nova-computer/nova.conf file according to preset parameters; the restarting unit is used for restarting the nova _ computer container;
and the judging unit is used for judging whether the Numa normally operates or not according to the page information.
Correspondingly, the invention also discloses a host Numa test device based on the ICOS system, which comprises: a memory for storing a computer program;
a processor for implementing the host Numa test method steps as described in any one of the above on the basis of an ICOS system when executing said computer program.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a method, a system and equipment for testing a host Numa based on an ICOS system, wherein the method comprises the following steps: selecting a target host in an operating state in an ICOS system environment, and performing ssh connection; entering a target host and acquiring system information of the target host; configuring/etc/kolla/nova-computer/nova.conf files according to parameters; restarting the nova _ computer container; and judging whether the Numa normally operates or not according to the page information. The invention tests whether the page and the bottom layer are displayed in a consistent way by inputting different test ranges. The automatic Numa test is realized, and the test of testers is facilitated.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a system block diagram of the present invention.
Detailed Description
The following description of the embodiments of the present invention refers to the accompanying drawings.
As shown in fig. 1, a host Numa testing method based on an ICOS system includes the following steps:
s1: and selecting a target host in an operating state in the ICOS system environment, and performing ssh connection.
S2: and entering the target host and acquiring the system information of the target host.
Firstly, inquiring the node range, and entering the host in ssh; then, by executing the lscpu, host information including a node is displayed.
S3: configuring a/etc/kolla/nova-computer/nova.conf file according to preset parameters. The method comprises the following specific steps: and editing the default item in the file, and setting the value of the vcpu _ pin _ set as an arbitrary value outside the node range.
S4: the nova _ computer container is restarted. The command docker stop nova _ computer & & docker start nova _ computer is executed.
S5: and judging whether the Numa normally operates or not according to the page information.
If Numa in the page information range is displayed as green, the Numa operates normally.
If the Numa in the page information range is displayed as red, the Numa is abnormal, and abnormal information is reported to the system.
Correspondingly, as shown in fig. 2, the present invention also discloses a system for testing Numa of host based on ICOS system, comprising:
and the connection unit is used for selecting a target host with an operation state in the ICOS system environment and performing ssh connection.
And the access unit is used for entering the target host and acquiring the system information of the target host.
And the configuration unit is used for configuring the/etc/kolla/nova-computer/nova.conf file according to preset parameters.
And the restarting unit is used for restarting the nova _ computer container.
And the judging unit is used for judging whether the Numa normally operates or not according to the page information.
Correspondingly, the invention also discloses a host Numa test device based on the ICOS system, which comprises: a memory for storing a computer program;
a processor for implementing the host Numa test method steps as described in any one of the above on the basis of an ICOS system when executing said computer program.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be substantially or partially embodied in the form of a software product, the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes include several instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method in the embodiments of the present invention. The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant points, reference may be made to the description in the method embodiment.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention can be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope defined by the present application.

Claims (8)

1. A host Numa test method based on an ICOS system is characterized in that the ICOS system is an intelligent operating system facing cloud data centers and cloud native application based on open source OpenStack and combined with self-research of cloud and sea series products;
the method comprises the following steps:
s1: selecting a target host in an operating state in an ICOS system environment, and performing ssh connection;
s2: entering a target host and acquiring system information of the target host;
s3: configuring a/etc/kolla/nova-computer/nova.conf file according to preset parameters;
s4: restarting the nova _ computer container;
s5: and judging whether the Numa normally operates or not according to the page information.
2. The ICOS system-based host Numa test method according to claim 1, wherein the step S2 comprises:
inquiring the node range, and entering the host in ssh;
by executing the lscpu, host information is displayed, the host information including a node.
3. The ICOS system-based host Numa test method of claim 1, wherein the step S3 comprises:
and editing the default item in the file, and setting the value of the vcpu _ pin _ set to be any value outside the node range.
4. The ICOS system-based host Numa test method of claim 1, wherein the step S4 further comprises:
the command docker stop nova _ computer & & docker start nova _ computer is executed.
5. The ICOS system-based host Numa test method of claim 1, wherein the step S5 comprises:
if Numa in the page information range is displayed as green, the Numa operates normally.
6. The ICOS system-based host Numa test method of claim 1, wherein the step S5 further comprises:
if the Numa in the page information range is displayed as red, the Numa is abnormal, and abnormal information is reported to the system.
7. A host Numa test system based on an ICOS system is characterized by comprising:
the connection unit is used for selecting a target host with an operation state in an ICOS system environment and performing ssh connection;
the access unit is used for entering the target host and acquiring system information of the target host;
the configuration unit is used for configuring the/etc/kolla/nova-computer/nova.conf file according to preset parameters;
a restart unit for restarting the nova _ computer container;
and the judging unit is used for judging whether the Numa normally operates or not according to the page information.
8. A host Numa test device based on an ICOS system, comprising:
a memory for storing a computer program;
a processor for implementing the host Numa test method steps of the ICOS-based system as claimed in any one of claims 1 to 6 when executing the computer program.
CN201911208386.4A 2019-11-30 2019-11-30 ICOS system-based host Numa test method, system and equipment Active CN111124889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911208386.4A CN111124889B (en) 2019-11-30 2019-11-30 ICOS system-based host Numa test method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911208386.4A CN111124889B (en) 2019-11-30 2019-11-30 ICOS system-based host Numa test method, system and equipment

Publications (2)

Publication Number Publication Date
CN111124889A CN111124889A (en) 2020-05-08
CN111124889B true CN111124889B (en) 2023-01-10

Family

ID=70497092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911208386.4A Active CN111124889B (en) 2019-11-30 2019-11-30 ICOS system-based host Numa test method, system and equipment

Country Status (1)

Country Link
CN (1) CN111124889B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021084A (en) * 2016-05-23 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for testing server performance
CN107220121A (en) * 2017-05-25 2017-09-29 深信服科技股份有限公司 Sandbox environment method of testing and its system under a kind of NUMA architecture
CN109491822A (en) * 2018-11-09 2019-03-19 郑州云海信息技术有限公司 A kind of system reboot detection method, device, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021084A (en) * 2016-05-23 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for testing server performance
CN107220121A (en) * 2017-05-25 2017-09-29 深信服科技股份有限公司 Sandbox environment method of testing and its system under a kind of NUMA architecture
CN109491822A (en) * 2018-11-09 2019-03-19 郑州云海信息技术有限公司 A kind of system reboot detection method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111124889A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN104660471A (en) Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN104317618A (en) Firmware partitioning method and device
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN109542754B (en) Access method of mobile equipment, debugging method, device and system of application program
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
US20140164845A1 (en) Host computer and method for testing sas expanders
CN106372160A (en) Distributive database and management method
CN112000535A (en) SAS Expander card-based hard disk abnormity identification method and processing method
CN114265733A (en) Automatic testing method and device for abnormal power failure of solid state disk
CN108427635A (en) Quickly method, server and the computer readable storage medium of test web page
CN113676368B (en) Method and device applied to ATS network performance test
CN114609995A (en) Fault control method, device, system, equipment, medium and product
CN112732556B (en) Automatic testing method, device, equipment and storage medium of distributed system
CN111124889B (en) ICOS system-based host Numa test method, system and equipment
US20070204071A1 (en) Apparatus, system, and method for automated device configuration and testing
CN116501523A (en) Abnormality processing method and device for equipment, storage medium and electronic device
US20230333969A1 (en) Automatic generation of code function and test case mapping
US20200272527A1 (en) Dynamic preparation of a new network environment, and subsequent monitoring thereof
CN114283876A (en) DDR signal quality test method, test device and test equipment
CN113254290A (en) Memory particle multidimensional test method, device and system and readable storage medium
CN106528577B (en) Method and device for setting file to be cleaned
CN111209172B (en) Pressure testing method, system and equipment for HL-100 inference card
CN108984992B (en) Circuit board design method and device
CN110765022B (en) Method, device, computer equipment and storage medium for automatically testing sample sending SSD
CN113849291A (en) Container cluster-based task processing method, device, equipment, medium and product

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
GR01 Patent grant
GR01 Patent grant