CN114024853A - Hardware information collection method and system for bare metal node and related components - Google Patents
Hardware information collection method and system for bare metal node and related components Download PDFInfo
- Publication number
- CN114024853A CN114024853A CN202111257302.3A CN202111257302A CN114024853A CN 114024853 A CN114024853 A CN 114024853A CN 202111257302 A CN202111257302 A CN 202111257302A CN 114024853 A CN114024853 A CN 114024853A
- Authority
- CN
- China
- Prior art keywords
- bare metal
- port
- network card
- ironic
- metal node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000002184 metal Substances 0.000 title claims abstract description 191
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 239000003795 chemical substances by application Substances 0.000 description 34
- 230000008569 process Effects 0.000 description 16
- 238000007689 inspection Methods 0.000 description 6
- 238000012546 transfer Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0853—Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a hardware information collection method of a bare metal node, wherein the bare metal node is provided with an intelligent network card, and the hardware information collection method comprises the following steps: when the bare metal node is in a starting state, a corresponding ironic port is established for the intelligent network card; creating a Neutron port according to the ironic port, and binding the Neutron port to the intelligent network card of the bare metal node; accessing the representative port into the OVS network bridge by calling an interface of a network card proxy, and enabling an interrupt network of an ironic service; and controlling the bare metal node to upload hardware information to the cloud platform through an instect network. The method and the device can automatically collect the hardware information of the bare metal node provided with the intelligent network card. The application also discloses a hardware information collection system of the bare metal node, a cloud computing platform and a storage medium, and the cloud computing platform has the beneficial effects.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a system for collecting hardware information of a bare metal node, and a related component.
Background
OpenStack is a de facto standard in the field of cloud computing, providing computing resources in bare metal form in addition to the resource form of virtual machines. The virtual machine occupies partial resources of the host machine, and the bare metal is exclusive computing resources, namely, the bare metal is provided for users in the form of a whole physical server, so that the virtual machine has the characteristics of no virtualization loss, high performance and good reliability, and is suitable for scenes such as high-performance computing, key databases and the like.
The intelligent network card is an emerging network IO acceleration technology, wherein one architecture is that a system on chip (SoC) is integrated on the network card, namely the intelligent network card is provided with an Arm chip and can be provided with an operating system of the Arm architecture. By the structure, the processing of a bare metal network and disk IO can be unloaded to the arm system, the load of a CPU is reduced, and the overall performance of the host is accelerated. The smart card generally has a one-gigabit management network port and two 25G or more service/storage network ports. At present, no scheme exists for collecting hardware information of bare metal nodes provided with intelligent network cards.
Therefore, how to automatically collect hardware information of bare metal nodes installed with intelligent network cards is a technical problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
The application aims to provide a method and a system for collecting hardware information of bare metal nodes, a cloud computing platform and a storage medium, which can automatically collect the hardware information of the bare metal nodes provided with intelligent network cards.
In order to solve the technical problem, the present application provides a hardware information collection method for a bare metal node, where the bare metal node is provided with an intelligent network card, and the hardware information collection method includes:
when the bare metal node is in a starting-up state, a corresponding ironic port is established for the intelligent network card;
creating a Neutron port according to the ironic port, and binding the Neutron port to the intelligent network card of the bare metal node so as to update the representative port of the intelligent network card to the binding property of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent;
accessing the representative port into an OVS bridge by calling an interface of the network card agent, and enabling an interrupt network of an ironic service; wherein the instect network is a vxlan network;
and controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
Optionally, before the representative port is accessed to the OVS bridge by calling the interface of the network card proxy, the method further includes:
setting a vxlan network managed by a Neutron service as an instect network of the ironic service.
Optionally, the method further includes:
registering a corresponding management node for the bare metal node in the ironic service; the management node comprises identification information used for describing whether the bare metal node is provided with the intelligent network card or not.
Optionally, creating a corresponding ironic port for the smart network card, including:
acquiring network card information of the intelligent network card by calling an interface of the network card agent, and creating a corresponding ironic port for the intelligent network card according to the network card information; the network card information comprises an MAC address, a representative port name and an intelligent network card host name.
Optionally, the ironic service enabled instance network includes:
enabling the instact network of the ironic service by issuing a logical flow table of a control plane to the OVS bridge.
Optionally, after controlling the bare metal node to upload hardware information to a cloud platform through the install network, the method further includes:
and deleting the Neutron port, and removing the representative port from the OVS bridge by calling the interface of the network card agent.
Optionally, before creating a corresponding ironic port for the smart network card, the method further includes:
judging whether the bare metal node is in a starting-up state or not;
if not, controlling the bare metal node to be powered on by issuing an ipmi command to the bare metal node.
The application also provides a hardware information collection system of naked metal node, naked metal node installs intelligent network card, hardware information collection system includes:
an ironic port creating module, configured to create a corresponding ironic port for the intelligent network card when the bare metal node is in a power-on state;
a port binding module, configured to create a Neutron port according to the ironic port, and bind the Neutron port to the smart network card of the bare metal node, so as to update a representative port of the smart network card to a binding attribute of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent;
the network access module is used for accessing the representative port to the OVS bridge by calling the interface of the network card agent and enabling the attack network of the ironic service; wherein the instect network is a vxlan network;
and the information collection module is used for controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
The application also provides a storage medium, on which a computer program is stored, and the computer program realizes the steps executed by the hardware information collection method of the bare metal node when executed.
The application also provides a cloud computing platform which comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor realizes the steps executed by the hardware information collection method of the bare metal node when calling the computer program in the memory.
The application provides a hardware information collection method of a bare metal node, wherein an intelligent network card is installed on the bare metal node, and the hardware information collection method comprises the following steps: when the bare metal node is in a starting-up state, a corresponding ironic port is established for the intelligent network card; creating a Neutron port according to the ironic port, and binding the Neutron port to the intelligent network card of the bare metal node so as to update the representative port of the intelligent network card to the binding property of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent; accessing the representative port into an OVS bridge by calling an interface of the network card agent, and enabling an interrupt network of an ironic service; wherein the instect network is a vxlan network; and controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
According to the method, when the bare metal node is in a starting state, a corresponding ironic port is created for the intelligent network card of the bare metal node, the Neutron port is bound to the intelligent network card of the bare metal node, the representative port is accessed to the OVS network bridge through the port of the network card proxy, an copy network of the ironic service is started, and then the bare metal node is controlled to upload hardware information to a cloud platform through the copy network. According to the method, a user does not need to manually create an ironic port only capable of being used as a network card, and an insert network does not need to be opened manually. According to the scheme, hardware information can be automatically collected for the bare metal nodes provided with the intelligent network card. This application still provides a hardware information collection system, a cloud computing platform and a storage medium of naked metal node simultaneously, has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for collecting hardware information of a bare metal node according to an embodiment of the present disclosure;
fig. 2 is a flow chart of checking hardware information of an OpenStack generic network card according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a hardware collection scheme of bare metal with an intelligent network card installed under a cloud computing platform according to an embodiment of the present application;
fig. 4 is a flowchart of a hardware information collection scheme of bare metal with an intelligent network card installed in a cloud computing platform according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a hardware information collection system of a bare metal node according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
Referring to fig. 1, fig. 1 is a flowchart of a hardware information collecting method for a bare metal node according to an embodiment of the present disclosure.
The specific steps may include:
s101: when the bare metal node is in a starting state, a corresponding ironic port is established for the intelligent network card;
the embodiment can be applied to a cloud computing platform, such as OpenStack, which is an open source project of a cloud computing infrastructure. The cloud computing platform acquires hardware information of a bare metal (BareMetal) node provided with an intelligent network card so as to provide support for resource classification, hardware identification and network automatic control of the bare metal node. The intelligent network card SmartNic is a network card with an SoC and can unload the network, storage and safety flow of a host.
The bare metal node may be a physical server without an operating system installed. Before the step, an operation of judging whether the bare metal node is in a starting state or not can also exist; if the bare metal node is not in a starting state, controlling the bare metal node to be powered on by issuing an ipmi command to the bare metal node; and if the bare metal node is in a starting-up state, establishing a corresponding ironic port for the intelligent network card. The Ironic is a bare metal service in OpenStack and is responsible for life cycle management of bare metal. An Ironic Port is also called an Ironic Port and is a mapping object of a bare metal network card in an Ironic.
S102: creating a Neutron port according to the ironic port, and binding the Neutron port to the intelligent network card of the bare metal node so as to update the representative port of the intelligent network card to the binding property of the Neutron port;
after a corresponding ironic port is created for the smart network card, a Neutron port may be created according to the ironic port in this embodiment; neutron is a network service in OpenStack and is used for managing a network of bare metal nodes. In this embodiment, a Neutron port is bound to the intelligent network card of the bare metal node, so that the representative port of the intelligent network card is updated to the binding property of the Neutron port. The representative port may be any available network port of the intelligent network card.
S103: accessing the representative port into an OVS bridge by calling an interface of the network card agent, and enabling an interrupt network of an ironic service;
the intelligent network card in the embodiment is provided with an Arm system, and a network card agent smartnic-bm-agent is installed in the Arm system; the network card agent can provide various interfaces, the representative port can be accessed to the OVS bridge by calling the interface of the network card agent, and the embedded network of the ironic service can be started after the OVS bridge is accessed. The instect network is a vxlan network.
Specifically, before the representative port is accessed to the OVS bridge by calling the interface of the network card proxy, the present embodiment may set the vxlan network managed by the Neutron service as the instance network of the ironic service. The embodiment may enable the instance network of the ironic service by issuing a logical flow table of a control plane to the OVS bridge.
S104: and controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
After an attack network of an ironic service is started, the bare metal node can acquire hardware information of the bare metal node, and then the hardware information is uploaded to a cloud platform through the opened attack network.
In this embodiment, when a bare metal node is in a power-on state, a corresponding ironic port is created for an intelligent network card of the bare metal node, after a Neutron port is bound to the intelligent network card of the bare metal node, the representative port is accessed to the OVS bridge through a port of a network card proxy, an interrupt network of the ironic service is enabled, and then the bare metal node is controlled to upload hardware information to a cloud platform through the interrupt network. According to the method, a user does not need to manually create an ironic port only capable of being used as a network card, and an insert network does not need to be opened manually. According to the scheme, hardware information can be automatically collected for the bare metal nodes provided with the intelligent network card.
As a further introduction to the corresponding embodiment of fig. 1, a corresponding management node is registered for the bare metal node in the ironic service; the management node comprises identification information used for describing whether the bare metal node is provided with the intelligent network card or not. The management Node, namely the Ironic Node, is a mapping object of a bare metal Node in the Ironic.
As a further introduction to the corresponding embodiment of fig. 1, the above embodiment may create a corresponding ironic port for the smart network card by: acquiring network card information of the intelligent network card by calling an interface of the network card agent, and creating a corresponding ironic port for the intelligent network card according to the network card information; the network card information comprises an MAC address, a representative port name and an intelligent network card host name.
Further, after the bare metal node is controlled to upload hardware information to a cloud platform through the instect network, the Neutron port can be deleted, and the representative port is removed from the OVS bridge by calling an interface of the network card proxy.
The flow described in the above embodiment is explained below by an embodiment in practical use.
The ironic project of OpenStack provides bare metal services, managing the lifecycle of bare metal, i.e., the management of the entire state flow from registration management to installation deployment of the system. Before the cloud platform can use bare metal resources, hardware information collection needs to be carried out on the bare metal, so that support is provided for resource classification, hardware identification and network automatic control of the bare metal.
Referring to fig. 2, fig. 2 is a flowchart illustrating a hardware information checking process of an OpenStack generic network card according to an embodiment of the present disclosure, where the hardware information checking process includes: register bare metal with Ironic, manage bare metal, and inspect bare metal. The process of inspecting bare metal includes: and calling an inspection interface of the Ironic-indicator, calling the interface to restart the bare metal node, and issuing an ipmi command to the bare metal node so as to restart the bare metal node. And after the bare metal node is restarted, the bare metal node is guided to enter a memory file system by using PXE, and hardware information is acquired by using the pre-configured DHCP, TFTP and HTTP services. The bare metal node reports the check data (namely hardware information) through an Ironic-python-agent (IPA), and the Ironic-analyzer updates the bare metal node to the Ironic.
The process of Ironics managing bare metal with a common network card comprises the following steps:
1) an ironic node is registered with the IPMI address, username, password of BMC using bare metal. The information is driving information for managing the bare metal.
2) And trying to acquire the on-off state of the bare metal by issuing an IPMI command, verifying whether the bare metal can be normally managed, and converting to the management state if the bare metal can be acquired.
3) In the management state, calling the interface of the ironic triggers the ironic to check the hardware information of the bare metal.
Wherein, the process of checking hardware information comprises: the ironic calls an interface of an ironic-inductor to check bare metal; and calling an ironic interface by an ironic-inductor, setting the bare metal node as network start, restarting the bare metal, and issuing an ipmi command by the ironic to realize the action. The bare metal node carries out PXE, pulls the BootLoader from the pre-configured DHCP, TFTP and HTTP services, guides the memory file system by the BootLoader, and automatically starts IPA. The IPA executes a series of hardware inspection tasks, such as inquiring the BMC address of the bare metal node and the MAC address of each network card and capturing an LLDP message; and inquiring information such as a CPU, a memory, a local disk, a starting mode and the like. And calling an interface of an ironic-inductor to report the data. The method comprises the steps that an ironic-inductor service identifies a UUID of a bare metal node according to a BMC address of reported data, calls a node update interface of the ironic, updates the reported data to the ironic node, and namely creates an ironic port according to each MAC address information; and updating information such as the CPU, the memory, the disk and the like into the attribute of the node.
IPA (isopropyl-propyl-agent) is installed in a memory file system, a bare metal node is booted from a PXE (preboot execution environment) boot into the memory file system, and IPA self-boot executes a series of tasks. The Ironic-analyzer is a bare metal inspection service in OpenStack and is used for inspecting bare metal, processing data reported by bare metal IPA and updating the bare metal. In the above flow, the PXE network of the bare metal may be configured with a switch to be opened in advance, so that the flow may implement the PXE reporting data of the bare metal.
A typical application of the intelligent network card is bare metal under a cloud platform. The PF port of bare metal has a rep port representing the port in the arm system, and the flow entering and exiting the rep port enters and exits the PF port. How to elegantly realize the inspection and deployment process of bare metal provided with an intelligent network card does not have a better scheme in the industry.
Please refer to fig. 3, fig. 3 is a schematic structural diagram of a hardware collection scheme of bare metal under a cloud computing platform, where tftp (virtual File Transfer protocol) is a simple File Transfer protocol, http (hyper Text Transfer protocol) is a hypertext Transfer protocol, OVS is OpenvSwitch, bm-deployment is network deployment, NIC is a port, oob-net NIC is an out-of-band data Transfer layer protocol, ovn-controller is a controller of a virtual network interface software SDN open source project, rep is a representative port of a smart network card, PF is a port of a bare metal node, bmc (baseband controller), i.e., a substrate Management controller, a small operating system independent of a server, and supporting ipmi protocol, which is used for out-of-band Management of bare metal, according to an embodiment of the present application. PF (physical function) is a concept in SR-IOV technology (Single Root I/O Virtualization). The SR-IOV is mainly used for simulating one physical device into a plurality of virtual devices, wherein each virtual device can be bound with one virtual machine, so that the virtual machines can conveniently access the same physical device. SR-IOV introduced two new PCIe functions: (1) PF: the full-Function PCIe Function includes SR-IOV Extended Capability. This Capability is used to configure and manage the functions of the SR-IOV; (2) VF: some of the lightweight PCIe functions contain only the minimum configurable resources necessary for data movement. The representative port rep (netdev register) is a way for the intelligent network card to simulate bare metal to measure PF and VF, and each PF and VF of bare metal can simulate a network device in an Arm system, for example, PF0 measured by bare metal is simulated as PF0hpf in an Arm system.
The embodiment provides a software Agent SmartNic-Bm-Agent installed in an Arm system of an intelligent network card. The software agent provides an interface of Restful to the outside based on a python flash framework, and is used for supporting the ironic service call and achieving the connection of an instect network. The embodiment also designs an overall flow design of the cloud computing platform for checking the bare metal node, namely that the ironic reads an intelligent network card management port address of the node from a database in the insert process, calls an interface provided by an agent, reads intelligent network card information to create an ironic port, creates a neutron port and inserts a rep port into an ovs network bridge, so that the insert network is communicated, the bare metal node is supported to normally conduct PXE (PCI extensions for instrumentation) guide memory file system from the insert network, and the hardware information is checked.
Referring to fig. 4, fig. 4 is a flowchart of a hardware information collection scheme of bare metal installed with an intelligent network card under a cloud computing platform according to an embodiment of the present disclosure, where this embodiment may support a bare metal node installed with an intelligent network card to automatically collect hardware information under cloud computing, an agent installed in the intelligent network card in this embodiment provides a reset full interface to control a rep port, and this embodiment further provides a process of ironic registering and checking the bare metal node installed with the intelligent network card, so that ironic automatically issues a flow table through an instance network managed by neutron to open the instance network. As shown in fig. 4, the process of collecting hardware information is as follows: register bare metal with ironic, manage bare metal, and inspect bare metal. If the bare metal node is powered off, the ironic sends an ipmi command downwards to enable the bare metal node to be powered on, and the ironic calls the intelligent network card proxy API interface 1 to obtain information of the PF port, information of the rep port and the name of the intelligent network card host. Ironic creates a port corresponding to the smart network card. And the Ironic creates a port corresponding to the intelligent network card, and creates a neutron port by the Ironic port of the smart network card smartnic and binds the neutron port to the node of the intelligent network card. The Ironic calls the API (application program interface) 2 of the intelligent network card proxy to connect the rep port plug to the OVS bridge. The Ironic calling interface checks the bare metal for the Ironic-isolator, and issues an ipmi command to the bare metal node to restart the bare metal node. And after the bare metal node is restarted, the bare metal node is guided to enter a memory file system by using PXE, and hardware information is acquired by using the pre-configured DHCP, TFTP and HTTP services. The bare metal node reports the check data (namely hardware information) through an Ironic-python-agent (IPA), and the Ironic-analyzer updates the bare metal node to the Ironic. Ironic deletes the created neutron port, calls smart network card proxy API interface 3 to remove the rep port from the OVS bridge unprugs.
The method and the device can support automatic check of hardware information of the bare metal node provided with the intelligent network card, solve the problems that an intelligent network card ironic port needs to be created manually and an insert network needs to be opened manually, provide a restful interface externally, can be conveniently called and extend the needed interface by the ironic, realize insertion/removal of the ironic to a rep port, synchronously extend and support the deployment process of bare metal, and have strong extensibility.
Specifically, the embodiment may configure a host name and a network for the bare metal intelligent network card installation system, and install and operate the necessary components OVS and ovn-controller. And installing and operating the agent smartnic-bm-agent in an arm system, and configuring the agent smartnic-bm-agent as a boot self-starting. The proxy provides three interfaces: the interface 1 is used for acquiring network card information of the intelligent network card: the SmartNic-Bm-Agent acquires the MAC address of the PF, the name of a representative port rep (namely a representative port) and the host name of an intelligent network card Arm system and returns the information; interface 2 is used to plug a representative port into the OVS bridge: SmartNic-Bm-Agent obtains the name of the representative port and the name of the OVS bridge from the request, calls the open source python library of os-vif, and inserts the representative port into the bridge of the OVS. The interface is matched with the creation and binding of a neutron port to an Arm system, so that the flow table can be issued, and the check network can be opened; interface 3 is used to remove the representative port from the OVS bridge, and the smartnic-Bm-Agent retrieves the representative port name from the request, invokes the OVS-vif interface, and removes the representative port from the OVS bridge. The interface can realize the release of the representative port and the reset of the network.
Create a neutron managed vxlan network as the Ironic's instance network and add a configuration item to the Ironic service, neutron _ network. When a node is created in registration of the ironic, whether the identifier of the inserted _ smart is installed in bare metal is increased, and the ip address of the management port of the intelligent network card is added and stored in a database.
In the case of an inspection node of ironic, the design inspection flow is as follows:
and the ironic checks whether the bare machine is started or not, if the bare machine is shut down, an ipmi command is issued to start the bare metal, and the smartnic is also powered on. And the ironic calls an interface 1 of the smart-bm-agent to acquire the MAC (media access control), the rep port name and the intelligent network card host name of the PF, and thus an ironic port is created, and the port is represented as an intelligent network card port. The ironic calls a neutron interface, creates a neutron port with vnic _ type as smart-nic on the insert network, binds to an intelligent network card Arm system (binding: host _ id as Arm system hostname), and updates the rep port name to the binding property of the neutron port. The ironic calls interface 2 of smart-bm-agent to plug the rep port onto the bridge of the OVS. ovn-controller will thus detect the ovs bridge change and issue the logical flow table of the control plane onto ovs, opening the instance network. And the ironic issues an ipmi command to restart the bare metal node, the bare metal node performs normal PXE from the insert network, the bare metal node is guided to enter a memory file system, and the IPA collects data and reports the data to the ironic-insert. The ironic-initiator updates the collected data to node, and the ironic deletes the neutron port. The ironic calls interface 3 of smartnic-bm-agent, removing the rep port from the ovs bridge. Further, interface 2 and interface 3 of the proxy can be called during the deployment process to manage the rep port. ipmi refers to a set of computer interface specifications for out-of-band management, which refers to accessing a computer system without being in the same room as the physical assets of the system.
The embodiment provides a bare metal proxy SmartNic-Bm-Agent which is installed on an intelligent network card and provides a Restful interface, wherein in the checking process, an ironic calls an interface to acquire the information of the intelligent network card and controls the insertion and removal of a rep port, and an instect network is automatically switched on and reset in a manner of creating/deleting a neutron port under the management of a neutron, so that the PXE network switching in the bare metal instect process is supported.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a hardware information collection system of a bare metal node provided in an embodiment of the present application, where the bare metal node is installed with an intelligent network card, and the hardware information collection system includes:
an ironic port creating module 501, configured to create a corresponding ironic port for the smart network card when the bare metal node is in a power-on state;
a port binding module 502, configured to create a Neutron port according to the ironic port, and bind the Neutron port to the smart network card of the bare metal node, so as to update a representative port of the smart network card to a binding attribute of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent;
a network access module 503, configured to access the representative port to the OVS bridge by calling the interface of the network card proxy, and enable an instance network of an ironic service; wherein the instect network is a vxlan network;
an information collection module 504, configured to control the bare metal node to upload hardware information to a cloud platform through the install network.
In this embodiment, when a bare metal node is in a power-on state, a corresponding ironic port is created for an intelligent network card of the bare metal node, after a Neutron port is bound to the intelligent network card of the bare metal node, the representative port is accessed to the OVS bridge through a port of a network card proxy, an interrupt network of the ironic service is enabled, and then the bare metal node is controlled to upload hardware information to a cloud platform through the interrupt network. According to the method, a user does not need to manually create an ironic port only capable of being used as a network card, and an insert network does not need to be opened manually. According to the scheme, hardware information can be automatically collected for the bare metal nodes provided with the intelligent network card.
Further, the method also comprises the following steps:
and the network setting module is used for setting the vxlan network managed by the Neutron service as the instance network of the ironic service before the representative port is accessed to the OVS bridge through calling the interface of the network card agent.
Further, the method also comprises the following steps:
a registration module, configured to register a corresponding management node for the bare metal node in the ironic service; the management node comprises identification information used for describing whether the bare metal node is provided with the intelligent network card or not.
Further, the ironic port creating module 501 is configured to obtain network card information of the intelligent network card by calling the interface of the network card proxy, and create a corresponding ironic port for the intelligent network card according to the network card information; the network card information comprises an MAC address, a representative port name and an intelligent network card host name.
Further, the network cut-through module 503 is configured to enable the instance network of the ironic service by issuing a logical flow table of a control plane to the OVS bridge.
Further, the method also comprises the following steps:
and the port removing module is used for deleting the Neutron port and removing the representative port from the OVS bridge by calling the interface of the network card agent after controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
Further, the method also comprises the following steps:
the power-on control module is used for judging whether the bare metal node is in a power-on state or not before a corresponding ironic port is established for the intelligent network card; if not, controlling the bare metal node to be powered on by issuing an ipmi command to the bare metal node.
Since the embodiment of the system part corresponds to the embodiment of the method part, the embodiment of the system part is described with reference to the embodiment of the method part, and is not repeated here.
The present application also provides a storage medium having a computer program stored thereon, which when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The application also provides a cloud computing platform, which may include a memory and a processor, wherein the memory stores a computer program, and the processor may implement the steps provided by the above embodiments when calling the computer program in the memory. Of course, the cloud computing platform may also include various network interfaces, power supplies, and other components.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are 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.
Claims (10)
1. A hardware information collection method of a bare metal node is characterized in that the bare metal node is provided with an intelligent network card, and the hardware information collection method comprises the following steps:
when the bare metal node is in a starting-up state, a corresponding ironic port is established for the intelligent network card;
creating a Neutron port according to the ironic port, and binding the Neutron port to the intelligent network card of the bare metal node so as to update the representative port of the intelligent network card to the binding property of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent;
accessing the representative port into an OVS bridge by calling an interface of the network card agent, and enabling an interrupt network of an ironic service; wherein the instect network is a vxlan network;
and controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
2. The method for collecting hardware information of a bare metal node according to claim 1, wherein before accessing the representative port to the OVS bridge by calling the interface of the network card agent, the method further comprises:
setting a vxlan network managed by a Neutron service as an instect network of the ironic service.
3. The bare metal node hardware information collection method according to claim 1, further comprising:
registering a corresponding management node for the bare metal node in the ironic service; the management node comprises identification information used for describing whether the bare metal node is provided with the intelligent network card or not.
4. The method for collecting hardware information of a bare metal node according to claim 1, wherein creating a corresponding ironic port for the smart card comprises:
acquiring network card information of the intelligent network card by calling an interface of the network card agent, and creating a corresponding ironic port for the intelligent network card according to the network card information; the network card information comprises an MAC address, a representative port name and an intelligent network card host name.
5. The hardware information collection method of the bare metal node as claimed in claim 1, wherein the ironic service enabled instance network comprises:
enabling the instact network of the ironic service by issuing a logical flow table of a control plane to the OVS bridge.
6. The method for collecting hardware information of a bare metal node according to claim 1, wherein after controlling the bare metal node to upload hardware information to a cloud platform through the instact network, the method further comprises:
and deleting the Neutron port, and removing the representative port from the OVS bridge by calling the interface of the network card agent.
7. The hardware information collecting method of the bare metal node according to any one of claims 1 to 6, further comprising, before creating a corresponding ironic port for the smart network card:
judging whether the bare metal node is in a starting-up state or not;
if not, controlling the bare metal node to be powered on by issuing an ipmi command to the bare metal node.
8. The utility model provides a bare metal node's hardware information collection system, its characterized in that, bare metal node installs intelligent network card, hardware information collection system includes:
an ironic port creating module, configured to create a corresponding ironic port for the intelligent network card when the bare metal node is in a power-on state;
a port binding module, configured to create a Neutron port according to the ironic port, and bind the Neutron port to the smart network card of the bare metal node, so as to update a representative port of the smart network card to a binding attribute of the Neutron port; the Arm system of the intelligent network card is provided with a network card agent;
the network access module is used for accessing the representative port to the OVS bridge by calling the interface of the network card agent and enabling the attack network of the ironic service; wherein the instect network is a vxlan network;
and the information collection module is used for controlling the bare metal node to upload hardware information to a cloud platform through the instect network.
9. A cloud computing platform comprising a memory and a processor, wherein the memory stores a computer program, and the processor when calling the computer program in the memory implements the steps of the hardware information collection method of a bare metal node according to any one of claims 1 to 7.
10. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, perform the steps of the method for hardware information collection of a bare metal node according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111257302.3A CN114024853B (en) | 2021-10-27 | 2021-10-27 | Hardware information collection method and system of bare metal node and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111257302.3A CN114024853B (en) | 2021-10-27 | 2021-10-27 | Hardware information collection method and system of bare metal node and related components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114024853A true CN114024853A (en) | 2022-02-08 |
CN114024853B CN114024853B (en) | 2024-05-28 |
Family
ID=80058315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111257302.3A Active CN114024853B (en) | 2021-10-27 | 2021-10-27 | Hardware information collection method and system of bare metal node and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114024853B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244703A (en) * | 2022-02-24 | 2022-03-25 | 苏州浪潮智能科技有限公司 | Bare metal server checking and deploying method, device, equipment and medium |
CN114546920A (en) * | 2022-02-20 | 2022-05-27 | 中电云数智科技有限公司 | Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130254521A1 (en) * | 2012-03-22 | 2013-09-26 | International Business Machines Corporation | Simulated Network Boot Environment for Bootstrap Redirection |
US20140137230A1 (en) * | 2012-11-15 | 2014-05-15 | Red Hat Israel, Ltd. | Provisioning proxy for provisioning data on hardware resources |
CN108628716A (en) * | 2017-03-21 | 2018-10-09 | 腾讯科技(深圳)有限公司 | Information receives guard system, method and device |
CN108984272A (en) * | 2018-07-23 | 2018-12-11 | 郑州云海信息技术有限公司 | The control method and device of OpenStack cloud computing management platform |
CN109150624A (en) * | 2018-09-14 | 2019-01-04 | 郑州云海信息技术有限公司 | A kind of bare machine management method, device, server and storage medium based on SDN |
WO2019084853A1 (en) * | 2017-11-01 | 2019-05-09 | 华为技术有限公司 | Method and system for discovering hardware attribute of bare metal server |
US20190251266A1 (en) * | 2018-02-14 | 2019-08-15 | Microsoft Technology Licensing, Llc | Clearance of bare metal resource to trusted state usable in cloud computing |
CN112003963A (en) * | 2020-08-27 | 2020-11-27 | 苏州浪潮智能科技有限公司 | Method, system, device and medium for mounting volume on bare metal server |
CN112036828A (en) * | 2020-08-28 | 2020-12-04 | 北京浪潮数据技术有限公司 | Bare metal management method, device, equipment and medium |
CN112395152A (en) * | 2019-08-19 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Server resource monitoring method and device |
CN112434278A (en) * | 2020-11-20 | 2021-03-02 | 北京浪潮数据技术有限公司 | Bare computer authentication method, apparatus, device and medium |
CN112866017A (en) * | 2021-01-08 | 2021-05-28 | 苏州浪潮智能科技有限公司 | Method, system, medium and device for configuring BMC IP address of bare metal server |
CN113419815A (en) * | 2021-05-28 | 2021-09-21 | 济南浪潮数据技术有限公司 | Method, system, equipment and medium for pre-starting operation environment installation |
-
2021
- 2021-10-27 CN CN202111257302.3A patent/CN114024853B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130254521A1 (en) * | 2012-03-22 | 2013-09-26 | International Business Machines Corporation | Simulated Network Boot Environment for Bootstrap Redirection |
US20140137230A1 (en) * | 2012-11-15 | 2014-05-15 | Red Hat Israel, Ltd. | Provisioning proxy for provisioning data on hardware resources |
CN108628716A (en) * | 2017-03-21 | 2018-10-09 | 腾讯科技(深圳)有限公司 | Information receives guard system, method and device |
WO2019084853A1 (en) * | 2017-11-01 | 2019-05-09 | 华为技术有限公司 | Method and system for discovering hardware attribute of bare metal server |
US20190251266A1 (en) * | 2018-02-14 | 2019-08-15 | Microsoft Technology Licensing, Llc | Clearance of bare metal resource to trusted state usable in cloud computing |
CN108984272A (en) * | 2018-07-23 | 2018-12-11 | 郑州云海信息技术有限公司 | The control method and device of OpenStack cloud computing management platform |
CN109150624A (en) * | 2018-09-14 | 2019-01-04 | 郑州云海信息技术有限公司 | A kind of bare machine management method, device, server and storage medium based on SDN |
CN112395152A (en) * | 2019-08-19 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Server resource monitoring method and device |
CN112003963A (en) * | 2020-08-27 | 2020-11-27 | 苏州浪潮智能科技有限公司 | Method, system, device and medium for mounting volume on bare metal server |
CN112036828A (en) * | 2020-08-28 | 2020-12-04 | 北京浪潮数据技术有限公司 | Bare metal management method, device, equipment and medium |
CN112434278A (en) * | 2020-11-20 | 2021-03-02 | 北京浪潮数据技术有限公司 | Bare computer authentication method, apparatus, device and medium |
CN112866017A (en) * | 2021-01-08 | 2021-05-28 | 苏州浪潮智能科技有限公司 | Method, system, medium and device for configuring BMC IP address of bare metal server |
CN113419815A (en) * | 2021-05-28 | 2021-09-21 | 济南浪潮数据技术有限公司 | Method, system, equipment and medium for pre-starting operation environment installation |
Non-Patent Citations (2)
Title |
---|
郭进先;: "云管平台裸金属分布式PXE服务", 信息与电脑(理论版), no. 09, 15 May 2019 (2019-05-15) * |
陈英达;钟苏生;周开东;黄恺彤;麦晓辉;: "云计算平台中裸金属物理服务器自动化批量部署方法研究", 科技创新与应用, no. 30, 28 October 2017 (2017-10-28) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546920A (en) * | 2022-02-20 | 2022-05-27 | 中电云数智科技有限公司 | Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture |
CN114546920B (en) * | 2022-02-20 | 2024-02-20 | 中电云计算技术有限公司 | Hot plug method for bare metal server data disc under Feiteng CPU architecture based on intelligent network card |
CN114244703A (en) * | 2022-02-24 | 2022-03-25 | 苏州浪潮智能科技有限公司 | Bare metal server checking and deploying method, device, equipment and medium |
CN114244703B (en) * | 2022-02-24 | 2022-05-10 | 苏州浪潮智能科技有限公司 | Bare metal server checking and deploying method, device, equipment and medium |
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 |
---|---|
CN114024853B (en) | 2024-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7600005B2 (en) | Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems | |
CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
CN112866017B (en) | Method, system, medium and device for configuring BMC IP address of bare metal server | |
CN114024853B (en) | Hardware information collection method and system of bare metal node and related components | |
CN111669284B (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
CN107483243A (en) | A kind of automatic deployment method and equipment of OpenStack platforms | |
CN108984272A (en) | The control method and device of OpenStack cloud computing management platform | |
CN104360878A (en) | Method and device for deploying application software | |
CN109445801A (en) | A kind of method and apparatus detecting bare machine network interface card information | |
CN112486522A (en) | Deployment method and device of OpenStack bare machine with intelligent network card | |
CN108989123A (en) | A kind of server configuration method and device | |
CN111124437A (en) | Bare computer resource configuration information acquisition method, system and equipment based on OpenStack | |
CN116932433B (en) | Installation control method based on DPU and related equipment | |
CN113626276A (en) | Method, system, terminal and storage medium for identifying HBA card model of server | |
WO2023159956A1 (en) | Bare metal server inspection and deployment method and apparatus, and device and medium | |
CN109995571B (en) | Method and device for matching server configuration and VNF application | |
CN109450682B (en) | IB network card communication configuration method and device, terminal and storage medium | |
CN112003727A (en) | Multi-node server power supply testing method, system, terminal and storage medium | |
CN111008043A (en) | Server starting method of cloud platform and terminal | |
CN112130900A (en) | User information management method, system, equipment and medium for BMC | |
CN114090329A (en) | Server restarting method under full-unloading architecture and related equipment | |
US20230325203A1 (en) | Provisioning dpu management operating systems using host and dpu boot coordination | |
CN114143187B (en) | Intelligent platform interface network address management method, system, terminal and storage medium | |
US20240036896A1 (en) | Generating installation images based upon dpu-specific capabilities | |
CN117596197A (en) | Server testing method, device, equipment and machine-readable storage medium |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20231117 Address after: Room 2301, No. 395 Linjiang Avenue, Tianhe District, Guangzhou City, Guangdong Province, 510655 (Location: Self made Unit 01) Applicant after: Guangdong Inspur Intelligent Computing Technology Co.,Ltd. Applicant after: INSPUR ELECTRONIC INFORMATION INDUSTRY Co.,Ltd. Address before: No. 1036, Shandong high tech Zone wave road, Ji'nan, Shandong Applicant before: INSPUR ELECTRONIC INFORMATION INDUSTRY Co.,Ltd. |
|
GR01 | Patent grant |