CN105426243A - Openstack based physical machine remote maintenance method - Google Patents

Openstack based physical machine remote maintenance method Download PDF

Info

Publication number
CN105426243A
CN105426243A CN201510799361.1A CN201510799361A CN105426243A CN 105426243 A CN105426243 A CN 105426243A CN 201510799361 A CN201510799361 A CN 201510799361A CN 105426243 A CN105426243 A CN 105426243A
Authority
CN
China
Prior art keywords
physical machine
node
ipmi
openstack
physical
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
CN201510799361.1A
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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201510799361.1A priority Critical patent/CN105426243A/en
Publication of CN105426243A publication Critical patent/CN105426243A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of physical machine power control and cloud computing virtual machine migration, in particular to an Openstack based physical machine remote maintenance method. The method comprises: firstly, establishing an Openstack cloud platform and setting an IPMI address, an IPMI login user name and a password of a physical machine; secondly, searching for an available physical node in a normal state according to a greedy algorithm at a control node of the Openstack cloud platform, sending an instruction of migrating a virtual machine to the available physical node to a target physical machine through a component, and after all virtual machines are migrated, sending a shutdown command to a baseboard management controller (BMC) of the target physical machine; and finally, executing a request by the BMC of the target physical machine, and returning an executive result. According to the method, the problems that the virtual machines need to be migrated before physical machine maintenance, a Juno version of the Openstack open source cloud platform cannot perform remote physical machine maintenance, an application cannot be ensured to be normally and continuously used, inconvenience is provided for the operation and maintenance personnel to maintain the physical machine, and the like are solved; and the method can be applied to physical machine maintenance and virtual machine migration of the cloud platform.

Description

A kind of method of the physical machine remote maintenance based on Openstack
Technical field
The present invention relates to physical machine Energy control and cloud computing virtual machine migration technology field, particularly a kind of method of the physical machine remote maintenance based on Openstack.
Background technology
Along with Openstack cloud platform of increasing income is fast-developing, there are more and more service provider and enterprise by the service of the publicly-owned cloud of the similar Amazon of the IasS that increases income (namely infrastructure serve) cloud platform building, included the users such as Sina, China Mobile, China Telecom, national grid, Japan Telecom Co. Ltd operator KDDI and also use Openstack cloud platform of increasing income.But Openstack cloud platform side overweights and carries out remote-control to virtual machine, and ignore physical machine remote-control importance.Continuous expansion along with business causes cloud platform to increase increasing physical machine node to provide virtualization services, thing followed problem:
One is that tradition cloud platform of increasing income does not have the function of physical machine telemanagement usually, not by cloud platform universal remote managing physical machine, need other a set of physical machine management system come managing physical machine, particularly server free need not, need long-rangely to carry out attended operation to physical machine.
Two is application service quality problems.As everyone knows, the application be concerned about most of user is all deployed in inside virtual machine, and virtual machine is physically based deformation machine then.If carry out O&M to physical machine, in order to ensure that application can normally run, just need first to move in this physical machine all virtual machines to other enabled nodes by cloud platform, ensure application GPS survey availability, just carry out physical machine power-off operation by other system, under last operation maintenance personnel line, carry out maintenance work.
In order to the power supply status of Openstack cloud platform uniform management physical machine and virtual machine, improve application service quality, especially high application availability is ensured, improve the work convenience that operation maintenance personnel safeguards physical machine, need a kind of method of the physical machine remote maintenance based on Openstack, the power supply status of unified management virtual machine and physical machine.
Summary of the invention
The technical matters that the present invention solves is a kind of method providing physical machine novel maintenance based on Openstack, needs first to move virtual machine, meets Openstack cloud platform Juno version of increasing income and can not safeguard, can not ensure that application can normally continue to use, operation maintenance personnel safeguards the problems such as physical machine is convenient not by remote physical machine before solving physical machine O&M.
The technical scheme that the present invention solves the problems of the technologies described above is:
Described method comprises the steps:
Step 1: the IPMI IPMI address of physical machine, login username and password are set;
Step 2: user's request is to destination node remote maintenance;
Step 3: the available physical node searching normal condition according to greedy algorithm;
Step 4: send request " moving all virtual machines of destination node to available physical node ";
Step 5: destination node performs all virtual machines of migration to available physical node;
Step 6: perform shutdown by IPMI IPMI;
Step 7: operation maintenance personnel is safeguarded under carrying out line;
Step 8: physical machine node maintenance completes.
User, by the Web interface of Openstack, clicks destination node, and request is to destination node remote maintenance.
Described greedy algorithm refer to find the computational resource of first node, storage resources be more than or equal to resources of virtual machine calculate and stored configuration as available physical node.
After destination node receives request, be in just in the virtual machine list of running status by this ground of Libvirt interface polls is all, circulation performs each virtual machine and moves on to available physical node, if originally enabled node resource not, then again find new enabled node according to greedy algorithm, until all virtual machines are moved successfully, and return results;
Described Libvirt is the C function library of the virtual instrument of main flow that is free, that increase income of (SuSE) Linux OS, its objective is that the various virtual instrument comprising Kvm, Xen provides a set of convenience, reliably DLL (dynamic link library), support the multiple main flow programming languages such as C, C++, Java and Python.
Background service receives the result of virtual machine powered-down, and the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
The present invention is by Libvirt interface and IPMI, support to shut down to the Server remote of various main brand, and unification moves virtual machine to available physical node on platform, ensure application High Availabitity, then carry out powered-down operation to physical machine, the present invention is also for O&M provides very large convenience.The present invention is different from general cloud platform of increasing income can not the power supply status of unified management physical machine and virtual machine, be not subject to the restriction of server brand and operating system, can also ensure while O&M physical machine that virtual machine normally runs down, effectively avoid user because application be forced closed brought loss, make operation maintenance personnel be absorbed in line is carried out to physical machine under safeguard.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is the inventive method process flow diagram;
Fig. 2 is deployment diagram of the present invention.
Embodiment
See shown in Fig. 1,2, idiographic flow, the step of the inventive method enforcement are:
1, the IPMI IPMI address of physical machine, login username and password are first set
#Theipmiipofthephysicalnode
ipmi_ip=20.251.36.116
#Theipmiuserofthephysicalnode
ipmi_user=ADMIN
#Theipmipasswordofthephysicalnode
ipmi_password=ADMIN
Here define the configuration item of IPMI IPMI address, login username and password, be saved in the configuration item file of destination node.
2, the available physical node of normal condition is searched according to greedy algorithm
3, send request " moving all virtual machines of destination node to available physical node ":
4, destination node performs all virtual machines of migration to available physical node
4.1, the migration flow process of single virtual machine is performed:
5, shutdown is performed by IPMI IPMI
Here judged the state of physical machine, if the state of physical machine meets maintenance, could shutdown have been performed.
After physical machine remote power-off completes, operation maintenance personnel just can be carried out upgrading internal memory to physical machine, be replaced and damage the maintenance work such as disk, inspection network.

Claims (7)

1. based on a method for the physical machine remote maintenance of Openstack, it is characterized in that: described method comprises the steps:
Step 1: the IPMI IPMI address of physical machine, login username and password are set;
Step 2: user's request is to destination node remote maintenance;
Step 3: the available physical node searching normal condition according to greedy algorithm;
Step 4: send request " moving all virtual machines of destination node to available physical node ";
Step 5: destination node performs all virtual machines of migration to available physical node;
Step 6: perform shutdown by IPMI IPMI;
Step 7: operation maintenance personnel is safeguarded under carrying out line;
Step 8: physical machine node maintenance completes.
2. the method for the physical machine remote maintenance based on Openstack according to claim 1, is characterized in that: user, by the Web interface of Openstack, clicks destination node, and request is to destination node remote maintenance.
3. the method for the physical machine remote maintenance based on Openstack according to claim 1, is characterized in that: described greedy algorithm refer to find the computational resource of first node, storage resources be more than or equal to resources of virtual machine calculate and stored configuration as available physical node.
4. the method for the physical machine remote maintenance based on Openstack according to claim 2, is characterized in that: described greedy algorithm refer to find the computational resource of first node, storage resources be more than or equal to resources of virtual machine calculate and stored configuration as available physical node.
5. the method for the physical machine remote maintenance based on Openstack according to any one of Claims 1-4, it is characterized in that: after destination node receives request, be in just in the virtual machine list of running status by this ground of Libvirt interface polls is all, circulation performs each virtual machine and moves on to available physical node, if originally enabled node resource not, then again find new enabled node according to greedy algorithm, until all virtual machines are moved successfully, and return results;
Described Libvirt is the C function library of the virtual instrument of main flow that is free, that increase income of (SuSE) Linux OS, its objective is that the various virtual instrument comprising Kvm, Xen provides a set of convenience, reliably DLL (dynamic link library), support the multiple main flow programming languages such as C, C++, Java and Python.
6. the method for the physical machine remote maintenance based on Openstack described in 1 to 4 any one according to claim 1, it is characterized in that: background service receives the result of virtual machine powered-down, the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
7. the method for the physical machine remote maintenance based on Openstack described according to claim 15, it is characterized in that: background service receives the result of virtual machine powered-down, the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
CN201510799361.1A 2015-11-19 2015-11-19 Openstack based physical machine remote maintenance method Pending CN105426243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510799361.1A CN105426243A (en) 2015-11-19 2015-11-19 Openstack based physical machine remote maintenance method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510799361.1A CN105426243A (en) 2015-11-19 2015-11-19 Openstack based physical machine remote maintenance method

Publications (1)

Publication Number Publication Date
CN105426243A true CN105426243A (en) 2016-03-23

Family

ID=55504469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510799361.1A Pending CN105426243A (en) 2015-11-19 2015-11-19 Openstack based physical machine remote maintenance method

Country Status (1)

Country Link
CN (1) CN105426243A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612787A (en) * 2017-11-06 2018-01-19 南京易捷思达软件科技有限公司 A kind of cloud hostdown detection method for cloud platform of being increased income based on Openstack
CN108848155A (en) * 2018-06-08 2018-11-20 郑州云海信息技术有限公司 A kind of method and apparatus for the function controlling physical machine
CN109684033A (en) * 2018-12-11 2019-04-26 武汉烽火信息集成技术有限公司 Cloud platform bare machine management method, storage medium, electronic equipment and system
CN111176790A (en) * 2019-12-30 2020-05-19 北京浪潮数据技术有限公司 Active maintenance method and device of cloud platform physical host and readable storage medium
CN113468136A (en) * 2020-03-30 2021-10-01 北京金山云网络技术有限公司 Upgrading method and device of cloud platform and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
WO2011043270A1 (en) * 2009-10-07 2011-04-14 日本電気株式会社 Computer system, and maintenance method of computer system
CN102427475A (en) * 2011-12-08 2012-04-25 曙光信息产业(北京)有限公司 Load balance scheduling system in cloud computing environment
CN103281407A (en) * 2013-05-08 2013-09-04 重庆绿色智能技术研究院 IP (internet protocol) address remote management system based on Loongson cloud terminal
CN103294521A (en) * 2013-05-30 2013-09-11 天津大学 Method for reducing communication loads and energy consumption of data center
CN104270430A (en) * 2014-09-19 2015-01-07 国云科技股份有限公司 Server remote dispatching method suitable for cloud computing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
WO2011043270A1 (en) * 2009-10-07 2011-04-14 日本電気株式会社 Computer system, and maintenance method of computer system
CN102427475A (en) * 2011-12-08 2012-04-25 曙光信息产业(北京)有限公司 Load balance scheduling system in cloud computing environment
CN103281407A (en) * 2013-05-08 2013-09-04 重庆绿色智能技术研究院 IP (internet protocol) address remote management system based on Loongson cloud terminal
CN103294521A (en) * 2013-05-30 2013-09-11 天津大学 Method for reducing communication loads and energy consumption of data center
CN104270430A (en) * 2014-09-19 2015-01-07 国云科技股份有限公司 Server remote dispatching method suitable for cloud computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
厚云2015: "通用的虚拟机管理接口-libvirt", 《HTTP://BLOG.SINA.COM.CN/U/3661924292》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612787A (en) * 2017-11-06 2018-01-19 南京易捷思达软件科技有限公司 A kind of cloud hostdown detection method for cloud platform of being increased income based on Openstack
CN107612787B (en) * 2017-11-06 2021-01-12 南京易捷思达软件科技有限公司 Cloud host fault detection method based on Openstack open source cloud platform
CN108848155A (en) * 2018-06-08 2018-11-20 郑州云海信息技术有限公司 A kind of method and apparatus for the function controlling physical machine
CN109684033A (en) * 2018-12-11 2019-04-26 武汉烽火信息集成技术有限公司 Cloud platform bare machine management method, storage medium, electronic equipment and system
CN111176790A (en) * 2019-12-30 2020-05-19 北京浪潮数据技术有限公司 Active maintenance method and device of cloud platform physical host and readable storage medium
CN113468136A (en) * 2020-03-30 2021-10-01 北京金山云网络技术有限公司 Upgrading method and device of cloud platform and server

Similar Documents

Publication Publication Date Title
US11405274B2 (en) Managing virtual network functions
US11150952B2 (en) Accelerating and maintaining large-scale cloud deployment
US9244676B2 (en) Virtual machine based controller and upgrade mechanism
US10445121B2 (en) Building virtual machine disk images for different cloud configurations from a single generic virtual machine disk image
CN105426243A (en) Openstack based physical machine remote maintenance method
CN108089913B (en) Virtual machine deployment method of super-fusion system
WO2017190357A1 (en) Network function instance management method and relevant device
CN105306225A (en) Openstack-based physical machine remote shutdown method
US11210132B2 (en) Virtual machine migration in virtualization environment having different virtualization systems
CN111385114A (en) VNF service instantiation method and device
CN113196237A (en) Container migration in a computing system
US10817323B2 (en) Systems and methods for organizing on-demand migration from private cluster to public cloud
US11831495B2 (en) Hierarchical cloud computing resource configuration techniques
CN109960579B (en) Method and device for adjusting service container
CN104536805A (en) Resource providing system and method of virtualization platform
US20130212281A1 (en) Virtual Machine Splitting Method and System
US11349923B2 (en) Persistent volumes for stateful applications
US10942761B2 (en) Migrating a virtual machine in response to identifying an unsupported virtual hardware component
US9459896B2 (en) Virtual machine merging method and system
CN102970375A (en) Cluster configuration method and device
Fang et al. Cloud computing: virtual web hosting on infrastructure as a service (IAAS)
US11223537B1 (en) Executing custom scripts from the host during disaster recovery
US10983899B2 (en) Automatic configuration and deployment of environments of a system
Sushma et al. A lightweight performance measurement framework for a Virtual Machine on cloud
CN111163176A (en) VirtualBox-based cluster management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160323