CN115720181A - Control method and system of bare metal node, electronic device and readable storage medium - Google Patents

Control method and system of bare metal node, electronic device and readable storage medium Download PDF

Info

Publication number
CN115720181A
CN115720181A CN202211447021.9A CN202211447021A CN115720181A CN 115720181 A CN115720181 A CN 115720181A CN 202211447021 A CN202211447021 A CN 202211447021A CN 115720181 A CN115720181 A CN 115720181A
Authority
CN
China
Prior art keywords
node
bare metal
soft
bridge
network card
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.)
Pending
Application number
CN202211447021.9A
Other languages
Chinese (zh)
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202211447021.9A priority Critical patent/CN115720181A/en
Publication of CN115720181A publication Critical patent/CN115720181A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a control method, a system, electronic equipment and a readable storage medium of a bare metal node, relates to the field of bare metal, is applied to a soft gateway node, and the control method comprises the following steps: creating a soft network bridge corresponding to the physical network card and creating a common network bridge corresponding to the overlay network card; connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service; acquiring initial information of the bare metal node through a physical network card, and sending the initial information to a deployment service through a soft network bridge and a common network bridge in sequence; and deploying the bare metal node by the deployment service according to the initial information so as to enable the deployed bare metal node to communicate with the overlay network. According to the method and the device, the soft gateway node provides deployment service for the bare metal node by establishing the connection relation inside the soft gateway node, and the soft gateway node shows the same characteristics as the virtual machine to the outside, so that the bare metal node can realize the same network function as the virtual machine through the soft gateway node.

Description

Control method and system of bare metal node, electronic device and readable storage medium
Technical Field
The present invention relates to the field of bare metal, and in particular, to a method and a system for controlling a bare metal node, an electronic device, and a readable storage medium.
Background
Bare metal, i.e., bare metal server, refers to a physical server. Conventionally, in order to meet different user requirements, a cloud platform may virtualize one physical server into a plurality of virtual machines, but some requirements may desire to directly use one physical server, that is, a bare metal server, in the cloud platform.
At present, communication schemes of bare metal and cloud platform networks have three modes of pure software implementation, hardware switch implementation and intelligent network card implementation.
In a pure software implementation mode, bare metal is communicated by a virtual machine of a VLAN network and the VLAN network, the method has low requirement on hardware, but the available functions are few, most functions of the virtual machine are difficult to implement, such as setting a security group, qos and distributed floating IP, and the overlay network cannot be directly allocated to enable the bare metal to be communicated with the overlay virtual machine.
The overlay network can be encapsulated based on a hardware switch mode and an intelligent network card mode, so that bare metal has the same function as a virtual machine and achieves the function which cannot be realized by pure software, but the two modes both need to purchase a specific hardware switch or an intelligent network card and have higher use cost.
Therefore, how to provide a solution to the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, an electronic device and a readable storage medium for controlling a bare metal node, which are low in cost and capable of supporting multiple functions. The specific scheme is as follows:
a control method of a bare metal node is applied to a soft gateway node, the soft gateway node comprises a physical network card and an overlay network card, the physical network card is connected with the bare metal node, the overlay network card is connected with any node in an overlay network, and the control method comprises the following steps:
creating a soft network bridge corresponding to the physical network card, and creating a common network bridge corresponding to the overlay network card;
connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service in the soft gateway node;
acquiring initial information of the bare metal node through the physical network card, and sending the initial information to the deployment service through the soft network bridge and the common network bridge in sequence;
and deploying the bare metal node through the deployment service according to the initial information so as to enable the deployed bare metal node to communicate with the overlay network.
Preferably, the process of communicating the bare metal node with the overlay network after the deployment includes:
acquiring first communication information of the bare metal node after deployment through the physical network card, and sending the first communication information to the overlay network card through the soft network bridge and the common network bridge in sequence, so that the overlay network card sends the first communication information to a corresponding node in the overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the bare metal node after deployment, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the bare metal node after deployment.
Preferably, the process of deploying the bare metal node by the deployment service according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine the communication deployment information of the bare metal node;
and deploying the bare metal node according to the communication deployment information.
Preferably, the deployment service is specifically an ironic service.
Preferably, the process of connecting the generic bridge and the soft bridge includes:
respectively setting patch interfaces on the common bridge and the soft bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
Preferably, the control method further includes:
monitoring state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge;
judging whether all the state information has abnormity;
if yes, corresponding safeguard measures are taken according to the abnormal conditions.
Preferably, when the abnormal condition is the network proxy abnormality of the soft gateway node, the process of taking corresponding safeguard measures according to the abnormal condition includes:
unbinding the current deployment of all the bare metal nodes of the soft gateway node, so that the bare metal nodes bind any other soft gateway node with brand new deployment information different from the current deployment.
Correspondingly, the application also discloses a control system of the bare metal node, which is applied to a soft gateway node, the soft gateway node comprises a physical network card and an overlay network card, the physical network card is connected with the bare metal node, the overlay network card is connected with any node in an overlay network, and the control system comprises:
a creating module, configured to create a soft bridge corresponding to the physical network card, create a common bridge corresponding to the overlay network card, connect the common bridge to the soft bridge, and connect the common bridge to a service deployed in the soft gateway node;
and the deployment module is used for acquiring the initial information of the bare metal node through the physical network card, sending the initial information to the deployment service through the soft bridge and the common bridge in sequence, and deploying the bare metal node through the deployment service according to the initial information so as to enable the deployed bare metal node to communicate with the overlay network.
Correspondingly, the application also discloses an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the control method of a bare metal soft gateway node as described in any one of the above when executing the computer program.
Accordingly, the present application also discloses a readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of the control method of a bare metal soft gateway node as described in any one of the above.
According to the method and the device, the soft gateway node has the function of providing deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node is externally embodied with the characteristics same as the virtual machine, so that the bare metal node can realize the network functions same as the virtual machine through the soft gateway node, including communication with an overlay network, setting of security groups, qos, distributed floating IP and the like.
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 flowchart illustrating steps of a method for controlling a bare metal node according to an embodiment of the present invention;
FIG. 2 is a diagram of a connection structure between a bare metal node and a soft gateway node according to an embodiment of the present invention;
FIG. 3 is a diagram of another exemplary embodiment of a connection structure between bare metal nodes and soft mesh nodes;
FIG. 4 is a structural distribution diagram of a control system for bare metal nodes according to an embodiment of the present invention;
fig. 5 is a structural distribution diagram of an electronic device according to an embodiment of the invention.
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, communication schemes of bare metal and cloud platform networks have three modes of pure software implementation, hardware switch implementation and intelligent network card implementation. The pure software implementation mode has low hardware requirement, but the available functions are few, and most functions of the virtual machine are difficult to implement. The overlay network can be encapsulated based on a hardware switch mode and an intelligent network card mode, so that bare metal has the same function as a virtual machine and achieves the function which cannot be realized by pure software, but the two modes both need to purchase a specific hardware switch or an intelligent network card and have higher use cost.
According to the method and the device, the soft gateway node has the function of providing the deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node has the same characteristics as the virtual machine, so that the bare metal node can realize the same network functions as the virtual machine through the soft gateway node, including communication with an overlay network, setting of a security group, qos, distributed floating IP and the like.
The embodiment of the invention discloses a control method of a bare metal node, which is applied to a soft gateway node, wherein the soft gateway node comprises a physical network card and an overlay network card, the physical network card is connected with the bare metal node, the overlay network card is connected with any node in an overlay network, and the control method comprises the following steps:
s1: creating a soft network bridge corresponding to the physical network card and creating a common network bridge corresponding to the overlay network card;
s2: connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service in the soft gateway node;
specifically, the process of connecting the ordinary network bridge and the soft network bridge includes:
respectively setting a patch interface on the common network bridge and the soft network bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
As shown in fig. 2, the physical network card is connected to the bare metal node through the switch, the soft bridge and the overlay network card corresponding to the physical network card are connected through a patch interface pair, the interface pair includes a patch interface v-bm and a repr-bm, and the normal network bridge is also connected to the deployment service, so as to ensure a subsequent traffic path.
S3: acquiring initial information of the bare metal node through a physical network card, and sending the initial information to a deployment service through a soft network bridge and a common network bridge in sequence;
s4: and deploying the bare metal node according to the initial information through the deployment service so as to enable the deployed bare metal node to communicate with the overlay network.
Specifically, the process of deploying the bare metal node by the deployment service according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine the communication deployment information of the bare metal node;
and deploying the bare metal nodes according to the communication deployment information.
Further, the deployment service is specifically an ironic service.
It can be understood that before the bare metal node is not deployed by the deployment service, a representative port of the soft gateway node for the bare metal node is an open representative port, which is applied to a current patch interface pair and used for binding an insert port of the bare metal node for deployment, at this time, a dhcp broadcast needs to be sent to obtain IP address allocation at the mac position of the bare metal node, the initial information of the bare metal node is a preset vlan number, all the initial information of the bare metal node on the soft gateway node can be set to be the same, as long as the soft gateway node detects a new bare metal node on the switch through a physical network card, the initial information is determined to be a preset vlan number, at this time, the patch interface does not use port security setting for the lower open representative port, all traffic is released, and the preset vlan number can be set to 4051. After initial information is sent to a deployment service through a soft bridge and a common bridge, the deployment service learns that a new bare metal node exists to be deployed, communication deployment information of the bare metal node is determined by obtaining dhcp information, the communication deployment information is a communication vlan number with a value different from a preset vlan number and is also different from communication vlan numbers of other configured bare metal nodes connected to a local soft gateway node, the bare metal node is deployed through the communication deployment information, and after deployment, the bare metal node performs conventional communication through the communication deployment information.
It can be understood that, in the above deployment process, the open representative port of the bare metal node on the soft gateway node and the port of the deployment service belong to the same network segment, so that the bare metal node can be ensured to normally communicate with the deployment service after passing through the physical network card, the soft bridge and the ordinary bridge.
It can be understood that, in this embodiment, the open representative port of the bare metal node belongs to a local port relative to the soft gateway node, that is, the traffic sent out by the port is not allowed to go out of the soft gateway node, and since the open representative port and the deployment service correspond to the same soft gateway node, the deployment service performs one-by-one initialization deployment on the bare metal nodes detected on the local soft gateway node, and a situation that communication deployment information of a plurality of bare metal nodes is the same or a situation that a communication path is sent out to cause deployment of a bare metal node on another soft gateway node does not occur.
Further, specifically, the process of communication between the deployed bare metal node and the overlay network includes:
acquiring first communication information of the deployed bare metal nodes through a physical network card, and sending the first communication information to an overlay network card through a soft network bridge and a common network bridge in sequence, so that the overlay network card sends the first communication information to corresponding nodes in an overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the deployed bare metal node, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the deployed bare metal node.
It can be understood that the deployed bare metal nodes communicate with communication vlan numbers, each bare metal node has a respective normal representative port, and is applied to a patch interface pair that belongs to itself when passing through a normal bridge and a soft bridge, and the home definition is performed with the communication vlan number, each bare metal node has a certain mac and ip, for example, the communication vlan number of the bare metal node bm1 is vlan =100, the corresponding patch interface pair includes v-bm1 and repr-bm1, the communication vlan number of the bare metal node bm2 is vlan =101, and the corresponding patch interface pair includes v-bm2 and repr-bm2. The communication vlan numbers of each bare metal node after deployment are different, so that the bare metal nodes cannot be directly communicated through an exchanger, the patch interface pairs are different, the communication vlan numbers are used for distinguishing, and the communication between any bare metal node and other objects must pass through a physical network card, a soft gateway, a corresponding patch interface pair and a common bridge, and then the communication is forwarded to a corresponding node position by the common bridge.
As shown in fig. 3, taking communication between a bare metal node bm1 and an overlay network as an example, the bare metal node bm1 sends first communication information to the overlay network, and then a physical network card in a soft gateway node receives the first communication information, determines a patch interface pair v-bm1 and a repr-bm1 according to a vlan number, and sends the first communication information to the overlay network card by the normal bridge after passing through the soft bridge, the patch interface pair v-bm1 and repr-bm1 and the normal bridge, and the overlay network card forwards the first communication information to a node at a corresponding position in the overlay network, where the node includes other soft gateway nodes, bare metal nodes, virtual machines, and the like; correspondingly, when any node in the overlay network sends second communication information corresponding to the bare metal node bm1, the overlay network card receives the second communication information, and after the second communication information is coupled to the repr-bm1, the v-bm1 and the soft network bridge through the common network bridge and the patch interface, the soft network bridge sends the second communication information to the physical network card, and the physical network card sends the second communication information to the bare metal node bm1.
The communication between the bare metal node bm2 and the overlay network is the same.
Further, even if the bare metal nodes belonging to the same soft gateway node are the same, because communication vlan numbers are different, communication traffic needs to be forwarded by the soft gateway node, and cannot be directly communicated through a bottom-layer-connected switch, specifically, communication between the bare metal nodes bm1 and bm2 takes the case that the bare metal node bm1 sends third communication information to bm2, a physical network card in the soft gateway node receives the third communication information and forwards v-bm1 and repr-bm1 to a common network bridge through a soft network bridge and a patch interface, the common network bridge sends the third communication information to the physical network card after passing through the patch pair repr-bm1 and v-bm1 and the soft network bridge, and the physical network card sends the third communication information to the bare metal node bm2 according to the communication vlan number of a target object.
Therefore, the patch port on the normal bridge is externally equivalent to a normal port in the overlay network, and can perform normal communication with other ports. It can be understood that in the above description, the bare metal node implements control of the network configuration security group, qos, and floating IP through open representative port and normal representative port. The embodiment provides pure software for providing a two-layer network agent for a soft gateway node, and can provide network configuration management (security group, qos and the like) and overlay tunnel encapsulation for a bare metal node, so that the bare metal node has the same network function as a virtual machine, and the competitiveness of a cloud product is increased.
Further, in this embodiment, an abnormal fault in the communication process may also be detected and located by the soft gateway node, and specifically, the control method further includes:
monitoring state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge;
judging whether all the state information has abnormality or not;
if so, corresponding safeguard measures are taken according to the abnormal conditions.
Wherein, before taking corresponding safeguard measures according to the abnormal condition, the method further comprises the following steps:
determining abnormal conditions according to the abnormal state information; the abnormal conditions include: the method comprises the following steps of detecting the abnormality of a physical network card, and/or the abnormality of a network agent of a soft gateway node, and/or the abnormality of the connection of other nodes in an overlay network.
Further, when the abnormal condition is the network proxy abnormality of the soft gateway node, the process of taking corresponding safeguard measures according to the abnormal condition includes:
and the current deployment of all bare metal nodes of the soft gateway node is unbound, so that the bare metal nodes bind any other soft gateway node with brand-new deployment information different from the current deployment.
Furthermore, due to the occurrence of abnormal conditions, the reasons are not limited to the current soft gateway node, and at this time, the abnormal conditions can be reported to the manager node, and the manager node further comprehensively studies and judges network faults and determines safeguard measures.
It can be understood that, for the detection of the physical network card abnormality, the problem of the physical network card or the switch is usually found in time by judging the link state of the physical network card. Specifically, the soft gateway bridge can find out whether the physical network card is abnormal in time by monitoring the change of the bridge interface. And after the exception is found, continuously monitoring at intervals for 5 times, and reporting the report to the manager node neutron-server to transfer all binding bare metals of the soft gateway node. The existence of the physical network card is generally caused by manual operation of operation and maintenance personnel, so that the cache time of the network card changed by a user is given, and the condition that the physical network card is not added after the user removes the physical network card is prevented.
Furthermore, information forwarding on the soft gateway node depends on a network agent, the network agent comprises modules such as a soft network bridge and a common network bridge, and the bare metal soft gateway is ensured to be really effective by monitoring the state of the network agent of the node. When the network agent is found to be abnormal, the network agent is judged to be a middle-level fault and reported to the manager node, the manager node and the manager node are used for studying and judging whether the network agent is a uniformly dependent other service fault or a single-node fault, and if the single-node fault is caused, all the bound bare metal nodes of the soft gateway node need to be transferred.
Furthermore, the connection abnormality with other nodes in the overlay network is mainly communication detection abnormality with other soft gateway nodes, and the abnormality is data plane detection and aims to ensure that an actual data plane is normal. When communication detection is abnormal, the communication detection is judged to be low-level fault, and the manager node neutron-server comprehensively studies and judges the communication conditions of other soft gateway nodes, because the link through which the data really used by the bare metal soft gateway passes cannot be accurately determined, the migration is carried out only if the communication conditions of other soft gateway nodes are completely better than that of the current soft gateway node.
It can be understood that the abnormal condition is researched and judged by the manager node, and the manager node changes the soft gateway node bound by bare metal after each soft gateway node reports the manager node if a fault exists, so that judgment and contention among all soft gateway nodes can be avoided.
It can be understood that the mode of rebinding switching deployment is adopted, namely when the bare metal node changes the bound soft gateway node, the communication vlan number is changed to be different from the original vlan number, the use of the vlan number used before is avoided, and even if misjudgment occurs, namely a plurality of soft gateway nodes bind one bare metal node, a loop cannot occur, and the bare metal node can normally work.
Further, in this embodiment, the specific situations of preventing loops include: when the service network is abnormal and the management network is abnormal, the bare metal soft gateway configuration can be remained, and the service network is abnormal, so that other service networks cannot be influenced; when the service network is abnormal and the management network is normal, the soft gateway node is removed through the manager node, and the abnormality can be eliminated; the service network is normal, the management network is abnormal, and the original configuration of the soft gateway node is remained at this time, but because the vlan number of the bare metal node is changed, the soft gateway node does not forward the information of the bare metal node any more. Specifically, if a vlan configured and used by a residual bare metal node (identified as bmA) is bound by another bare metal (identified as bmB), bare metal bmB flow enters the soft gateway node, and if port security is configured by bmA, the flow of the bmB is discarded, and a service network is not affected; if the bmA is not port-safe, then the flow of bmB is possible.
According to the method and the device, the soft gateway node has the function of providing deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node is externally embodied with the characteristics same as the virtual machine, so that the bare metal node can realize the network functions same as the virtual machine through the soft gateway node, including communication with an overlay network, setting of security groups, qos, distributed floating IP and the like.
Correspondingly, the present application also discloses a control system of a bare metal node, which is applied to a soft gateway node, where the soft gateway node includes a physical network card and an overlay network card, the physical network card is connected to the bare metal node, the overlay network card is connected to any node in an overlay network, as shown in fig. 4, and the control system includes:
a creating module 1, configured to create a soft network bridge corresponding to the physical network card, create a common network bridge corresponding to the overlay network card, connect the common network bridge to the soft network bridge, and connect the common network bridge to a deployment service in the soft gateway node;
and the deployment module 2 is configured to acquire initial information of the bare metal node through the physical network card, send the initial information to the deployment service sequentially through the soft bridge and the normal bridge, and deploy the bare metal node through the deployment service according to the initial information, so that the deployed bare metal node communicates with the overlay network.
According to the method and the device, the soft gateway node has the function of providing deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node is externally embodied with the characteristics same as the virtual machine, so that the bare metal node can realize the network functions same as the virtual machine through the soft gateway node, including communication with an overlay network, setting of security groups, qos, distributed floating IP and the like.
In some specific embodiments, the process of communicating the bare metal node with the overlay network after deployment includes:
acquiring first communication information of the bare metal node after deployment through the physical network card, and sending the first communication information to the overlay network card through the soft network bridge and the common network bridge in sequence, so that the overlay network card sends the first communication information to a corresponding node in the overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the bare metal node after deployment, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the bare metal node after deployment.
In some specific embodiments, the process of deploying, by the deployment service, the bare metal node according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine the communication deployment information of the bare metal node;
and deploying the bare metal node according to the communication deployment information.
In some specific embodiments, the deployment service is specifically an ironic service.
In some specific embodiments, the process of connecting the generic bridge and the soft bridge includes:
respectively setting a patch interface on the common network bridge and the soft network bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
In some specific embodiments, the control system further comprises:
and the monitoring module is used for monitoring the state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge, and also used for judging whether all the state information is abnormal or not, and if so, taking corresponding safeguard measures according to the abnormal condition.
In some specific embodiments, when the abnormal condition is an abnormality of a network agent of the soft gateway node, the process of taking corresponding safeguard measures according to the abnormal condition includes:
unbinding the current deployment of all the bare metal nodes of the soft gateway node, so that the bare metal nodes bind any other soft gateway node with brand new deployment information different from the current deployment.
The embodiment of the present application also discloses an electronic device, which is shown in fig. 5 and includes a processor 11 and a memory 12; wherein, the processor 11 implements the following steps when executing the computer program stored in the memory 12:
creating a soft network bridge corresponding to the physical network card, and creating a common network bridge corresponding to the overlay network card;
connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service in the soft gateway node;
acquiring initial information of the bare metal node through the physical network card, and sending the initial information to the deployment service through the soft network bridge and the common network bridge in sequence;
and deploying the bare metal node through the deployment service according to the initial information so as to enable the deployed bare metal node to communicate with the overlay network.
According to the method and the device, the soft gateway node has the function of providing the deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node has the same characteristics as the virtual machine to the outside, so that the bare metal node can realize the same network functions as the virtual machine through the soft gateway node, including communication with an overlay network, setting of security groups, qos, distributed floating IP and the like.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
acquiring first communication information of the bare metal node after deployment through the physical network card, and sending the first communication information to the overlay network card through the soft network bridge and the common network bridge in sequence, so that the overlay network card sends the first communication information to a corresponding node in the overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the bare metal node after deployment, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the bare metal node after deployment.
In some specific embodiments, the process of deploying, by the deployment service, the bare metal node according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine the communication deployment information of the bare metal node;
and deploying the bare metal node according to the communication deployment information.
In some specific embodiments, the deployment service is specifically an ironic service.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
respectively setting patch interfaces on the common bridge and the soft bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
monitoring state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge;
judging whether all the state information has abnormity;
if yes, corresponding safeguard measures are taken according to the abnormal conditions.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
unbinding the current deployment of all the bare metal nodes of the soft gateway node, so that the bare metal nodes bind any other soft gateway node with brand new deployment information different from the current deployment.
Further, the electronic device in this embodiment may further include:
the input interface 13 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 12, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 11, so that the processor 11 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 13 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And an output interface 14, configured to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can obtain various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
A communication unit 15 for establishing a telecommunication connection between the electronic device and an external server so that the electronic device can mount the image file to the external server. In this embodiment, the communication unit 15 may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard 16 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display 17 is used for displaying relevant information of the control process of the bare metal node in real time so that a user can know the control condition of the current bare metal node in time.
The mouse 18 may be used to assist the user in entering data and to simplify the user's operation.
Further, embodiments of the present application also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium has stored therein a computer program which, when executed by a processor, performs the steps of:
creating a soft network bridge corresponding to the physical network card, and creating a common network bridge corresponding to the overlay network card;
connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service in the soft gateway node;
acquiring initial information of the bare metal node through the physical network card, and sending the initial information to the deployment service through the soft network bridge and the common network bridge in sequence;
and deploying the bare metal node according to the initial information through the deployment service so as to enable the deployed bare metal node to communicate with the overlay network.
According to the method and the device, the soft gateway node has the function of providing the deployment service for the bare metal node by establishing the connection relation of the internal information of the soft gateway node, and the soft gateway node has the characteristic of being the same as a virtual machine in appearance, so that the bare metal node can realize the network function which is the same as the virtual machine through the soft gateway node, including communication with an overlay network, setting of a security group, qos, distributed floating IP and the like.
In some specific embodiments, the computer sub-program stored in the readable storage medium, when executed by the processor, may specifically implement the steps of:
acquiring first communication information of the bare metal node after deployment through the physical network card, and sending the first communication information to the overlay network card through the soft network bridge and the common network bridge in sequence, so that the overlay network card sends the first communication information to a corresponding node in the overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the bare metal node after deployment, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the bare metal node after deployment.
In some specific embodiments, the process of deploying, by the deployment service, the bare metal node according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine the communication deployment information of the bare metal node;
and deploying the bare metal node according to the communication deployment information.
In some specific embodiments, the deployment service is specifically an ironic service.
In some specific embodiments, when executed by a processor, the computer sub-program stored in the readable storage medium may specifically implement the following steps:
respectively setting patch interfaces on the common bridge and the soft bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
In some specific embodiments, when executed by a processor, the computer sub-program stored in the readable storage medium may specifically implement the following steps:
monitoring state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge;
judging whether all the state information has abnormity;
if yes, corresponding safeguard measures are taken according to the abnormal conditions.
In some specific embodiments, the computer sub-program stored in the readable storage medium, when executed by the processor, may specifically implement the steps of:
unbinding the current deployment of all the bare metal nodes of the soft gateway node, so that the bare metal nodes bind any other soft gateway node with brand new deployment information different from the current deployment.
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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The method, the system, the electronic device and the readable storage medium for controlling the bare metal node provided by the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A control method of a bare metal node is applied to a soft gateway node, the soft gateway node comprises a physical network card and an overlay network card, the physical network card is connected with the bare metal node, the overlay network card is connected with any node in an overlay network, and the control method comprises the following steps:
creating a soft network bridge corresponding to the physical network card, and creating a common network bridge corresponding to the overlay network card;
connecting the common network bridge with the soft network bridge, and connecting the common network bridge with the deployment service in the soft gateway node;
acquiring initial information of the bare metal node through the physical network card, and sending the initial information to the deployment service through the soft network bridge and the common network bridge in sequence;
and deploying the bare metal node according to the initial information through the deployment service so as to enable the deployed bare metal node to communicate with the overlay network.
2. The control method according to claim 1, wherein the process of communicating the deployed bare metal node with the overlay network comprises:
acquiring first communication information of the bare metal node after deployment through the physical network card, and sending the first communication information to the overlay network card through the soft network bridge and the common network bridge in sequence, so that the overlay network card sends the first communication information to a corresponding node in the overlay network;
and acquiring second communication information, which is sent by any node in the overlay network and corresponds to the bare metal node after deployment, through the overlay network card, and sending the second communication information to the physical network card through the common network bridge and the soft network bridge in sequence, so that the physical network card sends the second communication information to the bare metal node after deployment.
3. The control method according to claim 1, wherein the process of the deployment service deploying the bare metal node according to the initial information includes:
the deployment service performs the following operations:
acquiring dhcp information according to the initial information to determine communication deployment information of the bare metal node;
and deploying the bare metal node according to the communication deployment information.
4. The control method according to claim 3, characterized in that the deployment service is in particular an ironic service.
5. The method according to claim 1, wherein the step of connecting the regular bridge and the soft bridge comprises:
respectively setting patch interfaces on the common bridge and the soft bridge, and linking the two patch interfaces into a patch interface pair;
and each bare metal node corresponds to one patch interface pair.
6. The control method according to any one of claims 1 to 5, characterized by further comprising:
monitoring state information of the physical network card, the overlay network card, the soft network bridge and the common network bridge;
judging whether all the state information has abnormity;
if yes, corresponding safeguard measures are taken according to the abnormal conditions.
7. The control method according to claim 6, wherein when the abnormal condition is an abnormality of the network agent of the soft gateway node, the process of taking corresponding safeguard measures according to the abnormal condition comprises:
unbinding the current deployment of all the bare metal nodes of the soft gateway node, so that the bare metal nodes bind any other soft gateway node with brand new deployment information different from the current deployment.
8. A control system of a bare metal node is applied to a soft gateway node, the soft gateway node comprises a physical network card and an overlay network card, the physical network card is connected with the bare metal node, the overlay network card is connected with any node in an overlay network, and the control system comprises:
a creating module, configured to create a soft bridge corresponding to the physical network card, create a common bridge corresponding to the overlay network card, connect the common bridge to the soft bridge, and connect the common bridge to a deployment service in the soft gateway node;
and the deployment module is used for acquiring initial information of the bare metal node through the physical network card, sending the initial information to the deployment service sequentially through the soft bridge and the common bridge, and deploying the bare metal node through the deployment service according to the initial information so as to enable the deployed bare metal node to communicate with the overlay network.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the control method of a bare metal soft gateway node according to any of claims 1 to 7 when executing the computer program.
10. A readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of controlling a bare metal soft gateway node according to any one of claims 1 to 7.
CN202211447021.9A 2022-11-18 2022-11-18 Control method and system of bare metal node, electronic device and readable storage medium Pending CN115720181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211447021.9A CN115720181A (en) 2022-11-18 2022-11-18 Control method and system of bare metal node, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211447021.9A CN115720181A (en) 2022-11-18 2022-11-18 Control method and system of bare metal node, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115720181A true CN115720181A (en) 2023-02-28

Family

ID=85255577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211447021.9A Pending CN115720181A (en) 2022-11-18 2022-11-18 Control method and system of bare metal node, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115720181A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668296A (en) * 2023-08-01 2023-08-29 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112436966A (en) * 2020-11-17 2021-03-02 浪潮云信息技术股份公司 OpenStack platform-based cloud physical host network card binding configuration method and system
CN113419815A (en) * 2021-05-28 2021-09-21 济南浪潮数据技术有限公司 Method, system, equipment and medium for pre-starting operation environment installation
CN114024799A (en) * 2022-01-06 2022-02-08 杭州优云科技有限公司 Method and device for interconnecting bare metal server and virtualization network
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components
CN114070723A (en) * 2020-07-31 2022-02-18 中移(苏州)软件技术有限公司 Virtual network configuration method and system of bare metal server and intelligent network card
CN114157639A (en) * 2021-11-26 2022-03-08 苏州浪潮智能科技有限公司 Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN114610447A (en) * 2022-03-14 2022-06-10 浪潮云信息技术股份公司 Bare metal server implementation method and system based on intelligent network card
CN114650290A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Network connection method, processing device, terminal and storage medium
CN114995888A (en) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 Intelligent network card deployment method, device and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070723A (en) * 2020-07-31 2022-02-18 中移(苏州)软件技术有限公司 Virtual network configuration method and system of bare metal server and intelligent network card
CN112436966A (en) * 2020-11-17 2021-03-02 浪潮云信息技术股份公司 OpenStack platform-based cloud physical host network card binding configuration method and system
CN114650290A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Network connection method, processing device, terminal and storage medium
CN113419815A (en) * 2021-05-28 2021-09-21 济南浪潮数据技术有限公司 Method, system, equipment and medium for pre-starting operation environment installation
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components
CN114157639A (en) * 2021-11-26 2022-03-08 苏州浪潮智能科技有限公司 Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN114024799A (en) * 2022-01-06 2022-02-08 杭州优云科技有限公司 Method and device for interconnecting bare metal server and virtualization network
CN114610447A (en) * 2022-03-14 2022-06-10 浪潮云信息技术股份公司 Bare metal server implementation method and system based on intelligent network card
CN114995888A (en) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 Intelligent network card deployment method, device and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈英达;钟苏生;周开东;黄恺彤;麦晓辉;: "云计算平台中裸金属物理服务器自动化批量部署方法研究", 科技创新与应用, no. 30, 28 October 2017 (2017-10-28) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668296A (en) * 2023-08-01 2023-08-29 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium
CN116668296B (en) * 2023-08-01 2023-11-03 苏州浪潮智能科技有限公司 Gateway node scheduling method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8270306B2 (en) Fault management apparatus and method for identifying cause of fault in communication network
US6941362B2 (en) Root cause analysis in a distributed network management architecture
CN112751733B (en) Link detection method, device, equipment, system and switch
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
US8976681B2 (en) Network system, network management server, and OAM test method
US7512841B2 (en) Method and system for network fault analysis
CN106549780B (en) Network configuration method, device and system
CN113890816A (en) Network health state analysis method and device, computer equipment and storage medium
CN112291116A (en) Link fault detection method and device and network equipment
CN110493069A (en) Fault detection method, device, SDN controller and forwarding device
CN115720181A (en) Control method and system of bare metal node, electronic device and readable storage medium
CN105119993A (en) Virtual machine deployment method and apparatus
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
CN109412851B (en) Link layer path detection method, device and system
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN112769653B (en) Network detection and switching method, system and medium based on network port binding
CN110932975B (en) Flow table issuing method, data forwarding method and device and electronic equipment
CN103684719A (en) Network dual-redundancy hot swap method independent of platforms
CN109462518B (en) Loop detection method and device
CN109391507B (en) Network configuration method, computer readable storage medium and network device
CN116915837B (en) Communication method and communication system based on software defined network
CN115086219B (en) Virtual router determining method, device and computer readable storage medium
CN109862132B (en) Method for video monitoring platform to adaptively penetrate through different networks
CN109274571B (en) Method, device and equipment for tracing back equipment in virtual local area network

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