CN108259305A - A kind of physical machine remote dummy lan handover method and device based on openstack - Google Patents

A kind of physical machine remote dummy lan handover method and device based on openstack Download PDF

Info

Publication number
CN108259305A
CN108259305A CN201810083612.XA CN201810083612A CN108259305A CN 108259305 A CN108259305 A CN 108259305A CN 201810083612 A CN201810083612 A CN 201810083612A CN 108259305 A CN108259305 A CN 108259305A
Authority
CN
China
Prior art keywords
physical
node
deployment
module
physical machine
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
CN201810083612.XA
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 CN201810083612.XA priority Critical patent/CN108259305A/en
Publication of CN108259305A publication Critical patent/CN108259305A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The embodiment of the present invention provides a kind of physical machine remote dummy lan handover method and device based on openstack, and wherein method includes:Receive physical machine deployment request;Physical node is selected according to the required parameter information of the deployment request;Physical machine is disposed on the physical node;The switching of remote control physical switches virtual LAN.The isolation of vlan networks under different tenants is realized through the embodiment of the present invention.Virtual machine and physical machine realize virtual machine and physical machine in same vlan networks using same vlan networks.Tenant network is non-shared network, other tenants can not be as it can be seen that isolation between realizing tenant, and is capable of the vlan switchings of remote control physical switches.

Description

A kind of physical machine remote dummy lan handover method based on openstack and Device
Technical field
The invention belongs to computer realm more particularly to a kind of physical machine remote dummy LANs based on openstack Switching method and device.
Background technology
OpenStack is a US National Aeronautics and Space Administration and Rackspace R & D Cooperations, with Apache licensings It authorizes, and is a free software and open source code project.
OpenStack is one it is intended that public and private clound construction provides the open source projects of software with management.It Community has more than 130 enterprises and 1350 developers, these mechanisms and individual are using OpenStack as basic facility Service the universal front end of (abbreviation IaaS) resource.The top priority of OpenStack projects is the deployment process of simplified cloud and is it Bring good scalability.
There is presently no the physical machine remote dummy LAN handover schemes based on openstack, and therefore, there is an urgent need to carry For a kind of vlan handover schemes for being capable of remote control physical switches, the isolation between tenant is realized.
Invention content
The present invention provides a kind of physical machine remote dummy lan handover method and device based on openstack, with solution The certainly above problem.
The present invention provides a kind of physical machine remote dummy lan handover method based on openstack.Above method packet It includes:Receive physical machine deployment request;
Physical node is selected according to the required parameter information of the deployment request;
Physical machine is disposed on the physical node;
The virtual LAN switching of remote control physical switches.
The present invention also provides a kind of physical machine remote dummy LAN switching device based on openstack, including:Request Receiving module, node selecting module, deployment module, control module, wherein, the request receiving module selects mould with the node Block connects, and the node selecting module is connect with the deployment module;
Request receiving module, for receiving physical machine deployment request;
Node selecting module, for selecting physical node according to the required parameter information of the deployment request;
Deployment module, for disposing physical machine on the physical node;
Control module switches for the virtual LAN of remote control physical switches.
Pass through following scheme:Physical machine deployment request is received, according to the required parameter information candidate of the deployment request Node is managed, physical machine, the virtual LAN switching of remote control physical switches are disposed on the physical node.It realizes not With the isolation of vlan networks under tenant.Virtual machine and physical machine realize virtual machine and physical machine same using same vlan networks In one vlan network.Tenant network is non-shared network, other tenants can not as it can be seen that isolation between realizing tenant, and And it is capable of the vlan switchings of remote control physical switches.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is shown at the physical machine remote dummy lan handover method based on openstack of the embodiment of the present invention 1 Manage flow chart;
Fig. 2 show the long-range vlan switching methods deployment flow of the physical machine based on openstack of the embodiment of the present invention 2 Figure;
Fig. 3 show the physical machine network topological diagram schematic diagram of deployment of the embodiment of the present invention;
Fig. 4 show the physical machine remote dummy LAN switching device knot based on openstack of the embodiment of the present invention 3 Composition.
Specific embodiment
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be combined with each other.
Fig. 1 is shown at the physical machine remote dummy lan handover method based on openstack of the embodiment of the present invention 1 Flow chart is managed, as shown in Figure 1, a kind of physical machine remote dummy LAN based on openstack according to embodiments of the present invention Switching method includes the following steps:
Step 102, physical machine deployment request is received.Step 104, it is selected according to the required parameter information of the deployment request Physical node.Step 106, physical machine is disposed on the physical node.Step 108, remote control physical switches is virtual LAN switches.
In step 108, the switching of the remote control physical switches virtual LAN, including:
Physical switch vlan is changed by telnet.
In step 108, the switching of the remote control physical switches virtual LAN, including:
The switching of flowchart scheme modification vlan is changed by ovs.
Above-mentioned steps 106 can specifically include:
Create a spawn task;
Access interface is called to dispose the physical node;
The mirror image resources disposed needed for the physical node is obtained from Glance services, and calls the Neutron services to be Physical machine creates network port;
The hard disk of the physical node is shown by iSCSI protocol, user's mirror image is written, completes the portion of the physical node Administration.
Further, the required parameter information include it is following any one or more:The mirror image specified, hardware template.
As shown in Fig. 2, a kind of long-range vlan switchings of physical machine based on openstack according to another embodiment of the present invention Method disposes flow.Specific implementation process is as follows:
(1) request of deployment physical machine (provides the rest interfaces of outside access, the subgroup of nova services by Nova API Part) into Nova;
(2) Nova Scheduler (sub-component of Nova services, for filtering out a suitable node, to create VM) Information (mirror image specified and hardware template etc.) in required parameter selects suitable physical node;
(3) Nova create a spawn task, and call Ironic API (provide outside access rest interfaces, The sub-component of ironic services) physical node is disposed, Ironic retains hardware resource required in this subtask, and update Database;
(4) other of Ironic and OpenStack service interaction, from needed for Glance service acquisitions deployment physical node Mirror image resources, and Neutron services is called to create network port for physical machine;
(5) Ironic starts to dispose physical node, and PXE driver prepare tftp bootloader, IPMI driver and set It puts physical machine start-up mode and powers on machine;
(6) after physical machine starts, by DHCP obtain Ironic Conductor (sub-component of Ironic, database Interaction by it, be Ironic function treatment Agent Services, receive the order that ironic-api is issued) address and trial pass through Tftp agreements obtain mirror image from Conductor, and Conductor will be disposed after mirror image is deployed on physical node, be assisted by iSCSI The hard disk of physical node is exposed view, is subsequently written user's mirror image, after successful deployment user's mirror image, the deployment of physical node Just complete.
(7) deployment user's mirror image can be switched to tenant network, but the no longer same vlan of tenant network and on-premise network It is interior, physical switch vlan is changed by telnet.
Fig. 3 is the physical machine network topological diagram schematic diagram of deployment of the embodiment of the present invention.Four, left side mouth is Trunk mouthfuls, Premit vlan 1,10.Four, the right mouth is access vlan 10, and eth0 manages net, eth1 tenant networks.
The installation of bare machine management environment and configuration method.Specific implementation process is as follows
(1) installation operation system (is deployed in virtual machine or in physical machine, ocata ISO are using ocata ISO The iso that oneself is packaged);
(2) modification configuration file after installation is complete;
1st, host configuration files are changed
2nd, globals.yml configuration files are changed
3rd, passwords.yml configuration files are changed
4th, all.yml configuration files are changed
5th, addition deployment mirror image
Cd/etc/kolla/config/ironic/ (no catalogue needs to create)
Add ironic-agent.initramfs ironic-agent.kernel (needing to be packaged)
Packaging method:
1.pip install diskimage-builder
2.disk-image-create ubuntu vm dhcp-all-interfaces-o my-image
Execution can generate my-image.initrd, my-image.initrd and my-image.qcow2 file.
3.glance image-create--name my-kernel--visibility public
--disk-format aki--container-format aki<my-image.vmlinuz
4.glance image-create--name my-image.initrd--visibility public--disk- format ari--container-format ari<my-image.initrd
5.glance image-create--name my-image--visibility public
--disk-format qcow2--container-format bare
-- property kernel_id=$ MY_VMLINUZ_UUID
-- property ramdisk_id=$ MY_INITRD_UUID<my-image.qcow2
6th, preliminary examination.
kolla-ansible prechecks
7th, deployment is performed.
kolla-ansible deploy
8th, admin-openrc.sh files are generated.
kolla-ansible post-deploy
9th, deployment is completed, with configured ip address registrations environment before.
The embodiment of the present invention is completed to physical machine from power-up, is installed to system, to the management for destroying whole life cycle. Use PXE (pre-boot environment), IPMI (power management), ISCSI (storage) key technology.
PXE (preboot execute environment) Pre-boot Execution Environment.PXE is being opened without disk for current mainstream Dynamic technology, it can make computer pass through network rather than start from equipment such as local hard drive, CD-ROM drives, using Client/ The network mode of Server, in start-up course, demanding terminal server-assignment IP address, then with TFTP (trivial file Transfer protocol) or MTFTP (multicast trivial file transfer protocol) agreement download one It is performed in a startup software package to local memory, the setting of terminal basic software is completed by this startup software package, it is pre- so as to guide Terminal operating system in the server is first installed.
IPMI information is exchanged by network connection to baseboard management controller (BMC), does not depend on BOIS or operation System, this to be not responding in operating system or still may be used (in the case of being both fitted without operating system) in the case of not loading To carry out the operations such as switching on and shutting down, information extraction to physical machine.Bare machine management is exactly using this technology can be remotely to physical machine Carry out power-on and power-off either other operations rather than dependence physical switch or operating system.
ISCSI is an instruction set, which is to be combined existing scsi interface with Ethernet (Ethernet) technology, Make server can be with the storage device of IP network is used to intercourse data.
Fig. 4 show the physical machine remote dummy LAN switching device knot based on openstack of the embodiment of the present invention 3 Composition.
As shown in figure 4, a kind of physical machine remote dummy LAN based on openstack according to embodiments of the present invention is cut Changing device, including:Request receiving module 402, node selecting module 404, deployment module 406, control module 408, wherein, it is described Request receiving module 402 is connect with the node selecting module 404, the node selecting module 404 and the deployment module 406 Connection;
Request receiving module 402, for receiving physical machine deployment request;
Node selecting module 404, for selecting physical node according to the required parameter information of the deployment request;
Deployment module 406, for disposing physical machine on the physical node;
Control module 408 switches for the virtual LAN of remote control physical switches.
Further, the control module changes physical switch vlan by telnet.
Further, the control module changes the switching of flowchart scheme modification vlan by ovs.
Further, the deployment module 406 includes:
Creating unit, for creating a spawn task;
Call unit, for access interface to be called to dispose the physical node;
Resource acquisition unit, for obtaining the mirror image resources disposed needed for the physical node in being serviced from Glance, and Neutron services is called to create network port for physical machine, the hard disk of the physical node, write-in are shown by iSCSI protocol User's mirror image completes the deployment of the physical node.
Further, the required parameter information include it is following any one or more:The mirror image specified, hardware template.
The isolation of vlan networks under different tenants is realized through the embodiment of the present invention.Virtual machine and physical machine use same Vlan networks realize virtual machine and physical machine in same vlan networks.Tenant network is non-shared network, other tenants without Method is capable of the vlan switchings of remote control physical switches as it can be seen that isolation between realizing tenant.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of physical machine remote dummy lan handover method based on openstack, which is characterized in that including following step Suddenly:
Receive physical machine deployment request;
Physical node is selected according to the required parameter information of the deployment request;
Physical machine is disposed on the physical node;
The virtual LAN switching of remote control physical switches.
2. according to the method described in claim 1, it is characterized in that, the remote control physical switches virtual LAN is cut It changes, including:
Physical switch vlan is changed by telnet.
3. according to the method described in claim 1, it is characterized in that, the remote control physical switches virtual LAN is cut It changes, including:
The switching of flowchart scheme modification vlan is changed by ovs.
4. according to the method described in claim 1, it is characterized in that, described dispose physical machine on the physical node, including:
Create a spawn task;
Access interface is called to dispose the physical node;
The mirror image resources disposed needed for the physical node is obtained from Glance services, and it is physics to call Neutron services Machine creates network port;
The hard disk of the physical node is shown by iSCSI protocol, user's mirror image is written, completes the deployment of the physical node.
5. method according to any one of claim 1 to 4, which is characterized in that the required parameter information includes following Any one or more:The mirror image specified, hardware template.
6. a kind of physical machine remote dummy LAN switching device based on openstack, which is characterized in that including:Request connects Module, node selecting module, deployment module, control module are received, wherein, the request receiving module and the node selecting module Connection, the node selecting module are connect with the deployment module;
Request receiving module, for receiving physical machine deployment request;
Node selecting module, for selecting physical node according to the required parameter information of the deployment request;
Deployment module, for disposing physical machine on the physical node;
Control module switches for the virtual LAN of remote control physical switches.
7. device according to claim 6, which is characterized in that the control module changes physical switches by telnet Port vlan.
8. device according to claim 6, which is characterized in that the control module is changed flowchart scheme by ovs and changed The switching of vlan.
9. device according to claim 6, which is characterized in that the deployment module includes:
Creating unit, for creating a spawn task;
Call unit, for access interface to be called to dispose the physical node;
Resource acquisition unit for obtaining the mirror image resources disposed needed for the physical node in being serviced from Glance, and calls Neutron services create network port for physical machine, and the hard disk of the physical node is shown by iSCSI protocol, and user is written Mirror image completes the deployment of the physical node.
10. the device according to any one of claim 6 to 9, which is characterized in that the required parameter information includes following Any one or more:The mirror image specified, hardware template.
CN201810083612.XA 2018-01-29 2018-01-29 A kind of physical machine remote dummy lan handover method and device based on openstack Pending CN108259305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810083612.XA CN108259305A (en) 2018-01-29 2018-01-29 A kind of physical machine remote dummy lan handover method and device based on openstack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810083612.XA CN108259305A (en) 2018-01-29 2018-01-29 A kind of physical machine remote dummy lan handover method and device based on openstack

Publications (1)

Publication Number Publication Date
CN108259305A true CN108259305A (en) 2018-07-06

Family

ID=62742127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810083612.XA Pending CN108259305A (en) 2018-01-29 2018-01-29 A kind of physical machine remote dummy lan handover method and device based on openstack

Country Status (1)

Country Link
CN (1) CN108259305A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984272A (en) * 2018-07-23 2018-12-11 郑州云海信息技术有限公司 The control method and device of OpenStack cloud computing management platform
CN109144821A (en) * 2018-09-05 2019-01-04 山东浪潮云投信息科技有限公司 Physical server automatic management method in a kind of cloud computation data center
CN109445801A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 A kind of method and apparatus detecting bare machine network interface card information
CN109684033A (en) * 2018-12-11 2019-04-26 武汉烽火信息集成技术有限公司 Cloud platform bare machine management method, storage medium, electronic equipment and system
CN110753093A (en) * 2019-09-29 2020-02-04 苏州浪潮智能科技有限公司 Method and device for managing equipment in cloud computing system
CN112187522A (en) * 2020-09-10 2021-01-05 苏州浪潮智能科技有限公司 Method and device for upgrading BMC at CPU end

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813444A (en) * 2003-06-30 2006-08-02 英特尔公司 System and method for programmatically changing the network location of a network component
CN104780078A (en) * 2015-04-03 2015-07-15 山东华软金盾软件有限公司 Method and system for initiatively detecting IP (Internet protocol) of switch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813444A (en) * 2003-06-30 2006-08-02 英特尔公司 System and method for programmatically changing the network location of a network component
CN104780078A (en) * 2015-04-03 2015-07-15 山东华软金盾软件有限公司 Method and system for initiatively detecting IP (Internet protocol) of switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张忠琳: "ironic介绍与原理", 《CSDN博客》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984272A (en) * 2018-07-23 2018-12-11 郑州云海信息技术有限公司 The control method and device of OpenStack cloud computing management platform
CN109144821A (en) * 2018-09-05 2019-01-04 山东浪潮云投信息科技有限公司 Physical server automatic management method in a kind of cloud computation data center
CN109445801A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 A kind of method and apparatus detecting bare machine network interface card information
CN109684033A (en) * 2018-12-11 2019-04-26 武汉烽火信息集成技术有限公司 Cloud platform bare machine management method, storage medium, electronic equipment and system
CN109684033B (en) * 2018-12-11 2021-04-27 武汉烽火信息集成技术有限公司 Cloud platform bare metal management method, storage medium, electronic device and system
CN110753093A (en) * 2019-09-29 2020-02-04 苏州浪潮智能科技有限公司 Method and device for managing equipment in cloud computing system
CN110753093B (en) * 2019-09-29 2022-11-29 苏州浪潮智能科技有限公司 Method and device for managing equipment in cloud computing system
CN112187522A (en) * 2020-09-10 2021-01-05 苏州浪潮智能科技有限公司 Method and device for upgrading BMC at CPU end

Similar Documents

Publication Publication Date Title
US10949246B2 (en) Automated network configuration of virtual machines in a virtual lab environment
CN108282369A (en) A kind of physical machine remote deployment method and device based on openstack
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
US10986174B1 (en) Automatic discovery and configuration of server nodes
US20180004577A1 (en) Methods and systems for managing interconnection of virtual network functions
Nurmi et al. The eucalyptus open-source cloud-computing system
US9304793B2 (en) Master automation service
CN113452830B (en) Batch control method of android cloud mobile phone, computer readable medium and electronic device
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
Beloglazov et al. Deploying OpenStack on CentOS using the KVM Hypervisor and GlusterFS distributed file system
CN108667779B (en) Method and server for remotely logging in container
CN114070723A (en) Virtual network configuration method and system of bare metal server and intelligent network card
US20240155023A1 (en) Method and system for implementing bare metal inspection process, device, and storage medium
US11573819B2 (en) Computer-implemented method for reducing service disruption times for a universal customer premise equipment, uCPE, device with resource constraint in a network functions virtualization, NFV, network infrastructure
CN113918174A (en) Bare metal server deployment method, deployment controller and server cluster
EP4350553A2 (en) Configurable memory device connected to a microprocessor
Zander et al. CAIA testbed for TEACUP experiments version 2
US20230325203A1 (en) Provisioning dpu management operating systems using host and dpu boot coordination
Vetter et al. IBM Power Systems HMC Implementation and Usage Guide
CN113039757B (en) Provider network service extensions
Kaushal Bootstrapping a Private Cloud
Jadhav Configuration and automation of OpenStack deployment
Comas Gómez Despliegue de un gestor de infraestructura virtual basado en Openstack para NFV
Ghonsikar Openstack cloud installation and uninstallation automation
Donepudi et al. Designing a web-based graphical interface for virtual machine management

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: 20180706