CN110659105A - Virtualized resource processing method, device, equipment and storage medium - Google Patents

Virtualized resource processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110659105A
CN110659105A CN201910818509.XA CN201910818509A CN110659105A CN 110659105 A CN110659105 A CN 110659105A CN 201910818509 A CN201910818509 A CN 201910818509A CN 110659105 A CN110659105 A CN 110659105A
Authority
CN
China
Prior art keywords
virtualized
platform
cloud management
management platform
resource
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
CN201910818509.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.)
PICC PROPERTY AND CASUALTY Co Ltd
Original Assignee
PICC PROPERTY AND CASUALTY 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 PICC PROPERTY AND CASUALTY Co Ltd filed Critical PICC PROPERTY AND CASUALTY Co Ltd
Priority to CN201910818509.XA priority Critical patent/CN110659105A/en
Publication of CN110659105A publication Critical patent/CN110659105A/en
Pending legal-status Critical Current

Links

Images

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/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
    • 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/45562Creating, deleting, cloning virtual machine instances
    • 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 application provides a virtualized resource processing method, a virtualized resource processing device, virtualized resource processing equipment and a virtualized resource storage medium, and relates to the technical field of cloud computing. The method comprises the following steps: acquiring resource information of virtualized resources in a virtualization platform; determining whether the virtualized resource exists in a database of a cloud management platform based on resource information of the virtualized resource; and if the virtual resources do not exist in the database of the cloud management platform, marking the nonexistent virtual resources. According to the technical scheme, the created virtualized resources can be automatically discovered before the hosting, and the situation that data in the cloud management platform and the virtualized platform are inconsistent due to direct operation in the virtualized platform is avoided.

Description

Virtualized resource processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a virtualized resource processing method, a virtualized resource processing apparatus, a virtualized resource processing device, and a computer-readable storage medium.
Background
With the rapid development of cloud computing technology, various virtualized resource management platforms emerge, and how to manage the existing virtualized resources with a new virtualized resource management platform becomes a focus of attention.
In one technical scheme, the virtualized resources of an original virtualized platform, such as a VMWare platform, are managed through a cloud management platform, such as an OpenStack platform. In this technical solution, although the virtual machine may be allocated after the OpenStack platform manages the virtualized resources of the VMWare platform, a situation that data in the cloud management platform and the virtualized platform are inconsistent often occurs.
Disclosure of Invention
An object of the embodiments of the present application is to provide a virtualized resource processing method, a virtualized resource processing apparatus, a virtualized resource processing device, and a computer-readable storage medium, so as to solve a problem that data in a cloud management platform is inconsistent with data in a virtualized platform.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
according to a first aspect of the embodiments of the present application, a virtualized resource processing method is provided, which is applied to a cloud management platform, and includes: acquiring resource information of virtualized resources in a virtualization platform; determining whether the virtualized resource exists in a database of the cloud management platform based on resource information of the virtualized resource; if the virtual resources do not exist in the database of the cloud management platform, marking the nonexistent virtual resources.
In some embodiments of the present application, based on the above scheme, the method further includes: packaging the instruction content corresponding to the virtualization platform; sending the packaged instruction content to the virtualization platform in the form of an application programming interface; receiving an execution result in the form of an application programming interface returned by the virtualization platform; and recording the execution result into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the marking the non-existent virtualized resource includes: naming the non-existent virtualized resources; recording the named virtualized resources into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the determining whether the virtualized resource exists in the database of the cloud management platform based on the resource information of the virtualized resource includes: comparing the resource information of the virtualized resources with data in a database of the cloud management platform; determining whether the virtualized resource exists in a database of the cloud management platform based on the comparison result.
In some embodiments of the present application, based on the above scheme, the obtaining resource information of a virtualized resource in a virtualization platform includes: acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
In some embodiments of the present application, based on the above scheme, the cloud management platform is an OpenStack platform, and the virtualization platform is a VMWare platform.
In some embodiments of the present application, based on the above scheme, the method further includes: starting a process in an operating system of the cloud management platform; and establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
According to a second aspect of the present example, there is provided a virtualized resource processing apparatus applied to a cloud management platform, including: the acquisition module is used for acquiring resource information of virtualized resources in the virtualization platform; a determining module, configured to determine whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource; and the marking module is used for marking the nonexistent virtualized resources if the nonexistent virtualized resources do not exist in the database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the virtualized resource processing apparatus further includes: the packaging module is used for packaging the instruction content corresponding to the virtualization platform; the sending module is used for sending the packaged instruction content to the virtualization platform in the form of an application programming interface; the receiving module is used for receiving an execution result in the form of an application programming interface returned by the virtualization platform; and the recording module is used for recording the execution result into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the marking module includes: a naming unit for naming the non-existent virtualized resources; and the recording unit is used for recording the named virtualized resources into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the determining module includes: the comparison unit is used for comparing the resource information of the virtualized resources with the data in the database of the cloud management platform; a result determination unit configured to determine whether the virtualized resource exists in the database of the cloud management platform based on the comparison result.
In some embodiments of the present application, based on the above scheme, the obtaining module is configured to: acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
In some embodiments of the present application, based on the above scheme, the cloud management platform is an OpenStack platform, and the virtualization platform is a VMWare platform.
In some embodiments of the present application, based on the above scheme, the virtualized resource processing apparatus further includes: the process starting module is used for starting a process in an operating system of the cloud management platform; and the connection establishing module is used for establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
According to a third aspect of an embodiment of the present application, there is provided a virtualized resource processing apparatus, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to implement the virtualized resource processing method of any of the above first aspects.
According to a fourth aspect of embodiments herein, there is provided a storage medium storing computer-executable instructions that, when executed, implement the virtualized resource processing method of any one of the above first aspects.
According to the technical scheme in the embodiment of the application, on one hand, whether the virtualized resources in the virtualized platform exist in the database of the cloud management platform can be automatically determined, so that the created virtualized resources can be automatically discovered before the hosting; on the other hand, the virtualized resources which do not exist in the database of the cloud management platform are marked, the effectiveness of the cloud management platform on the virtualized resources of the managed virtualized platform can be ensured, the situation that the data in the cloud management platform and the data in the virtualized platform are inconsistent due to direct operation in the virtualized platform is avoided, and the marked virtualized resources are convenient to manage.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates a schematic block diagram of an application scenario of a virtualized resource handling method provided in accordance with some embodiments of the present application;
FIG. 2 illustrates a flow diagram of a virtualized resource processing method provided in accordance with some embodiments of the present application;
FIG. 3 illustrates a flow diagram of a virtualized resource processing method provided in accordance with further embodiments of the application;
FIG. 4 illustrates a flow diagram of an instruction call for a virtualization platform provided in accordance with some embodiments of the present application;
FIG. 5 illustrates a schematic block diagram of a virtualized resource processing apparatus provided by some embodiments of the present application; and
FIG. 6 illustrates a schematic block diagram of a virtualized resource processing device provided in accordance with some embodiments of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 illustrates a schematic block diagram of an application scenario of a virtualized resource processing method provided according to some embodiments of the present application. Referring to fig. 1, the application scenario includes: an OpenStack server 110, a Vcenter server 120, and a plurality of physical servers 130. The OpenStack server 110 is a cloud computing platform, and provides an infrastructure as a service solution through a group of related services, each of which provides an API (Application Programming Interface). The Vcenter Server 120, which is collectively referred to as a VMware Vcenter Server, is a high-level Server management software that provides a centralized platform for controlling the VMware vSphere environment. A plurality of virtual machines are running on the physical server 130. After the communication connection between the OpenStack server 110 and the Vcenter server 120 is established, the resource information of the virtualized resource on the physical server 130 is acquired from the Vcenter server 120, whether the virtualized resource is a previously created virtualized resource is determined based on the acquired resource information, and after the previously created virtualized resource is marked, the marking result is stored in the database of the OpenStack server 110, so that the OpenStack server can manage the previously created virtualized resource conveniently.
In the following, a virtualized resource processing method according to an exemplary embodiment of the present application is described with reference to fig. 2 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
FIG. 2 illustrates a flow diagram of a virtualized resource processing method provided in accordance with some embodiments of the present application. The virtualized resource processing method may apply the OpenStack server 110 shown in fig. 1, and includes steps S210 to S230. The following describes in detail a virtualized resource processing method in an example embodiment with reference to fig. 2, taking a cloud management platform as an OpenStack server as an example.
In step S210, resource information of a virtualized resource in a virtualization platform is acquired.
In an example embodiment, the virtualization platform is a VMWare platform, and a communication connection between an OpenStack server of a cloud management platform and the VMWare platform is established. Acquiring resource information of virtualized resources managed by a Vcenter server of the VMWare platform in the form of an API, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
Further, in an example embodiment, a process is started in the operating system of the OpenStack server; and establishing communication connection between the OpenStack server and the VMWare platform through the process based on information in a preset configuration file. The configuration file may include path information, startup file information, execution program information, and the like.
In step S220, it is determined whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource.
In an example embodiment, the resource information of the virtualized resources of the virtualization platform is compared with the data in the database of the cloud management platform, and it is determined which virtualized resources are created by the cloud management platform OpenStack and which virtualized resources do not exist in the database of the OpenStack. For example, the virtualized resources may be retrieved from the cloud management platform based on resource information of the virtualized resources, and if corresponding data can be retrieved, the virtualized resources are determined to be resources created using OpenStack; and if the corresponding data cannot be retrieved, determining that the corresponding virtualized resource does not exist in the database of the OpenStack.
In step S230, if the virtualized resource does not exist in the database of the cloud management platform, the virtualized resource that does not exist is marked.
In an example embodiment, if it is determined that the virtualized resources do not exist in the database of the cloud management platform, the non-existing virtualized resources are flagged. For example, naming the virtualized resources that exist; and recording the named virtualized resources into a database of the cloud management platform.
Specifically, a virtual machine, a network and a template which are not in the OpenStack database are named, for example, the named virtualized resource is added with Discovered before the resource information of the virtualized resource in the original Vcenter, and the named virtualized resource is recorded in the OpenStack database.
According to the virtualized resource processing method in the example embodiment of fig. 2, resource information of virtualized resources in a virtualized platform is obtained, whether the virtualized resources exist in a database of a cloud management platform is determined, and virtualized resources that do not exist in the database of the cloud management platform are marked. On one hand, whether the virtualized resources in the virtualized platform exist in the database of the cloud management platform can be automatically determined, so that the virtualized resources which are created before being managed can be automatically discovered; on the other hand, the virtualized resources which do not exist in the database of the cloud management platform are marked, the effectiveness of the cloud management platform on the virtualized resources of the managed virtualized platform can be ensured, the situation that the data in the cloud management platform and the data in the virtualized platform are inconsistent due to direct operation in the virtualized platform is avoided, and the marked virtualized resources are convenient to manage.
Further, since the number of APIs for the virtualization platform VMWare included in the cloud management platform OpenStack is small, some high-level functions of the virtualization platform cannot be used in the cloud management platform. In order to facilitate the calling of the high-level functions of the virtualization platform, the instruction content of the high-level functions needing to be called is packaged, so that some high-level functions in the virtualization platform can be used in OpenStack. In an example embodiment, the instruction content corresponding to the virtualization platform is encapsulated; sending the packaged instruction content to the virtualization platform in the form of an application programming interface; receiving an execution result in the form of an application programming interface returned by the virtualization platform; and recording the execution result into a database of the cloud management platform.
FIG. 3 is a flow diagram illustrating a virtualized resource processing method according to further embodiments of the present application.
Referring to fig. 3, in step S310, a process is started in the operating system of the OpenStack server, and the process will automatically connect to the managed Vcenter server 120 according to the information that has been written in the configuration file before.
In an example embodiment, the virtualized resource handling method is implemented by embedding a plug-in an OpenStack server. The plug-in program is deployed on a server where an OpenStack control node is located, the plug-in program is packaged into an RPM (rotating speed) packet, and after the plug-in program is installed in an operating system, configuration files or program files can be generated at three positions, namely/etc/nova/,/etc/init.d/and/user/lib/python/site-packages/vmware _ discovery/, wherein the/etc/nova: the location for storing the configuration file,/etc/nova/the configuration file of the most important component nova of the open source OpenStack, stores the configuration file of the plug-in program under the path. C/init.d: for storing the boot files. /usr/lib/python/site-packages/vmware _ discover: for storing the plug-in program actually executed. Before starting the plug-in program, the configuration file needs to be modified, and the IP address of the Vcenter in the configuration file is modified into the IP address or the domain name of the Vcenter to be docked. The values of vmwareconf and novaconf in the program to be executed are modified to the configuration file of the plug-in program and the configuration file path of the OpenStack nova component respectively.
In step S320, accessing information of virtualized resources in the Vcenter by means of API, and acquiring information of all virtual machines, templates, storage, and networks in the current Vcenter; and comparing the obtained virtual information of the virtualized resources with data in an OpenStack database, and screening out which virtual machines, networks and templates are created by using OpenStack and which virtualized resources do not exist in the OpenStack database.
In an example embodiment, the information of the virtualized resource in the Vcenter is obtained through API interface call, for example, a RESTful API call request is initiated to the Vcenter, where an "IP address" needs to be replaced by an actually called Vcenter address, and the call request statement is: GET http:// IP 8774/v2.1/vmware, request statement for querying nova. vmware _ vcenter information: select from nova. vmware _ vcenter.
In step S330, it is automatically determined that the virtual machine, the network, and the template are manually created in the Vcenter by skipping OpenStack in the original Vcenter, for the virtual machine, the network, and the template that are not present in the OpenStack database.
In step S340, naming the virtual machine, network, and template that are not in the OpenStack database, for example, adding Discovered to the front of the name of the resource information of the virtualized resource in the original Vcenter, and recording the named virtualized resource in the OpenStack database.
FIG. 4 illustrates a flow diagram of an instruction call for a virtualization platform provided in accordance with some embodiments of the present application.
Referring to fig. 4, in step S410, when a high-level function in the Vcenter platform of the virtualization platform needs to be called, the instruction content of the high-level function needs to be called is encapsulated, and the high-level function may include adding a network card to the virtual machine, modifying an IP address in the same network segment, adding a plug-in disk (selecting thin configuration and thick configuration), and the like.
In step S420, the packaged instruction content is sent to the Vcenter platform 120 in the form of an API.
In step S430, the Vcenter platform 120 executes according to the instruction content packaged in the API. For example, a network card is added to the virtual machine, the IP address of the same network segment is modified, a plug-in disk is added, and the like.
In step S440, the Vcenter platform 120 returns the executed result to the OpenStack platform 110 through the API.
In step S450, the resource information of the virtualized resource after execution is recorded in the database of the OpenStack platform 110 according to the execution result returned by the Vcenter platform 120.
In step S460, resource information of the virtualized resource is acquired from the database of the OpenStack platform 110.
In step S470, the acquired resource information in the OpenStack platform is returned to the console 140. After the Vcenter platform is called each time, the resource information of the virtualized resources after calling is recorded in the OpenStack database, so that the consistency of data in the Vcenter and OpenStack can be ensured.
In an example embodiment of the present application, a virtualized resource processing apparatus is also provided. The virtualized resource processing device is applied to a cloud management platform. Referring to fig. 5, the virtualized resource processing apparatus 500 includes: an obtaining module 510, configured to obtain resource information of a virtualized resource in a virtualization platform; a determining module 520, configured to determine whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource; a marking module 530, configured to mark the non-existent virtualized resource if the non-existent virtualized resource does not exist in the database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the virtualized resource processing apparatus further includes: the packaging module is used for packaging the instruction content corresponding to the virtualization platform; the sending module is used for sending the packaged instruction content to the virtualization platform in the form of an application programming interface; the receiving module is used for receiving an execution result in the form of an application programming interface returned by the virtualization platform; and the recording module is used for recording the execution result into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the marking module includes: a naming unit for naming the non-existent virtualized resources; and the recording unit is used for recording the named virtualized resources into a database of the cloud management platform.
In some embodiments of the present application, based on the above scheme, the determining module includes: the comparison unit is used for comparing the resource information of the virtualized resources with the data in the database of the cloud management platform; a result determination unit configured to determine whether the virtualized resource exists in the database of the cloud management platform based on the comparison result.
In some embodiments of the present application, based on the above scheme, the obtaining module is configured to: acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
In some embodiments of the present application, based on the above scheme, the cloud management platform is an OpenStack platform, and the virtualization platform is a VMWare platform.
In some embodiments of the present application, based on the above scheme, the virtualized resource processing apparatus further includes: the process starting module is used for starting a process in an operating system of the cloud management platform; and the connection establishing module is used for establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
According to the virtualized resource processing apparatus in the example embodiment of fig. 5, on one hand, it can be automatically determined whether the virtualized resources in the virtualization platform exist in the database of the cloud management platform, so that the virtualized resources that have been created before can be automatically discovered and managed; on the other hand, the virtualized resources which do not exist in the database of the cloud management platform are marked, the effectiveness of the cloud management platform on the virtualized resources of the managed virtualized platform can be ensured, the situation that the data in the cloud management platform and the data in the virtualized platform are inconsistent due to direct operation in the virtualized platform is avoided, and the marked virtualized resources are convenient to manage.
The virtualized resource processing apparatus provided in the embodiment of the present application can implement each process in the foregoing method embodiments, and achieve the same function and effect, which are not repeated here.
Further, an embodiment of the present application further provides a virtualized resource processing device, as shown in fig. 6.
The virtualized resource processing device may have a large difference due to different configurations or performances, and may include one or more processors 601 and a memory 602, and one or more storage applications or data may be stored in the memory 602. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for processing a device for virtualized resources. Still further, the processor 601 may be arranged in communication with the memory 602 to execute a series of computer-executable instructions in the memory 602 on a virtualized resource processing device. The virtualized resource processing apparatus may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606, and the like.
In one particular embodiment, a virtualized resource processing apparatus comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the virtualized resource processing apparatus, and execution of the one or more programs by one or more processors comprises computer-executable instructions for: acquiring resource information of virtualized resources in a virtualization platform; determining whether the virtualized resource exists in a database of the cloud management platform based on resource information of the virtualized resource; if the virtual resources do not exist in the database of the cloud management platform, marking the nonexistent virtual resources.
Optionally, the computer executable instructions, when executed, further comprise: packaging the instruction content corresponding to the virtualization platform; sending the packaged instruction content to the virtualization platform in the form of an application programming interface; receiving an execution result in the form of an application programming interface returned by the virtualization platform; and recording the execution result into a database of the cloud management platform.
Optionally, the marking of the non-existent virtualized resources when executed by computer executable instructions comprises: naming the non-existent virtualized resources; recording the named virtualized resources into a database of the cloud management platform.
Optionally, the computer-executable instructions, when executed, said determining whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource comprise: comparing the resource information of the virtualized resources with data in a database of the cloud management platform; determining whether the virtualized resource exists in a database of the cloud management platform based on the comparison result.
Optionally, the computer executable instructions, when executed, obtain resource information of a virtualized resource in a virtualization platform, including: acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
Optionally, when the computer executable instructions are executed, the cloud management platform is an OpenStack platform, and the virtualization platform is a VMWare platform.
Optionally, the computer executable instructions, when executed, further comprise: starting a process in an operating system of the cloud management platform; and establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
The virtualized resource processing device provided in the embodiment of the present application can implement each process in the foregoing method embodiments, and achieve the same function and effect, which are not repeated here.
In addition, the present application further provides a storage medium for storing computer-executable instructions, and in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and when the storage medium stores the computer-executable instructions, the following process can be implemented: acquiring resource information of virtualized resources in a virtualization platform; determining whether the virtualized resource exists in a database of the cloud management platform based on resource information of the virtualized resource; if the virtual resources do not exist in the database of the cloud management platform, marking the nonexistent virtual resources.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise: packaging the instruction content corresponding to the virtualization platform; sending the packaged instruction content to the virtualization platform in the form of an application programming interface; receiving an execution result in the form of an application programming interface returned by the virtualization platform; and recording the execution result into a database of the cloud management platform.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, mark the non-existent virtualized resources, comprising: naming the non-existent virtualized resources; recording the named virtualized resources into a database of the cloud management platform.
Optionally, the computer-executable instructions stored by the storage medium, when executed by the processor, said determining whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource, comprising: comparing the resource information of the virtualized resources with data in a database of the cloud management platform; determining whether the virtualized resource exists in a database of the cloud management platform based on the comparison result.
Optionally, the computer-executable instructions stored in the storage medium, when executed by the processor, obtain resource information of a virtualized resource in the virtualization platform, including: acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
Optionally, when the computer executable instructions stored in the storage medium are executed by a processor, the cloud management platform is an OpenStack platform, and the virtualization platform is a VMWare platform.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise: starting a process in an operating system of the cloud management platform; and establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
The computer-readable storage medium provided by the embodiment of the present application can implement the processes in the foregoing method embodiments, and achieve the same functions and effects, which are not repeated here.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhjhdul (Java Hardware Description Language), and vhigh-Language (Hardware Description Language). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A virtualized resource processing method is applied to a cloud management platform and is characterized by comprising the following steps:
acquiring resource information of virtualized resources in a virtualization platform;
determining whether the virtualized resource exists in a database of the cloud management platform based on resource information of the virtualized resource;
if the virtual resources do not exist in the database of the cloud management platform, marking the nonexistent virtual resources.
2. The method of claim 1, further comprising:
packaging the instruction content corresponding to the virtualization platform;
sending the packaged instruction content to the virtualization platform in the form of an application programming interface;
receiving an execution result in the form of an application programming interface returned by the virtualization platform;
and recording the execution result into a database of the cloud management platform.
3. The method of claim 1, wherein said marking of said virtualized resources that do not exist comprises:
naming the non-existent virtualized resources;
recording the named virtualized resources into a database of the cloud management platform.
4. The method of claim 1, wherein the determining whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource comprises:
comparing the resource information of the virtualized resources with data in a database of the cloud management platform;
determining whether the virtualized resource exists in a database of the cloud management platform based on the comparison result.
5. The method of claim 1, wherein obtaining resource information for virtualized resources in a virtualization platform comprises:
acquiring resource information of virtualized resources in the virtualization platform in an application programming interface mode, wherein the virtualized resources comprise one or more of virtual machines, storage, networks and templates.
6. The method according to any one of claims 1 to 5, wherein the cloud management platform is an OpenStack platform and the virtualization platform is a VMWare platform.
7. The method of claim 6, further comprising:
starting a process in an operating system of the cloud management platform;
and establishing communication connection between the cloud management platform and the virtualization platform through the process based on information in a preset configuration file.
8. A virtualized resource processing device applied to a cloud management platform is characterized by comprising:
the acquisition module is used for acquiring resource information of virtualized resources in the virtualization platform;
a determining module, configured to determine whether the virtualized resource exists in a database of the cloud management platform based on the resource information of the virtualized resource;
and the marking module is used for marking the nonexistent virtualized resources if the nonexistent virtualized resources do not exist in the database of the cloud management platform.
9. A virtualized resource processing device, comprising: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to implement the virtualized resource processing method of any of the above claims 1-7.
10. A storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed, implement the virtualized resource processing method of any one of the above claims 1 to 7.
CN201910818509.XA 2019-08-30 2019-08-30 Virtualized resource processing method, device, equipment and storage medium Pending CN110659105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818509.XA CN110659105A (en) 2019-08-30 2019-08-30 Virtualized resource processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818509.XA CN110659105A (en) 2019-08-30 2019-08-30 Virtualized resource processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110659105A true CN110659105A (en) 2020-01-07

Family

ID=69036653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818509.XA Pending CN110659105A (en) 2019-08-30 2019-08-30 Virtualized resource processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110659105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463305A (en) * 2020-12-04 2021-03-09 北京浪潮数据技术有限公司 Management method, system and related device of cloud virtualization GPU

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062248A (en) * 2017-12-08 2018-05-22 华胜信泰信息产业发展有限公司 Method for managing resource, system, equipment and the storage medium of isomery virtual platform
CN109522092A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of cloud pipe platform receives pipe virtual machine method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062248A (en) * 2017-12-08 2018-05-22 华胜信泰信息产业发展有限公司 Method for managing resource, system, equipment and the storage medium of isomery virtual platform
CN109522092A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of cloud pipe platform receives pipe virtual machine method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463305A (en) * 2020-12-04 2021-03-09 北京浪潮数据技术有限公司 Management method, system and related device of cloud virtualization GPU

Similar Documents

Publication Publication Date Title
CN108268289B (en) Parameter configuration method, device and system for web application
CN107066519B (en) Task detection method and device
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN107786630B (en) Web application package processing method, device and equipment
CN111291374B (en) Application program detection method, device and equipment
CN111475142B (en) Method, device and equipment for generating applet file package
CN107479868B (en) Interface loading method, device and equipment
CN112565047B (en) Method, device, equipment and medium for constructing network by using VPP in docker
CN109857516B (en) Cluster migration method and device based on container
US9959135B2 (en) Pattern design for heterogeneous environments
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
CN111552945B (en) Resource processing method, device and equipment
CN111694639A (en) Method and device for updating address of process container and electronic equipment
US9639381B2 (en) Sharing applications in a java virtual machine
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN110659105A (en) Virtualized resource processing method, device, equipment and storage medium
CN109976769B (en) Method, device and equipment for determining server identification corresponding to application installation package
CN110022351B (en) Service request processing method and device
CN107402749B (en) Method and device for realizing picture loading library
CN111538667A (en) Page testing method and device
US10375206B1 (en) Entity-component architecture with components having multiple configurations
CN111367577A (en) Method, device and terminal for loading plug-in of application
CN110704295B (en) Data calling method, device, equipment and system
CN111026502B (en) Business debugging architecture creating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107

RJ01 Rejection of invention patent application after publication