CN108282369A - A kind of physical machine remote deployment method and device based on openstack - Google Patents

A kind of physical machine remote deployment method and device based on openstack Download PDF

Info

Publication number
CN108282369A
CN108282369A CN201810083611.5A CN201810083611A CN108282369A CN 108282369 A CN108282369 A CN 108282369A CN 201810083611 A CN201810083611 A CN 201810083611A CN 108282369 A CN108282369 A CN 108282369A
Authority
CN
China
Prior art keywords
physical
deployment
node
physical machine
mirror image
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
CN201810083611.5A
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 CN201810083611.5A priority Critical patent/CN108282369A/en
Publication of CN108282369A publication Critical patent/CN108282369A/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/14Network analysis or design
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of physical machine remote deployment 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 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 the 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 deployment method and device based on openstack
Technical field
The invention belongs to computer realm more particularly to a kind of physical machine remote deployment method based on openstack 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 deployment schemes based on openstack, and therefore, there is an urgent need to provide one kind to be based on The physical machine remote deployment scheme of openstack realizes the isolation between tenant.
Invention content
The present invention provides a kind of physical machine remote deployment method and device based on openstack, to solve the above problems.
The present invention provides a kind of physical machine remote deployment method based on openstack.The above method includes:Receive physics Machine deployment request;
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 present invention also provides a kind of physical machine remote deployment device based on openstack, including:Request receiving module, Node selecting module, deployment module, wherein the request receiving module is connect with the node selecting module, the node choosing Module is selected to 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.
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 use same vlan networks, realize virtual machine and physical machine same 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 is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted 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 implementation mode
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 not conflicting In the case of, the features in the embodiments and the embodiments of the present 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 the ... of the embodiment 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.
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;After the physical machine starts, resource address is obtained by DHCP, to obtain the mirror image resources, The mirror image resources is deployed on the physical node;After the physical machine starts, resource address is obtained by DHCP, to obtain The mirror image resources is taken, the mirror image resources is deployed on the physical node;The physics section is shown by iSCSI protocol The hard disk of point is written user's mirror image, completes the deployment of the physical node.
Further, pass through the switching of telnet remote control physical switch vlan.
Further, the required parameter information include it is following any one or more:Specified mirror image, hardware template.
As shown in Fig. 2, the long-range vlan switchings of a kind 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) enter Nova;
(2) Nova Scheduler (sub-component of Nova services, for filtering out a suitable node, to create VM) Suitable physical node is selected according to the information (specified mirror image and hardware template etc.) in required parameter;
(3) Nova create a spawn task, and call Ironic API (provide outside access rest interfaces, The sub-component of ironic services) deployment physical node, Ironic retains required hardware resource in this subtask, and updates Database;
(4) other of Ironic and OpenStack service interaction, needed for Glance service acquisitions deployment physical node Mirror image resources, and it is that physical machine creates network port to call Neutron services;
(5) Ironic starts to dispose physical node, and PXE driver prepare tftp bootloader, IPMI driver and set It sets 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, flowchart scheme is changed by ovs to change vlan switchings.
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) configuration file is changed after installation is complete;
1, host configuration files are changed
2, globals.yml configuration files are changed
3, passwords.yml configuration files are changed
4, all.yml configuration files are changed
5, 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
6, preliminary examination.
kolla-ansible prechecks
7, deployment is executed.
kolla-ansible deploy
8, admin-openrc.sh files are generated.
kolla-ansible post-deploy
9, 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 distributes IP address, then with TFTP (trivial file Transfer protocol) or MTFTP (multicast trivial file transfer protocol) agreement download one It is executed in a startup software package to local memory, the setting of terminal basic software is completed by this startup software package, to which guiding is pre- 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 still may be used (in the case of being both fitted without operating system) in the case where operating system is not responding to or is not loaded 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 long-range to physical machine Carry out power-on and power-off either other operations rather than rely on physical switch or operating system.
ISCSI is an instruction set, which is to be combined existing scsi interface with Ethernet (Ethernet) technology, Make server that can intercourse data with the storage device of IP network is used.
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 the ... of the embodiment of the present invention is cut Changing device, including:Request receiving module 402, node selecting module 404, deployment module 406, wherein the request receiving module 402 connect with the node selecting module 404, and the node selecting module 404 is connect with the deployment module 406;
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.
Further, the control module changes physical switch vlan by telnet.
Further, the control module changes the switching that flowchart scheme changes vlan by ovs.
Further, the deployment module 406 includes:
Creating unit, for creating a spawn task;
Call unit, for calling access interface to dispose the physical node;
Resource acquisition unit, for obtaining the mirror image resources disposed needed for the physical node from Glance services, and It is that physical machine creates network port to call Neutron services.
Wherein, the resource acquisition unit obtains resource address, to obtain after physical machine startup by DHCP Mirror image resources is stated, the mirror image resources is deployed on the physical node, and the physical node is shown by iSCSI protocol Hard disk, be written user's mirror image, complete the deployment of the physical node.
Physical machine remote dummy LAN switching device based on openstack can also include:
Handover module 408, for the switching by telnet remote control physical switch vlan.
Further, the required parameter information include it is following any one or more:Specified mirror image, 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 the 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, any made by repair 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 deployment method based on openstack, which is characterized in that include the following steps:
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.
2. 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.
3. according to the method described in claim 2, it is characterized in that, after the physical machine starts, resource is obtained by DHCP The mirror image resources is deployed on the physical node by location with obtaining the mirror image resources;
The hard disk of the physical node is shown by iSCSI protocol, and user's mirror image is written, completes the deployment of the physical node.
4. according to the method described in claim 1, it is characterized in that, further including:
Pass through the switching of telnet remote control physical switch vlan.
5. method according to claim 1 to 4, which is characterized in that the required parameter information includes following Any one or more:Specified mirror image, hardware template.
6. a kind of physical machine remote deployment device based on openstack, which is characterized in that including:Request receiving module, node Selecting module, deployment module, wherein the request receiving module is connect with the node selecting module, and the node selects mould Block 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.
7. device according to claim 6, which is characterized in that the deployment module includes:
Creating unit, for creating a spawn task;
Call unit, for calling access interface to dispose the physical node;
Resource acquisition unit for obtaining the mirror image resources disposed needed for the physical node from Glance services, and calls Neutron services are that physical machine creates network port.
8. device according to claim 7, which is characterized in that the resource acquisition unit the physical machine startup after, Resource address is obtained by DHCP the mirror image resources is deployed on the physical node to obtain the mirror image resources, and The hard disk of the physical node is shown by iSCSI protocol, and user's mirror image is written, completes the deployment of the physical node.
9. device according to claim 6, which is characterized in that further include:
Handover module, for the switching by telnet remote control physical switch vlan.
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:Specified mirror image, hardware template.
CN201810083611.5A 2018-01-29 2018-01-29 A kind of physical machine remote deployment method and device based on openstack Pending CN108282369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810083611.5A CN108282369A (en) 2018-01-29 2018-01-29 A kind of physical machine remote deployment method and device based on openstack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810083611.5A CN108282369A (en) 2018-01-29 2018-01-29 A kind of physical machine remote deployment method and device based on openstack

Publications (1)

Publication Number Publication Date
CN108282369A true CN108282369A (en) 2018-07-13

Family

ID=62805612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810083611.5A Pending CN108282369A (en) 2018-01-29 2018-01-29 A kind of physical machine remote deployment method and device based on openstack

Country Status (1)

Country Link
CN (1) CN108282369A (en)

Cited By (7)

* 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
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
CN111901177A (en) * 2020-08-06 2020-11-06 鹏城实验室 Bare metal server network configuration method, system and related equipment
CN113760610A (en) * 2020-06-01 2021-12-07 富泰华工业(深圳)有限公司 OpenStack-based bare computer high-availability realization method and device and electronic equipment
CN114615285A (en) * 2022-03-11 2022-06-10 苏州浪潮智能科技有限公司 Physical machine deployment method and device, electronic equipment and storage medium

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 (11)

* 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
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
CN113760610A (en) * 2020-06-01 2021-12-07 富泰华工业(深圳)有限公司 OpenStack-based bare computer high-availability realization method and device and electronic equipment
CN111901177A (en) * 2020-08-06 2020-11-06 鹏城实验室 Bare metal server network configuration method, system and related equipment
CN111901177B (en) * 2020-08-06 2022-08-30 鹏城实验室 Bare metal server network configuration method, system and related equipment
CN114615285A (en) * 2022-03-11 2022-06-10 苏州浪潮智能科技有限公司 Physical machine deployment method and device, electronic equipment and storage medium
CN114615285B (en) * 2022-03-11 2023-09-19 苏州浪潮智能科技有限公司 Physical machine deployment method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108282369A (en) A kind of physical machine remote deployment method and device based on openstack
US10949246B2 (en) Automated network configuration of virtual machines in a virtual lab environment
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
US9304793B2 (en) Master automation service
Nurmi et al. The eucalyptus open-source cloud-computing system
US9385918B2 (en) System and method for secure provisioning of virtualized images in a network environment
US20190188014A1 (en) Virtual appliances
US12045642B2 (en) Virtual machine management method and apparatus for cloud platform
CN107357660A (en) The distribution method and device of a kind of virtual resource
CN106657444B (en) A kind of method and device for the IP address configuring BMC
CN103595801B (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
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
JP2024519310A (en) Agentless installation for building deployments
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
US20230325203A1 (en) Provisioning dpu management operating systems using host and dpu boot coordination
Kaushal Bootstrapping a Private Cloud
CN113039757B (en) Provider network service extensions
RU2690415C1 (en) Technology of automatic start of an operating system on a hardware platform with elements not supported by operating system modules when the computer is turned on
Krylosova Implementing container-based virtualization in a hybrid 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
Luehm Iseman: A management and deployment interface for lab-based activities within iserink
CN118101457A (en) Bare metal instance deployment method, device, equipment and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication