CN114244703A - Bare metal server checking and deploying method, device, equipment and medium - Google Patents

Bare metal server checking and deploying method, device, equipment and medium Download PDF

Info

Publication number
CN114244703A
CN114244703A CN202210168905.4A CN202210168905A CN114244703A CN 114244703 A CN114244703 A CN 114244703A CN 202210168905 A CN202210168905 A CN 202210168905A CN 114244703 A CN114244703 A CN 114244703A
Authority
CN
China
Prior art keywords
network card
intelligent network
bare metal
preset
metal server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210168905.4A
Other languages
Chinese (zh)
Other versions
CN114244703B (en
Inventor
刘元锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210168905.4A priority Critical patent/CN114244703B/en
Publication of CN114244703A publication Critical patent/CN114244703A/en
Application granted granted Critical
Publication of CN114244703B publication Critical patent/CN114244703B/en
Priority to PCT/CN2022/122784 priority patent/WO2023159956A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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

The application discloses a bare metal server checking and deploying method, device, equipment and medium, comprising the following steps: judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, if so, logging in the intelligent network card system according to the characteristic information of the intelligent network card based on a preset command after the intelligent network card system is inquired to be powered on so as to execute an inspection process; and when the inspection process is executed, judging whether the current target bare metal server carries the intelligent network card, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on so as to execute the deployment process. Therefore, the method and the device have the advantages that the preset intelligent controller plug-in is used for obtaining the characteristic information of the intelligent network card system, and the intelligent network card system is logged in the bare metal server based on the characteristic information, so that the inspection process and the deployment process in the intelligent network card system can be switched, and the automatic linkage of the inspection process and the deployment process of the bare metal server is realized.

Description

Bare metal server checking and deploying method, device, equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a bare metal server inspection and deployment method, device, equipment and medium.
Background
The Overlay network is a virtual network established on an existing physical network, has independent control and forwarding planes, and is transparent to terminal devices (such as servers) connected to the Overlay, so that separation of a bearer network and a service network can be realized.
The bare metal service has both the elasticity of the virtual machine and the performance of the physical machine, can provide a dedicated physical server on the cloud for individuals or enterprises, can provide excellent computing performance for services such as a key application system, high-performance computing, big data, a core database and the like, and ensures data security. When the bare metal cloud physical machine is created, the same as the virtual machine is created, the required bare metal cloud physical machine can be created only by specifying required hardware requirements, such as a cpu, a memory, a mirror image and a required network, and a user can apply flexibly and apply for use as required.
But the implementation of Overlay for bare metal server (barremet) is different from the implementation of virtual machine Overlay on Openstack (cloud computing open source infrastructure project). The Openstack virtual machines share resources occupying the compute servers, but since the compute servers are not exposed to end users, tunnels can be deployed on the compute servers to implement OVERLAY encapsulation and decapsulation of the virtual machines. However, in a bare metal server scenario, the bare metal server monopolizes one computing server, and the computing server needs to be completely exposed to an end user, so that the virtual machine Overlay implementation scheme for deploying a tunnel on the computing server cannot be applied in the bare metal server scenario. At present, there are two main implementation schemes for Overlay of a bare metal server (1), that is, encapsulation and decapsulation of Overlay is performed on a physical switch for a message that enters and exits from the bare metal server by controlling the physical switch, using a hard SDN (software defined network). (2) And by adopting a soft SDN and an intelligent network card, the encapsulation and the decapsulation of the incoming and outgoing messages of the bare metal server are realized in an intelligent network card system.
Under the scheme of realizing bare metal Overlay by means of an intelligent network card, after the inspection flow and the deployment flow of a bare metal server are realized, how to realize the automatic linkage of inspection and deployment is an important link. At present, an open source community only has a bare metal server deployment process realized by an Openstack community based on a neutron-openvswitch-agent and a millinexblefield network card, and an implementation scheme of a temporary bare metal server inspection process does not have an implementation scheme of linkage of the inspection process and the deployment process.
Therefore, how to realize the bare metal server inspection flow and realize the linkage of the inspection flow and the deployment flow are problems to be solved urgently in the field.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device, and a medium for inspecting and deploying a bare metal server, which can implement a bare metal server inspection flow and implement linkage between the inspection flow and the deployment flow, and the specific scheme is as follows:
in a first aspect, the application discloses a bare metal server inspection and deployment method, comprising:
judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether an intelligent network card system is powered on or not;
when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system;
and when the inspection flow is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment flow on the target bare metal server through a preset deployment command of the intelligent network card system.
Optionally, before the preset intelligent controller plug-in is used to determine whether the target bare metal server carries the intelligent network card, the method further includes:
the method comprises the steps of setting a preset intelligent controller plug-in a preset bare metal service, wherein the preset bare metal service comprises a first sub-service for providing service for a bare metal server carrying an intelligent network card and a second sub-service for providing service for a bare metal server not carrying the intelligent network card.
Optionally, before the preset intelligent controller plug-in is used to determine whether the target bare metal server carries the intelligent network card, the method further includes:
storing a login account and a password of the target bare metal server, a substrate management controller address, a login account and a password of the intelligent network card, an IP address and preset intelligent network card mark information into program driving information of the preset bare metal service; the preset intelligent network card mark information is the intelligent network card mark information determined after judging whether the target bare metal server carries the intelligent network card or not.
Optionally, the method for judging whether the target bare metal server carries the intelligent network card by using the preset intelligent controller plug-in, and if yes, inquiring whether the intelligent network card system is powered on, includes:
and judging whether the preset intelligent network card mark information exists in the program driving information of the preset bare metal service or not by using the preset intelligent controller plug-in, if so, judging that the target bare metal server carries the intelligent network card, and then inquiring whether an intelligent network card system is powered on or not.
Optionally, the querying whether the intelligent network card system is powered on includes:
inquiring whether a heartbeat signal reported by a preset controller in the intelligent network card system is received or not through the preset intelligent controller plug-in;
and if the heartbeat signal reported by the preset controller in the intelligent network card system is received, judging that the intelligent network card system is powered on.
Optionally, when the intelligent network card system is queried to be powered on, acquiring feature information of the intelligent network card, and logging in the intelligent network card system according to the feature information based on a preset command, so as to execute an inspection process on the target bare metal server through a preset inspection command of the intelligent network card system, where the method includes:
and when the intelligent network card system is inquired to be powered on, acquiring a login account number, a password and an IP address of the intelligent network card from the program driving information of the preset bare metal service, and logging in the intelligent network card system according to the login account number, the password and the IP address of the intelligent network card based on a preset command so as to execute a checking process on the target bare metal server through the preset checking command of the intelligent network card system.
Optionally, the bare metal server inspecting and deploying method further includes:
determining a command determined based on a statement generated by allowing an execution of an inspection command and a statement generated by prohibiting an execution of a deployment command as the preset inspection command;
and determining a command determined based on the statement generated by allowing the deployment command to be executed and the statement generated by forbidding the check command to be executed as the preset deployment command.
In a second aspect, the present application discloses a bare metal server inspection and deployment device, comprising:
the query module is used for judging whether the target bare metal server carries the intelligent network card or not by utilizing a preset intelligent controller plug-in, and if so, querying whether the intelligent network card system is powered on;
the preset check command execution module is used for acquiring the characteristic information of the intelligent network card when the intelligent network card system is inquired to be powered on, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute a check process on the target bare metal server through the preset check command of the intelligent network card system;
and the preset deployment command execution module is used for judging whether the current target bare metal server carries an intelligent network card or not when the inspection process is executed, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on if the current target bare metal server carries the intelligent network card, and executing the deployment process on the target bare metal server through a preset deployment command of the intelligent network card system.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the bare metal server inspection and deployment method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the bare metal server inspection and deployment method disclosed above.
Therefore, the application provides a bare metal server inspection and deployment method, which comprises the following steps: judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether an intelligent network card system is powered on or not; when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system; when the checking process is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment process on the target bare metal server through a preset deployment command of the intelligent network card system, therefore, in OVN and Overlay networking, the present application utilizes the preset intelligent controller plug-in to obtain the characteristic information of the intelligent network card system, and logging in the intelligent network card system on the bare metal server based on the characteristic information under the condition that the intelligent network card system is powered on, therefore, the inspection process and the deployment process of the intelligent network card system are switched, the inspection process of the bare metal server is realized, and the automatic linkage of the inspection process and the deployment process of the bare metal server is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a bare metal server inspection and deployment method disclosed herein;
FIG. 2 is a flow chart of a particular bare metal server inspection and deployment method disclosed herein;
FIG. 3 is a schematic structural diagram of a bare metal server inspection and deployment method disclosed in the present application;
FIG. 4 is a schematic structural diagram of a bare metal server inspection and deployment apparatus disclosed herein;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, an open source community only has a bare metal server deployment process realized by an Openstack community based on a neutron-openvswitch-agent and a millinexblefield network card, and an implementation scheme of a temporary bare metal server inspection process does not have an implementation scheme of linkage of the inspection process and the deployment process.
Therefore, the embodiment of the application provides a bare metal server inspection and deployment scheme, which can realize the bare metal server inspection flow and realize the linkage of the inspection flow and the deployment flow.
The embodiment of the application discloses a bare metal server checking and deploying method, which is shown in fig. 1 and comprises the following steps:
step S11: and judging whether the target bare metal server carries the intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether the intelligent network card system is powered on or not.
It should be pointed out that this application has designed a predetermine intelligent control ware plug-in, and will predetermine intelligent control ware plug-in and set up in predetermineeing naked metal service (ironic), wherein, predetermine naked metal service and contain the second sub-service that provides the first sub-service of service and provide the service for the naked metal server who does not carry intelligent network card for the naked metal server who carries intelligent network card, in this application predetermine intelligent control ware plug-in and serve in the naked metal server who carries intelligent network card. According to the method, under OVN (Openvirtual Network, open source community project) and Overlay networking, whether an intelligent Network card is carried in a target bare metal server or not is judged by using a preset intelligent controller plug-in, and if the intelligent Network card is carried in the target bare metal server, whether the intelligent Network card system is powered on or not is inquired.
Step S12: and when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system.
In this embodiment, after it is queried that the intelligent network card system is powered on, the preset intelligent controller plug-in is used to obtain feature information of the intelligent network card, and the intelligent network card system is logged in based on a preset command (sshpass) according to the feature information, so that the preset intelligent controller plug-in is used to control and execute a preset check command of the intelligent network card system, thereby implementing a check process on the target bare metal server.
Step S13: and when the inspection flow is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment flow on the target bare metal server through a preset deployment command of the intelligent network card system.
In this embodiment, when the inspection process is completed, it is determined whether the current target bare metal server carries an intelligent network card, if the current target bare metal server carries an intelligent network card, it is queried whether the intelligent network card system has completed power-on, and the system logs in the intelligent network card system again when the system has completed power-on, and specifically, after the system has completed power-on, the system acquires feature information of the intelligent network card by using the preset intelligent controller plug-in, and logs in the intelligent network card system according to the feature information based on a preset command, so as to control and execute a preset deployment command of the intelligent network card system by using the preset intelligent controller plug-in, thereby implementing a deployment process for the target bare metal server, specifically, the deployment process mainly writes a system image of a user into a hard disk of bare metal, and setting the bare metal server hard disk to start.
Therefore, the application provides a bare metal server inspection and deployment method, which comprises the following steps: judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether an intelligent network card system is powered on or not; when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system; when the checking process is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment process on the target bare metal server through a preset deployment command of the intelligent network card system, therefore, in OVN and Overlay networking, the present application utilizes the preset intelligent controller plug-in to obtain the characteristic information of the intelligent network card system, and logging in the intelligent network card system on the bare metal server based on the characteristic information under the condition that the intelligent network card system is powered on, therefore, the inspection process and the deployment process of the intelligent network card system are switched, the inspection process of the bare metal server is realized, and the automatic linkage of the inspection process and the deployment process of the bare metal server is realized.
The embodiment of the application discloses a specific bare metal server inspection and deployment method, which is shown in fig. 2 and comprises the following steps:
step S21: and judging whether the preset intelligent network card mark information exists in the program driving information of the preset bare metal service or not by using a preset intelligent controller plug-in, if so, judging that the target bare metal server carries the intelligent network card, and then inquiring whether an intelligent network card system is powered on or not.
It should be noted that, in this embodiment, before determining whether the target bare metal server carries the smart network card by using the preset smart controller plug-in, the method further includes: storing a login account and a password of the target bare metal server, a baseboard management controller address, a login account and a password of the intelligent network card, an IP address and preset intelligent network card mark information (smart _ card) into program driving information (driver _ info) of the preset bare metal service; the preset intelligent network card mark information is the intelligent network card mark information determined after judging whether the target bare metal server carries the intelligent network card or not.
Therefore, in this embodiment, the specific process of determining whether the target bare metal server carries the intelligent network card by using the preset intelligent controller plug-in is as follows: judging whether preset intelligent network card mark information exists in the program driving information of the preset bare metal service by using the preset intelligent controller plug-in, if so, judging that the target bare metal server carries the intelligent network card, and then inquiring whether an intelligent network card system is powered on, specifically, inquiring whether a heartbeat signal reported by a preset controller (ovn-controller) in the intelligent network card system is received or not by using the preset intelligent controller plug-in; and if the heartbeat signal reported by the preset controller in the intelligent network card system is received, judging that the intelligent network card system is powered on.
Step S22: and when the intelligent network card system is inquired to be powered on, acquiring a login account number, a password and an IP address of the intelligent network card from the program driving information of the preset bare metal service, and logging in the intelligent network card system according to the login account number, the password and the IP address of the intelligent network card based on a preset command so as to execute a checking process on the target bare metal server through the preset checking command of the intelligent network card system.
According to the embodiment disclosed in the foregoing, the login account, the password and the IP address of the intelligent network card are stored in the program driving information of the preset bare metal service, and therefore, when the intelligent network card system is queried to be powered on, the login account, the password and the IP address of the intelligent network card are obtained from the program driving information of the preset bare metal service by using the preset intelligent controller plug-in, and the login account, the password and the IP address of the intelligent network card are logged in the intelligent network card system based on a preset command, so that the preset inspection command of the intelligent network card system is controlled and executed by using the preset intelligent controller plug-in, and the inspection process of the target bare metal server is further realized.
Step S23: and when the inspection flow is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment flow on the target bare metal server through a preset deployment command of the intelligent network card system.
In this embodiment, when the inspection process is completed, it is determined whether the current target bare metal server carries an intelligent network card, and if the current target bare metal server carries an intelligent network card, it is queried whether an intelligent network card system has completed powering on, and logs in the intelligent network card system again when the intelligent network card system has completed powering on, and specifically, after the intelligent network card system has completed powering on, the preset intelligent controller plug-in is used to acquire the feature information of the intelligent network card, and logs in the intelligent network card system according to the feature information based on a preset command, so that the preset intelligent controller plug-in is used to control and execute a preset deployment command of the intelligent network card system, thereby implementing the deployment process of the target bare metal server.
In this embodiment, it should be noted that a command determined based on a statement generated by allowing execution of the check command and a statement generated by prohibiting execution of the deployment command is determined as the preset check command; and determining a command determined based on the statement generated by allowing the deployment command to be executed and the statement generated by forbidding the check command to be executed as the preset deployment command. It is understood that the specific statements of the above commands can be configured by the developer based on the actual needs of the developer. For example, in the sentences developed in the wave, the sentences generated based on the execution permission check command are configured as systemctl enabled input-barrier-input, and the sentences generated based on the execution prohibition deployment command are configured as systemctl disabled input-barrier-output; the statement generated based on the execution permission deployment command is configured as a systemctl enabled input-barrier-deployment, and the statement generated based on the execution prohibition check command is configured as a systemctl disabled input-barrier-deployment.
Therefore, the application discloses a bare metal server checking and deploying method, which comprises the following steps: judging whether the preset intelligent network card mark information exists in the program driving information of the preset bare metal service or not by using a preset intelligent controller plug-in, if so, judging that the target bare metal server carries the intelligent network card, and then inquiring whether an intelligent network card system is powered on or not; when the intelligent network card system is inquired to be powered on, acquiring a login account number, a password and an IP address of the intelligent network card from the program driving information of the preset bare metal service, and logging in the intelligent network card system according to the login account number, the password and the IP address of the intelligent network card based on a preset command so as to execute a checking process on the target bare metal server through the preset checking command of the intelligent network card system; when the inspection process is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment process on the target bare metal server through a preset deployment command of the intelligent network card system, thus under OVN and Overlay networking, acquiring characteristic information of the intelligent network card system by using a preset intelligent controller plug-in under the condition that the program driving information of the preset bare metal service is judged to have the preset intelligent network card marking information and the intelligent network card system is queried to be powered on, logging in the intelligent network card system on the bare metal server based on the characteristic information so as to switch the inspection process and the deployment process in the intelligent network card system, therefore, the bare metal server inspection process is realized, and meanwhile, the automatic linkage of the bare metal server inspection process and the deployment process is realized.
Fig. 3 is a schematic structural diagram of a bare metal server inspection and deployment method disclosed in the present application.
Referring to fig. 3, the present application designs a preset intelligent controller plug-in, and specifically, the core innovation points of the preset intelligent controller plug-in include the following parts:
(1) the preset bare metal service is compatible with a bare metal server with an intelligent network card and a bare metal server without the intelligent network card, and the preset intelligent controller plug-in only serves the bare metal server with the intelligent network card, so that whether the network card in the bare metal server is the intelligent network card or not is judged. It should be noted that whether the smart network card exists in the bare metal server is determined by an administrator, and when the bare metal server registers, if the bare metal server carries the smart network card, the tag with the preset smart network card flag information is stored in the program driving information of the preset bare metal service. And reading whether preset intelligent network card mark information exists in the program driving information of the preset bare metal service in the process of triggering checking or deployment, and further judging whether the bare metal server carries the intelligent network card. It should be noted that different processes need to be executed for the intelligent network card and the non-intelligent network card, which are not described herein again.
(2) An inspection command input-barrel-instruction for controlling the execution of an inspection process and a deployment command input-barrel-deploy for controlling the execution of a deployment process are both stored in an intelligent network card system, the preset intelligent controller plug-in is located at a control node, and it needs to be pointed out that if an administrator judges that the server carries the intelligent network card when registering a bare metal server, a label of preset intelligent network card mark information is stored in program driving information of the preset bare metal service, and a login account and a password of the bare metal server and a substrate management controller address, a login account and a password of the intelligent network card and an IP address are also stored in the program driving information of the preset bare metal service. Before the inspection process or the deployment process starts, the preset intelligent controller plug-in logs in the intelligent network card system through a preset command according to the login account number, the password and the IP address of the intelligent network card, and switches the permission (enable) or the prohibition (disable) of the inspection command or the deployment command.
(3) The preset intelligent controller plug-in unit is used for logging in the intelligent network card system to perform switching of permission or prohibition of a check command or a deployment command on the premise that the intelligent network card system is powered on, and therefore the preset intelligent controller plug-in unit needs to sense that the intelligent network card system is powered on. Specifically, a preset controller is installed in the intelligent network card system, the preset controller automatically reports a heartbeat signal to a control node where a preset intelligent controller plug-in is located after the system is powered on, and the preset intelligent controller plug-in judges whether the intelligent network card system is powered on or not by continuously inquiring the state of the preset controller.
Based on fig. 3, a schematic structural diagram of a bare metal server inspection and deployment method disclosed in the present application is implemented in a specific manner as follows:
(1) and installing the intelligent network card system of the bare metal server, and after the installation is finished, uniformly curing the hostname (host name) of the intelligent network card into the IP address of the management network of the bluefield2 intelligent network card pushed by Mellanox. And storing the login account and the password of the bare metal server, the address of a substrate management controller, the login account and the password of the intelligent network card, and the IP address of the target bare metal server, and preset intelligent network card mark information determined based on the judgment of whether the target bare metal server carries the intelligent network card into the program driving information of the preset bare metal service.
(2) And triggering a checking flow of the preset bare metal service to the bare metal server, calling a preset intelligent controller plug-in unit by the preset bare metal service to obtain the mark information of the preset intelligent network card, and further judging whether the bare metal server carries the intelligent network card. If so, acquiring the login account number and the password of the bare metal server and the address of the baseboard management controller from the program driving information of the preset bare metal service, setting the bare metal server to be boot-up for the bois through an ipmitool command, and then setting the power-on boot-up. And then the preset intelligent controller acquires the IP address of the bare metal server and inquires whether the ovn-controlleragent state waiting for the node is up or not through the hostname. After the bare metal server bios is started and the power-on starting is completed, the intelligent network card system on the bare metal server is powered on and started along with the bare metal server, and after the power-on is completed, a preset controller in the intelligent network card system reports a heartbeat signal.
(3) After capturing a heartbeat signal reported by a preset controller by a preset intelligent controller plug-in, judging that the intelligent network card system is powered on, then acquiring a login account number, a password and an IP address of the intelligent network card from the program driving information of the preset bare metal service, and logging in the intelligent network card system according to the login account number, the password and the IP address of the intelligent network card based on a preset command so as to execute a checking process on the target bare metal server through the preset checking command of the intelligent network card system.
(4) When the inspection process is executed, the bare metal server is started to be installed and deployed, specifically, a preset intelligent controller plug-in is called through a preset bare metal service to judge whether the target bare metal server carries an intelligent network card currently or not, the target bare metal server logs in the intelligent network card system again when the intelligent network card system is powered on, and the target bare metal server is executed and deployed through a preset deployment command of the intelligent network card system, so that the application acquires the characteristic information of the intelligent network card system by using the preset intelligent controller plug-in under OVN and Overlay networking, and logs in the intelligent network card system on the bare metal server based on the characteristic information, so that the inspection process and the deployment process in the intelligent network card system are switched, and the automatic linkage of the inspection process and the deployment process of the bare metal server is realized, the application value is higher.
Correspondingly, an embodiment of the present application further discloses a bare metal server inspecting and deploying device, as shown in fig. 4, the device includes:
the query module 11 is configured to determine whether the target bare metal server carries an intelligent network card by using a preset intelligent controller plug-in, and if so, query whether the intelligent network card system is powered on;
a preset check command execution module 12, configured to, when it is found that the intelligent network card system is powered on, obtain feature information of the intelligent network card, and log in to the intelligent network card system according to the feature information based on a preset command, so as to execute a check process on the target bare metal server through the preset check command of the intelligent network card system;
and a preset deployment command execution module 13, configured to determine whether the current target bare metal server carries an intelligent network card when the inspection process is executed, if so, log in the intelligent network card system again when the intelligent network card system is powered on, and execute a deployment process on the target bare metal server through a preset deployment command of the intelligent network card system.
For more specific working processes of the modules, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the application provides a bare metal server inspection and deployment method, which comprises the following steps: judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether an intelligent network card system is powered on or not; when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system; when the checking process is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment process on the target bare metal server through a preset deployment command of the intelligent network card system, therefore, in OVN and Overlay networking, the present application utilizes the preset intelligent controller plug-in to obtain the characteristic information of the intelligent network card system, and logging in the intelligent network card system on the bare metal server based on the characteristic information under the condition that the intelligent network card system is powered on, therefore, the inspection process and the deployment process of the intelligent network card system are switched, the inspection process of the bare metal server is realized, and the automatic linkage of the inspection process and the deployment process of the bare metal server is realized.
Further, the embodiment of the application also provides electronic equipment. FIG. 5 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display 23, an input output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the bare metal server inspection and deployment method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 26 is used for providing an operating 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 24 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the memory 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resource stored thereon may include the computer program 221, and the storage manner may be a transient storage or a permanent storage. The computer program 221 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the bare metal server inspection and deployment method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, the embodiment of the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the bare metal server inspection and deployment method disclosed above.
For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the application, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the storage medium for inspecting and deploying the bare metal server provided by the application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A bare metal server inspection and deployment method is characterized by comprising the following steps:
judging whether the target bare metal server carries an intelligent network card or not by using a preset intelligent controller plug-in, and if so, inquiring whether an intelligent network card system is powered on or not;
when the intelligent network card system is inquired to be powered on, acquiring the characteristic information of the intelligent network card, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system;
and when the inspection flow is executed, judging whether the target bare metal server carries an intelligent network card or not, if so, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on, and executing a deployment flow on the target bare metal server through a preset deployment command of the intelligent network card system.
2. The bare metal server inspection and deployment method according to claim 1, wherein before the determining whether the target bare metal server carries the intelligent network card by using the preset intelligent controller plug-in, the method further comprises:
the method comprises the steps of setting a preset intelligent controller plug-in a preset bare metal service, wherein the preset bare metal service comprises a first sub-service for providing service for a bare metal server carrying an intelligent network card and a second sub-service for providing service for a bare metal server not carrying the intelligent network card.
3. The bare metal server inspection and deployment method according to claim 2, wherein before the determining whether the target bare metal server carries the intelligent network card by using the preset intelligent controller plug-in, the method further comprises:
storing a login account and a password of the target bare metal server, a substrate management controller address, a login account and a password of the intelligent network card, an IP address and preset intelligent network card mark information into program driving information of the preset bare metal service; the preset intelligent network card mark information is the intelligent network card mark information determined after judging whether the target bare metal server carries the intelligent network card or not.
4. The bare metal server inspection and deployment method according to claim 3, wherein the determining whether the target bare metal server carries the intelligent network card by using a preset intelligent controller plug-in, and if so, querying whether the intelligent network card system is powered on, includes:
and judging whether the preset intelligent network card mark information exists in the program driving information of the preset bare metal service or not by using the preset intelligent controller plug-in, if so, judging that the target bare metal server carries the intelligent network card, and then inquiring whether an intelligent network card system is powered on or not.
5. The bare metal server checking and deploying method according to claim 1, wherein the querying whether the intelligent network card system has completed powering up comprises:
inquiring whether a heartbeat signal reported by a preset controller in the intelligent network card system is received or not through the preset intelligent controller plug-in;
and if the heartbeat signal reported by the preset controller in the intelligent network card system is received, judging that the intelligent network card system is powered on.
6. The bare metal server inspection and deployment method according to claim 3, wherein when it is found that the intelligent network card system is powered on, the method acquires feature information of the intelligent network card and logs in to the intelligent network card system according to the feature information based on a preset command, so as to execute an inspection process on the target bare metal server through the preset inspection command of the intelligent network card system, comprising:
and when the intelligent network card system is inquired to be powered on, acquiring a login account number, a password and an IP address of the intelligent network card from the program driving information of the preset bare metal service, and logging in the intelligent network card system according to the login account number, the password and the IP address of the intelligent network card based on a preset command so as to execute a checking process on the target bare metal server through the preset checking command of the intelligent network card system.
7. The bare metal server inspection and deployment method according to any one of claims 1 to 6, further comprising:
determining a command determined based on a statement generated by allowing an execution of an inspection command and a statement generated by prohibiting an execution of a deployment command as the preset inspection command;
and determining a command determined based on the statement generated by allowing the deployment command to be executed and the statement generated by forbidding the check command to be executed as the preset deployment command.
8. A bare metal server inspection and deployment device, comprising:
the query module is used for judging whether the target bare metal server carries the intelligent network card or not by utilizing a preset intelligent controller plug-in, and if so, querying whether the intelligent network card system is powered on;
the preset check command execution module is used for acquiring the characteristic information of the intelligent network card when the intelligent network card system is inquired to be powered on, and logging in the intelligent network card system according to the characteristic information based on a preset command so as to execute a check process on the target bare metal server through the preset check command of the intelligent network card system;
and the preset deployment command execution module is used for judging whether the current target bare metal server carries an intelligent network card or not when the inspection process is executed, logging in the intelligent network card system again under the condition that the intelligent network card system is powered on if the current target bare metal server carries the intelligent network card system, and executing the deployment process on the target bare metal server through a preset deployment command of the intelligent network card system.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the bare metal server inspection and deployment method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the bare metal server inspection and deployment method of any of claims 1 to 7.
CN202210168905.4A 2022-02-24 2022-02-24 Bare metal server checking and deploying method, device, equipment and medium Active CN114244703B (en)

Priority Applications (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
PCT/CN2022/122784 WO2023159956A1 (en) 2022-02-24 2022-09-29 Bare metal server inspection and deployment method and apparatus, and device and medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN114244703A true CN114244703A (en) 2022-03-25
CN114244703B CN114244703B (en) 2022-05-10

Family

ID=80747920

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023159956A1 (en) * 2022-02-24 2023-08-31 苏州浪潮智能科技有限公司 Bare metal server inspection and deployment method and apparatus, and device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486522A (en) * 2020-12-17 2021-03-12 济南浪潮数据技术有限公司 Deployment method and device of OpenStack bare machine with intelligent network card
US20210226846A1 (en) * 2020-01-16 2021-07-22 Dell Products L.P. Systems and methods for operating system deployment and lifecycle management of a smart network interface card
CN113746673A (en) * 2021-08-24 2021-12-03 济南浪潮数据技术有限公司 Method, device, equipment and medium for deploying bare metal server ipxe
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11394685B2 (en) * 2016-05-27 2022-07-19 Walmart Apollo, Llc Systems and methods of database instance container deployment
CN110495136B (en) * 2017-11-01 2021-11-19 华为技术有限公司 Hardware attribute discovery method and system of bare metal server
CN113612702B (en) * 2021-09-30 2021-12-24 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114244703B (en) * 2022-02-24 2022-05-10 苏州浪潮智能科技有限公司 Bare metal server checking and deploying method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210226846A1 (en) * 2020-01-16 2021-07-22 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
CN113746673A (en) * 2021-08-24 2021-12-03 济南浪潮数据技术有限公司 Method, device, equipment and medium for deploying bare metal server ipxe
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023159956A1 (en) * 2022-02-24 2023-08-31 苏州浪潮智能科技有限公司 Bare metal server inspection and deployment method and apparatus, and device and medium

Also Published As

Publication number Publication date
CN114244703B (en) 2022-05-10
WO2023159956A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
EP3664372B1 (en) Network management method and related device
EP4191959B1 (en) Method and system for ensuring service level agreement of an application
US10999740B2 (en) Network slice management method, management unit, and system
CN107431651B (en) Life cycle management method and equipment for network service
CN106850324B (en) Virtual network interface object
CN103229478B (en) A kind of method and apparatus determining virtual-machine drift
CN106878368B (en) Method and device for realizing information push
CN111106983B (en) Method and device for detecting network connectivity
US11317276B2 (en) Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM)
CN104253686A (en) Account number login method, equipment and system
CN109120444B (en) Cloud resource management method, processor and storage medium
CN112217771A (en) Data forwarding method and data forwarding device based on tenant information
CN114244703B (en) Bare metal server checking and deploying method, device, equipment and medium
CN108881460B (en) Method and device for realizing unified monitoring of cloud platform
CN107332813A (en) A kind of ACL collocation methods, ACL configuration equipment and server
CN113612702B (en) Method, system, equipment and storage medium for realizing bare metal inspection process
CN114697191A (en) Resource migration method, device, equipment and storage medium
CN113900939A (en) Test environment access method and device, readable storage medium and computer equipment
CN107872336B (en) Mounting point identification method and system and identification management equipment
CN106533716B (en) A kind of management method and system of northbound interface
CN114745757B (en) Cluster switching method, device, equipment and medium
CN113422772B (en) Private network terminal access processing method and device and electronic equipment
CN113612667B (en) Bare metal detection method, system and related components
CN115314336A (en) User online method of vBRAS and related equipment
US11071151B2 (en) Methods and apparatuses for connecting a wireless access point through an application in a user equipment

Legal Events

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