CN109508226B - Openstack-based virtual machine life cycle management method - Google Patents
Openstack-based virtual machine life cycle management method Download PDFInfo
- Publication number
- CN109508226B CN109508226B CN201811383746.XA CN201811383746A CN109508226B CN 109508226 B CN109508226 B CN 109508226B CN 201811383746 A CN201811383746 A CN 201811383746A CN 109508226 B CN109508226 B CN 109508226B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- life cycle
- time
- openstack
- file
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 16
- 238000012217 deletion Methods 0.000 claims description 6
- 230000037430 deletion Effects 0.000 claims description 6
- 238000000034 method Methods 0.000 abstract description 3
- 238000007792 addition Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a virtual machine life cycle management method based on openstack, which comprises the following steps: 1) under an openstack environment, configuring a control node and a plurality of computing nodes, wherein the control node is configured as a server, and the computing nodes are configured as virtual machines; 2) recording the time and attribute information of virtual machine creation, and setting the life cycle of the virtual machine; 3) judging whether the virtual machine reaches the life cycle, if so, entering the step 4), and if not, repeating the step 3); 4) and setting the virtual machine to be in a failure state, and deleting the virtual machine when the failure time reaches a set value. The method sets a life cycle of a certain time for the established virtual machine, the state of the virtual machine is set as a failure state after the life cycle is up, and if a user wants to continue to use the virtual machine, the user can apply for delay.
Description
Technical Field
The invention relates to a virtual machine life cycle management method based on openstack.
Background
In the prior art, a known technology is that with the increase of information explosion type, a cloud platform gets more and more attention, OpenStack is favored by many companies as a source cloud computing management platform, but in terms of the life cycle of a virtual machine, too much attention is not paid yet, the virtual machine created in horizon is not limited by the life cycle, in the actual application process, a part of the virtual machine may need to be available for a period of time, and then the resource of the virtual machine is recycled, so a method for setting the life cycle of the virtual machine is needed urgently.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a virtual machine life cycle management method based on openstack.
The scheme is realized by the following technical measures: a virtual machine life cycle management method based on openstack comprises the following steps: 1) under an openstack environment, configuring a control node and a plurality of computing nodes, wherein the control node is configured as a server, and the computing nodes are configured as virtual machines; 2) recording the time and attribute information of virtual machine creation, and setting the life cycle of the virtual machine; 3) judging whether the virtual machine reaches the life cycle, if so, entering the step 4), and if not, repeating the step 3); 4) and setting the virtual machine to be in a failure state, and deleting the virtual machine when the failure time reaches a set value. After the life cycle of the virtual machine is set, when the life cycle expires, the virtual machine cannot be used continuously, the state is set to be a failure state, if a user wants to use a new virtual machine continuously, the user needs to reset, and if the failure time of the virtual machine reaches a certain time, the virtual machine is deleted.
The control node in the step 1) allocates an IP address to each computing node and configures security group rules. Therefore, communication connection can be provided for the control node and the computing node, and network connection is facilitated.
The attribute information comprises virtual machine codes and real-time information, the virtual machine codes are the creation time sequence of the virtual machines on the whole cloud computing platform, corresponding virtual machine codes are obtained, the real-time information is user identifications of the virtual machines, after the attribute information is generated, real-time updating is carried out according to the real-time information, the virtual machine codes are generated randomly, and no two virtual machines correspond to different virtual machine codes. Therefore, configuration numbers can be carried out on all the computing nodes, and the computing nodes cannot enter an unordered state, so that management is facilitated.
And 4) when the virtual machine is deleted in the step 4), the control node stores the recording information of the virtual machine, deletes the file of the virtual machine, and temporarily stores the deleted file in a preset virtual machine recycle bin. After the deleted file is temporarily stored in a virtual machine recycle bin, setting a time threshold, inquiring whether a user needs the file generated in the life cycle of the virtual machine or not within the set time threshold, if the user needs the file, sending the generated file to the user, then deleting the file of the virtual machine in the virtual machine recycle bin, and if the user confirms the deletion, directly deleting the file of the virtual machine in the virtual machine recycle bin. The record information comprises the code, the real-time information, the life cycle, the deletion time and the time for resetting the virtual machine of the virtual machine. Therefore, files can be saved for a certain time for the user, and the loss of the user is avoided.
In step 4), if the failure time does not reach the set value, when the virtual machine is reused, the creation time of the virtual machine is reset to obtain new attribute information, and meanwhile, the creation time of the original virtual machine is recorded. And convenience is provided for the user to use the virtual machine again.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the following explains the present solution by a specific embodiment in combination with the accompanying drawings.
As can be seen from the attached drawings, the management method for the virtual machine life cycle based on openstack comprises the following steps: 1) under an openstack environment, configuring a control node and a plurality of computing nodes, wherein the control node is configured as a server, and the computing nodes are configured as virtual machines; the control node distributes an IP address for each computing node and configures a security group rule; 2) recording the time and attribute information of virtual machine creation, and setting the life cycle of the virtual machine; 3) judging whether the virtual machine reaches the life cycle, if so, entering the step 4), and if not, repeating the step 3); 4) and setting the virtual machine to be in a failure state, and deleting the virtual machine when the failure time reaches a set value.
The attribute information comprises virtual machine codes and real-time information, the virtual machine codes are the creation time sequence of the virtual machines on the whole cloud computing platform to obtain corresponding virtual machine codes, the real-time information is user identifications of the virtual machines, and after the attribute information is generated, the attribute information is updated in real time according to the real-time information. The virtual machine codes are randomly generated, and no two virtual machines correspond to different virtual machine codes.
And 4) when the virtual machine is deleted in the step 4), the control node stores the recording information of the virtual machine, deletes the file of the virtual machine, and temporarily stores the deleted file in a preset virtual machine recycle bin. In step 4), if the failure time does not reach the set value, when the virtual machine is reused, the creation time of the virtual machine is reset to obtain new attribute information, and meanwhile, the creation time of the original virtual machine is recorded.
After the deleted file is temporarily stored in a virtual machine recycle bin, setting a time threshold, inquiring whether a user needs the file generated in the life cycle of the virtual machine or not within the set time threshold, if the user needs the file, sending the generated file to the user, then deleting the file of the virtual machine in the virtual machine recycle bin, and if the user confirms the deletion, directly deleting the file of the virtual machine in the virtual machine recycle bin. The record information comprises the code, the real-time information, the life cycle, the deletion time and the time for resetting the virtual machine of the virtual machine.
The present invention is not limited to the above-described embodiments, and variations, modifications, additions and substitutions which are within the spirit of the invention and the scope of the invention may be made by those of ordinary skill in the art are also within the scope of the invention.
Claims (7)
1. A virtual machine life cycle management method based on openstack is characterized by comprising the following steps:
1) under an openstack environment, configuring a control node and a plurality of computing nodes, wherein the control node is configured as a server, and the computing nodes are configured as virtual machines;
2) recording the time and attribute information of virtual machine creation, and setting the life cycle of the virtual machine;
3) judging whether the virtual machine reaches the life cycle, if so, entering the step 4), and if not, repeating the step 3);
4) setting the virtual machine to be in a failure state, and deleting the virtual machine when failure time reaches a set value;
in step 4), if the failure time does not reach the set value, when the virtual machine is reused, the creation time of the virtual machine is reset to obtain new attribute information, and meanwhile, the creation time of the original virtual machine is recorded.
2. The openstack-based virtual machine life cycle management method according to claim 1, wherein: the control node in the step 1) allocates an IP address to each computing node and configures security group rules.
3. The openstack-based virtual machine lifecycle management method according to claim 1 or 2, wherein: the attribute information comprises virtual machine codes and real-time information, the virtual machine codes are the creation time sequence of the virtual machines on the whole cloud computing platform to obtain corresponding virtual machine codes, the real-time information is user identifications of the virtual machines, and after the attribute information is generated, the attribute information is updated in real time according to the real-time information.
4. The openstack-based virtual machine life cycle management method according to claim 3, wherein: the virtual machine codes are randomly generated, and no two virtual machines correspond to different virtual machine codes.
5. The openstack-based virtual machine life cycle management method according to claim 3, wherein: and 4) when the virtual machine is deleted in the step 4), the control node stores the recording information of the virtual machine, deletes the file of the virtual machine, and temporarily stores the deleted file in a preset virtual machine recycle bin.
6. The openstack-based virtual machine life cycle management method according to claim 5, wherein: after the deleted file is temporarily stored in a virtual machine recycle bin, setting a time threshold, inquiring whether a user needs the file generated in the life cycle of the virtual machine or not within the set time threshold, if the user needs the file, sending the generated file to the user, then deleting the file of the virtual machine in the virtual machine recycle bin, and if the user confirms the deletion, directly deleting the file of the virtual machine in the virtual machine recycle bin.
7. The openstack-based virtual machine life cycle management method according to claim 5, wherein: the record information comprises the code, the real-time information, the life cycle, the deletion time and the time for resetting the virtual machine of the virtual machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811383746.XA CN109508226B (en) | 2018-11-20 | 2018-11-20 | Openstack-based virtual machine life cycle management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811383746.XA CN109508226B (en) | 2018-11-20 | 2018-11-20 | Openstack-based virtual machine life cycle management method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109508226A CN109508226A (en) | 2019-03-22 |
CN109508226B true CN109508226B (en) | 2021-10-29 |
Family
ID=65749231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811383746.XA Active CN109508226B (en) | 2018-11-20 | 2018-11-20 | Openstack-based virtual machine life cycle management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109508226B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399775A (en) * | 2020-03-12 | 2020-07-10 | 山东汇贸电子口岸有限公司 | Resource cleaning method and system based on OpenStack environment |
US12118376B2 (en) | 2021-04-20 | 2024-10-15 | Stmicroelectronics International N.V. | Virtual mode execution manager |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104144182A (en) * | 2013-05-08 | 2014-11-12 | 西安邮电大学 | Virtual machine identification method and device |
CN104598291A (en) * | 2014-12-02 | 2015-05-06 | 中广核工程有限公司 | Recovery method and system of nuclear power service system virtual server resources |
CN105487917A (en) * | 2015-12-07 | 2016-04-13 | 郑州轻工业学院 | Method and device for repairing verification code system with virtual machine |
CN105843670A (en) * | 2016-03-22 | 2016-08-10 | 浙江大学 | Cloud platform based virtual cluster deployment and integration method |
CN107395429A (en) * | 2017-08-15 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data center |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9851989B2 (en) * | 2012-12-12 | 2017-12-26 | Vmware, Inc. | Methods and apparatus to manage virtual machines |
US9086902B2 (en) * | 2012-12-18 | 2015-07-21 | International Business Machines Corporation | Sending tasks between virtual machines based on expiration times |
-
2018
- 2018-11-20 CN CN201811383746.XA patent/CN109508226B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104144182A (en) * | 2013-05-08 | 2014-11-12 | 西安邮电大学 | Virtual machine identification method and device |
CN104598291A (en) * | 2014-12-02 | 2015-05-06 | 中广核工程有限公司 | Recovery method and system of nuclear power service system virtual server resources |
CN105487917A (en) * | 2015-12-07 | 2016-04-13 | 郑州轻工业学院 | Method and device for repairing verification code system with virtual machine |
CN105843670A (en) * | 2016-03-22 | 2016-08-10 | 浙江大学 | Cloud platform based virtual cluster deployment and integration method |
CN107395429A (en) * | 2017-08-15 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data center |
Also Published As
Publication number | Publication date |
---|---|
CN109508226A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11171994B2 (en) | Tag-based security policy creation in a distributed computing environment | |
JP2017521778A (en) | Method, computer program, and exception engine for handling data quality exceptions | |
US11831495B2 (en) | Hierarchical cloud computing resource configuration techniques | |
CN111262726A (en) | Configuration information updating method and device and computer readable storage medium | |
CN104636286A (en) | Data access method and equipment | |
CN105262670A (en) | User group creating method and equipment | |
CN102202087A (en) | Method for identifying storage equipment and system thereof | |
CN109508226B (en) | Openstack-based virtual machine life cycle management method | |
CN104899049A (en) | File deletion method and device | |
CN103546380A (en) | Message forwarding method and device based on strategy routing | |
CN105490843A (en) | Information processing method and system | |
CN104363122A (en) | Pre-configuration method and system of network element | |
US20180199175A1 (en) | M2m node management method and apparatus, and computer storage medium | |
CN105471700A (en) | Information processing method, information processing device and information processing system | |
CN110083504B (en) | Running state monitoring method and device for distributed tasks | |
CN109213955B (en) | Data processing method and related equipment | |
CN107656796A (en) | A kind of virtual machine cold moving method, system and equipment | |
CN104104701A (en) | Online service configuration updating method and system | |
CN108011870A (en) | A kind of remote software online upgrading information automatic identification management method | |
CN106557530B (en) | Operation system, data recovery method and device | |
CN107422991B (en) | Storage strategy management system | |
CN109389271B (en) | Application performance management method and system | |
US11445036B1 (en) | Cluster management method and apparatus, electronic device and storage medium | |
CN103927382A (en) | Tender editing method and system | |
CN115643028A (en) | Business certificate management method and device, storage medium and electronic device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |