WO2023159956A1 - Bare metal server inspection and deployment method and apparatus, and device and medium - Google Patents

Bare metal server inspection and deployment method and apparatus, and device and medium Download PDF

Info

Publication number
WO2023159956A1
WO2023159956A1 PCT/CN2022/122784 CN2022122784W WO2023159956A1 WO 2023159956 A1 WO2023159956 A1 WO 2023159956A1 CN 2022122784 W CN2022122784 W CN 2022122784W WO 2023159956 A1 WO2023159956 A1 WO 2023159956A1
Authority
WO
WIPO (PCT)
Prior art keywords
network card
bare metal
preset
metal server
smart network
Prior art date
Application number
PCT/CN2022/122784
Other languages
French (fr)
Chinese (zh)
Inventor
刘元锋
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2023159956A1 publication Critical patent/WO2023159956A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration

Definitions

  • the present application relates to the field of computer technology, and in particular to a bare metal server inspection and deployment method, device, equipment, and medium.
  • the Overlay network is a virtual network built on the existing physical network, with independent control and forwarding planes.
  • terminal devices such as servers
  • the physical network is transparent, so that the bearer network and service network can be realized separation.
  • Bare metal service has both the elasticity of virtual machines and the performance of physical machines. It can provide individuals or enterprises with dedicated physical servers on the cloud, and can provide excellent computing performance for key application systems, high-performance computing, big data, and core databases Ensure data security.
  • a bare metal cloud physical machine it can be the same as creating a virtual machine. You only need to specify the required hardware requirements, such as cpu (Central Processing Unit, central processing unit), memory, mirroring, and the required network to create the required Bare metal cloud physical machines, and users can apply flexibly and use them on demand.
  • cpu Central Processing Unit, central processing unit
  • the overlay implementation scheme for bare metal servers (BareMetal) is different from the implementation scheme for virtual machine overlay on Openstack (cloud computing open source infrastructure project).
  • Openstack virtual machines share the resources of computing servers, but since computing servers are not exposed to end users, tunnels can be deployed on computing servers to implement Overlay encapsulation and decapsulation of virtual machines.
  • the bare metal server exclusively occupies a computing server, and this computing server needs to be completely exposed to end users. Therefore, the VM overlay implementation solution of deploying tunnels on the computing server cannot be applied in the bare metal server scenario.
  • the purpose of the embodiments of the present application is to provide a bare metal server inspection and deployment method, device, equipment, and medium, which can realize the inspection process of the bare metal server and realize the linkage between the inspection process and the deployment process.
  • the scheme is as follows:
  • the embodiment of the present application discloses a bare metal server inspection and deployment method, including:
  • the smart network card system When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so as to perform a check on the target bare metal server through the preset check command of the smart network card system process;
  • the inspection process After the inspection process is completed, it is judged whether the current target bare metal server carries a SmartNIC. If so, log in to the SmartNIC system again after the SmartNIC system has been powered on, and use the preset deployment command of the SmartNIC system to configure the The target bare metal server executes the deployment process.
  • the preset smart controller plug-in before using the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, it may also include:
  • the default bare metal service includes the first sub-service that provides services for bare metal servers that carry smart network cards and provides services for bare metal servers that do not carry smart network cards.
  • the second child service of the service includes the first sub-service that provides services for bare metal servers that carry smart network cards and provides services for bare metal servers that do not carry smart network cards.
  • the preset smart controller plug-in before using the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, it may also include:
  • the preset smart network card flag information is the smart network card flag information determined after judging whether the target bare metal server carries the smart network card.
  • use the preset smart controller plug-in to determine whether the target BMS carries a smart network card, and if so, query whether the smart network card system has been powered on including:
  • the preset smart controller plug-in uses the preset smart controller plug-in to determine whether the preset smart network card logo information exists in the program driver information of the preset bare metal service. If it exists, determine that the target bare metal server carries the smart network card, and then query whether the smart network card system has been completed. Power-on.
  • check whether the iNIC system has been powered on including:
  • the method before querying whether the heartbeat signal reported by the preset controller in the smart network card system is received through the preset smart controller plug-in, the method further includes:
  • the smart network card system After setting the basic input and output system bois of the target bare metal server and completing the power-on and startup, the smart network card system is powered on and started together with the target bare metal server.
  • the method further includes: after the smart network card system is powered on, the preset controller in the smart network card system reports a heartbeat signal.
  • Metal servers perform an inspection process, including:
  • the login account, password and IP address of the smart network card are obtained from the program driver information of the preset bare metal service, and the login account, password and network address of the smart network card are obtained based on the preset command.
  • execute the inspection process on the target BMS through the preset inspection command of the iNIC system including:
  • perform an inspection process on the target BMS including:
  • the information of the target bare metal server includes the CPU and memory of the target bare metal server, and the information of the target bare metal server is used to schedule the target bare metal server.
  • determine whether the current target BMS carries an iNIC including:
  • the preset iNIC flag information to the program driver information of the preset bare metal service, including:
  • the target bare metal server When the target bare metal server is registered, if the target bare metal server carries a smart network card, save the label of the preset smart network card logo information to the program driver information of the preset bare metal server.
  • execute the deployment process on the target BMS through the preset deployment command of the iNIC system including:
  • execute the deployment process on the target BMS including:
  • the method further includes:
  • the preset smart controller plug-in logs in to the smart network card system through the preset command according to the login account, password and IP address of the smart network card, and performs the switching of allowing or prohibiting the preset check command or the preset deployment command.
  • the BMS inspection and deployment method also includes:
  • the command determined based on the statement generated by the execution of the deployment command and the statement generated by the prohibition of execution of the check command is determined as the preset deployment command.
  • the embodiment of the present application discloses a bare metal server inspection and deployment device, including:
  • a query module configured to use a preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on;
  • the preset checking command execution module is used to obtain the characteristic information of the smart network card when it is found that the smart network card system has been powered on, and log in to the smart network card system based on the preset command according to the characteristic information, so as to pass the preset function of the smart network card system.
  • the check command executes the check process on the target bare metal server;
  • the preset deployment command execution module is used to judge whether the current target bare metal server carries a smart network card after the inspection process is completed, and if so, log in to the smart network card system again after the smart network card system has been powered on, and pass The preset deployment command of the iNIC system executes the deployment process on the target BMS.
  • the device also includes:
  • the setting module is configured to set the preset smart controller plug-in in the preset bare metal service before using the preset smart controller plug-in to determine whether the target bare metal server carries an intelligent network card, wherein the preset bare metal server
  • the metal service includes a first sub-service that provides services for bare metal servers that carry smart network cards, and a second sub-service that provides services for bare metal servers that do not carry smart network cards.
  • an electronic device including:
  • the processor is configured to execute a computer program to implement the above disclosed method for checking and deploying bare metal servers.
  • the embodiment of the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing disclosed method for checking and deploying a bare metal server is implemented.
  • the embodiment of the present application proposes a method for checking and deploying a bare metal server, including: using a preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on; When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so as to perform a check on the target bare metal server through the preset check command of the smart network card system process; when the inspection process is completed, it is judged whether the current target bare metal server carries a smart network card, if so, log in to the smart network card system again after the smart network card system has been powered on, and pass the preset deployment of the smart network card system The command executes the deployment process on the target bare metal server.
  • the embodiment of this application uses the preset smart controller plug-in to obtain the feature information of the smart network card system under the OVN (Open Virtual Network, open source community project) and Overlay network, and in the After the smart network card system has been powered on, log in to the smart network card system on the bare metal server based on the characteristic information, so as to switch between the inspection process and the deployment process in the smart network card system.
  • the bare metal server inspection process is realized , and at the same time realize the automatic linkage between the bare metal server inspection process and the deployment process.
  • FIG. 1 is a flow chart of a bare metal server inspection and deployment method disclosed in an embodiment of the present application
  • FIG. 2 is a flow chart of a bare metal server inspection and deployment method disclosed in the embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a bare metal server inspection and deployment method disclosed in an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a bare metal server inspection and deployment device disclosed in an embodiment of the present application.
  • FIG. 5 is a structural diagram of an electronic device disclosed in an embodiment of the present application.
  • the open source community only has the bare metal server deployment process implemented by the Openstack community based on neutron-openvswitch-agent and mellanoxbluefield NICs.
  • the Openstack community based on neutron-openvswitch-agent and mellanoxbluefield NICs.
  • the embodiment of the present application proposes a bare metal server inspection and deployment solution, which can realize the inspection process of the bare metal server and realize the linkage between the inspection process and the deployment process.
  • the embodiment of this application discloses a bare metal server inspection and deployment method, as shown in Figure 1, the method includes:
  • Step S11 Use the preset smart controller plug-in to determine whether the target bare metal server carries the smart network card, and if it carries the smart network card, query whether the smart network card system has been powered on.
  • the embodiment of the present application designs a preset smart controller plug-in, and sets the preset smart controller plug-in in the preset bare metal service (ironic), wherein the preset bare metal service includes carrying The first sub-service that provides services for bare metal servers with smart network cards and the second sub-service that provides services for bare metal servers that do not carry smart network cards. metal server.
  • the preset smart controller plug-in under the OVN (OpenVirtual Network, open source community project) and Overlay networking, the preset smart controller plug-in is used to determine whether the target bare metal server carries a smart network card. If the target bare metal server carries a smart network card, query Whether the iNIC system has been powered on.
  • OVN OpenVirtual Network, open source community project
  • Step S12 When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system according to the characteristic information based on the preset command, so as to check the target bare metal through the preset inspection command of the smart network card system
  • the server performs the check process.
  • the preset smart controller plug-in controls the execution of the preset inspection command of the smart network card system, and then realizes the inspection process of the target bare metal server.
  • providing a cloud computing network controller that supports a large number of virtual machine technologies) can schedule bare metal based on information.
  • Step S13 When the inspection process is completed, determine whether the current target BMS carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system has been powered on, and pass the smart network card system. The preset deployment command executes the deployment process on the target BMS.
  • the inspection process is completed, it is judged whether the current target BMS carries an intelligent network card. If the current target bare metal server carries an intelligent network card, it is checked whether the intelligent network card system has After the system has been powered on, log in to the SmartNIC system again. For example, after checking that the SmartNIC system has been powered on, use the preset smart controller plug-in to obtain the feature information of the SmartNIC, and based on the The information is logged into the smart network card system, so that the preset intelligent controller plug-in can be used to control and execute the preset deployment command of the smart network card system, so as to realize the deployment process of the target bare metal server. For example, the deployment process is mainly to write the user's system image into to the hard disk of the bare metal, and set the hard disk of the bare metal server to start.
  • the embodiment of the present application proposes a BMS inspection and deployment method, including: using the preset smart controller plug-in to determine whether the target BMS carries an INIC, and if it carries an INIC, query whether the INIC system has been completed Power on; when it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so that the target bare metal
  • the server executes the inspection process; when the inspection process is completed, it judges whether the current target bare metal server carries a smart network card.
  • the embodiment of the present application uses the preset smart controller plug-in to obtain the characteristic information of the smart network card system under the network of OVN and Overlay, and executes the deployment process on the smart network card system.
  • the bare metal server inspection process is realized, and at the same time The automated linkage between the bare metal server inspection process and the deployment process is realized.
  • the embodiment of this application discloses a bare metal server inspection and deployment method, as shown in Figure 2, the method includes:
  • Step S21 Use the preset smart controller plug-in to determine whether the preset smart network card flag information exists in the program driver information of the preset bare metal service. If it exists, determine that the target bare metal server carries the smart network card, and then query the smart network card system Whether it has been powered on.
  • the preset smart controller plug-in before using the preset smart controller plug-in to determine whether the target BMS carries a smart network card, it also includes: the login account and password of the target BMS, the baseboard management controller address, The login account, password and IP address of the smart network card, and the preset smart network card logo information (smart_card) are saved in the program driver information (driver_info) of the preset bare metal service; among them, the preset smart network card logo information is the The smart network card flag information determined after judging whether the smart network card is carried in the file.
  • the process of using the preset smart controller plug-in to determine whether the target BMS carries an intelligent network card is: using the preset smart controller plug-in to determine whether there is a preset Set the smart network card flag information, if it exists, determine that the target bare metal server carries the smart network card, and then check whether the smart network card system has been powered on, for example, check whether the preset smart network card system has received
  • the heartbeat signal reported by the controller (ovn-controller) is assumed; if the heartbeat signal reported by the preset controller in the smart network card system is received, it is determined that the smart network card system has been powered on.
  • Step S22 When it is found that the smart network card system has been powered on, obtain the login account and password of the smart network card and the IP (Internet Protocol, Internet Protocol) address from the program driver information of the preset bare metal service, and based on the preset The command logs in to the smart network card system according to the login account, password and IP address of the smart network card, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system.
  • IP Internet Protocol, Internet Protocol
  • the program driver information of the preset bare metal service stores the login account, password and IP address of the smart network card. Therefore, when the smart network card system has been powered on, the preset smart control
  • the server plug-in obtains the login account, password, and IP address of the SmartNIC from the program driver information of the preset bare metal service, and logs in to the SmartNIC system based on the preset command based on the login account, password, and IP address of the SmartNIC, so as to use the preset
  • the smart controller plug-in is set to control and execute the preset inspection command of the smart network card system, so as to realize the inspection process of the target bare metal server.
  • Step S23 After the inspection process is completed, determine whether the current target BMS carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system has been powered on, and pass the smart network card system. The preset deployment command executes the deployment process on the target BMS.
  • the inspection process is completed, it is judged whether the current target BMS carries an intelligent network card. If the current target bare metal server carries an intelligent network card, it is checked whether the intelligent network card system has After the system has been powered on, log in to the SmartNIC system again. For example, after checking that the SmartNIC system has been powered on, use the preset smart controller plug-in to obtain the feature information of the SmartNIC, and based on the The information is logged into the smart network card system, so that the preset intelligent controller plug-in can be used to control and execute the preset deployment command of the smart network card system, so as to realize the deployment process of the target bare metal server.
  • the command determined based on the statement generated by the execution of the inspection command and the statement generated by the deployment command is determined as the preset inspection command;
  • the command identified by the statement generated by the command is identified as the scheduled deployment command. It can be understood that the statements of the above commands can be configured by developers based on their own actual needs.
  • the above-mentioned statement generated based on allowing the execution of the inspection command is configured as systemctl enable inspur-baremetal-inspect
  • the above-mentioned statement generated based on the prohibition of executing the deployment command is configured as systemctl disable inspur-baremetal-deploy
  • the above-mentioned statement generated based on allowing the execution of the deployment command is configured as systemctl enable inspur-baremetal-deploy
  • the above statement generated based on the prohibition of execution inspection command is configured as systemctl disable inspur-baremetal-inspect.
  • the embodiment of the present application discloses a bare metal server inspection and deployment method, including: using the preset smart controller plug-in to determine whether the preset smart network card flag information exists in the program driver information of the preset bare metal service, and if there is , then it is determined that the target BMS carries an iNIC, and then inquires whether the iNIC system has been powered on; Log in account, password and IP address, and log in to the smart network card system based on the login account, password and IP address of the smart network card based on the preset command, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system; After executing the inspection process, judge whether the current target bare metal server carries a smart network card.
  • the preset smart controller plug-in After the system has been powered on, use the preset smart controller plug-in to obtain the characteristic information of the smart network card system, and log in to the smart network card system on the bare metal server based on the characteristic information, so as to check the process and deployment process of the smart network card system In this way, the bare metal server inspection process is realized, and the automatic linkage between the bare metal server inspection process and the deployment process is realized.
  • FIG. 3 is a schematic structural diagram of a BMS inspection and deployment method disclosed in an embodiment of the present application.
  • the embodiment of the present application designs a preset smart controller plug-in.
  • the core innovations of the preset smart controller plug-in include the following parts:
  • the default bare metal service must be compatible with bare metal servers with smart network cards and bare metal servers without smart network cards.
  • the default smart controller plug-in only serves bare metal servers with smart network cards. Therefore, the bare metal Whether the network card in the server is an intelligent network card. It should be pointed out that whether there is a smart network card in the BMS is determined by the administrator. When the BMS is registered, if the BMS carries a smart network card, the label of the preset smart network card logo information will be saved to the preset In the program driver information of bare metal service.
  • the inspection command inspur-baremetal-inspect to control the execution of the inspection process and the deployment command inspur-baremetal-deploy to control the execution of the deployment process are both saved in the smart network card system.
  • the default smart controller plug-in is at the control node, and it needs to be pointed out Yes, if the administrator determines that the server carries a SmartNIC when registering a BMS, the administrator will not only save the label of the preset SmartNIC logo information to the program driver information of the preset BMS, but also save the The account and password, the address of the baseboard management controller, the login account and password of the smart network card, and the IP address are stored in the program driver information of the preset bare metal service.
  • the preset smart controller plug-in will pass the preset command, and log in to the smart network card system according to the login account, password and IP address of the smart network card, and perform the check command or deployment command permission (enable) Or disable (disable) switching.
  • the preset smart controller plug-in It needs to be aware that the iNIC system has been powered on. For example, if a preset controller is installed in the smart network card system, the preset controller will automatically report a heartbeat signal to the control node where the preset smart controller plug-in is located after the system is powered on. The status of the controller is used to judge whether the smart network card system is powered on.
  • the hostname (host name) of the smart network card is uniformly solidified as the IP address of the management network of the bluefield2 smart network card launched by Mellanox. Save the login account and password of the bare metal server, the address of the baseboard management controller, the login account and password of the smart network card, and the IP address, and the preset smart network card flag information determined after judging whether the target bare metal server carries a smart network card To the program driver information of the preset bare metal service.
  • the preset bare metal service calls the preset smart controller plug-in to obtain the preset smart network card logo information, and then judge whether the bare metal server carries a smart network card. If yes, obtain the login account and password of the bare metal server and the address of the baseboard management controller from the program driver information of the preset bare metal service, and use ipmitool (a command line ipmi platform management tool available under the Linux system) ) command to set the bare metal server to start with bois (Basic Input Output System, basic input and output system), and then set the power-on to start.
  • ipmitool a command line ipmi platform management tool available under the Linux system
  • the preset intelligent controller obtains the IP address of the bare metal server and uses the hostname (used to display or set the host name of the system) to query whether the status of the ovn-controlleragent waiting for the node is up.
  • the smart network card system on the BMS will be powered on and started together with the BMS.
  • the preset controller in the smart network card system will report a heartbeat Signal.
  • the preset smart controller plug-in After the preset smart controller plug-in captures the heartbeat signal reported by the preset controller, it determines that the smart network card system has been powered on, and then obtains the login of the smart network card from the program driver information of the preset bare metal service Account, password and IP address, and based on the preset command, log in to the smart network card system according to the login account, password and IP address of the smart network card, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system.
  • the preset smart controller plug-in uses the preset smart controller plug-in to obtain the characteristic information of the smart network card system, and log in to the smart network card system on the bare metal server based on the characteristic information, so as to switch between the inspection process and the deployment process in the smart network card system, and realize the bare metal server
  • the automatic linkage between the inspection process and the deployment process has a relatively high application value.
  • the embodiment of the present application also discloses a bare metal server inspection and deployment device, as shown in Figure 4, the device includes:
  • the query module 11 is configured to use a preset smart controller plug-in to judge whether the target bare metal server carries a smart network card, and if it carries a smart network card, query whether the smart network card system has been powered on;
  • the preset check command execution module 12 is used to obtain the feature information of the smart network card when it is found that the smart network card system has been powered on, and log in to the smart network card system according to the feature information based on the preset command, so as to pass the preset of the smart network card system.
  • the preset deployment command execution module 13 is used to judge whether the current target bare metal server carries a smart network card when the inspection process is completed, and if it carries a smart network card, log in to the smart network card again after the smart network card system has been powered on NIC system, execute the deployment process on the target BMS through the preset deployment command of the smart NIC system.
  • the embodiment of the present application proposes a BMS inspection and deployment method, including: using the preset smart controller plug-in to determine whether the target BMS carries an INIC, and if it carries an INIC, query whether the INIC system has been completed Power on; when it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so that the target bare metal
  • the server executes the inspection process; when the inspection process is completed, it judges whether the current target bare metal server carries a smart network card.
  • the embodiment of the present application uses the preset smart controller plug-in to obtain the characteristic information of the smart network card system under the network of OVN and Overlay, and executes the deployment process on the smart network card system.
  • the bare metal server inspection process is realized, and at the same time The automated linkage between the bare metal server inspection process and the deployment process is realized.
  • Fig. 5 is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram should not be regarded as any limitation on the application scope of the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device 20 provided in an embodiment of the present application.
  • the electronic device 20 may include: at least one processor 21 , at least one memory 22 , a display screen 23 , an input/output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .
  • the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21, so as to implement relevant steps in the method for checking and deploying a bare metal server disclosed in any of the foregoing embodiments.
  • the electronic device 20 in this embodiment may be an electronic computer.
  • the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the embodiment of the present application is not limited here; the input and output interface 24 is used to obtain external input data or output data to the external world, and its interface type can be selected according to application needs, and will not be described here. limited.
  • the memory 22, as a resource storage carrier can be a read-only memory, random access memory, magnetic disk or optical disk, etc., and the resources stored thereon can include the computer program 221, and the storage method can be temporary storage or permanent storage.
  • the computer program 221 includes not only the computer program that can be used to complete the BMS inspection and deployment method performed by the electronic device 20 disclosed in any of the above-mentioned embodiments, but also the computer program that can be used to complete other specific tasks. .
  • the embodiment of the present application also discloses a non-volatile computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing disclosed methods for checking and deploying bare metal servers are implemented.
  • each embodiment in this application is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same or similar parts of each embodiment can be referred to each other.
  • the description is relatively simple, and for relevant details, please refer to the description of the method part.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed in the present application are a bare metal server inspection and deployment method and apparatus, and a device and a medium. The method comprises: determining, by using a preset intelligent controller plug-in, whether a target bare metal server carries an intelligent network card; if so, after it is found by means of querying that an intelligent network card system has been powered on, logging in to the intelligent network card system on the basis of feature information of the intelligent network card and on the basis of a preset command, so as to execute an inspection process; and after the execution of the inspection process is completed, determining whether the target bare metal server currently carries an intelligent network card, and if so, logging in to the intelligent network card system again when the intelligent network card system has been powered on, so as to execute a deployment process. Therefore, in the present application, acquiring feature information of an intelligent network card system using a preset intelligent controller plug-in, and logging in to the intelligent network card system on a bare metal server on the basis of the feature information, so as to perform switching between an inspection process and a deployment process in the intelligent network card system realize the automatic linkage of the inspection process and the deployment process on the bare metal server.

Description

一种裸金属服务器检查及部署方法、装置、设备、介质A bare metal server inspection and deployment method, device, equipment, and medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2022年02月24日提交中国专利局,申请号为202210168905.4,申请名称为“一种裸金属服务器检查及部署方法、装置、设备、介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on February 24, 2022, with the application number 202210168905.4, and the application name is "a bare metal server inspection and deployment method, device, equipment, and medium", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种裸金属服务器检查及部署方法、装置、设备、介质。The present application relates to the field of computer technology, and in particular to a bare metal server inspection and deployment method, device, equipment, and medium.
背景技术Background technique
Overlay网络是建立在已有物理网络上的虚拟网络,具有独立的控制和转发平面,对于连接到Overlay的终端设备(例如服务器)来说,物理网络是透明的,从而可以实现承载网络和业务网络的分离。The Overlay network is a virtual network built on the existing physical network, with independent control and forwarding planes. For terminal devices (such as servers) connected to the Overlay, the physical network is transparent, so that the bearer network and service network can be realized separation.
裸金属服务兼具虚拟机弹性和物理机性能,可以为个人或者企业提供专属的云上物理服务器,并且可以为关键应用系统、高性能计算、大数据、核心数据库等业务提供卓越的计算性能并保证数据安全。在创建裸金属云物理机时可以和创建虚拟机一样,只需指定所需要的硬件要求,如cpu(Central Processing Unit,中央处理器)、内存、镜像以及所需要的网络即可创建出所需要的裸金属云物理机,并且用户可以灵活申请,按需申请使用。Bare metal service has both the elasticity of virtual machines and the performance of physical machines. It can provide individuals or enterprises with dedicated physical servers on the cloud, and can provide excellent computing performance for key application systems, high-performance computing, big data, and core databases Ensure data security. When creating a bare metal cloud physical machine, it can be the same as creating a virtual machine. You only need to specify the required hardware requirements, such as cpu (Central Processing Unit, central processing unit), memory, mirroring, and the required network to create the required Bare metal cloud physical machines, and users can apply flexibly and use them on demand.
但是对于裸金属服务器(BareMetal)的Overlay实现方案却不同于Openstack(云计算开源基础设施项目)上虚拟机Overlay的实现方案。Openstack虚拟机共享占用计算服务器的资源,但是由于计算服务器不会对最终用户暴露,因此可以在计算服务器上部署隧道,以实现虚拟机的Overlay封装与解封装。但对于裸金属服务器场景下,裸金属服务器独占一个计算服务器,这个计算服务器需要完全对最终用户暴露,因此在计算服务器上部署隧道的虚拟机Overlay实现方案不能应用在裸金属服务器场景下。对于裸金属服务器的Overlay目前主要有两种实现方案(1)采用硬SDN(Software Defined Network,软件定义网络),即通过控制物理交换机,对从裸金属服务器进出的报文在物理交换机上进行Overlay的封装与解封装。(2)采用软SDN,借助于智能网卡,在智能网卡系统中实现对裸金属服务器进出报文的封装与解封装。However, the overlay implementation scheme for bare metal servers (BareMetal) is different from the implementation scheme for virtual machine overlay on Openstack (cloud computing open source infrastructure project). Openstack virtual machines share the resources of computing servers, but since computing servers are not exposed to end users, tunnels can be deployed on computing servers to implement Overlay encapsulation and decapsulation of virtual machines. However, in the bare metal server scenario, the bare metal server exclusively occupies a computing server, and this computing server needs to be completely exposed to end users. Therefore, the VM overlay implementation solution of deploying tunnels on the computing server cannot be applied in the bare metal server scenario. Currently, there are two main implementation schemes for the overlay of bare metal servers (1) using hard SDN (Software Defined Network, software defined network), that is, by controlling the physical switch, overlaying the incoming and outgoing packets from the bare metal server on the physical switch Encapsulation and decapsulation. (2) Using soft SDN, with the help of the smart network card, the encapsulation and decapsulation of the incoming and outgoing messages of the bare metal server are realized in the smart network card system.
在借助于智能网卡实现裸金属Overlay的方案下,在实现了裸金属服务器的检查流程和部署流程之后,如何做到检查和部署的自动化联动是一个重要的环节。目前开源社区只有 Openstack社区基于neutron-openvswitch-agent和mellanoxbluefield网卡实现的裸金属服务器部署流程,暂无裸金属服务器检查流程的实现方案也无检查流程与部署流程联动的实现方案。Under the solution of implementing bare metal overlay with the help of smart network cards, after implementing the inspection process and deployment process of bare metal servers, how to realize the automatic linkage of inspection and deployment is an important link. At present, the open source community only has the bare metal server deployment process implemented by the Openstack community based on neutron-openvswitch-agent and mellanoxbluefield NICs. There is currently no implementation plan for the BMS inspection process, nor is there any implementation plan for the linkage between the inspection process and the deployment process.
为此,如何实现裸金属服务器检查流程,以及实现检查流程和部署流程的联动是本领域亟待解决的问题。For this reason, how to realize the inspection process of the bare metal server, and how to realize the linkage between the inspection process and the deployment process is an urgent problem to be solved in this field.
发明内容Contents of the invention
有鉴于此,本申请实施例的目的在于提供一种裸金属服务器检查及部署方法、装置、设备、介质,能够实现裸金属服务器检查流程,以及实现检查流程和部署流程的联动,其方案如下:In view of this, the purpose of the embodiments of the present application is to provide a bare metal server inspection and deployment method, device, equipment, and medium, which can realize the inspection process of the bare metal server and realize the linkage between the inspection process and the deployment process. The scheme is as follows:
第一方面,本申请实施例公开了一种裸金属服务器检查及部署方法,包括:In the first aspect, the embodiment of the present application discloses a bare metal server inspection and deployment method, including:
利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则查询智能网卡系统是否已完成上电;Use the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on;
当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so as to perform a check on the target bare metal server through the preset check command of the smart network card system process;
当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若是则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程。After the inspection process is completed, it is judged whether the current target bare metal server carries a SmartNIC. If so, log in to the SmartNIC system again after the SmartNIC system has been powered on, and use the preset deployment command of the SmartNIC system to configure the The target bare metal server executes the deployment process.
可选的,利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,还包括:Optionally, before using the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, it may also include:
将预设智能控制器插件设置于预设裸金属服务中,其中,预设裸金属服务包括为携带智能网卡的裸金属服务器提供服务的第一子服务以及为不携带智能网卡的裸金属服务器提供服务的第二子服务。Set the default smart controller plug-in in the default bare metal service, where the default bare metal service includes the first sub-service that provides services for bare metal servers that carry smart network cards and provides services for bare metal servers that do not carry smart network cards. The second child service of the service.
可选的,利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,还包括:Optionally, before using the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, it may also include:
将目标裸金属服务器的登录账号与密码以及基板管理控制器地址、智能网卡的登录账号与密码以及网际互联协议IP(Internet Protoco)地址、预设智能网卡标志信息保存至预设裸金属服务的程序驱动信息中;其中,预设智能网卡标志信息为对目标裸金属服务器中是否携带智能网卡进行判断后确定的智能网卡标志信息。The program of saving the login account and password of the target bare metal server, the address of the baseboard management controller, the login account and password of the smart network card, the address of the Internet Protocol IP (Internet Protocol), and the logo information of the preset smart network card to the preset bare metal service In the driver information, the preset smart network card flag information is the smart network card flag information determined after judging whether the target bare metal server carries the smart network card.
可选的,利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则 查询智能网卡系统是否已完成上电,包括:Optionally, use the preset smart controller plug-in to determine whether the target BMS carries a smart network card, and if so, query whether the smart network card system has been powered on, including:
利用预设智能控制器插件,判断预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,若存在,则判定目标裸金属服务器中携带智能网卡,然后查询智能网卡系统是否已完成上电。Use the preset smart controller plug-in to determine whether the preset smart network card logo information exists in the program driver information of the preset bare metal service. If it exists, determine that the target bare metal server carries the smart network card, and then query whether the smart network card system has been completed. Power-on.
可选的,查询智能网卡系统是否已完成上电,包括:Optionally, check whether the iNIC system has been powered on, including:
通过预设智能控制器插件查询是否接收到智能网卡系统中的预设控制器上报的心跳信号;Query whether the heartbeat signal reported by the preset controller in the smart network card system is received through the preset smart controller plug-in;
如果接收到智能网卡系统中的预设控制器上报的心跳信号,则判定智能网卡系统已完成上电。If the heartbeat signal reported by the preset controller in the smart network card system is received, it is determined that the smart network card system has been powered on.
可选的,在通过预设智能控制器插件查询是否接收到智能网卡系统中的预设控制器上报的心跳信号之前,方法还包括:Optionally, before querying whether the heartbeat signal reported by the preset controller in the smart network card system is received through the preset smart controller plug-in, the method further includes:
通过ipmitool命令设置目标裸金属服务器为基本输入输出系统bois(Basic Input Output System)启动,然后设置上电启动;Use the ipmitool command to set the target BMS as the basic input and output system bois (Basic Input Output System), and then set the power-on to start;
在设置目标裸金属服务器基本输入输出系统bois启动并完成上电启动的情况下,智能网卡系统随着目标裸金属服务器一起上电启动。After setting the basic input and output system bois of the target bare metal server and completing the power-on and startup, the smart network card system is powered on and started together with the target bare metal server.
可选的,方法还包括:在智能网卡系统上电完成以后,智能网卡系统中的预设控制器上报心跳信号。Optionally, the method further includes: after the smart network card system is powered on, the preset controller in the smart network card system reports a heartbeat signal.
可选的,当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程,包括:Optionally, when it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so as to check the target naked card through the preset check command of the smart network card system. Metal servers perform an inspection process, including:
当查询到智能网卡系统已完成上电,则从预设裸金属服务的程序驱动信息中获取智能网卡的登录账号与密码以及IP地址,并基于预设命令根据智能网卡的登录账号与密码以及网IP地址登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程。When it is found that the smart network card system has been powered on, the login account, password and IP address of the smart network card are obtained from the program driver information of the preset bare metal service, and the login account, password and network address of the smart network card are obtained based on the preset command. Log in to the iNIC system with the IP address, so that the inspection process can be performed on the target BMS through the preset inspection command of the iNIC system.
可选的,通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程,包括:Optionally, execute the inspection process on the target BMS through the preset inspection command of the iNIC system, including:
利用预设智能控制器插件控制执行智能网卡系统的预设检查命令,以对目标裸金属服务器执行检查流程。Use the preset intelligent controller plug-in to control and execute the preset check command of the smart network card system, so as to execute the check process on the target bare metal server.
可选的,对目标裸金属服务器执行检查流程,包括:Optionally, perform an inspection process on the target BMS, including:
获取目标裸金属服务器的信息,其中,目标裸金属服务器的信息包括目标裸金属服务器的中央处理器CPU和内存,目标裸金属服务器的信息用于调度目标裸金属服务器。Obtain the information of the target bare metal server, where the information of the target bare metal server includes the CPU and memory of the target bare metal server, and the information of the target bare metal server is used to schedule the target bare metal server.
可选的,判断当前目标裸金属服务器中是否携带智能网卡,包括:Optionally, determine whether the current target BMS carries an iNIC, including:
读取预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,进而判断目标裸金属服务器中是否携带智能网卡。Read whether the preset smart network card flag information exists in the program driver information of the preset bare metal service, and then determine whether the target bare metal server carries the smart network card.
可选的,将预设智能网卡标志信息保存至预设裸金属服务的程序驱动信息中,包括:Optionally, save the preset iNIC flag information to the program driver information of the preset bare metal service, including:
在目标裸金属服务器注册时,如果目标裸金属服务器携带智能网卡,则将预设智能网卡标志信息的标签保存至预设裸金属服务的程序驱动信息中。When the target bare metal server is registered, if the target bare metal server carries a smart network card, save the label of the preset smart network card logo information to the program driver information of the preset bare metal server.
可选的,通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,包括:Optionally, execute the deployment process on the target BMS through the preset deployment command of the iNIC system, including:
利用预设智能控制器插件控制执行智能网卡系统的预设部署命令,以对目标裸金属服务器执行部署流程。Use the preset intelligent controller plug-in to control and execute the preset deployment command of the smart network card system, so as to execute the deployment process on the target bare metal server.
可选的,对目标裸金属服务器执行部署流程,包括:Optionally, execute the deployment process on the target BMS, including:
将用户的系统镜像写入至目标裸金属服务器的硬盘中,并设置目标裸金属服务器的硬盘启动。Write the user's system image to the hard disk of the target BMS, and set the hard disk of the target BMS to start.
可选的,在检查流程或者部署流程开始前,方法还包括:Optionally, before the inspection process or the deployment process starts, the method further includes:
预设智能控制器插件通过预设命令,根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,进行预设检查命令或者预设部署命令的允许或禁止的切换。The preset smart controller plug-in logs in to the smart network card system through the preset command according to the login account, password and IP address of the smart network card, and performs the switching of allowing or prohibiting the preset check command or the preset deployment command.
可选的,裸金属服务器检查及部署方法,还包括:Optionally, the BMS inspection and deployment method also includes:
将基于允许执行检查命令生成的语句与禁止执行部署命令生成的语句确定的命令确定为预设检查命令;Determining the command determined based on the statement generated by allowing the execution of the inspection command and the statement generated by prohibiting the execution of the deployment command as the preset inspection command;
将基于允许执行部署命令生成的语句与禁止执行检查命令生成的语句确定的命令确定为预设部署命令。The command determined based on the statement generated by the execution of the deployment command and the statement generated by the prohibition of execution of the check command is determined as the preset deployment command.
第二方面,本申请实施例公开了一种裸金属服务器检查及部署装置,包括:In the second aspect, the embodiment of the present application discloses a bare metal server inspection and deployment device, including:
查询模块,用于利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则查询智能网卡系统是否已完成上电;A query module, configured to use a preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on;
预设检查命令执行模块,用于当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;The preset checking command execution module is used to obtain the characteristic information of the smart network card when it is found that the smart network card system has been powered on, and log in to the smart network card system based on the preset command according to the characteristic information, so as to pass the preset function of the smart network card system. The check command executes the check process on the target bare metal server;
预设部署命令执行模块,用于当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若是则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程。The preset deployment command execution module is used to judge whether the current target bare metal server carries a smart network card after the inspection process is completed, and if so, log in to the smart network card system again after the smart network card system has been powered on, and pass The preset deployment command of the iNIC system executes the deployment process on the target BMS.
可选的,所述装置还包括:Optionally, the device also includes:
设置模块,被设置为所述利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,将预设智能控制器插件设置于预设裸金属服务中,其中,所述预设裸金属服务包括为携带智能网卡的裸金属服务器提供服务的第一子服务以及为不携带智能网卡的裸金属服务器提供服务的第二子服务。The setting module is configured to set the preset smart controller plug-in in the preset bare metal service before using the preset smart controller plug-in to determine whether the target bare metal server carries an intelligent network card, wherein the preset bare metal server The metal service includes a first sub-service that provides services for bare metal servers that carry smart network cards, and a second sub-service that provides services for bare metal servers that do not carry smart network cards.
第三方面,本申请实施例公开了一种电子设备,包括:In a third aspect, the embodiment of the present application discloses an electronic device, including:
存储器,用于保存计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序,以实现前述公开的裸金属服务器检查及部署方法。The processor is configured to execute a computer program to implement the above disclosed method for checking and deploying bare metal servers.
第四方面,本申请实施例公开了一种计算机可读存储介质,用于保存计算机程序;其中,计算机程序被处理器执行时实现前述公开的裸金属服务器检查及部署方法。In a fourth aspect, the embodiment of the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing disclosed method for checking and deploying a bare metal server is implemented.
可见,本申请实施例提出了一种裸金属服务器检查及部署方法,包括:利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则查询智能网卡系统是否已完成上电;当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若是则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,可见,本申请实施例在OVN(Open Virtual Network,开源社区项目)与Overlay组网下,利用预设智能控制器插件获取智能网卡系统的特征信息,并在智能网卡系统已完成上电的情况下,基于特征信息登录至裸金属服务器上的智能网卡系统,以便对智能网卡系统中检查流程以及部署流程进行切换,如此一来,实现了裸金属服务器检查流程,同时实现了裸金属服务器检查流程与部署流程的自动化联动。It can be seen that the embodiment of the present application proposes a method for checking and deploying a bare metal server, including: using a preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on; When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so as to perform a check on the target bare metal server through the preset check command of the smart network card system process; when the inspection process is completed, it is judged whether the current target bare metal server carries a smart network card, if so, log in to the smart network card system again after the smart network card system has been powered on, and pass the preset deployment of the smart network card system The command executes the deployment process on the target bare metal server. It can be seen that the embodiment of this application uses the preset smart controller plug-in to obtain the feature information of the smart network card system under the OVN (Open Virtual Network, open source community project) and Overlay network, and in the After the smart network card system has been powered on, log in to the smart network card system on the bare metal server based on the characteristic information, so as to switch between the inspection process and the deployment process in the smart network card system. In this way, the bare metal server inspection process is realized , and at the same time realize the automatic linkage between the bare metal server inspection process and the deployment process.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is the embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例公开的一种裸金属服务器检查及部署方法流程图;FIG. 1 is a flow chart of a bare metal server inspection and deployment method disclosed in an embodiment of the present application;
图2为本申请实施例公开的一种裸金属服务器检查及部署方法流程图;FIG. 2 is a flow chart of a bare metal server inspection and deployment method disclosed in the embodiment of the present application;
图3为本申请实施例公开的一种裸金属服务器检查及部署方法的结构示意图;FIG. 3 is a schematic structural diagram of a bare metal server inspection and deployment method disclosed in an embodiment of the present application;
图4为本申请实施例公开的一种裸金属服务器检查及部署装置结构示意图;FIG. 4 is a schematic structural diagram of a bare metal server inspection and deployment device disclosed in an embodiment of the present application;
图5为本申请实施例公开的一种电子设备结构图。FIG. 5 is a structural diagram of an electronic device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请实施例保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the embodiments of the present application.
目前开源社区只有Openstack社区基于neutron-openvswitch-agent和mellanoxbluefield网卡实现的裸金属服务器部署流程,暂无裸金属服务器检查流程的实现方案也无检查流程与部署流程联动的实现方案。At present, the open source community only has the bare metal server deployment process implemented by the Openstack community based on neutron-openvswitch-agent and mellanoxbluefield NICs. There is currently no implementation plan for the BMS inspection process, nor is there any implementation plan for the linkage between the inspection process and the deployment process.
为此,本申请实施例提出一种裸金属服务器检查及部署方案,能够实现裸金属服务器检查流程,以及实现检查流程和部署流程的联动。For this reason, the embodiment of the present application proposes a bare metal server inspection and deployment solution, which can realize the inspection process of the bare metal server and realize the linkage between the inspection process and the deployment process.
本申请实施例公开了一种裸金属服务器检查及部署方法,参见图1所示,该方法包括:The embodiment of this application discloses a bare metal server inspection and deployment method, as shown in Figure 1, the method includes:
步骤S11:利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若携带智能网卡则查询智能网卡系统是否已完成上电。Step S11: Use the preset smart controller plug-in to determine whether the target bare metal server carries the smart network card, and if it carries the smart network card, query whether the smart network card system has been powered on.
需要指出的是,本申请实施例设计了一种预设智能控制器插件,并将预设智能控制器插件设置于预设裸金属服务(ironic)中,其中,预设裸金属服务包括为携带智能网卡的裸金属服务器提供服务的第一子服务以及为不携带智能网卡的裸金属服务器提供服务的第二子服务,本申请实施例中的预设智能控制器插件服务于携带智能网卡的裸金属服务器。本申请实施例在OVN(OpenVirtual Network,开源社区项目)与Overlay组网下,利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若目标裸金属服务器中携带智能网卡,则查询智能网卡系统是否已完成上电。It should be pointed out that the embodiment of the present application designs a preset smart controller plug-in, and sets the preset smart controller plug-in in the preset bare metal service (ironic), wherein the preset bare metal service includes carrying The first sub-service that provides services for bare metal servers with smart network cards and the second sub-service that provides services for bare metal servers that do not carry smart network cards. metal server. In the embodiment of this application, under the OVN (OpenVirtual Network, open source community project) and Overlay networking, the preset smart controller plug-in is used to determine whether the target bare metal server carries a smart network card. If the target bare metal server carries a smart network card, query Whether the iNIC system has been powered on.
步骤S12:当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程。Step S12: When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system according to the characteristic information based on the preset command, so as to check the target bare metal through the preset inspection command of the smart network card system The server performs the check process.
本实施例中,在查询到智能网卡系统已完成上电后,利用预设智能控制器插件获取智能网卡的特征信息,并基于预设命令(sshpass)根据特征信息登录至智能网卡系统,以便利用预设智能控制器插件控制执行智能网卡系统的预设检查命令,进而实现对目标裸金属服务器的检查流程,比如,检查流程主要是获取裸金属服务器的CPU、内存等信息,方便nova(OpenStack组件,提供一个云计算网络控制器,支持大量的虚拟机技术)能够根据信息调度裸机。In this embodiment, after the smart network card system has been powered on, use the preset smart controller plug-in to obtain the feature information of the smart network card, and log in to the smart network card system based on the feature information based on the preset command (sshpass), so as to use The preset intelligent controller plug-in controls the execution of the preset inspection command of the smart network card system, and then realizes the inspection process of the target bare metal server. , providing a cloud computing network controller that supports a large number of virtual machine technologies) can schedule bare metal based on information.
步骤S13:当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程。Step S13: When the inspection process is completed, determine whether the current target BMS carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system has been powered on, and pass the smart network card system. The preset deployment command executes the deployment process on the target BMS.
本实施例中,当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若当前目标裸金属服务器中携带智能网卡,则查询智能网卡系统是否已完成上电,并在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,比如,在查询到智能网卡系统已完成上电后,利用预设智能控制器插件获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便利用预设智能控制器插件控制执行智能网卡系统的预设部署命令,进而实现对目标裸金属服务器的部署流程,比如,部署流程主要是将用户的系统镜像写入至裸金属的硬盘中,并设置裸金属服务器硬盘启动。In this embodiment, after the inspection process is completed, it is judged whether the current target BMS carries an intelligent network card. If the current target bare metal server carries an intelligent network card, it is checked whether the intelligent network card system has After the system has been powered on, log in to the SmartNIC system again. For example, after checking that the SmartNIC system has been powered on, use the preset smart controller plug-in to obtain the feature information of the SmartNIC, and based on the The information is logged into the smart network card system, so that the preset intelligent controller plug-in can be used to control and execute the preset deployment command of the smart network card system, so as to realize the deployment process of the target bare metal server. For example, the deployment process is mainly to write the user's system image into to the hard disk of the bare metal, and set the hard disk of the bare metal server to start.
可见,本申请实施例提出了一种裸金属服务器检查及部署方法,包括:利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若携带智能网卡则查询智能网卡系统是否已完成上电;当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,可见,本申请实施例在OVN与Overlay组网下,利用预设智能控制器插件获取智能网卡系统的特征信息,并在智能网卡系统已完成上电的情况下,基于特征信息登录至裸金属服务器上的智能网卡系统,以便对智能网卡系统中检查流程以及部署流程进行切换,如此一来,实现了裸金属服务器检查流程,同时实现了裸金属服务器检查流程与部署流程的自动化联动。It can be seen that the embodiment of the present application proposes a BMS inspection and deployment method, including: using the preset smart controller plug-in to determine whether the target BMS carries an INIC, and if it carries an INIC, query whether the INIC system has been completed Power on; when it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so that the target bare metal The server executes the inspection process; when the inspection process is completed, it judges whether the current target bare metal server carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system The default deployment command of the network card system executes the deployment process on the target bare metal server. It can be seen that the embodiment of the present application uses the preset smart controller plug-in to obtain the characteristic information of the smart network card system under the network of OVN and Overlay, and executes the deployment process on the smart network card system. After the power-on is completed, log in to the smart network card system on the bare metal server based on the feature information, so as to switch the inspection process and deployment process in the smart network card system. In this way, the bare metal server inspection process is realized, and at the same time The automated linkage between the bare metal server inspection process and the deployment process is realized.
本申请实施例公开了一种裸金属服务器检查及部署方法,参见图2所示,该方法包括:The embodiment of this application discloses a bare metal server inspection and deployment method, as shown in Figure 2, the method includes:
步骤S21:利用预设智能控制器插件,判断预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,若存在,则判定目标裸金属服务器中携带智能网卡,然后查询智能网卡系统是否已完成上电。Step S21: Use the preset smart controller plug-in to determine whether the preset smart network card flag information exists in the program driver information of the preset bare metal service. If it exists, determine that the target bare metal server carries the smart network card, and then query the smart network card system Whether it has been powered on.
需要指出的是,本实施例中,在利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,还包括:将目标裸金属服务器的登录账号与密码以及基板管理控制器地址、智能网卡的登录账号与密码以及IP地址、预设智能网卡标志信息(smart_card)保存至预设裸金属服务的程序驱动信息(driver_info)中;其中,预设智能网卡标志信息为对目标裸金属服务器中是否携带智能网卡进行判断后确定的智能网卡标志信息。It should be pointed out that in this embodiment, before using the preset smart controller plug-in to determine whether the target BMS carries a smart network card, it also includes: the login account and password of the target BMS, the baseboard management controller address, The login account, password and IP address of the smart network card, and the preset smart network card logo information (smart_card) are saved in the program driver information (driver_info) of the preset bare metal service; among them, the preset smart network card logo information is the The smart network card flag information determined after judging whether the smart network card is carried in the file.
因此,本实施例中,利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡的过程是:利用预设智能控制器插件,判断预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,若存在,则判定目标裸金属服务器中携带智能网卡,然后查询智能网卡系统是否已完成上电,比如,通过预设智能控制器插件查询是否接收到智能网卡系统中的预设控制器(ovn-controller)上报的心跳信号;如果接收到智能网卡系统中的预设控制器上报的心跳信号,则判定智能网卡系统已完成上电。Therefore, in this embodiment, the process of using the preset smart controller plug-in to determine whether the target BMS carries an intelligent network card is: using the preset smart controller plug-in to determine whether there is a preset Set the smart network card flag information, if it exists, determine that the target bare metal server carries the smart network card, and then check whether the smart network card system has been powered on, for example, check whether the preset smart network card system has received The heartbeat signal reported by the controller (ovn-controller) is assumed; if the heartbeat signal reported by the preset controller in the smart network card system is received, it is determined that the smart network card system has been powered on.
步骤S22:当查询到智能网卡系统已完成上电,则从预设裸金属服务的程序驱动信息中获取智能网卡的登录账号与密码以及IP(Internet Protocol,网际互联协议)地址,并基于预设命令根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程。Step S22: When it is found that the smart network card system has been powered on, obtain the login account and password of the smart network card and the IP (Internet Protocol, Internet Protocol) address from the program driver information of the preset bare metal service, and based on the preset The command logs in to the smart network card system according to the login account, password and IP address of the smart network card, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system.
根据前述公开的实施例可知,预设裸金属服务的程序驱动信息中保存了智能网卡的登录账号与密码以及IP地址,因此,当查询到智能网卡系统已完成上电,则利用预设智能控制器插件从预设裸金属服务的程序驱动信息中获取智能网卡的登录账号与密码以及IP地址,并基于预设命令根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,以便利用预设智能控制器插件控制执行智能网卡系统的预设检查命令,进而实现对目标裸金属服务器的检查流程。According to the aforementioned disclosed embodiments, the program driver information of the preset bare metal service stores the login account, password and IP address of the smart network card. Therefore, when the smart network card system has been powered on, the preset smart control The server plug-in obtains the login account, password, and IP address of the SmartNIC from the program driver information of the preset bare metal service, and logs in to the SmartNIC system based on the preset command based on the login account, password, and IP address of the SmartNIC, so as to use the preset The smart controller plug-in is set to control and execute the preset inspection command of the smart network card system, so as to realize the inspection process of the target bare metal server.
步骤S23:当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程。Step S23: After the inspection process is completed, determine whether the current target BMS carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system has been powered on, and pass the smart network card system. The preset deployment command executes the deployment process on the target BMS.
本实施例中,当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若当前目标裸金属服务器中携带智能网卡,则查询智能网卡系统是否已完成上电,并在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,比如,在查询到智能网卡系统已完成上电后,利用预设智能控制器插件获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便利用预设智能控制器插件控制执行智能网卡系统的预设部署命令,进而实现对目标裸金属服务器的部署流程。In this embodiment, after the inspection process is completed, it is judged whether the current target BMS carries an intelligent network card. If the current target bare metal server carries an intelligent network card, it is checked whether the intelligent network card system has After the system has been powered on, log in to the SmartNIC system again. For example, after checking that the SmartNIC system has been powered on, use the preset smart controller plug-in to obtain the feature information of the SmartNIC, and based on the The information is logged into the smart network card system, so that the preset intelligent controller plug-in can be used to control and execute the preset deployment command of the smart network card system, so as to realize the deployment process of the target bare metal server.
本实施例中,需要指出的是,将基于允许执行检查命令生成的语句与禁止执行部署命令生成的语句确定的命令确定为预设检查命令;将基于允许执行部署命令生成的语句与禁止执行检查命令生成的语句确定的命令确定为预设部署命令。可以理解的是,上述各个命令的语句可以由开发人员基于自身实际需要来进行相应的配置。例如,上述基于允许执行检查命令生成的语句被配置为systemctl enable inspur-baremetal-inspect,上述基于禁止执行部署命 令生成的语句被配置为systemctl disable inspur-baremetal-deploy;上述基于允许执行部署命令生成的语句被配置为systemctl enable inspur-baremetal-deploy,上述基于禁止执行检查命令生成的语句被配置为systemctl disable inspur-baremetal-inspect。In this embodiment, it should be pointed out that the command determined based on the statement generated by the execution of the inspection command and the statement generated by the deployment command is determined as the preset inspection command; The command identified by the statement generated by the command is identified as the scheduled deployment command. It can be understood that the statements of the above commands can be configured by developers based on their own actual needs. For example, the above-mentioned statement generated based on allowing the execution of the inspection command is configured as systemctl enable inspur-baremetal-inspect, and the above-mentioned statement generated based on the prohibition of executing the deployment command is configured as systemctl disable inspur-baremetal-deploy; the above-mentioned statement generated based on allowing the execution of the deployment command The statement is configured as systemctl enable inspur-baremetal-deploy, and the above statement generated based on the prohibition of execution inspection command is configured as systemctl disable inspur-baremetal-inspect.
可见,本申请实施例公开了一种裸金属服务器检查及部署方法,包括:利用预设智能控制器插件,判断预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,若存在,则判定目标裸金属服务器中携带智能网卡,然后查询智能网卡系统是否已完成上电;当查询到智能网卡系统已完成上电,则从预设裸金属服务的程序驱动信息中获取智能网卡的登录账号与密码以及IP地址,并基于预设命令根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,可见,本申请实施例在OVN与Overlay组网下,在判断出预设裸金属服务的程序驱动信息中存在预设智能网卡标志信息,并且查询到智能网卡系统已完成上电的情况下,利用预设智能控制器插件获取智能网卡系统的特征信息,并基于特征信息登录至裸金属服务器上的智能网卡系统,以便对智能网卡系统中检查流程以及部署流程进行切换,如此一来,实现了裸金属服务器检查流程,同时实现了裸金属服务器检查流程与部署流程的自动化联动。It can be seen that the embodiment of the present application discloses a bare metal server inspection and deployment method, including: using the preset smart controller plug-in to determine whether the preset smart network card flag information exists in the program driver information of the preset bare metal service, and if there is , then it is determined that the target BMS carries an iNIC, and then inquires whether the iNIC system has been powered on; Log in account, password and IP address, and log in to the smart network card system based on the login account, password and IP address of the smart network card based on the preset command, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system; After executing the inspection process, judge whether the current target bare metal server carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system has been powered on, and pass the preset deployment of the smart network card system. The command executes the deployment process on the target bare metal server. It can be seen that in the embodiment of this application, under the OVN and Overlay networking, it is judged that the preset smart network card flag information exists in the program driver information of the preset bare metal service, and the smart network card is found. After the system has been powered on, use the preset smart controller plug-in to obtain the characteristic information of the smart network card system, and log in to the smart network card system on the bare metal server based on the characteristic information, so as to check the process and deployment process of the smart network card system In this way, the bare metal server inspection process is realized, and the automatic linkage between the bare metal server inspection process and the deployment process is realized.
图3为本申请实施例公开的一种裸金属服务器检查及部署方法的结构示意图。FIG. 3 is a schematic structural diagram of a BMS inspection and deployment method disclosed in an embodiment of the present application.
参见图3所示,本申请实施例设计了一种预设智能控制器插件,比如,预设智能控制器插件的核心创新点包括以下几部分:Referring to Figure 3, the embodiment of the present application designs a preset smart controller plug-in. For example, the core innovations of the preset smart controller plug-in include the following parts:
(1)、预设裸金属服务须兼容带智能网卡的裸金属服务器和不带智能网卡的裸金属服务器,预设智能控制器插件只服务带智能网卡的裸金属服务器,因此,应判断裸金属服务器中的网卡是否为智能网卡。需要指出的是,裸金属服务器中是否存在智能网卡是由管理员决定的,在裸金属服务器注册时,如果该裸金属服务器携带智能网卡,则将预设智能网卡标志信息的标签保存至预设裸金属服务的程序驱动信息中。在触发检查或者部署的流程中会去读取预设裸金属服务的程序驱动信息中是否存在预设智能网卡标志信息,进而判断裸金属服务器是否携带智能网卡。需要指出的是,对智能网卡和非智能网卡需执行不同流程,在此不做赘述。(1) The default bare metal service must be compatible with bare metal servers with smart network cards and bare metal servers without smart network cards. The default smart controller plug-in only serves bare metal servers with smart network cards. Therefore, the bare metal Whether the network card in the server is an intelligent network card. It should be pointed out that whether there is a smart network card in the BMS is determined by the administrator. When the BMS is registered, if the BMS carries a smart network card, the label of the preset smart network card logo information will be saved to the preset In the program driver information of bare metal service. In the process of triggering inspection or deployment, it will read whether the preset smart network card flag information exists in the program driver information of the preset bare metal server, and then determine whether the bare metal server carries a smart network card. It should be pointed out that different processes need to be executed for the smart network card and the non-smart network card, and details are not described here.
(2)、控制执行检查流程的检查命令inspur-baremetal-inspect与控制执行部署流程的部署命令inspur-baremetal-deploy都保存至智能网卡系统中,预设智能控制器插件处于控制节 点,需要指出的是,管理员在注册裸金属服务器时如果判定该服务器携带智能网卡,不仅会将预设智能网卡标志信息的标签保存至预设裸金属服务的程序驱动信息中,还会将裸金属服务器的登录账号与密码以及基板管理控制器地址、智能网卡的登录账号与密码以及IP地址保存至预设裸金属服务的程序驱动信息中。在检查流程或者部署流程开始前,预设智能控制器插件会通过预设命令,并根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,进行检查命令或者部署命令的允许(enable)或禁止(disable)的切换。(2) The inspection command inspur-baremetal-inspect to control the execution of the inspection process and the deployment command inspur-baremetal-deploy to control the execution of the deployment process are both saved in the smart network card system. The default smart controller plug-in is at the control node, and it needs to be pointed out Yes, if the administrator determines that the server carries a SmartNIC when registering a BMS, the administrator will not only save the label of the preset SmartNIC logo information to the program driver information of the preset BMS, but also save the The account and password, the address of the baseboard management controller, the login account and password of the smart network card, and the IP address are stored in the program driver information of the preset bare metal service. Before the inspection process or deployment process starts, the preset smart controller plug-in will pass the preset command, and log in to the smart network card system according to the login account, password and IP address of the smart network card, and perform the check command or deployment command permission (enable) Or disable (disable) switching.
(3)、需要指出的是,预设智能控制器插件登录至智能网卡系统进行检查命令或者部署命令的允许或禁止的切换的前提是智能网卡系统已上电,因此,预设智能控制器插件需要感知智能网卡系统已完成上电。比如,智能网卡系统中安装了预设控制器,预设控制器在系统上电之后会自动向预设智能控制器插件所在的控制节点上报心跳信号,预设智能控制器插件通过不断查询预设控制器的状态来判断智能网卡系统是否完成上电。(3) It should be pointed out that the prerequisite for the preset smart controller plug-in to log in to the smart network card system to check the command or switch the permission or prohibition of the deployment command is that the smart network card system has been powered on. Therefore, the preset smart controller plug-in It needs to be aware that the iNIC system has been powered on. For example, if a preset controller is installed in the smart network card system, the preset controller will automatically report a heartbeat signal to the control node where the preset smart controller plug-in is located after the system is powered on. The status of the controller is used to judge whether the smart network card system is powered on.
基于图3本申请实施例公开的裸金属服务器检查及部署方法的结构示意图,本申请实施例实现的方式为:Based on the schematic structural diagram of the bare metal server inspection and deployment method disclosed in the embodiment of the present application in Figure 3, the implementation method of the embodiment of the present application is as follows:
(1)、给裸金属服务器的智能网卡系统装机,装机完成后将智能网卡的hostname(主机名)统一固化为Mellanox推出的bluefield2智能网卡的管理网的IP地址。将裸金属服务器的登录账号与密码以及基板管理控制器地址、智能网卡的登录账号与密码以及IP地址、基于对目标裸金属服务器中是否携带智能网卡进行判断后确定的预设智能网卡标志信息保存至预设裸金属服务的程序驱动信息中。(1) Install the smart network card system of the bare metal server. After the installation is completed, the hostname (host name) of the smart network card is uniformly solidified as the IP address of the management network of the bluefield2 smart network card launched by Mellanox. Save the login account and password of the bare metal server, the address of the baseboard management controller, the login account and password of the smart network card, and the IP address, and the preset smart network card flag information determined after judging whether the target bare metal server carries a smart network card To the program driver information of the preset bare metal service.
(2)、触发预设裸金属服务对裸金属服务器的检查流程,预设裸金属服务调用预设智能控制器插件去通过获取预设智能网卡标志信息,进而判断裸金属服务器是否携带智能网卡。如果是则从预设裸金属服务的程序驱动信息中获取该裸金属服务器的登录账号与密码以及基板管理控制器地址,通过ipmitool(一种可用在linux系统下的命令行方式的ipmi平台管理工具)命令设置裸金属服务器为bois(Basic Input Output System,基本输入输出系统)启动,然后设置上电启动。然后预设智能控制器获取裸金属服务器的IP地址通过hostname(用以显示或设置系统的主机名称)去查询等待该节点的ovn-controlleragent的状态是否为up。在设置裸金属服务器bios启动并完成上电启动之后,裸金属服务器上的智能网卡系统会随着裸金属服务器一起上电启动,上电完成以后,智能网卡系统中的预设控制器会上报心跳信号。(2) Trigger the inspection process of the BMS by the preset bare metal service. The preset bare metal service calls the preset smart controller plug-in to obtain the preset smart network card logo information, and then judge whether the bare metal server carries a smart network card. If yes, obtain the login account and password of the bare metal server and the address of the baseboard management controller from the program driver information of the preset bare metal service, and use ipmitool (a command line ipmi platform management tool available under the Linux system) ) command to set the bare metal server to start with bois (Basic Input Output System, basic input and output system), and then set the power-on to start. Then the preset intelligent controller obtains the IP address of the bare metal server and uses the hostname (used to display or set the host name of the system) to query whether the status of the ovn-controlleragent waiting for the node is up. After setting the bios of the BMS to start and completing the power-on and start-up, the smart network card system on the BMS will be powered on and started together with the BMS. After the power-on is completed, the preset controller in the smart network card system will report a heartbeat Signal.
(3)、当预设智能控制器插件捕获到预设控制器上报的心跳信号之后,则判定智能网卡系统已完成上电,然后从预设裸金属服务的程序驱动信息中获取智能网卡的登录账号与密码 以及IP地址,并基于预设命令根据智能网卡的登录账号与密码以及IP地址登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程。(3) After the preset smart controller plug-in captures the heartbeat signal reported by the preset controller, it determines that the smart network card system has been powered on, and then obtains the login of the smart network card from the program driver information of the preset bare metal service Account, password and IP address, and based on the preset command, log in to the smart network card system according to the login account, password and IP address of the smart network card, so as to execute the check process on the target bare metal server through the preset check command of the smart network card system.
(4)、当执行完检查流程,则开始对裸金属服务器进行装机部署,比如,通过预设裸金属服务调用预设智能控制器插件判断当前目标裸金属服务器中是否携带智能网卡,并在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,如此一来,本申请实施例在OVN与Overlay组网下,利用预设智能控制器插件获取智能网卡系统的特征信息,并基于特征信息登录至裸金属服务器上的智能网卡系统,以便对智能网卡系统中检查流程以及部署流程进行切换,实现了裸金属服务器检查流程与部署流程的自动化联动,应用价值比较高。(4) When the inspection process is completed, start to install and deploy the bare metal server. For example, call the preset smart controller plug-in through the preset bare metal service to determine whether the current target bare metal server carries a smart network card, and After the network card system has been powered on, log in to the smart network card system again, and execute the deployment process on the target bare metal server through the preset deployment command of the smart network card system. , use the preset smart controller plug-in to obtain the characteristic information of the smart network card system, and log in to the smart network card system on the bare metal server based on the characteristic information, so as to switch between the inspection process and the deployment process in the smart network card system, and realize the bare metal server The automatic linkage between the inspection process and the deployment process has a relatively high application value.
相应的,本申请实施例还公开了一种裸金属服务器检查及部署装置,参见图4所示,该装置包括:Correspondingly, the embodiment of the present application also discloses a bare metal server inspection and deployment device, as shown in Figure 4, the device includes:
查询模块11,用于利用预设智能控制器插件判断目标裸金属服务器中是否携带有智能网卡,若携带智能网卡则查询智能网卡系统是否已完成上电;The query module 11 is configured to use a preset smart controller plug-in to judge whether the target bare metal server carries a smart network card, and if it carries a smart network card, query whether the smart network card system has been powered on;
预设检查命令执行模块12,用于当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;The preset check command execution module 12 is used to obtain the feature information of the smart network card when it is found that the smart network card system has been powered on, and log in to the smart network card system according to the feature information based on the preset command, so as to pass the preset of the smart network card system. Set the inspection command to execute the inspection process on the target bare metal server;
预设部署命令执行模块13,用于当执行完检查流程,则判断当前目标裸金属服务器中是否携带有智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程。The preset deployment command execution module 13 is used to judge whether the current target bare metal server carries a smart network card when the inspection process is completed, and if it carries a smart network card, log in to the smart network card again after the smart network card system has been powered on NIC system, execute the deployment process on the target BMS through the preset deployment command of the smart NIC system.
其中,关于上述各个模块的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Wherein, regarding the working process of each of the above modules, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
可见,本申请实施例提出了一种裸金属服务器检查及部署方法,包括:利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若携带智能网卡则查询智能网卡系统是否已完成上电;当查询到智能网卡系统已完成上电,则获取智能网卡的特征信息,并基于预设命令根据特征信息登录至智能网卡系统,以便通过智能网卡系统的预设检查命令对目标裸金属服务器执行检查流程;当执行完检查流程,则判断当前目标裸金属服务器中是否携带智能网卡,若携带智能网卡则在智能网卡系统已完成上电的情况下再次登录至智能网卡系统,并通过智能网卡系统的预设部署命令对目标裸金属服务器执行部署流程,可见,本申请实施例在OVN与Overlay组网下,利用预设智能控制器插件获取智能网卡系统的特征信息,并在智能网卡系统已完成上电的情况下,基于特征信息登录至裸金属服务器上的智能网卡系 统,以便对智能网卡系统中检查流程以及部署流程进行切换,如此一来,实现了裸金属服务器检查流程,同时实现了裸金属服务器检查流程与部署流程的自动化联动。It can be seen that the embodiment of the present application proposes a BMS inspection and deployment method, including: using the preset smart controller plug-in to determine whether the target BMS carries an INIC, and if it carries an INIC, query whether the INIC system has been completed Power on; when it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the characteristic information based on the preset command, so that the target bare metal The server executes the inspection process; when the inspection process is completed, it judges whether the current target bare metal server carries a smart network card. If it carries a smart network card, log in to the smart network card system again after the smart network card system The default deployment command of the network card system executes the deployment process on the target bare metal server. It can be seen that the embodiment of the present application uses the preset smart controller plug-in to obtain the characteristic information of the smart network card system under the network of OVN and Overlay, and executes the deployment process on the smart network card system. After the power-on is completed, log in to the smart network card system on the bare metal server based on the feature information, so as to switch the inspection process and deployment process in the smart network card system. In this way, the bare metal server inspection process is realized, and at the same time The automated linkage between the bare metal server inspection process and the deployment process is realized.
本申请实施例还提供了一种电子设备。图5是根据一示例性实施例示出的电子设备20结构图,图中的内容不能认为是对本申请实施例的使用范围的任何限制。The embodiment of the present application also provides an electronic device. Fig. 5 is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram should not be regarded as any limitation on the application scope of the embodiment of the present application.
图5为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,可以包括:至少一个处理器21、至少一个存储器22、显示屏23、输入输出接口24、通信接口25、电源26、和通信总线27。其中,存储器22用于存储计算机程序,计算机程序由处理器21加载并执行,以实现前述任一实施例公开的裸金属服务器检查及部署方法中的相关步骤。另外,本实施例中的电子设备20可以为电子计算机。FIG. 5 is a schematic structural diagram of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21 , at least one memory 22 , a display screen 23 , an input/output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 . Wherein, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21, so as to implement relevant steps in the method for checking and deploying a bare metal server disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may be an electronic computer.
本实施例中,电源26用于为电子设备20上的各硬件设备提供工作电压;通信接口25能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请实施例技术方案的任意通信协议,在此不对其进行限定;输入输出接口24,用于获取外界输入数据或向外界输出数据,其接口类型可以根据应用需要进行选取,在此不进行限定。In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the embodiment of the present application is not limited here; the input and output interface 24 is used to obtain external input data or output data to the external world, and its interface type can be selected according to application needs, and will not be described here. limited.
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括计算机程序221,存储方式可以是短暂存储或者永久存储。其中,计算机程序221除了包括能够用于完成前述任一实施例公开的由电子设备20执行的裸金属服务器检查及部署方法的计算机程序之外,还可以包括能够用于完成其他特定工作的计算机程序。In addition, the memory 22, as a resource storage carrier, can be a read-only memory, random access memory, magnetic disk or optical disk, etc., and the resources stored thereon can include the computer program 221, and the storage method can be temporary storage or permanent storage. Wherein, the computer program 221 includes not only the computer program that can be used to complete the BMS inspection and deployment method performed by the electronic device 20 disclosed in any of the above-mentioned embodiments, but also the computer program that can be used to complete other specific tasks. .
本申请实施例还公开了一种非易失性计算机可读存储介质,用于存储计算机程序;其中,计算机程序被处理器执行时实现前述公开的裸金属服务器检查及部署方法。The embodiment of the present application also discloses a non-volatile computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the foregoing disclosed methods for checking and deploying bare metal servers are implemented.
关于该方法的步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。Regarding the steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
本申请书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this application is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
专业人员还可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施 例的范围。Professionals can also realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software Alternatively, in the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包括,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
以上对本申请实施例所提供的一种裸金属服务器检查及部署方法、装置、设备、存储介质进行了详细介绍,本文中应用了个例对本申请实施例的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请实施例的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to a bare metal server inspection and deployment method, device, equipment, and storage medium provided by the embodiment of the application. This article uses a case to illustrate the principle and implementation of the embodiment of the application. The above implementation The description of the example is only used to help understand the method and the core idea of the embodiment of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the application, there will be changes in the specific implementation and application scope. To sum up, the contents of this specification should not be understood as limiting the application.

Claims (20)

  1. 一种裸金属服务器检查及部署方法,包括:A bare metal server inspection and deployment method, comprising:
    利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则查询智能网卡系统是否已完成上电;Use the preset smart controller plug-in to determine whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on;
    当查询到所述智能网卡系统已完成上电,则获取所述智能网卡的特征信息,并基于预设命令根据所述特征信息登录至所述智能网卡系统,以便通过所述智能网卡系统的预设检查命令对所述目标裸金属服务器执行检查流程;When it is found that the smart network card system has been powered on, obtain the characteristic information of the smart network card, and log in to the smart network card system based on the preset command according to the characteristic information, so as to pass the preset of the smart network card system Set the inspection command to execute the inspection process on the target bare metal server;
    当执行完所述检查流程,则判断当前所述目标裸金属服务器中是否携带智能网卡,若是则在所述智能网卡系统已完成上电的情况下再次登录至所述智能网卡系统,并通过所述智能网卡系统的预设部署命令对所述目标裸金属服务器执行部署流程。When the inspection process is completed, it is judged whether the current target bare metal server carries an intelligent network card, and if so, log in to the intelligent network card system again after the intelligent network card system has been powered on, and pass the Execute the deployment process on the target bare metal server according to the preset deployment command of the smart network card system.
  2. 根据权利要求1所述的裸金属服务器检查及部署方法,其中,所述利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,还包括:The BMS inspection and deployment method according to claim 1, wherein before using the preset smart controller plug-in to determine whether the target BMS carries an intelligent network card, it further includes:
    将预设智能控制器插件设置于预设裸金属服务中,其中,所述预设裸金属服务包括为携带智能网卡的裸金属服务器提供服务的第一子服务以及为不携带智能网卡的裸金属服务器提供服务的第二子服务。Set the default smart controller plug-in in the default bare metal service, wherein the preset bare metal service includes the first sub-service that provides services for bare metal servers with smart network cards and the first sub-service for bare metal servers that do not carry smart network cards The server provides the second subservice of the service.
  3. 根据权利要求2所述的裸金属服务器检查及部署方法,其中,所述利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,还包括:The method for checking and deploying a bare metal server according to claim 2, wherein before using the preset smart controller plug-in to determine whether the target bare metal server carries an intelligent network card, it further includes:
    将所述目标裸金属服务器的登录账号与密码以及基板管理控制器地址、所述智能网卡的登录账号与密码以及网际互联协议IP地址、预设智能网卡标志信息保存至所述预设裸金属服务的程序驱动信息中;其中,所述预设智能网卡标志信息为对所述目标裸金属服务器中是否携带智能网卡进行判断后确定的智能网卡标志信息。saving the login account and password of the target bare metal server, the address of the baseboard management controller, the login account and password of the smart network card, the IP address of the Internet Protocol, and the preset smart network card logo information to the preset bare metal server In the program driver information; wherein, the preset intelligent network card identification information is the intelligent network card identification information determined after judging whether the target bare metal server carries an intelligent network card.
  4. 根据权利要求3所述的裸金属服务器检查及部署方法,其中,所述利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡,若是则查询智能网卡系统是否已完成上电,包括:The bare metal server inspection and deployment method according to claim 3, wherein, using the preset intelligent controller plug-in to determine whether the target bare metal server carries an intelligent network card, and if so, querying whether the intelligent network card system has been powered on, including :
    利用所述预设智能控制器插件,判断所述预设裸金属服务的所述程序驱动信息中是否存在所述预设智能网卡标志信息,若存在,则判定所述目标裸金属服务器中携带所述智能网卡,然后查询智能网卡系统是否已完成上电。Use the preset smart controller plug-in to determine whether the preset smart network card flag information exists in the program driver information of the preset bare metal service, and if so, determine whether the target bare metal server carries the The smart network card mentioned above, and then check whether the smart network card system has been powered on.
  5. 根据权利要求1所述的裸金属服务器检查及部署方法,其中,所述查询智能网卡系统是否已完成上电,包括:The bare metal server inspection and deployment method according to claim 1, wherein said querying whether the smart network card system has been powered on includes:
    通过所述预设智能控制器插件查询是否接收到所述智能网卡系统中的预设控制器上报的心跳信号;Querying whether the heartbeat signal reported by the preset controller in the smart network card system is received through the preset smart controller plug-in;
    如果接收到所述智能网卡系统中的所述预设控制器上报的心跳信号,则判定所述智能网卡系统已完成上电。If the heartbeat signal reported by the preset controller in the smart network card system is received, it is determined that the smart network card system has been powered on.
  6. 根据权利要求5所述的裸金属服务器检查及部署方法,其中,在所述通过所述预设智能控制器插件查询是否接收到所述智能网卡系统中的预设控制器上报的心跳信号之前,所述方法还包括:The method for checking and deploying a bare metal server according to claim 5, wherein before inquiring through the preset smart controller plug-in whether the heartbeat signal reported by the preset controller in the smart network card system is received, The method also includes:
    通过ipmitool命令设置所述目标裸金属服务器为基本输入输出系统bois启动,然后设置上电启动;Use the ipmitool command to set the target bare metal server as the basic input and output system bois startup, and then set the power-on startup;
    在设置所述目标裸金属服务器基本输入输出系统bois启动并完成上电启动的情况下,所述智能网卡系统上电启动。When the basic input and output system bois of the target bare metal server is set to start and the power-on and start-up is completed, the smart network card system is powered on and started.
  7. 根据权利要求6所述的裸金属服务器检查及部署方法,其中,所述方法还包括:The bare metal server inspection and deployment method according to claim 6, wherein the method further comprises:
    在所述智能网卡系统上电完成以后,所述智能网卡系统中的所述预设控制器上报所述心跳信号。After the smart network card system is powered on, the preset controller in the smart network card system reports the heartbeat signal.
  8. 根据权利要求3所述的裸金属服务器检查及部署方法,其中,所述当查询到所述智能网卡系统已完成上电,则获取所述智能网卡的特征信息,并基于预设命令根据所述特征信息登录至所述智能网卡系统,以便通过所述智能网卡系统的预设检查命令对所述目标裸金属服务器执行检查流程,包括:The bare metal server inspection and deployment method according to claim 3, wherein, when it is found that the smart network card system has been powered on, the characteristic information of the smart network card is obtained, and based on the preset command according to the The feature information is logged into the smart network card system, so as to perform a check process on the target bare metal server through a preset check command of the smart network card system, including:
    当查询到所述智能网卡系统已完成上电,则从所述预设裸金属服务的所述程序驱动信息中获取所述智能网卡的登录账号与密码以及IP地址,并基于预设命令根据所述智能网卡的登录账号与密码以及IP地址登录至所述智能网卡系统,以便通过所述智能网卡系统的预设检查命令对所述目标裸金属服务器执行检查流程。When it is found that the smart network card system has been powered on, the login account, password and IP address of the smart network card are obtained from the program driver information of the preset bare metal service, and based on the preset command according to the Log in to the smart network card system with the login account, password, and IP address of the smart network card, so as to perform a check process on the target bare metal server through a preset check command of the smart network card system.
  9. 根据权利要求1所述的裸金属服务器检查及部署方法,其中,所述通过所述智能网卡系统的预设检查命令对所述目标裸金属服务器执行检查流程,包括:The bare metal server inspection and deployment method according to claim 1, wherein the execution of the inspection process on the target bare metal server through the preset inspection command of the smart network card system includes:
    利用所述预设智能控制器插件控制执行所述智能网卡系统的所述预设检查命令,以对所述目标裸金属服务器执行所述检查流程。Using the preset smart controller plug-in to control and execute the preset check command of the smart network card system, so as to execute the check process on the target bare metal server.
  10. 根据权利要求9所述的裸金属服务器检查及部署方法,其中,所述对所述目标裸金属服务器执行所述检查流程,包括:The bare metal server inspection and deployment method according to claim 9, wherein the execution of the inspection process on the target bare metal server includes:
    获取所述目标裸金属服务器的信息,其中,所述目标裸金属服务器的信息包括所述目标裸金属服务器的中央处理器CPU和内存,所述目标裸金属服务器的信息用于调度所述目标裸金属服务器。Acquiring the information of the target bare metal server, wherein the information of the target bare metal server includes the CPU and memory of the target bare metal server, and the information of the target bare metal server is used to schedule the target bare metal server metal server.
  11. 根据权利要求3所述的裸金属服务器检查及部署方法,其中,所述判断当前所述目标裸金属服务器中是否携带智能网卡,包括:The bare metal server inspection and deployment method according to claim 3, wherein the judging whether the current target bare metal server carries an intelligent network card comprises:
    读取所述预设裸金属服务的所述程序驱动信息中是否存在所述预设智能网卡标志信息,进而判断所述目标裸金属服务器中是否携带所述智能网卡。Read whether the preset smart network card flag information exists in the program driver information of the preset bare metal service, and then determine whether the target bare metal server carries the smart network card.
  12. 根据权利要求11所述的裸金属服务器检查及部署方法,其中,所述将预设智能网卡标志信息保存至所述预设裸金属服务的程序驱动信息中,包括:The method for checking and deploying a bare metal server according to claim 11, wherein said saving the preset smart network card logo information into the program driver information of the preset bare metal service includes:
    在所述目标裸金属服务器注册时,如果所述目标裸金属服务器携带所述智能网卡,则将所述预设智能网卡标志信息的标签保存至所述预设裸金属服务的所述程序驱动信息中。When the target bare metal server is registered, if the target bare metal server carries the smart network card, save the label of the preset smart network card logo information to the program driver information of the preset bare metal server middle.
  13. 根据权利要求1所述的裸金属服务器检查及部署方法,其中,所述通过所述智能网卡系统的预设部署命令对所述目标裸金属服务器执行部署流程,包括:The bare metal server inspection and deployment method according to claim 1, wherein the execution of the deployment process on the target bare metal server through the preset deployment command of the smart network card system includes:
    利用所述预设智能控制器插件控制执行所述智能网卡系统的所述预设部署命令,以对所述目标裸金属服务器执行所述部署流程。The preset smart controller plug-in is used to control and execute the preset deployment command of the smart network card system, so as to execute the deployment process on the target bare metal server.
  14. 根据权利要求13所述的裸金属服务器检查及部署方法,其中,所述对所述目标裸金属服务器执行所述部署流程,包括:The bare metal server inspection and deployment method according to claim 13, wherein said executing the deployment process on the target bare metal server comprises:
    将用户的系统镜像写入至所述目标裸金属服务器的硬盘中,并设置所述目标裸金属服务器的硬盘启动。Write the user's system image to the hard disk of the target bare metal server, and set the hard disk of the target bare metal server to start.
  15. 根据权利要求1所述的裸金属服务器检查及部署方法,其中,在检查流程或者部署流程开始前,所述方法还包括:The bare metal server inspection and deployment method according to claim 1, wherein, before the inspection process or the deployment process starts, the method further includes:
    所述预设智能控制器插件通过预设命令,根据所述智能网卡的登录账号与密码以及IP地址登录至所述智能网卡系统,进行所述预设检查命令或者所述预设部署命令的允许或禁止的切换。The preset smart controller plug-in logs into the smart network card system through a preset command according to the login account, password and IP address of the smart network card, and performs the permission of the preset check command or the preset deployment command or disabled switching.
  16. 根据权利要求1至15任一项所述的裸金属服务器检查及部署方法,其中,还包括:The bare metal server inspection and deployment method according to any one of claims 1 to 15, further comprising:
    将基于允许执行检查命令生成的语句与禁止执行部署命令生成的语句确定的命令确定为所述预设检查命令;Determining the command determined based on the statement generated by allowing the execution of the inspection command and the statement generated by prohibiting the execution of the deployment command as the preset inspection command;
    将基于允许执行部署命令生成的语句与禁止执行检查命令生成的语句确定的命令确定为所述预设部署命令。The command determined based on the statement generated by the execution of the deployment command and the statement generated by the prohibition of execution of the check command is determined as the preset deployment command.
  17. 一种裸金属服务器检查及部署装置,包括:A bare metal server inspection and deployment device, comprising:
    查询模块,被设置为利用预设智能控制器插件判断目标裸金属服务器中是否携带有智能网卡,若是则查询智能网卡系统是否已完成上电;The query module is configured to use a preset smart controller plug-in to judge whether the target bare metal server carries a smart network card, and if so, query whether the smart network card system has been powered on;
    预设检查命令执行模块,被设置为当查询到所述智能网卡系统已完成上电,则获取所述智能网卡的特征信息,并基于预设命令根据所述特征信息登录至所述智能网卡系 统,以便通过所述智能网卡系统的预设检查命令对所述目标裸金属服务器执行检查流程;The preset check command execution module is configured to obtain the characteristic information of the smart network card when it is found that the smart network card system has been powered on, and log in to the smart network card system according to the characteristic information based on the preset command , so as to execute a check process on the target bare metal server through a preset check command of the smart network card system;
    预设部署命令执行模块,被设置为当执行完所述检查流程,则判断当前所述目标裸金属服务器中是否携带有智能网卡,若是则在所述智能网卡系统已完成上电的情况下再次登录至所述智能网卡系统,通过所述智能网卡系统的预设部署命令对所述目标裸金属服务器执行部署流程。The preset deployment command execution module is configured to judge whether the current target bare metal server carries an intelligent network card when the inspection process is completed, and if so, execute the system again when the intelligent network card system has been powered on. Log in to the smart network card system, and execute a deployment process on the target bare metal server through a preset deployment command of the smart network card system.
  18. 根据权利要求17所述的裸金属服务器检查及部署装置,其中,所述装置还包括:The bare metal server inspection and deployment device according to claim 17, wherein the device further comprises:
    设置模块,被设置为所述利用预设智能控制器插件判断目标裸金属服务器中是否携带智能网卡之前,将预设智能控制器插件设置于预设裸金属服务中,其中,所述预设裸金属服务包括为携带智能网卡的裸金属服务器提供服务的第一子服务以及为不携带智能网卡的裸金属服务器提供服务的第二子服务。The setting module is configured to set the preset smart controller plug-in in the preset bare metal service before using the preset smart controller plug-in to determine whether the target bare metal server carries an intelligent network card, wherein the preset bare metal server The metal service includes a first sub-service that provides services for bare metal servers that carry smart network cards, and a second sub-service that provides services for bare metal servers that do not carry smart network cards.
  19. 一种电子设备,包括:An electronic device comprising:
    存储器,被设置为保存计算机程序;memory, configured to hold computer programs;
    处理器,被设置为执行所述计算机程序,以实现如权利要求1至16任一项所述的裸金属服务器检查及部署方法。The processor is configured to execute the computer program, so as to realize the bare metal server inspection and deployment method according to any one of claims 1 to 16.
  20. 一种计算机可读存储介质,用于保存计算机程序;其中,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述的裸金属服务器检查及部署方法。A computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the bare metal server inspection and deployment method according to any one of claims 1 to 16 is realized.
PCT/CN2022/122784 2022-02-24 2022-09-29 Bare metal server inspection and deployment method and apparatus, and device and medium WO2023159956A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210168905.4A CN114244703B (en) 2022-02-24 2022-02-24 Bare metal server checking and deploying method, device, equipment and medium
CN202210168905.4 2022-02-24

Publications (1)

Publication Number Publication Date
WO2023159956A1 true WO2023159956A1 (en) 2023-08-31

Family

ID=80747920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/122784 WO2023159956A1 (en) 2022-02-24 2022-09-29 Bare metal server inspection and deployment method and apparatus, and device and medium

Country Status (2)

Country Link
CN (1) CN114244703B (en)
WO (1) WO2023159956A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244703B (en) * 2022-02-24 2022-05-10 苏州浪潮智能科技有限公司 Bare metal server checking and deploying method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170344584A1 (en) * 2016-05-27 2017-11-30 Wal-Mart Stores, Inc. Systems and methods of database instance container deployment
CN110495136A (en) * 2017-11-01 2019-11-22 华为技术有限公司 The hardware attributes of bare metal server find method and system
CN113612702A (en) * 2021-09-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components
CN114244703A (en) * 2022-02-24 2022-03-25 苏州浪潮智能科技有限公司 Bare metal server checking and deploying method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11438229B2 (en) * 2020-01-16 2022-09-06 Dell Products L.P. Systems and methods for operating system deployment and lifecycle management of a smart network interface card
CN112486522A (en) * 2020-12-17 2021-03-12 济南浪潮数据技术有限公司 Deployment method and device of OpenStack bare machine with intelligent network card
CN113746673B (en) * 2021-08-24 2023-03-24 济南浪潮数据技术有限公司 Method, device, equipment and medium for deploying bare metal server ipxe

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170344584A1 (en) * 2016-05-27 2017-11-30 Wal-Mart Stores, Inc. Systems and methods of database instance container deployment
CN110495136A (en) * 2017-11-01 2019-11-22 华为技术有限公司 The hardware attributes of bare metal server find method and system
CN113612702A (en) * 2021-09-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components
CN114244703A (en) * 2022-02-24 2022-03-25 苏州浪潮智能科技有限公司 Bare metal server checking and deploying method, device, equipment and medium

Also Published As

Publication number Publication date
CN114244703B (en) 2022-05-10
CN114244703A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
EP3664372B1 (en) Network management method and related device
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
US10999740B2 (en) Network slice management method, management unit, and system
WO2016155394A1 (en) Method and device for establishing link between virtual network functions
CN111431740B (en) Data transmission method, device, equipment and computer readable storage medium
EP3373518B1 (en) Service configuration method and device for network service
RU2562438C2 (en) Network system and network management method
CN106850324B (en) Virtual network interface object
US8554980B2 (en) Triggered notification
CN113452830B (en) Batch control method of android cloud mobile phone, computer readable medium and electronic device
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
CN107800663B (en) Method and device for detecting flow offline file
CN111245634B (en) Virtualization management method and device
WO2023159956A1 (en) Bare metal server inspection and deployment method and apparatus, and device and medium
CN114070723A (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN108881460B (en) Method and device for realizing unified monitoring of cloud platform
CN114024853A (en) Hardware information collection method and system for bare metal node and related components
CN105939344A (en) TCP (Transmission Control Protocol) connection establishing method and device
CN109039752B (en) Unified gateway-based SOA architecture system management method
CN113282374B (en) Server control method, device and system
WO2020238057A1 (en) Redis-based mqtt cluster monitoring method, apparatus, and storage medium
CN116820686B (en) Physical machine deployment method, virtual machine and container unified monitoring method and device
CN115378993B (en) Method and system for supporting namespace-aware service registration and discovery
CN113890789B (en) UDP tunnel traffic shunting method and traffic forwarding method suitable for data center

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22928219

Country of ref document: EP

Kind code of ref document: A1