CN110673992B - Multi-mirror image fusion self-starting method and system - Google Patents

Multi-mirror image fusion self-starting method and system Download PDF

Info

Publication number
CN110673992B
CN110673992B CN201910872359.0A CN201910872359A CN110673992B CN 110673992 B CN110673992 B CN 110673992B CN 201910872359 A CN201910872359 A CN 201910872359A CN 110673992 B CN110673992 B CN 110673992B
Authority
CN
China
Prior art keywords
management system
equipment
client
server
test node
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
CN201910872359.0A
Other languages
Chinese (zh)
Other versions
CN110673992A (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 CN201910872359.0A priority Critical patent/CN110673992B/en
Publication of CN110673992A publication Critical patent/CN110673992A/en
Application granted granted Critical
Publication of CN110673992B publication Critical patent/CN110673992B/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a multi-mirror fusion self-starting method, which comprises the following steps: creating a test node and calling a registration interface of a server of the equipment basic management system through a client of the equipment basic management system to register the information of the test node in a total database server; issuing an operating system image file to a client of the equipment basic management system in a test node through a server of the equipment basic management system; sending an instruction for configuring a starting mirror image to a client of the equipment basis management system in the test node through a server of the equipment basis management system; and the client side of the equipment basic management system configures grub configuration files for starting corresponding images according to the instruction and installs the corresponding images when a test machine in the test node is started according to the grub configuration files. The invention reduces the manual intervention between system switching and realizes automatic intelligent processing.

Description

Multi-mirror image fusion self-starting method and system
Technical Field
The present invention relates to the field of computers, and more particularly, to a multi-mirror fusion self-booting method and system.
Background
With the progress and development of the social science and technology, the challenges faced by people are more and more innovative and intelligent. At present, the whole domestic server testing architecture is basically expanded and realized based on PXE, and is basically changed from the PXE to the PXE. In the process of testing a UUT (device under test), many test items are involved, where the test items include a CPU, a memory, a disk, a CPLD, an NVME hard disk, a backplane, a hard disk light, a GPU, a video card, a restart, and the like, where most of the tests can be completed in the same system, but there is a case where some tests need to be performed in a specific system, for example, a hot plug test on an NVME hard disk needs to be switched to a RHEL 7.3(Red Hat Enterprise Linux 7.3) for testing, and thus a problem of system switching is encountered.
At present, the common method for system switching is manual intervention operation, and an operator operates a single testing machine to switch the testing machine among different operating systems, so that manpower and material resources are wasted, and the system management of the testing machine is not facilitated.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a multi-mirror fusion self-booting method and system, so as to reduce manual intervention between system switches and improve testing efficiency and quality.
Based on the above object, an aspect of the embodiments of the present invention provides a multi-mirror fusion self-starting method, including the following steps:
creating a test node and calling a registration interface of a server of the equipment basic management system through a client of the equipment basic management system to register the information of the test node in a total database server;
issuing an operating system image file to a client of the equipment basic management system in a test node through a server of the equipment basic management system;
sending an instruction for configuring a starting mirror image to a client of the equipment basis management system in the corresponding test node through a server of the equipment basis management system;
and the client side of the equipment basic management system configures grub configuration files for starting corresponding images according to the instruction and installs the corresponding images when a test machine in the test node is started according to the grub configuration files.
In some embodiments, the image server in the test node for storing the delivered image file of the operating system is a client of the equipment infrastructure management system or another separate server.
In some embodiments, the image file comprises: file system, kernel, grub configuration file, and MD5 file.
In some embodiments, the issuing, by the service end of the equipment infrastructure management system, an operating system image file to the client end of the equipment infrastructure management system in a test node includes:
and sending a mirror image issuing request to a client of the equipment basis management system in the test node by a user through a server of the equipment basis management system, and inquiring whether the mirror image file exists in the node database server by the client of the equipment basis management system in the test node according to the request.
In some embodiments, the issuing, by the server of the equipment infrastructure management system, an operating system image file to the client of the equipment infrastructure management system in the test node further includes:
responding to the client side of the equipment basic management system to confirm that the node database server does not have the related information of the mirror image, and issuing the mirror image file to the client side of the equipment basic management system through the server side of the equipment basic management system; and the equipment basic management system client decompresses the image file, then carries out MD5 verification, and returns a verification result to the server side of the equipment basic management system.
In some embodiments, the issuing, by the server of the equipment infrastructure management system, an operating system image file to the client of the equipment infrastructure management system in the test node further includes:
and the client side of the equipment basic management system stores the received related information of the mirror image file into the node database server.
In some embodiments, the configuring, by the client of the equipment infrastructure management system according to the instruction, a grub configuration file for starting a corresponding image and installing the corresponding image according to the grub configuration file when the tester in the test node is started includes:
after the client side of the equipment basic management system receives the instruction, modifying the file name of the grub configuration file corresponding to the corresponding mirror image so as to add a corresponding suffix into the file name, wherein the suffix corresponds to a mode of starting the corresponding mirror image; and storing the modified grub configuration file into a storage directory with the suffix as a name.
In some embodiments, the means for booting the respective image includes: and starting the corresponding mirror image according to one or more of the IP network segment, the network port, the serial number of the tester and the MAC address of the tester.
In some embodiments, installing the corresponding image at startup of the tester in the test node according to the grub configuration file further comprises: and starting the tester by adopting a PXE mode, wherein when a plurality of modes for starting the corresponding images are configured, reading the modified grub configuration file according to the MAC address of the tester, the IP network segment, the network port and the priority of the serial number of the tester so as to load the corresponding kernel.
Another aspect of the embodiments of the present invention provides a multi-image fusion self-start system, including:
at least one processor; and
a memory storing program code executable by the processor, the program code implementing the method of any of the above when executed by the processor.
The invention has the following beneficial technical effects: the multi-image fusion self-starting method and the system provided by the embodiment of the invention replace manual operation in system switching by an advanced technical architecture, and realize the management and control of a plurality of test systems in a plurality of networks, thereby not only reducing the manual intervention between the system switching, but also realizing automatic intelligent processing, improving the test efficiency and quality, ensuring the product quality and expanding the application range.
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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a flow chart of a multi-mirror fusion self-boot method according to the present invention;
FIG. 2 is a diagram of a design architecture for multi-mirror fusion self-start, according to an embodiment of the present invention;
FIG. 3 is a logical representation of registering a test node according to an embodiment of the present invention;
FIG. 4 is a logic diagram of a distributed image file according to an embodiment of the present invention;
FIG. 5 is a logical view of a configuration for a tester to launch a corresponding image according to an embodiment of the present invention;
FIG. 6 is a flow diagram of a tester booting and loading a corresponding core according to an embodiment of the invention;
fig. 7 is a schematic diagram of a hardware structure of a multi-image fusion self-starting system according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described below. However, it is to be understood that the disclosed embodiments are merely examples and that other embodiments may take various and alternative forms. The figures are not necessarily to scale; certain features may be exaggerated or minimized to show details of particular components. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a representative basis for teaching one skilled in the art to variously employ the present invention. As one of ordinary skill in the art will appreciate, various features illustrated and described with reference to any one of the figures may be combined with features illustrated in one or more other figures to produce embodiments that are not explicitly illustrated or described. The combination of features shown provides a representative embodiment for a typical application. However, various combinations and modifications of the features consistent with the teachings of the present invention may be desired for certain specific applications or implementations.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
Based on the above purpose, an embodiment of the present invention, on the one hand, provides a multi-mirror fusion self-starting method, as shown in fig. 1, including the following steps:
step S101: creating a test node and calling a registration interface of a server of the equipment basic management system through a client of the equipment basic management system to register the information of the test node in a total database server;
step S102: issuing an operating system image file to a client of the equipment basic management system in a test node through a server of the equipment basic management system;
step S103: sending an instruction for configuring a starting mirror image to a client of the equipment basis management system in the corresponding test node through a server of the equipment basis management system;
step S104: and the client side of the equipment basic management system configures grub configuration files for starting corresponding images according to the instruction and installs the corresponding images when a test machine in the test node is started according to the grub configuration files.
In some embodiments, the image server in the test node for storing the delivered image file of the operating system may be a client of the equipment infrastructure management system or another separate server, that is, in the test node, the image server for storing the delivered image file may be a client of the equipment infrastructure management system, or may be another server, for example, another server that is used separately as an image server.
FIG. 2 illustrates a design architecture diagram for multi-image fusion self-booting according to one embodiment, wherein a test environment intranet (small net), also denoted a test node, is within a dashed box; the EBEMS _ client is a client side provided with a basic management system and is mainly responsible for processing multiple images; the EBEMS _ server is a server side of the equipment basic management system, is a web service and is mainly responsible for interaction with an EBEMS _ client and processing of business logic; the UUT is a tester, and one or more testers can be included in one test small net; XDB is a general database server and stores server data of an equipment basic management system; the NDB is a node database server in the small network and is used for storing test data in the node. In the whole test architecture, each test small network is a test node, and may include a plurality of test nodes, such as a single board test node, a complete machine test node, a knife box test node, and the like, according to different functions.
In one embodiment according to the present invention, as shown in fig. 3, an EBEMS _ client and an NDB (node database server) are included inside each test node. When a node is established, the EBEMS _ client calls a register interface of the EBEMS _ server, the register interface follows an http protocol, and whether the node is registered is firstly inquired in an XDB (general database server); if the node is not registered, the EBEMS _ server sends a hand signal to an EBEMS _ client in the node, the EBEMS _ client successfully receives the hand signal and then sends a confirmation signal to the EBEMS _ server, and then the EBEMS _ server stores the registration information of the node in the XDB (total database server).
In some embodiments, the issuing, by the service end of the equipment infrastructure management system, an operating system image file to the client end of the equipment infrastructure management system in the test node includes:
and sending a mirror image issuing request to a client of the equipment basis management system in the test node by a user through a server of the equipment basis management system, and inquiring whether the mirror image file exists in the node database server by the client of the equipment basis management system in the test node according to the request.
In some embodiments, the issuing, by the server of the equipment infrastructure management system, an operating system image file to the client of the equipment infrastructure management system in the corresponding test node further includes: responding to the client side of the equipment basic management system to confirm that the node database server does not have the related information of the mirror image, and issuing the mirror image file to the client side of the equipment basic management system through the server side of the equipment basic management system; and the equipment basic management system client decompresses the image file, then carries out MD5 verification, and returns a verification result to the server side of the equipment basic management system.
In some embodiments, the issuing, by the server of the equipment infrastructure management system, an operating system image file to the client of the equipment infrastructure management system in the test node further includes: and the client side of the equipment basic management system stores the received related information of the mirror image file into the node database server.
The mirror image issuing process is that an operator accesses the web application of the EBEMS _ server to issue the mirror image file to the mirror image server of the test node. In an embodiment according to the present invention, as shown in fig. 4, an operator sends a mirror image issue request to an EBEMS _ client in a test node through the EBEMS _ server, and after the EBEMS _ client receives the request, the EBEMS _ client firstly queries an NDB (node database server) whether related information of the existing mirror image is recorded, and if the mirror image does not exist, the EBEMS _ client sends an issue path to the EBEMS _ server; after receiving the issued path, the EBEMS _ server issues a mirror image packet to an EBEMS _ client according to the path, the EBEMS _ client receives and decompresses the mirror image packet, MD5 verification is carried out after decompression is completed, after verification is successful, the relevant information of the mirror image is stored in an NDB for storage and archiving, and the verification result is returned to the EBEMS _ server; and if the verification fails, returning a verification result to the EBEMS _ server so as to resend the image file.
In some embodiments, the image file in the delivered image package includes: file system, kernel, grub configuration file, MD5 file, and the like.
In some embodiments, the configuring, by the client of the equipment infrastructure management system according to the instruction, a grub configuration file for starting a corresponding image and installing the corresponding image according to the grub configuration file when the tester in the test node is started includes: after the client side of the equipment basic management system receives the instruction, modifying the file name of the grub configuration file corresponding to the corresponding mirror image so as to add a corresponding suffix into the file name, wherein the suffix corresponds to a mode of starting the corresponding mirror image; and storing the modified grub configuration file into a storage directory with the suffix as a name.
In some embodiments, the manner of booting the corresponding image includes: and starting the corresponding mirror image according to one or more of the IP network segment, the network port, the serial number of the tester and the MAC address of the tester.
An operator can log in a front-end website of the EBEMS _ server and configure a startup mirror image of the UUT on the website. In an embodiment according to the present invention, as shown in fig. 5, the EBEMS _ server issues configuration information for starting a corresponding mirror to the EBEMS _ client in the test node; after receiving the configuration information, the EBEMS _ client modifies a grub configuration file (grub.conf) for starting a corresponding image, wherein the mode of starting the image supports: an IP network segment, a PORT, a serial number SN, a MAC address, etc., for example, if the configuration tester starts the centos6.5 system in a network segment of 192.168.x.x, the file name of the grub configuration file for starting the centos6.5 system is added to the network segment as a suffix, and the grub configuration file is stored in a storage directory named by the corresponding network segment. When the tester is started, as shown in fig. 6, the program reads the grub profile named after the network segment as a suffix under the corresponding storage directory, so as to start the kernel of the centros 6.5 system according to the grub profile.
In some embodiments, installing the corresponding image at startup of the tester in the test node according to the grub configuration file further comprises: and starting the tester by adopting a PXE mode, wherein when a plurality of modes for starting the corresponding mirror image are configured, reading the modified grub configuration file according to the priorities of the MAC address, the IP network segment, the network port and the serial number of the tester so as to load a corresponding kernel. The PXE server is the mirror image server, UUT can read the newly modified grup configuration file after starting, and because the mode of starting the mirror image supports an IP network segment, a PORT PORT, a serial number SN and an MAC address, the program part of the grub reading the grub configuration file is modified in the process, and the grub configuration file is searched in a mode of the priority of MAC > IP > PORT > SN by default.
Where technically feasible, the technical features listed above for the different embodiments may be combined with each other or changed, added, omitted, etc. to form further embodiments within the scope of the invention.
It can be seen from the foregoing embodiments that, in the multi-image fusion self-starting method provided in the embodiments of the present invention, an advanced technical architecture is used to replace manual operations in system switching, and management and control over multiple test systems in multiple networks are implemented, so that not only is manual intervention between system switching reduced, but also automatic intelligent processing is implemented, so that test efficiency and quality are improved, product quality is ensured, and an application range is expanded.
In view of the above, another aspect of the embodiments of the present invention provides an embodiment of a multi-image fusion self-starting system.
The multi-image fusion self-starting system comprises a memory and at least one processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the computer program to execute any one of the methods.
Fig. 7 is a schematic diagram of a hardware structure of an embodiment of the multi-image fusion self-priming system provided in the present invention.
Taking the computer device shown in fig. 7 as an example, the computer device includes a processor 701 and a memory 702, and may further include: an input device 703 and an output device 704.
The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 3 illustrates an example of a connection by a bus.
The memory 702 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the multi-image fusion self-booting method in the embodiments of the present application. The processor 701 executes various functional applications and data processing of the server by running nonvolatile software programs, instructions and modules stored in the memory 702, that is, implements the multi-mirror fusion self-booting method of the above-described method embodiment.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to a multi-mirror fusion self-boot method, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus of the multi-mirror fusion self-starting method. The output device 704 may include a display device such as a display screen.
Program instructions/modules corresponding to the one or more multi-image fusion self-starting methods are stored in the memory 702, and when executed by the processor 701, the multi-image fusion self-starting method in any of the above-described method embodiments is executed.
Any embodiment of the computer device executing the multi-mirror fusion self-starting method can achieve the same or similar effects as any corresponding method embodiment.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
In addition, the apparatuses, devices and the like disclosed in the embodiments of the present invention may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television and the like, or may be a large terminal device, such as a server and the like, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of apparatus, device. The client disclosed in the embodiment of the present invention may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the functions defined above in the methods disclosed in the embodiments of the present invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions described herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
The above-described embodiments are possible examples of implementations and are presented merely for a clear understanding of the principles of the invention. Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A multi-image fusion self-starting method is characterized by comprising the following steps:
creating a test node and calling a registration interface of a server of the equipment basic management system through a client of the equipment basic management system to register the information of the test node in a total database server;
issuing an operating system image file to a client of the equipment basis management system in the test node through a server of the equipment basis management system;
sending an instruction for configuring a starting mirror image to a client of the equipment basis management system in the test node through a server of the equipment basis management system;
and the client side of the equipment basic management system configures grub configuration files for starting corresponding images according to the instruction and installs the corresponding images when a test machine in the test node is started according to the grub configuration files.
2. The method of claim 1, wherein the image server in the test node for storing the issued operating system image file is a client of the equipment infrastructure management system or another separate server.
3. The method of claim 1, wherein the image file comprises: file system, kernel, grub configuration file, and MD5 file.
4. The method of claim 3, wherein issuing, by the service side of the equipment infrastructure management system, an operating system image file to the client side of the equipment infrastructure management system in the test node comprises:
a user sends a mirror image issuing request to a client of the equipment basic management system in the test node through a server of the equipment basic management system;
and the client side of the equipment basic management system in the test node inquires the node database server whether the mirror image file exists or not according to the request.
5. The method of claim 4, wherein issuing, by the service side of the equipment infrastructure management system, an operating system image file to the client side of the equipment infrastructure management system in the test node further comprises:
responding to the client side of the equipment basic management system to confirm that the node database server does not have the related information of the mirror image, and issuing the mirror image file to the client side of the equipment basic management system through the server side of the equipment basic management system;
and the equipment basic management system client decompresses the image file, then carries out MD5 verification, and returns a verification result to the server side of the equipment basic management system.
6. The method of claim 5, wherein issuing, by the service side of the equipment infrastructure management system, an operating system image file to the client side of the equipment infrastructure management system in the test node further comprises:
and the client side of the equipment basic management system stores the received related information of the mirror image file into the node database server.
7. The method of claim 1, wherein the provisioning a client of the infrastructure management system configuring grub profiles for launching respective images according to the instructions and installing respective images according to the grub profiles upon startup of a tester in the test node comprises:
after the client side of the equipment basic management system receives the instruction, modifying the file name of the grub configuration file corresponding to the corresponding mirror image so as to add a corresponding suffix into the file name, wherein the suffix corresponds to a mode of starting the corresponding mirror image;
and storing the modified grub configuration file into a storage directory with the suffix as a name.
8. The method of claim 7, wherein the initiating the respective image comprises: and starting the corresponding mirror image according to one or more of the IP network segment, the network port, the serial number of the tester and the MAC address of the tester.
9. The method of claim 8, wherein installing the corresponding image at startup of the tester in the test node according to the grub profile further comprises: and starting the tester by adopting a PXE mode, wherein when a plurality of modes for starting the corresponding images are configured, reading the modified grub configuration file according to the MAC address of the tester, the IP network segment, the network port and the priority of the serial number of the tester so as to load the corresponding kernel.
10. A multi-image fusion self-starting system, comprising:
at least one processor; and
a memory storing program code executable by the processor, the program code implementing the method of any one of claims 1-9 when executed by the processor.
CN201910872359.0A 2019-09-16 2019-09-16 Multi-mirror image fusion self-starting method and system Active CN110673992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872359.0A CN110673992B (en) 2019-09-16 2019-09-16 Multi-mirror image fusion self-starting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872359.0A CN110673992B (en) 2019-09-16 2019-09-16 Multi-mirror image fusion self-starting method and system

Publications (2)

Publication Number Publication Date
CN110673992A CN110673992A (en) 2020-01-10
CN110673992B true CN110673992B (en) 2022-06-03

Family

ID=69077946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872359.0A Active CN110673992B (en) 2019-09-16 2019-09-16 Multi-mirror image fusion self-starting method and system

Country Status (1)

Country Link
CN (1) CN110673992B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115130856B (en) * 2022-06-27 2023-11-24 苏州浪潮智能科技有限公司 Production task flow management system and management method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344082B (en) * 2018-11-01 2021-10-12 郑州云海信息技术有限公司 Method and system for automatically testing register
CN109788032B (en) * 2018-12-17 2021-12-14 深圳壹账通智能科技有限公司 Method and device for acquiring mirror image file, computer equipment and storage medium
CN109992311B (en) * 2019-03-25 2022-07-29 新华三技术有限公司 Starting method and device of operating system, storage medium and client

Also Published As

Publication number Publication date
CN110673992A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
US9720678B2 (en) Network switching method, version upgrade method, and terminal device
WO2021184824A1 (en) Application program interface gateway based method for separating front and back ends and related device
US20160241438A1 (en) Configuration service for configuring instances
US9858105B1 (en) Service for managing custom virtual machine images
CN102819461A (en) Desktop synchronization method, device, equipment and system
CN110247951B (en) File transmission control method, device, equipment and storage medium
CN110096306B (en) Application version switching method and device, electronic equipment and storage medium
CN110968477B (en) Method, device and medium for acquiring backup BMC version information
CN110011877B (en) Switch testing method and device
US20170163787A1 (en) Method and electronic device for upgrading or downgrading system
CN111212183B (en) Method, device and computer readable medium for running hosted application
CN111176701A (en) Firmware upgrading method and device based on external memory card
US11588909B1 (en) System and method for subscription based solution data compatibility
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN112631728A (en) Method, device, equipment and storage medium for managing chain code container of alliance chain
US9535715B2 (en) Booting from a trusted network image
CN115004734A (en) Instant connect configuration stored in SIM profile
CN110673992B (en) Multi-mirror image fusion self-starting method and system
CN113612702B (en) Method, system, equipment and storage medium for realizing bare metal inspection process
CN111367560A (en) Method, system, equipment and medium for expanding server function
CN114637549A (en) Data processing method, system and storage medium for service grid-based application
CN104104701A (en) Online service configuration updating method and system
CN104008096A (en) Browser-based application operation method and apparatus
JP2017538237A (en) Method, apparatus, and system for displaying virtual machine names
WO2023066246A1 (en) Method and system for installing application on cloudphone, and client cloudphone

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