Deployment method and device of OpenStack bare metal containing smart network card
By using pre-start execution environment and memory file system image files in the OpenStack production environment, the problem of inefficient deployment of intelligent network card is solved, and automated deployment and efficient intelligent network card bare metal deployment are realized.
Patent Information
- Application Number
- CN202011496281.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2040-12-17
Smart Images

Figure CN112486522B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of system installation, and in particular to a deployment method, device, equipment and computer-readable storage medium for an OpenStack bare metal containing a smart network card. Background Art
[0002] In cloud computing OpenStack, Linux systems, memory file systems CoreOS, Docker containers, and ironic architecture technologies on bare metal are widely used. In recent years, Smart NICs have emerged and developed rapidly, with broad application prospects. The core of Smart NICs (hereinafter referred to as "Smart NICs") is to assist the CPU in processing network loads and programming network interface functions through field programmable gate arrays (FPGAs) or system-on-chips (SoCs). Smart NICs can improve application and virtualization performance, realize the many advantages of software-defined networks (SDNs) and network function virtualization (NFVs), remove network virtualization, load balancing, and other low-level functions from the server CPU, and ensure that the maximum processing power is provided for applications. At the same time, Smart NICs can also provide distributed computing resources, allowing users to develop their own software or provide access services to accelerate specific applications.
[0003] Bare metal is a product form in the field of cloud computing that provides computing resources to users, aiming to meet the needs of high-performance computing, computing services that directly access hardware, and exclusive computing resources. In the bare metal service application scenario, a bare metal will eventually be deployed and installed with an operating system to become a cloud physical machine. Given the many advantages of smart network cards, using them in combination with bare metal will greatly improve the network and computing performance of the server. Figure 1 The following is a schematic diagram of the OpenStack logic architecture with a smart network card. Figure 1 As shown in the figure, the processor system (ARM System) of the smart network card has added a multi-layer virtual switch (OVS) and an agent module (ovs-agent) to implement vxlan encapsulation similar to that of a virtual machine; and based on the security group and quality of service (QoS) functions implemented by the multi-layer virtual switch, they act on pf0hpf. The bare metal (BareMetal) is connected to the network port pf0hpf of the processor (ARM System) of the smart network card through the network port PF, and the baseboard management controller (BMC) can control the intelligent platform management interface (IPMI) to achieve control of the smart network card.
[0004] Currently, bare metal deployment with (inserted) smart NICs in the OpenStack production environment has not been fully automated. Workers need to install the operating system on the smart NICs before plugging them into the bare metal server to run them. In addition, when the OpenStack community deploys bare metal as a cloud physical machine, the smart NICs are assumed to have the operating system installed. This makes it difficult to improve the efficiency of bare metal deployment in the production environment; the OpenStack community has not yet proposed a better solution. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device, equipment and computer-readable storage medium for deploying an OpenStack bare metal containing a smart network card, which is used to realize the automation of bare metal deployment containing (plugged in) a smart network card in an OpenStack production environment and improve deployment efficiency.
[0006] In order to solve the above technical problems, the present invention provides a deployment method of an OpenStack bare metal with a smart network card, based on a host of a bare metal to be deployed, comprising:
[0007] After starting in the pre-boot execution environment, pull the memory file system image file pre-uploaded to the pre-boot execution environment server from the network boot environment, and run the memory file system corresponding to the memory file system image file;
[0008] Calling a check script pre-stored in the memory file system to check the mounting status of the smart network card;
[0009] If the bare metal to be deployed is mounted with a smart network card, the initialization script pre-stored in the memory file system is called to initialize the operating environment of the host and the smart network card, and then the deployment script pre-stored in the memory file system is called to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then the processor is started and run to complete the deployment of the smart network card on the bare metal to be deployed.
[0010] Optionally, calling a check script pre-stored in the memory file system to check the mounting status of the smart network card is specifically as follows:
[0011] Calling the inspection script to identify a keyword corresponding to the smart network card;
[0012] If the keyword exists, it is determined that the mounting status of the smart network card is normal;
[0013] If the keyword does not exist, it is determined that the mounting state of the smart network card is abnormal.
[0014] Optionally, calling an initialization script pre-stored in the memory file system to initialize the operating environment of the host and the smart network card is specifically:
[0015] Call the initialization script to load the smart network card driver.
[0016] Optionally, starting the processor to run and completing the deployment of the smart network card on the bare metal to be deployed specifically includes:
[0017] After the processor installs the operating system installation package, calling the deployment script to send creation information to the processor, so that the processor creates a preset network interface and a multi-layer virtual switch according to the creation information;
[0018] The deployment script is called to create a network interface on the host corresponding to the preset network interface.
[0019] Optionally, after completing the deployment of the smart network card on the bare metal to be deployed, the method further includes:
[0020] checking a network interface between the host and the processor;
[0021] If the network interface is in a connected state, it is determined that the deployment of the smart network card on the bare metal to be deployed is qualified;
[0022] If the network interface is not connected, a prompt indicating that the deployment has failed is issued.
[0023] Optionally, also include:
[0024] If the bare machine to be deployed is not equipped with the smart network card, shut down the machine;
[0025] After completing the deployment of the smart network card on the bare metal to be deployed, shut down the machine.
[0026] Optionally, the starting in the pre-start execution environment is specifically:
[0027] Controlling startup in the pre-boot execution environment based on an intelligent platform management interface;
[0028] Correspondingly, the shutdown is specifically performed based on the control of the intelligent platform management interface.
[0029] In order to solve the above technical problems, the present invention also provides a deployment device for an OpenStack bare metal containing a smart network card, which runs on a host of a bare metal to be deployed, and includes:
[0030] A pre-start unit is used to pull a memory file system image file pre-uploaded to a pre-start execution environment server from a network startup environment after starting in the pre-start execution environment, and run a memory file system corresponding to the memory file system image file;
[0031] A first checking unit, configured to call a checking script pre-stored in the memory file system to check the mounting status of the smart network card;
[0032] The deployment unit is used to call the initialization script pre-stored in the memory file system to initialize the operating environment of the host and the smart network card if the bare metal to be deployed is mounted with a smart network card, and then call the deployment script pre-stored in the memory file system to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then start the processor to run, so as to complete the deployment of the smart network card on the bare metal to be deployed.
[0033] In order to solve the above technical problems, the present invention further provides a deployment device for an OpenStack bare metal including a smart network card, comprising:
[0034] A memory, used to store instructions, wherein the instructions include steps of any one of the above-mentioned methods for deploying an OpenStack bare metal with a smart network card;
[0035] A processor is used to execute the instructions.
[0036] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the deployment method of an OpenStack bare metal containing a smart network card as described in any one of the above items are implemented.
[0037] The deployment method of the bare metal OpenStack containing smart network card provided by the present invention stores the operating system installation package for the smart network card in the memory file system image file by pre-designing the check script, the initialization script and the deployment script, so that after the host of the bare metal to be deployed is started in the pre-start execution environment, the memory file system image file pre-uploaded to the pre-start execution environment server is pulled from the network startup environment, and the memory file system corresponding to the memory file system image file is run. After calling the check script to determine that the bare metal to be deployed is mounted with a smart network card, the initialization script is called to initialize the environment in which the host and the smart network card are running, and then the deployment script is called to copy the operating system installation package to the processor of the smart network card, and the processor of the smart network card is pulled up and run to complete the deployment of the smart network card on the bare metal to be deployed. The deployment method of the bare metal OpenStack containing smart network card provided by the present invention does not need to pre-install the operating system for the smart network card. As long as the smart network card is plugged into the host of the bare metal to be deployed, the deployment of the bare metal containing (plugged in) the smart network card in the OpenStack production environment can be automatically completed, thereby improving the deployment efficiency.
[0038] The present invention also provides a deployment device, equipment and computer-readable storage medium for an OpenStack bare metal including a smart network card, which have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 This is a schematic diagram of the OpenStack logic architecture with a smart network card;
[0041] Figure 2 A flowchart of a method for deploying an OpenStack bare metal machine with a smart network card provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of a service network topology of an OpenStack bare metal machine including a smart network card provided in an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of the structure of a deployment device for an OpenStack bare metal containing a smart network card provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of the structure of a deployment device for an OpenStack bare metal including a smart network card provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The core of the present invention is to provide a deployment method, device, equipment and computer-readable storage medium for an OpenStack bare metal containing a smart network card, which is used to realize the automation of bare metal deployment containing (plugged in) a smart network card in an OpenStack production environment and improve deployment efficiency.
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] Figure 2 A flowchart of a method for deploying an OpenStack bare metal machine with a smart network card provided by an embodiment of the present invention; Figure 3A schematic diagram of a service network topology of an OpenStack bare metal machine including a smart network card provided in an embodiment of the present invention.
[0048] like Figure 2 As shown, based on the bare metal host to be deployed, the deployment method of the OpenStack bare metal with smart network card provided by the embodiment of the present invention includes:
[0049] S201: After starting in the pre-boot execution environment, pull the memory file system image file pre-uploaded to the pre-boot execution environment server from the network boot environment, and run the memory file system corresponding to the memory file system image file.
[0050] S202: Call the check script pre-stored in the memory file system to check the mounting status of the smart network card.
[0051] S203: If the bare metal to be deployed is mounted with a smart network card, the initialization script pre-stored in the memory file system is called to initialize the operating environment of the host and the smart network card, and then the deployment script pre-stored in the memory file system is called to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then the processor is started and run to complete the deployment of the smart network card on the bare metal to be deployed.
[0052] The deployment method of the bare metal OpenStack with smart NIC provided in the embodiment of the present invention is based on the bare metal inspection function of ironic. When the staff pre-designs and produces the memory file system image file (inspection image ramdisk) for the bare metal to be deployed, they design the function of loading the BFB format file of the smart NIC operating system, and design and produce the script tool and insert it into the memory file system image file to realize the automatic deployment of the smart NIC on the bare metal to be deployed. The memory file system image file and the Linux kernel after the above design are uploaded to the pre-boot execution environment server (PXE TFTP server). After confirming that the upload is successful, there is no need to install the operating system for the smart NIC in advance, and the automatic deployment of the bare metal to be deployed can be started.
[0053] The method for deploying an OpenStack bare metal with a smart network card provided in an embodiment of the present invention may further include:
[0054] If the bare metal to be deployed is not equipped with a smart network card, shut it down;
[0055] After completing the deployment of the smart NIC on the bare metal to be deployed, shut down the machine.
[0056] For step S201, after the host of the bare metal to be deployed is started in the pre-boot execution environment, the memory file system image file pre-uploaded to the pre-boot execution environment server is pulled from the network boot environment (PXE), and the memory file system corresponding to the memory file system image file is run. There are many ways for Ironic to control the bare metal power on and off, one of which is to control it through the Intelligent Platform Management Interface (IPMI). Then, starting in the pre-boot execution environment in step S201 is specifically: starting in the pre-boot execution environment based on the intelligent platform management interface control; correspondingly, shutting down based on the intelligent platform management interface control.
[0057] For step S202, the script can be checked to identify the keywords corresponding to the smart network card to check whether the bare metal to be deployed is mounted with a smart network card; if there is a keyword corresponding to the smart network card, it is determined that the mounting state of the smart network card is normal; if there is no keyword corresponding to the smart network card, it is determined that the mounting state of the smart network card is abnormal. After running the Linux command lspci, the keywords related to the smart network card are searched to determine whether there is a smart network card.
[0058] For step S203, if the bare metal to be deployed is mounted with a smart network card, the initialization script pre-stored in the memory file system is called to initialize the environment in which the host and the smart network card operate, specifically including calling the initialization script to load the smart network card driver, etc. After initializing the environment, the deployment script pre-stored in the memory file system is called to copy the operating system installation package pre-stored in the memory file system to the processor (ARM) of the smart network card. In step S203, the processor is started and the deployment of the smart network card on the bare metal to be deployed is completed, which may specifically include:
[0059] After the processor installs the operating system installation package, calling the deployment script to send creation information to the processor, so that the processor creates a preset network interface and a multi-layer virtual switch according to the creation information;
[0060] Call the deployment script to create a network interface on the host that corresponds to the preset network interface.
[0061] When the processor of the Smart NIC starts running, it interacts with the memory file system ramdisk of the bare metal host to be deployed. The deployment script running in the memory file system ramdisk of the bare metal host to be deployed tells the processor of the Smart NIC to create the network port pf0hpf and install the multilayer virtual switch (OVS). At the same time, the network port PF is also created on the bare metal host to be deployed. For details, see Figure 3After the host of the bare metal to be deployed is connected to the network port pf0hpf of the processor (ARMSystem) of the smart network card through the network port PF, the br-int module, br-tun module and br-phy module of the multi-layer virtual switch are further implemented through the eSwitch based on the network ports pf.100, pf-p0, and pf-p1, and then through the ports port0 and port1 to achieve in-band data interaction, and the network port oob_net0 is used to achieve out-of-band data transmission. Specifically, the baseboard management controller (BMC) controls the intelligent platform management interface (IPMI) for topology management, and realizes communication with the ICOS platform (a modular domestic cloud platform built based on OpenStack and underlying virtualization resources). The network port oob_net0 is connected to the bond0 port of the ICOS platform, and the ports port0 and port1 are respectively connected to the bond1 port of the ICOS platform, and then the network expansion is realized based on the multi-layer virtual switch (OVS) of the ICOS platform.
[0062] The deployment method of the bare metal OpenStack with smart network card provided by the embodiment of the present invention stores the operating system installation package for the smart network card in the memory file system image file by pre-designing the check script, the initialization script and the deployment script in advance, so that after the host of the bare metal to be deployed is started in the pre-start execution environment, the memory file system image file pre-uploaded to the pre-start execution environment server is pulled from the network startup environment, and the memory file system corresponding to the memory file system image file is run. After calling the check script to determine that the bare metal to be deployed is mounted with a smart network card, the initialization script is called to initialize the environment in which the host and the smart network card run, and then the deployment script is called to copy the operating system installation package to the processor of the smart network card, and the processor of the smart network card is pulled up and run to complete the deployment of the smart network card on the bare metal to be deployed. The deployment method of the bare metal OpenStack with smart network card provided by the embodiment of the present invention does not need to pre-install the operating system for the smart network card. As long as the smart network card is plugged into the host of the bare metal to be deployed, the deployment of the bare metal containing (plugged in) the smart network card in the OpenStack production environment can be automatically completed, thereby improving the deployment efficiency.
[0063] On the basis of the above embodiment, in the method for deploying an OpenStack bare metal with a smart network card provided in an embodiment of the present invention, in order to ensure deployment reliability, after the deployment of the smart network card on the bare metal to be deployed is completed in step S203, the method further includes:
[0064] Check the network interface between the host and the processor;
[0065] If the network interface is connected, it is determined that the deployment of the smart network card on the bare metal to be deployed is qualified;
[0066] If the network interface is not connected, a prompt indicating that the deployment has failed will be given.
[0067] In actual applications, when the network interface between the host of the bare metal to be deployed and the processor of the smart network card is connected, it can be determined that the bare metal OpenStack with the smart network card is deployed successfully, otherwise it is not deployed successfully. In the automated deployment work, if the bare metal OpenStack with the smart network card is not deployed successfully, a deployment failure prompt can be sent through the host of the bare metal to be deployed to remind the staff to check.
[0068] The above describes in detail various embodiments corresponding to the method for deploying an OpenStack bare metal with a smart network card. On this basis, the present invention also discloses a deployment device, equipment and computer-readable storage medium for an OpenStack bare metal with a smart network card corresponding to the above method.
[0069] Figure 4 A schematic diagram of the structure of a deployment device for an OpenStack bare metal including a smart network card provided by an embodiment of the present invention.
[0070] like Figure 4 As shown, the host running on the bare metal to be deployed, the deployment device of the OpenStack bare metal with smart network card provided by the embodiment of the present invention includes:
[0071] The pre-start unit 401 is used to pull the memory file system image file pre-uploaded to the pre-start execution environment server from the network startup environment after starting in the pre-start execution environment, and run the memory file system corresponding to the memory file system image file;
[0072] The first checking unit 402 is used to call the checking script pre-stored in the memory file system to check the mounting status of the smart network card;
[0073] The deployment unit 403 is used to call the initialization script pre-stored in the memory file system to initialize the operating environment of the host and the smart network card if the bare metal to be deployed is mounted with a smart network card, and then call the deployment script pre-stored in the memory file system to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then start the processor to run, thereby completing the deployment of the smart network card on the bare metal to be deployed.
[0074] Furthermore, the deployment device of the OpenStack bare metal including the smart network card provided by the embodiment of the present invention may also include:
[0075] The second inspection unit is used to check the network interface between the host and the processor after completing the deployment of the smart network card on the bare metal to be deployed; if the network interface is in a connected state, it is determined that the deployment of the smart network card on the bare metal to be deployed is qualified; if the network interface is in a disconnected state, a prompt of deployment failure is issued.
[0076] Furthermore, the deployment device of the OpenStack bare metal including the smart network card provided by the embodiment of the present invention may also include:
[0077] The shutdown control unit is used to shut down the bare metal to be deployed if the bare metal to be deployed is not equipped with a smart network card; and shut down the bare metal to be deployed after the smart network card is deployed.
[0078] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0079] Figure 5 A schematic diagram of the structure of a deployment device for an OpenStack bare metal including a smart network card provided by an embodiment of the present invention.
[0080] like Figure 5 As shown, the deployment device of the OpenStack bare metal with smart network card provided in the embodiment of the present invention includes:
[0081] The memory 510 is used to store instructions, where the instructions include the steps of the method for deploying an OpenStack bare metal with a smart network card described in any one of the above embodiments;
[0082] The processor 520 is configured to execute the instructions.
[0083] Among them, the processor 520 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 520 may be implemented in at least one hardware form of a digital signal processing DSP (Digital Signal Processing), a field programmable gate array FPGA (Field-Programmable Gate Array), and a programmable logic array PLA (Programmable Logic Array). The processor 520 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 520 may be integrated with a graphics processor GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 520 may also include an artificial intelligence AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0084] The memory 510 may include one or more computer-readable storage media, which may be non-transitory. The memory 510 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 510 is at least used to store the following computer program 511, wherein, after the computer program 511 is loaded and executed by the processor 520, it can implement the relevant steps in the deployment method of the OpenStack bare metal containing the smart network card disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 510 may also include an operating system 512 and data 513, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 512 may be Windows. Data 513 may include, but is not limited to, the data involved in the above method.
[0085] In some embodiments, the deployment device of the OpenStack bare metal containing the smart network card may also include a display screen 530 , a power supply 540 , a communication interface 550 , an input and output interface 560 , a sensor 570 , and a communication bus 580 .
[0086] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the deployment device of the OpenStack bare metal containing the smart network card, and may include more or fewer components than shown in the figure.
[0087] The deployment device of the OpenStack bare metal containing smart network card provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the deployment method of the OpenStack bare metal containing smart network card as described above, and the effect is the same as above.
[0088] It should be noted that the above-described device and equipment embodiments are merely schematic. For example, the division of modules is merely a logical function division. There may be other division methods in actual implementation, such as multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0089] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0090] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present invention.
[0091] To this end, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for deploying an OpenStack bare metal including a smart network card are implemented.
[0092] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory ROM (Read-Only Memory), a random access memory RAM (Random Access Memory), a magnetic disk or an optical disk, and other media that can store program codes.
[0093] The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the above-mentioned method for deploying an OpenStack bare metal with a smart network card when executed by a processor, and the effect is the same as above.
[0094] The above is a detailed introduction to the deployment method, device, equipment and computer-readable storage medium of an OpenStack bare metal containing a smart network card provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in several ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
[0095] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for deploying an OpenStack bare metal with a smart network card, characterized in that: The bare metal host to be deployed includes: After starting in the pre-boot execution environment, pull the memory file system image file pre-uploaded to the pre-boot execution environment server from the network boot environment, and run the memory file system corresponding to the memory file system image file; Calling a check script pre-stored in the memory file system to check the mounting status of the smart network card; If the bare metal to be deployed is mounted with a smart network card, the initialization script pre-stored in the memory file system is called to initialize the operating environment of the host and the smart network card, and then the deployment script pre-stored in the memory file system is called to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then the processor is started and run to complete the deployment of the smart network card on the bare metal to be deployed.
2. The deployment method according to claim 1, characterized in that: The calling of the check script pre-stored in the memory file system to check the mounting status of the smart network card is specifically as follows: Calling the inspection script to identify a keyword corresponding to the smart network card; If the keyword exists, it is determined that the mounting status of the smart network card is normal; If the keyword does not exist, it is determined that the mounting state of the smart network card is abnormal.
3. The deployment method according to claim 1, characterized in that: The calling of the initialization script pre-stored in the memory file system to initialize the operating environment of the host and the smart network card is specifically: Call the initialization script to load the smart network card driver.
4. The deployment method according to claim 1, characterized in that: The step of starting the processor to run and completing the deployment of the smart network card on the bare metal to be deployed specifically includes: After the processor installs the operating system installation package, calling the deployment script to send creation information to the processor, so that the processor creates a preset network interface and a multi-layer virtual switch according to the creation information; The deployment script is called to create a network interface on the host corresponding to the preset network interface.
5. The deployment method according to claim 1, characterized in that: After completing the deployment of the smart network card on the bare metal to be deployed, the method further includes: checking a network interface between the host and the processor; If the network interface is in a connected state, it is determined that the deployment of the smart network card on the bare metal to be deployed is qualified; If the network interface is not connected, a prompt indicating that the deployment has failed is issued.
6. The deployment method according to claim 1, characterized in that: Also includes: If the bare machine to be deployed is not equipped with the smart network card, shut down the machine; After completing the deployment of the smart network card on the bare metal to be deployed, shut down the machine.
7. The deployment method according to claim 6, characterized in that: The startup in the pre-startup execution environment is specifically as follows: Controlling startup in the pre-boot execution environment based on an intelligent platform management interface; Correspondingly, the shutdown is specifically performed based on the control of the intelligent platform management interface.
8. A deployment device for OpenStack bare metal with smart network card, characterized in that: The host running on the bare metal to be deployed includes: A pre-start unit is used to pull a memory file system image file pre-uploaded to a pre-start execution environment server from a network startup environment after starting in the pre-start execution environment, and run a memory file system corresponding to the memory file system image file; A first checking unit, configured to call a checking script pre-stored in the memory file system to check the mounting status of the smart network card; The deployment unit is used to call the initialization script pre-stored in the memory file system to initialize the operating environment of the host and the smart network card if the bare metal to be deployed is mounted with a smart network card, and then call the deployment script pre-stored in the memory file system to copy the operating system installation package pre-stored in the memory file system to the processor of the smart network card, and then start the processor to run, so as to complete the deployment of the smart network card on the bare metal to be deployed.
9. A deployment device for OpenStack bare metal containing a smart network card, characterized in that: include: A memory, used to store instructions, wherein the instructions include the steps of the method for deploying an OpenStack bare metal containing a smart network card according to any one of claims 1 to 7; A processor is used to execute the instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for deploying an OpenStack bare metal machine containing a smart network card as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Building method and device for intelligent network card testing environment
CN108768785A
Bare computer deployment method and device
CN111475172A