CN109150624A - A kind of bare machine management method, device, server and storage medium based on SDN - Google Patents

A kind of bare machine management method, device, server and storage medium based on SDN Download PDF

Info

Publication number
CN109150624A
CN109150624A CN201811072367.9A CN201811072367A CN109150624A CN 109150624 A CN109150624 A CN 109150624A CN 201811072367 A CN201811072367 A CN 201811072367A CN 109150624 A CN109150624 A CN 109150624A
Authority
CN
China
Prior art keywords
tenant
network
current
creation
information
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
CN201811072367.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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811072367.9A priority Critical patent/CN109150624A/en
Publication of CN109150624A publication Critical patent/CN109150624A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements

Abstract

The invention discloses a kind of bare machine management method, device, server and storage medium based on SDN;It is requested the described method includes: receiving the network creation that current tenant sends by SDN controller;Wherein, the network creation request includes at least the tenant identification of the current tenant;The corresponding tenant network of the current tenant is searched in the tenant network being pre-created in response to network creation request;If not finding the corresponding tenant network of the current tenant in the tenant network being pre-created, by checking Inspect network tenant network corresponding with current tenant described in supply Provision network creation;It is managed by the corresponding tenant network of the current tenant current bare machine BM corresponding to the current tenant.It may be implemented to be managed collectively bare machine, to meet the specific feasibility of tenant and high efficiency requirement.

Description

A kind of bare machine management method, device, server and storage medium based on SDN
Technical field
The present invention relates to virtual machine technique field, espespecially a kind of bare machine management method based on SDN, device, server and Storage medium.
Background technique
With the development of Information technology, cloud computing gradually becomes the Hot spots for development of industry, the cloud meter of domestic and international all big enterprises Service platform is calculated also to start to put into science, education, culture, health, government, high-performance calculation, e-commerce, Internet of Things one after another Etc. multiple fields carry out using.Software defined network (Software DefinedNetwork, SDN) is that Emulex network is a kind of New network of Emulex network innovation framework, is a kind of implementation of network virtualization, and core technology OpenFlow is by by the network equipment Control plane is separated with data surface, to realize the flexible control of network flow, network is made to become more intelligence as pipeline Energy.
Sea of clouds OS system provides virtual calculating for tenant and stores network service, but on other occasions, virtual machine It is not able to satisfy the requirement of tenant.Bare metal server scene is mainly used for meeting following need all using pure physical server , high performance computing cluster it asks: 1);2), calculating task needs to access the hardware device that can not be virtualized;3), big data and phase The projects such as the data science of pass and machine learning;4), single tenant, specialized hardware, safety, reliability and other controls are wanted It asks;5), rapid deployment cloud infrastructure.For the demand, it usually needs provide bare machine service, in sea of clouds OS to meet The unified pipe to bare machine and virtual machine is realized in feasibility and the high efficiency requirement of particular demands by unified sea of clouds OS system Reason.
Aiming at the problem that virtual machine that virtual computing service in virtualized environment provides is not able to satisfy special scenes demand, than Such as: high performance computing cluster, big data and relevant data science calculate service, machine learning, it is desirable that machine performance Configuration is higher, and the server of computer room can provide high performance computing service, but also need to realize operating system for bare machine It can be just supplied to client's use after the operations such as installation, driving installation, the installation of customized software, client faces how to realize class The problem of being similar to the operations such as operating system installation and the switching on and shutting down of virtual machine.
Summary of the invention
The bare machine management method that in order to solve the above-mentioned technical problems, the present invention provides a kind of based on SDN, device, service Device and storage medium may be implemented to be managed collectively bare machine, to meet the specific feasibility of tenant and high efficiency requirement.
In order to reach the object of the invention, in a first aspect, the present invention provides a kind of bare machine management method based on SDN, institute The method of stating includes:
The network creation request that current tenant sends is received by SDN controller;Wherein, the network creation is requested at least Tenant identification including the current tenant;
The corresponding rent of the current tenant is searched in the tenant network being pre-created in response to network creation request Family network;
If not finding the corresponding tenant network of the current tenant in the tenant network being pre-created, pass through Check Inspect network tenant network corresponding with current tenant described in supply Provision network creation;
It is managed by the corresponding tenant network of the current tenant current bare machine BM corresponding to the current tenant.
In the above-described embodiments, described corresponding by current tenant described in Inspect network and Provision network creation Tenant network, comprising:
Pass through the hardware information of current BM described in the Inspect network collection;Wherein, the hardware information at least wraps It includes: exchanger information, port information, CPU information, memory information, hard disk information and the BMC information of the current BM;
Pass through the corresponding rent of current tenant described in the Provision network creation according to the bare machine information of the current BM Family network.
In the above-described embodiments, the bare machine information according to the current BM passes through the Provision network creation The corresponding tenant network of the current tenant, comprising:
The corresponding core of the current tenant is determined by the Provision network according to the bare machine information of the current BM Heart interchanger;
Corresponding VLAN, VXLAN and IP address are configured for the corresponding core switch of the current tenant, is created that and works as The corresponding tenant network of preceding tenant.
In the above-described embodiments, described is that the corresponding core switch of the current tenant configures corresponding VLAN, VXLAN And IP address, comprising:
Pass through the corresponding secure group rule objects of current tenant described in the Provision network creation;
It is that the corresponding core switch of the current tenant is matched by the corresponding secure group rule objects of the current tenant Set corresponding VLAN, VXLAN and IP address.
Second aspect, the bare machine managing device based on SDN that the present invention provides a kind of, described device include: receiving module, Searching module, creation module and management module;Wherein,
The receiving module is requested for receiving the network creation that current tenant sends by SDN controller;Wherein, institute State the tenant identification that network creation request includes at least the current tenant;
The searching module, described in being searched in the tenant network being pre-created in response to network creation request The corresponding tenant network of current tenant;
The creation module, if for not finding the current tenant couple in the tenant network being pre-created The tenant network answered passes through the current corresponding tenant network of tenant described in Inspect network and Provision network creation;
The management module, for working as by the way that the corresponding tenant network of the current tenant is corresponding to the current tenant Preceding bare machine BM is managed.
In the above-described embodiments, the creation module includes: to collect submodule and creation submodule;Wherein,
The collection submodule, for the hardware information by current BM described in the Inspect network collection;Wherein, The hardware information includes at least: exchanger information, port information, CPU information, memory information, the hard disk letter of the current BM Breath and BMC information;
The creation submodule, for passing through the Provision network creation according to the bare machine information of the current BM The corresponding tenant network of the current tenant.
In the above-described embodiments, the creation submodule, specifically for passing through institute according to the bare machine information of the current BM It states Provision network and determines the corresponding core switch of the current tenant;For the corresponding core exchange of the current tenant Machine configures corresponding VLAN, VXLAN and IP address, is created that the corresponding tenant network of current tenant.
In the above-described embodiments, the creation submodule, be specifically used for by described in the Provision network creation when The corresponding secure group rule objects of preceding tenant;It is the current tenant by the corresponding secure group rule objects of the current tenant Corresponding core switch configures corresponding VLAN, VXLAN and IP address.
The third aspect, the embodiment of the invention provides a kind of servers, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the bare machine management method based on SDN described in any embodiment of that present invention.
Fourth aspect, the embodiment of the invention provides a kind of storage mediums, are stored thereon with computer program, the program quilt The bare machine management method based on SDN described in any embodiment of that present invention is realized when processor executes.
The embodiment of the present invention proposes a kind of bare machine management method, device, server and storage medium based on SDN, first The network creation request that current tenant sends is received by SDN controller;Wherein, network creation request includes at least current tenant Tenant identification;The corresponding rent of current tenant is searched in the tenant network being pre-created then in response to network creation request Family network;If not finding the corresponding tenant network of current tenant in the tenant network being pre-created, can pass through Inspect network and the corresponding tenant network of the current tenant of Provision network creation;Pass through the corresponding tenant of current tenant again Network current bare machine BM corresponding to current tenant is managed.That is, in the inventive solutions, can pass through Inspect network and the corresponding tenant network of the current tenant of Provision network creation;Pass through the corresponding tenant of current tenant again Network current bare machine BM corresponding to current tenant is managed.Therefore, compared to the prior art, the embodiment of the present invention proposes Bare machine management method, device, server and storage medium based on SDN, may be implemented to be managed collectively bare machine, to meet The specific feasibility of tenant and high efficiency requirement;Also, the technical solution realization of the embodiment of the present invention is simple and convenient, it is general to be convenient for And the scope of application is wider.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow diagram for the bare machine management method based on SDN that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the bare machine management method provided by Embodiment 2 of the present invention based on SDN;
Fig. 3 is the flow diagram for the bare machine management method based on SDN that the embodiment of the present invention three provides;
Fig. 4 is the first structure diagram for the bare machine managing device based on SDN that the embodiment of the present invention four provides;
Fig. 5 is the second structural schematic diagram of the bare machine managing device based on SDN that the embodiment of the present invention four provides;
Fig. 6 is the structural schematic diagram for the server that the embodiment of the present invention five provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Embodiment one
Fig. 1 is the flow diagram for the bare machine management method based on SDN that the embodiment of the present invention one provides, as shown in Figure 1, Bare machine management method based on SDN may comprise steps of:
Step 101 receives the network creation request that current tenant sends by SDN controller.
In a specific embodiment of the present invention, server can receive the network that current tenant sends by SDN controller Request to create;Wherein, network creation request includes at least the tenant identification of current tenant.Specifically, server can pass through SDN Controller can save the tenant identification of current tenant in the database, in this way, server is worked as being received by SDN controller After the network creation request that preceding tenant sends, server can search current tenant couple by SDN controller in the database The tenant network answered.
Step 102 searches the corresponding rent of current tenant in response to network creation request in the tenant network being pre-created Family network.
In a specific embodiment of the present invention, server is receiving the network that current tenant sends by SDN controller After request to create, server can request to search current tenant couple in the tenant network being pre-created in response to network creation The tenant network answered.If server finds the corresponding tenant network of current tenant in the tenant network being pre-created, take Business device can be managed by the corresponding tenant network of current tenant current BM corresponding to current tenant;If server is pre- The corresponding tenant network of current tenant is not found in the tenant network first created, then server can pass through Inspect net Network and the corresponding tenant network of the current tenant of Provision network creation, then pass through the corresponding tenant network pair of current tenant The current corresponding current BM of tenant is managed.
If step 103 does not find the corresponding tenant network of current tenant in the tenant network being pre-created, pass through Inspect network and the corresponding tenant network of the current tenant of Provision network creation.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, then server can be corresponding by Inspect network and the current tenant of Provision network creation Tenant network.Specifically, server can pass through the hardware information of the current BM of Inspect network collection;Wherein, hardware information is extremely It less include: exchanger information, port information, CPU information, memory information, hard disk information and the BMC information of current BM;Then Pass through the corresponding tenant network of the current tenant of Provision network creation according to the bare machine information of current BM.
Step 104 is managed by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, then server can be corresponding by Inspect network and the current tenant of Provision network creation Tenant network;Then server can by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Specifically, server can realize remote desktop login, long-range SSH, remote on-off etc. by sea of clouds OS.
The bare machine management method based on SDN that the embodiment of the present invention proposes first passes through SDN controller and receives current tenant's hair The network creation request sent;Wherein, network creation request includes at least the tenant identification of current tenant;Then in response to the network Request to create searches the corresponding tenant network of current tenant in the tenant network being pre-created;If in the tenant's net being pre-created The corresponding tenant network of current tenant is not found in network, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.That is, in the inventive solutions, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Therefore, compared to the prior art, the bare machine management method based on SDN that the embodiment of the present invention proposes, may be implemented pair Bare machine is managed collectively, to meet the specific feasibility of tenant and high efficiency requirement;Also, the technical side of the embodiment of the present invention Case realization is simple and convenient, it is universal to be convenient for, and the scope of application is wider.
Embodiment two
Fig. 2 is the flow diagram of the bare machine management method provided by Embodiment 2 of the present invention based on SDN.As shown in Fig. 2, Bare machine management method based on SDN may comprise steps of:
Step 201 receives the network creation request that current tenant sends by SDN controller.
In a specific embodiment of the present invention, server can receive the network that current tenant sends by SDN controller Request to create;Wherein, network creation request includes at least the tenant identification of current tenant.Specifically, server can pass through SDN Controller can save the tenant identification of current tenant in the database, in this way, server is worked as being received by SDN controller After the network creation request that preceding tenant sends, server can search current tenant couple by SDN controller in the database The tenant network answered.
Step 202 searches the corresponding rent of current tenant in response to network creation request in the tenant network being pre-created Family network.
In a specific embodiment of the present invention, server is receiving the network that current tenant sends by SDN controller After request to create, server can request to search current tenant couple in the tenant network being pre-created in response to network creation The tenant network answered.If server finds the corresponding tenant network of current tenant in the tenant network being pre-created, take Business device can be managed by the corresponding tenant network of current tenant current BM corresponding to current tenant;If server is pre- The corresponding tenant network of current tenant is not found in the tenant network first created, then server can pass through Inspect net Network and the corresponding tenant network of the current tenant of Provision network creation, then pass through the corresponding tenant network pair of current tenant The current corresponding current BM of tenant is managed.
If step 203 does not find the corresponding tenant network of current tenant in the tenant network being pre-created, pass through The hardware information of the current BM of Inspect network collection.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, server can pass through the hardware information of the current BM of Inspect network collection.Specifically, Inspect Network is by manual configuration interchanger, ironic node, to make can to exchange visits between BM and ironic node, it is ensured that BM energy Access the dhcp server on ironic node, tftp service;Enter the inspect stage by ironic api, ironic is opened Dynamic BM (such as BM has been turned on, then closes and restart), BM enters pxe startup stage;Pass through the dhcpd being deployed on ironic node Distribute the address ip;BM from ironic node tftp-server downloading deployment mirror image, including deploy-kernel and Deploy-ramdisk, after load ramdisk success, starting ironic-python-agent service;ironic-python- Agent starts to work, which can collect the hardware information of BM, including obtaining exchange from the LLDP agreement of connected interchanger Machine switch-id and port port-id, and others BM hardware information: CPU information, memory information, hard disk information and BMC information etc..Ironic-python-agent is collected into after BM hardware information, is reported to ipa-inspection- Callback-url specified url.Ipa-inspection-callback-url is in tftp-server It is configured in pxelinux.cfg, downloads to BM in deployment mirrored procedure;Ironic-inspector handles ironic- The data that python-agent is reported, and be stored in ironicdatabase.
Step 204 passes through the corresponding tenant's net of the current tenant of Provision network creation according to the bare machine information of current BM Network.
In a specific embodiment of the present invention, server can pass through Provision net according to the bare machine information of current BM Network creates the corresponding tenant network of current tenant.Specifically, server can pass through according to the bare machine information of current BM Provision network determines the corresponding core switch of current tenant;It then is the corresponding core switch configuration of current tenant Corresponding VLAN, VXLAN and IP address are created that the corresponding tenant network of current tenant.
Step 205 is managed by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, then server can be corresponding by Inspect network and the current tenant of Provision network creation Tenant network;Then server can by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Specifically, server can realize remote desktop login, long-range SSH, remote on-off etc. by sea of clouds OS.
The bare machine management method based on SDN that the embodiment of the present invention proposes first passes through SDN controller and receives current tenant's hair The network creation request sent;Wherein, network creation request includes at least the tenant identification of current tenant;Then in response to the network Request to create searches the corresponding tenant network of current tenant in the tenant network being pre-created;If in the tenant's net being pre-created The corresponding tenant network of current tenant is not found in network, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.That is, in the inventive solutions, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Therefore, compared to the prior art, the bare machine management method based on SDN that the embodiment of the present invention proposes, may be implemented pair Bare machine is managed collectively, to meet the specific feasibility of tenant and high efficiency requirement;Also, the technical side of the embodiment of the present invention Case realization is simple and convenient, it is universal to be convenient for, and the scope of application is wider.
Embodiment three
Fig. 3 is the flow diagram for the bare machine management method based on SDN that the embodiment of the present invention three provides.As shown in figure 3, Bare machine management method based on SDN may comprise steps of:
Step 301 receives the network creation request that current tenant sends by SDN controller.
In a specific embodiment of the present invention, server can receive the network that current tenant sends by SDN controller Request to create;Wherein, network creation request includes at least the tenant identification of current tenant.Specifically, server can pass through SDN Controller can save the tenant identification of current tenant in the database, in this way, server is worked as being received by SDN controller After the network creation request that preceding tenant sends, server can search current tenant couple by SDN controller in the database The tenant network answered.
Step 302 searches the corresponding rent of current tenant in response to network creation request in the tenant network being pre-created Family network.
In a specific embodiment of the present invention, server is receiving the network that current tenant sends by SDN controller After request to create, server can request to search current tenant couple in the tenant network being pre-created in response to network creation The tenant network answered.If server finds the corresponding tenant network of current tenant in the tenant network being pre-created, take Business device can be managed by the corresponding tenant network of current tenant current BM corresponding to current tenant;If server is pre- The corresponding tenant network of current tenant is not found in the tenant network first created, then server can pass through Inspect net Network and the corresponding tenant network of the current tenant of Provision network creation, then pass through the corresponding tenant network pair of current tenant The current corresponding current BM of tenant is managed.
If step 303 does not find the corresponding tenant network of current tenant in the tenant network being pre-created, pass through The hardware information of the current BM of Inspect network collection.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, server can pass through the hardware information of the current BM of Inspect network collection.Specifically, Inspect Network is by manual configuration interchanger, ironic node, to make can to exchange visits between BM and ironic node, it is ensured that BM energy Access the dhcp server on ironic node, tftp service;Enter the inspect stage by ironic api, ironic is opened Dynamic BM (such as BM has been turned on, then closes and restart), BM enters pxe startup stage;Pass through the dhcpd being deployed on ironic node Distribute the address ip;BM from ironic node tftp-server downloading deployment mirror image, including deploy-kernel and Deploy-ramdisk, after load ramdisk success, starting ironic-python-agent service;ironic-python- Agent starts to work, which can collect the hardware information of BM, including obtaining exchange from the LLDP agreement of connected interchanger Machine switch-id and port port-id, and others BM hardware information: CPU information, memory information, hard disk information and BMC information etc..Ironic-python-agent is collected into after BM hardware information, is reported to ipa-inspection- Callback-url specified url.Ipa-inspection-callback-url is in tftp-server It is configured in pxelinux.cfg, downloads to BM in deployment mirrored procedure;Ironic-inspector handles ironic- The data that python-agent is reported, and be stored in ironicdatabase.
Step 304 determines that the corresponding core of current tenant is handed over by Provision network according to the bare machine information of current BM It changes planes.
In a specific embodiment of the present invention, server can pass through Provision net according to the bare machine information of current BM Network determines the corresponding core switch of current tenant.Specifically, BM deployment during need provision network guarantee BM, Intercommunication between ironic node and network node, provision network are supplied to ironic and use in following procedure.Network Module creation specifies the provision network of vlan, since ironic node provides simultaneously for inspect, provision stage Service, needs ironic node to distinguish inspect network and provision network, therefore provision net by sub-interface The creation of network needs administrator to be appointed as the vlan that ironic node provision sub-interface configures;At SDN Controller Manage the network received, subnet request to create;SDNController configures TOR interchanger and core by netconf The port Vlan/Vxlan/IP of exchange.
Step 305 configures corresponding VLAN, VXLAN and IP address, creation for the corresponding core switch of current tenant The corresponding tenant network of current tenant out.
In a specific embodiment of the present invention, server can be corresponding for the corresponding core switch configuration of current tenant VLAN, VXLAN and IP address are created that the corresponding tenant network of current tenant.Specifically, server creates tenant network, Including network, subnet;After SDN Controller processing receives tenant network request to create, if the tenant does not have also Network was created, tenant is first created, is used for SDN controller management, then creates network, and by netconf to TOR Interchanger configures vxlan, and configuration Vxlan maps Vlan;Then SDN controller continues with the request of creation subnet, will Subnet information is stored to database;Network module creates router, and SDN controller creation router object is saved in database, and VRF is configured to SDN gateway by netconf, overlayRouter mouthfuls is configured, configures evpnvxlan;Network module creation peace Complete group, SDN controller creates safe group objects and is saved in database, and configures secure group to TOR interchanger by netconf; Network module creates secure group rule, and SDN controller creation secure group rule objects are saved in database, and pass through netconf The ACL table item where the secure group is configured to TOR interchanger.
Step 306 is managed by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant.
In a specific embodiment of the present invention, if server does not find current rent in the tenant network being pre-created The corresponding tenant network in family, then server can be corresponding by Inspect network and the current tenant of Provision network creation Tenant network;Then server can by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Specifically, server can realize remote desktop login, long-range SSH, remote on-off etc. by sea of clouds OS.
The bare machine management method based on SDN that the embodiment of the present invention proposes first passes through SDN controller and receives current tenant's hair The network creation request sent;Wherein, network creation request includes at least the tenant identification of current tenant;Then in response to the network Request to create searches the corresponding tenant network of current tenant in the tenant network being pre-created;If in the tenant's net being pre-created The corresponding tenant network of current tenant is not found in network, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.That is, in the inventive solutions, can be worked as by Inspect network and Provision network creation The corresponding tenant network of preceding tenant;Again by the corresponding tenant network of current tenant current bare machine BM corresponding to current tenant into Row management.Therefore, compared to the prior art, the bare machine management method based on SDN that the embodiment of the present invention proposes, may be implemented pair Bare machine is managed collectively, to meet the specific feasibility of tenant and high efficiency requirement;Also, the technical side of the embodiment of the present invention Case realization is simple and convenient, it is universal to be convenient for, and the scope of application is wider.
Example IV
Fig. 4 is the first structure diagram for the bare machine managing device based on SDN that the embodiment of the present invention four provides.Such as Fig. 4 Shown, described device includes: receiving module 401, searching module 402, creation module 403 and management module 404;Wherein,
The receiving module 401 is requested for receiving the network creation that current tenant sends by SDN controller;Wherein, The network creation request includes at least the tenant identification of the current tenant;
The searching module 402, for being searched in the tenant network being pre-created in response to network creation request The corresponding tenant network of the current tenant;
The creation module 403, if for not finding the current rent in the tenant network being pre-created The corresponding tenant network in family passes through the corresponding tenant's net of current tenant described in Inspect network and Provision network creation Network;
The management module 404, for by the corresponding tenant network of the current tenant to current tenant's correspondence Current bare machine BM be managed.
Fig. 5 is the second structural schematic diagram of the bare machine managing device based on SDN that the embodiment of the present invention four provides.Such as Fig. 5 Shown, the creation module 403 includes: to collect submodule 4031 and creation submodule 4032;Wherein,
The collection submodule 4031, for the hardware information by current BM described in the Inspect network collection;Its In, the hardware information includes at least: exchanger information, port information, CPU information, memory information, the hard disk of the current BM Information and BMC information;
The creation submodule 4032, for passing through the Provision network according to the bare machine information of the current BM Create the corresponding tenant network of the current tenant.
Further, the creation submodule 4032, it is described specifically for being passed through according to the bare machine information of the current BM Provision network determines the corresponding core switch of the current tenant;For the corresponding core switch of the current tenant Corresponding VLAN, VXLAN and IP address are configured, is created that the corresponding tenant network of current tenant.
Further, the creation submodule 4032 is specifically used for by current described in the Provision network creation The corresponding secure group rule objects of tenant;It is the current tenant couple by the corresponding secure group rule objects of the current tenant The core switch answered configures corresponding VLAN, VXLAN and IP address.
Method provided by any embodiment of the invention can be performed in the above-mentioned bare machine managing device based on SDN, has execution The corresponding functional module of method and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the present invention appoints The bare machine management method based on SDN that embodiment of anticipating provides.
Embodiment five
Fig. 6 is the structural schematic diagram for the server that the embodiment of the present invention five provides.Fig. 6, which is shown, to be suitable for being used to realizing this hair The block diagram of the exemplary servers of bright embodiment.The server 12 that Fig. 6 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in fig. 6, server 12 is showed in the form of universal computing device.The component of server 12 may include but not Be limited to: one or more processor or processing unit 16, system storage 28 connect different system components (including system Memory 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Server 12 typically comprises a variety of computer system readable media.These media can be and any can be serviced The usable medium that device 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Server 12 may further include other removable/nonremovable , volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not removable Dynamic, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 6, can provide Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Server 12 can also be logical with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.) Letter, can also be enabled a user to one or more equipment interact with the server 12 communicate, and/or with make the server The 12 any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicate. This communication can be carried out by input/output (I/O) interface 22.Also, server 12 can also pass through network adapter 20 With one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication. As shown, network adapter 20 is communicated by bus 18 with other modules of server 12.It should be understood that although not showing in figure Out, can in conjunction with server 12 use other hardware and/or software module, including but not limited to: microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the bare machine management method based on SDN provided by the embodiment of the present invention.
Embodiment six
The embodiment of the present invention six provides a kind of computer storage medium.
The computer readable storage medium of the embodiment of the present invention, can be using one or more computer-readable media Any combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer Readable storage medium storing program for executing for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, dress It sets or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium wraps It includes: there is the electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable Storage medium can be it is any include or storage program tangible medium, the program can be commanded execution system, device or Device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, the form of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention.And And it wherein includes the computer-usable storage medium of computer usable program code that the present invention, which can be used in one or more, The form for the computer program product implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.

Claims (10)

1. a kind of bare machine management method based on software defined network SDN, which is characterized in that the described method includes:
The network creation request that current tenant sends is received by SDN controller;Wherein, the network creation request includes at least The tenant identification of the current tenant;
The corresponding tenant's net of the current tenant is searched in the tenant network being pre-created in response to network creation request Network;
If not finding the corresponding tenant network of the current tenant in the tenant network being pre-created, pass through inspection Inspect network tenant network corresponding with current tenant described in supply Provision network creation;
It is managed by the corresponding tenant network of the current tenant current bare machine BM corresponding to the current tenant.
2. the method according to claim 1, wherein described created by Inspect network and Provision network Build the corresponding tenant network of the current tenant, comprising:
Pass through the hardware information of current BM described in the Inspect network collection;Wherein, the hardware information includes at least: institute State exchanger information, port information, CPU information, memory information, hard disk information and the BMC information of current BM;
Pass through the corresponding tenant's net of current tenant described in the Provision network creation according to the bare machine information of the current BM Network.
3. according to the method described in claim 2, it is characterized in that, the bare machine information according to the current BM is described in The corresponding tenant network of current tenant described in Provision network creation, comprising:
Determine that the corresponding core of the current tenant is handed over by the Provision network according to the bare machine information of the current BM It changes planes;
Corresponding VLAN, VXLAN and IP address are configured for the corresponding core switch of the current tenant, is created that current rent The corresponding tenant network in family.
4. according to the method described in claim 3, it is characterized in that, described is that the corresponding core switch of the current tenant is matched Set corresponding VLAN, VXLAN and IP address, comprising:
Pass through the corresponding secure group rule objects of current tenant described in the Provision network creation;
It is the corresponding core switch configuration pair of the current tenant by the corresponding secure group rule objects of the current tenant VLAN, the VXLAN and IP address answered.
5. a kind of bare machine managing device based on SDN, which is characterized in that described device includes: receiving module, searching module, wound Model block and management module;Wherein,
The receiving module is requested for receiving the network creation that current tenant sends by SDN controller;Wherein, the net Network request to create includes at least the tenant identification of the current tenant;
The searching module, it is described current for being searched in the tenant network being pre-created in response to network creation request The corresponding tenant network of tenant;
The creation module, if corresponding for not finding the current tenant in the tenant network being pre-created Tenant network passes through the current corresponding tenant network of tenant described in Inspect network and Provision network creation;
The management module, for corresponding to the current tenant currently naked by the corresponding tenant network of the current tenant Machine BM is managed.
6. device according to claim 5, which is characterized in that the creation module includes: to collect submodule and creation Module;Wherein,
The collection submodule, for the hardware information by current BM described in the Inspect network collection;Wherein, described Hardware information includes at least: the exchanger information of the current BM, port information, CPU information, memory information, hard disk information with And BMC information;
The creation submodule, for being passed through described in the Provision network creation according to the bare machine information of the current BM The corresponding tenant network of current tenant.
7. device according to claim 6, which is characterized in that the creation submodule is specifically used for according to described current The bare machine information of BM determines the corresponding core switch of the current tenant by the Provision network;It is described current The corresponding core switch of tenant configures corresponding VLAN, VXLAN and IP address, is created that the corresponding tenant's net of current tenant Network.
8. device according to claim 7, which is characterized in that the creation submodule is specifically used for by described The corresponding secure group rule objects of current tenant described in Provision network creation;Pass through the corresponding safety of the current tenant Group rule objects are that the corresponding core switch of the current tenant configures corresponding VLAN, VXLAN and IP address.
9. a kind of server characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now bare machine management method based on SDN according to any one of claims 1 to 4.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor Bare machine management method based on SDN according to any one of claims 1 to 4.
CN201811072367.9A 2018-09-14 2018-09-14 A kind of bare machine management method, device, server and storage medium based on SDN Pending CN109150624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811072367.9A CN109150624A (en) 2018-09-14 2018-09-14 A kind of bare machine management method, device, server and storage medium based on SDN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811072367.9A CN109150624A (en) 2018-09-14 2018-09-14 A kind of bare machine management method, device, server and storage medium based on SDN

Publications (1)

Publication Number Publication Date
CN109150624A true CN109150624A (en) 2019-01-04

Family

ID=64825297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811072367.9A Pending CN109150624A (en) 2018-09-14 2018-09-14 A kind of bare machine management method, device, server and storage medium based on SDN

Country Status (1)

Country Link
CN (1) CN109150624A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981809A (en) * 2019-01-28 2019-07-05 中国信息通信研究院 Software definition data center scene lower network forwarding device dispositions method and device
CN111324496A (en) * 2020-02-20 2020-06-23 山东汇贸电子口岸有限公司 Method and device for detecting bare machine
CN111371620A (en) * 2020-03-11 2020-07-03 苏州浪潮智能科技有限公司 Bare computer service deployment method and system based on distributed cache
CN113612702A (en) * 2021-09-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130776A (en) * 2016-07-14 2016-11-16 深圳市永达电子信息股份有限公司 A kind of method utilizing SDN technology to carry out virtual machine and physical server mixing management and control based on CloudStack cloud platform
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
US20180262387A1 (en) * 2017-03-07 2018-09-13 Nicira, Inc. Restoring control-plane connectivity with a network management entity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130776A (en) * 2016-07-14 2016-11-16 深圳市永达电子信息股份有限公司 A kind of method utilizing SDN technology to carry out virtual machine and physical server mixing management and control based on CloudStack cloud platform
US20180262387A1 (en) * 2017-03-07 2018-09-13 Nicira, Inc. Restoring control-plane connectivity with a network management entity
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苏研大云人: "IRONIC的网络方案系列(一)", 《腾讯[云+社区]》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981809A (en) * 2019-01-28 2019-07-05 中国信息通信研究院 Software definition data center scene lower network forwarding device dispositions method and device
CN111324496A (en) * 2020-02-20 2020-06-23 山东汇贸电子口岸有限公司 Method and device for detecting bare machine
CN111324496B (en) * 2020-02-20 2023-05-26 山东汇贸电子口岸有限公司 Method and device for detecting bare metal
CN111371620A (en) * 2020-03-11 2020-07-03 苏州浪潮智能科技有限公司 Bare computer service deployment method and system based on distributed cache
CN113612702A (en) * 2021-09-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components

Similar Documents

Publication Publication Date Title
CN109150624A (en) A kind of bare machine management method, device, server and storage medium based on SDN
WO2021051933A1 (en) Container cloud platform-based available area construction method and apparatus, device and storage medium
TWI598746B (en) Server systems and computer-implemented method for providing flexible hard-disk drive (hdd) and solid-state drive (ssd) support in a computing system
TWI621392B (en) Server system and cooling method
US8224957B2 (en) Migrating virtual machines among networked servers upon detection of degrading network link operation
US7970852B2 (en) Method for moving operating systems between computer electronic complexes without loss of service
US20140280805A1 (en) Two-Sided Declarative Configuration for Cloud Deployment
US20210083934A1 (en) Mechanism for hardware configuration and software deployment
US9892079B2 (en) Unified converged network, storage and compute system
US20170005880A1 (en) Dynamic highlight
US10992526B1 (en) Hyper-converged infrastructure networking configuration system
JP2018523192A (en) Executing commands on virtual machine instances in distributed computing environments
CN109189555A (en) A kind of implementation method of Port Mirroring, device, server and storage medium
US9009782B2 (en) Steering traffic among multiple network services using a centralized dispatcher
WO2018191849A1 (en) Cloud management platform, virtual machine management method and system thereof
CN106155264B (en) Manage the computer approach and computer system of the power consumption of storage subsystem
CN109388475A (en) A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine
CN109062699A (en) A kind of resource monitoring method, device, server and storage medium
CN109474467A (en) Network automatically management method, device, storage medium and electronic equipment
CN109391508B (en) Computer-implemented method for automatically composing data center resources in a data center
US9542200B2 (en) Dynamic port naming in a chassis
US8385359B2 (en) Information communication system, connection setting apparatus and non-transitory computer-readable storage medium storing connection setting program
US11184251B2 (en) Data center cartography bootstrapping from process table data
CN116932433B (en) Installation control method based on DPU and related equipment
CN109379292A (en) A kind of method of multicasting, virtual switch, SDN controller and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104