WO2017162054A1 - 一种虚拟化环境下自动部署应用程序的方法及装置 - Google Patents

一种虚拟化环境下自动部署应用程序的方法及装置 Download PDF

Info

Publication number
WO2017162054A1
WO2017162054A1 PCT/CN2017/076337 CN2017076337W WO2017162054A1 WO 2017162054 A1 WO2017162054 A1 WO 2017162054A1 CN 2017076337 W CN2017076337 W CN 2017076337W WO 2017162054 A1 WO2017162054 A1 WO 2017162054A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
virtual machine
vnfm
application
download
Prior art date
Application number
PCT/CN2017/076337
Other languages
English (en)
French (fr)
Inventor
杜吉辉
罗宏海
刘善锋
唐海龙
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017162054A1 publication Critical patent/WO2017162054A1/zh

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/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Definitions

  • the present invention relates to the field of virtualization technologies, and in particular, to a method and apparatus for automatically deploying an application in a virtualized environment.
  • NFV Network Functions Virtualisation
  • network function virtualization must coexist with the operator's current old network equipment, and with the existing (Element Management System) EMS, (Network Management System) NMS, OSS ( Operation support system, BSS (Business support system), and existing IT orchestration systems are compatible.
  • EMS Event Management System
  • NMS Network Management System
  • OSS Operation support system
  • BSS Business support system
  • IT orchestration systems are compatible.
  • network function virtualization provides flexible, flexible processing power through software network equipment running on an open, standard infrastructure, and quickly snaps to interface management and orchestration. This will greatly reduce the time and cost of integrating new virtual devices into the network operator's operating environment. Therefore, network function virtualization is only scalable when all related functions are automated.
  • FCAPS fault Management, Configuration Management, Accounting Management, Performance Management, Security Management, Fault Management
  • configuration management, billing management, performance management, security management based on the function of adapting some interface and feature changes of network element virtualization
  • the element management system can also run in a virtualized environment.
  • ETSI European Telecommunications Standards Institute
  • NFV does not consider the automatic deployment and management of EMS.
  • the purpose of the embodiments of the present invention is to provide a method and an apparatus for automatically deploying an application in a virtualized environment, which solves the problem that the ETSI NFV architecture cannot implement automatic EMS deployment in the prior art.
  • an embodiment of the present invention provides a method for automatically deploying an application in a virtualized environment, including:
  • the application package is installed according to the installation request.
  • the download request carries version server information
  • the step of downloading an application software package according to the download request includes:
  • the method before the receiving the download request sent by the virtualized network function manager VNFM, the method further includes:
  • the listening port is enabled after the virtual machine starts.
  • the VNFM is fed back with a successful response.
  • the method further includes:
  • the deployed response is fed back to the VNFM.
  • the method further includes:
  • a normal response of the link is fed back to the VNFM according to the link detection message.
  • the method further includes:
  • the VNFM feedback is re-established with a successful response.
  • the step of enabling the listening port after the virtual machine is started includes:
  • the listening port is enabled only after the virtual machine is started for the first time.
  • the embodiment of the invention further provides an apparatus for automatically deploying an application in a virtualized environment, including:
  • a first processing module configured to receive a download request sent by the virtualized network function manager VNFM, download an application software package according to the download request, and report a download progress to the VNFM;
  • a first receiving module configured to receive an installation request sent by the VNFM, where the installation request is sent by the VNFM after the download progress indicates that the application software package is downloaded;
  • the installation module is configured to install the application package according to the installation request.
  • the embodiment of the invention further provides a method for automatically deploying an application in a virtualized environment, which is applied to a virtualized network function manager VNFM, including:
  • the installation request is used to request the The virtual machine installs the application package.
  • the download request carries version server information.
  • the method before the sending the download request to the virtual machine, the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the embodiment of the invention further provides a device for automatically deploying an application in a virtualized environment, which is applied to the virtualized network function manager VNFM, and includes:
  • a first sending module configured to send a virtual link to the virtual machine after establishing a successful connection with the virtual machine Sending a download request, the download request is used to request the virtual machine to download an application software package;
  • a second processing module configured to receive a download progress fed back by the virtual machine according to the download request, and send an installation request to the virtual machine when the download progress indicates that the application software package is downloaded,
  • An installation request is for requesting the virtual machine to install the application package.
  • a computer storage medium is further provided, and the computer storage medium may be stored with an execution instruction for performing the implementation of the method for automatically deploying an application in a virtualized environment in the foregoing embodiment.
  • the method for automatically deploying an application in the virtualized environment completes the automatic deployment of the application in the virtual environment by interacting with the virtualized network function manager VNFM, and solves the ETSI NFV architecture in the prior art.
  • the problem of automatic deployment of EMS is not possible.
  • FIG. 1 is a schematic flowchart of a method for automatically deploying an application in a virtualized environment according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart 1 of a method for automatically deploying an application in a virtualized environment according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of a system for automatically deploying an application in a virtualized environment according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of relationships between modules in an EMS proxy process according to Embodiment 2 of the present invention.
  • FIG. 5 is a second schematic flowchart of a method for automatically deploying an application in a virtualized environment according to Embodiment 2 of the present invention
  • FIG. 6 is a schematic structural diagram of an apparatus for automatically deploying an application in a virtualized environment according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic diagram of an apparatus for automatically deploying an application in a virtualized environment according to Embodiment 4 of the present invention.
  • the present invention is directed to the problem that the ETSI NFV architecture cannot implement automatic deployment of EMS in the prior art, and provides various solutions, as follows:
  • a method for automatically deploying an application in a virtualized environment according to Embodiment 1 of the present invention includes:
  • Step 11 Receive a download request sent by the virtualized network function manager VNFM, download an application software package according to the download request, and report the download progress to the VNFM;
  • Step 12 Receive an installation request sent by the VNFM, where the installation request is sent by the VNFM after the download progress indicates that the application software package is downloaded.
  • Step 13 Install the application software package according to the installation request.
  • the method for automatically deploying an application in the virtualized environment completes the automatic deployment of the application in the virtual environment by interacting with the virtualized network function manager VNFM, and solves the prior art.
  • the ETSI NFV architecture is not capable of automating EMS deployment.
  • the downloading request carries the version server information; the step of downloading the application software package according to the download request includes: downloading, according to the version server information in the download request, from the version server specified by the VNFM The application package.
  • the method further includes: starting the listening port after the virtual machine is started; after the listening port is listening to the link establishment request sent by the VNFM After the chain is established, the VNFM feedback is used to establish a successful response.
  • the application software package is installed according to the installation request.
  • the method further includes: after the application software package is installed, acquiring virtual machine configuration information, and modifying an operating parameter of the application according to the virtual machine configuration information, starting the application; After all the processes of the application are started, the deployed response is fed back to the VNFM.
  • the method further includes: receiving a link detection message sent by the VNFM; and reporting the message to the VNFM according to the link detection message. Feedback link normal response.
  • the method further includes: receiving the VNFM sending if the normal response of the link is not fed back to the VNFM in the first preset time period. Re-building the request; re-building the chain according to the re-building request; after the re-establishment is successful, the VNFM is fed back to the VNLM to re-establish the successful response.
  • the step of starting the listening port after the virtual machine is started includes: starting the listening port only after the virtual machine is started for the first time.
  • the application may preferably be a network element management system EMS.
  • the method for automatically deploying an application in a virtualized environment is applicable to a virtualized network function manager VNFM, and the method for automatically deploying an application in the virtualized environment includes:
  • Step 21 After the link is successfully established with the virtual machine, send a download request to the virtual machine, where the download request is used to request the virtual machine to download an application software package.
  • Step 22 Receive a download progress fed back by the virtual machine according to the download request, and send an installation request to the virtual machine when the download progress indicates that the application software package is downloaded, and the installation request is used for The virtual machine is requested to install the application package.
  • the method for automatically deploying an application program in the virtualized environment completes the automatic deployment of the application program in the virtual environment by interacting with the proxy process in the virtual machine, and solves the ETSI NFV in the prior art.
  • the architecture can not achieve the automatic deployment of EMS question.
  • the download request carries version server information.
  • the method further includes: when receiving the request for automatically deploying the application, initiating a virtual machine request to the underlying virtualization platform, and at a second interval Sending a link establishment request to the virtual machine after the preset time period; receiving a successful response of the virtual machine according to the chain establishment request feedback.
  • the method further includes: receiving a deployed response of the virtual machine feedback, prompting the user that the application is automatically deployed.
  • the method further includes: sending a link detection message to the virtual machine; determining the first Whether the normal feedback of the link fed back by the virtual machine is received within the preset time period; if not, the request for re-establishing the link is sent to the virtual machine.
  • the method further includes: determining whether a response to re-establishment of the virtual machine feedback is successfully received in the third preset time period; If not, the user application is automatically deployed to fail.
  • the application may preferably be a network element management system EMS.
  • the method for automatically deploying an application in a virtualized environment provided by the present invention is described below in conjunction with a virtual machine and a virtualized network function manager VNFM.
  • the application uses the network element management system EMS as an example.
  • the solution provided by the present invention can be summarized as: starting an agent process in a virtual machine running EMS, and implementing interaction with the (Virtualized Network Function Manager) VNFM through the process, completing the EMS in the virtualized environment. Automatic deployment.
  • the VNFM After receiving the EMS automatic deployment request, the VNFM applies to the underlying IaaS (Infrastructure as a Service) platform to create a virtual machine, then deploys the virtual machine according to the configuration information and starts the virtual machine.
  • the virtual machine runs EMS when it starts for the first time.
  • the agent process through which the EMS version is downloaded, installed, and configured, thereby implementing EMS in virtual Automatic deployment of the platform.
  • the agent process includes a main control module, a Socket management module, a download management module, and an installation management module.
  • the main control module responsible for interaction with VNFM, implements the overall flow control of the EMS proxy process; when the proxy process runs, first starts the Socket management module, starts the listening port, and uses the proxy process as the Socket server to receive the chain-building request from the VNFM; Secondly, complete the EMS version file download; finally, complete the installation of the EMS software and modify some parameters required for the EMS operation.
  • Socket management module realizes Socket communication link management between proxy process and VNFM, receives VNFM's link establishment request and maintains link heartbeat.
  • Download Management Module implements the version package of the EMS downloaded from the version server specified by VNFM.
  • Installation management module implements the silent installation process control of the network element management software, and the modification of the running parameters after the network element management software is installed.
  • the application uses the network element management system EMS as an example.
  • the present invention is implemented based on the ETSI NFV architecture.
  • the virtualized network function manager VNFM belongs to the virtualized network management layer, and the virtualized network function VNF is implemented as a pure software implemented network function.
  • the VNF is a virtual machine 31 (including the EMS agent process 32, the EMS application program 33, and the operating system OS 34).
  • the EMS agent process runs in the virtual machine and interacts with the VNFM.
  • the VNFM After receiving the automatic deployment request, the VNFM responds to the request and completes the virtual resource application, and obtains the virtual resource application result, and then initiates a virtual machine request to the underlying IaaS (Infrastructure as a Service) platform, and the request is accompanied by a virtual The configuration information of the machine; the underlying IaaS platform responds to the creation of the virtual machine request, completes the virtual machine creation, and delivers the virtual machine configuration information attached to the request as an injection file to the virtual machine.
  • IaaS Intelligent as a Service
  • the virtual machine When the virtual machine starts for the first time, it runs an EMS proxy process. After the proxy process starts, it reads the above injected file and caches it, then starts monitoring on the specified port and listens for commands from the VNFM.
  • the EMS proxy process 41 includes a main control module 42, a Socket management module 43, a download management module 44, and an installation management module 45.
  • EMS Agent Process 41 Complete automatic deployment of the EMS; the agent process runs only when the virtual machine is first started.
  • the main control module 42 completes the message interaction between the EMS proxy process and the VNFM subsystem; as the total control module of the proxy process, after the main control module runs, the Socket management module 43 is called to listen to the VNFM chain-building request; After successful, the download request sent by the VNFM is received, the download management module 44 is invoked, and the EMS package is downloaded from the version server; after the package download is completed, the installation management module 45 is invoked to complete the installation, deployment, and startup of the EMS software, and send to the VNFM.
  • the EMS automatically deploys a success message.
  • the Socket management module 43 completes the Socket link management with the VNFM; the main control module 42 reads the Socket port message of the module, and after receiving the VNFM connection request, the main control module 42 completes the construction with the VNFM subsystem.
  • the main control module 42 responds to the heartbeat request through the Socket port; when receiving the download request, the main control module 42 calls the download module 44 to download the EMS software package, before the download is completed.
  • the control module 42 periodically sends a download progress message through the Socket port.
  • the main control module 42 calls the installation management module 45 to start installing the EMS software.
  • the main control module 42 periodically sends the installation progress through the Socket port. After the installation is completed, the main control module 42 sends an automatic deployment completion message through the Socket port.
  • the download management module 44 completes obtaining the EMS package from the version server specified by the VNFM; when the main control module 42 reads the download request message, the main control module 42 parses the download request message, obtains the version server information in the message, and invokes the module.
  • the EMS software package is downloaded from the specified version server, and the download process calculates the download progress, and sends the progress information to the main control module 42.
  • the installation management module 45 completes the flow control of the silent installation of the network element management software, and the modification of the running parameters of the network element management software after installation; when the main control module 42 reads the installation deployment request message, the main control module 42 calls the module. Start silent installation and deployment of the EMS. During the installation process, the installation progress is fed back to the main control module 42 until the installation is completed.
  • the VNFM after receiving the EMS automatic deployment request, the VNFM sends a request for creating a virtual machine to the underlying IaaS platform, and the request is accompanied by the configuration information of the virtual machine; the IaaS platform responds to the request for creating the virtual machine, completes the virtual machine creation and startup, and The configuration information is injected into the virtual machine when the virtual machine is first started.
  • the EMS automatic deployment process involves four parts, namely, the VNFM subsystem, the virtual machine VM, the EMS agent process, and the EMS. :
  • Step 51 After the virtual machine is successfully started, the EMS agent process (EMSAgent) is started, and the agent process program is placed in the virtual machine image to limit the operation of the agent process only when the virtual machine is first started.
  • EMSAgent EMS agent process
  • Step 52 After the EMSAgent process is started, the monitoring is started on the fixed port, and the EMSAgent is used as the Socket server to listen for the connection request from the VNFM.
  • Step 53 The VNFM initiates a link establishment request to the EMSAgent process.
  • Step 54 The EMSAgent returns a link establishment success message to the VNFM, and a Socket connection is established between the VNFM and the EMSAgent, and the connection will exist until the automatic deployment is completed.
  • Step 55 After establishing a Socket connection between the VNFM and the EMSAgent, the VNFM periodically sends a heartbeat link detection to the EMSAgent to detect the Socket link status.
  • Step 56 After receiving the heartbeat link detection message, the EMSAgent returns a response message.
  • Step 57 If it is detected that the three heartbeat periods are not responding in step 55, the VNFM re-initiates the link establishment request to the EMSAgent, and if the chain is not completed after the specified time, the VNFM returns to the automatic deployment failure.
  • Step 58 The EMSAgent receives the VNFM re-initiation of the link establishment request, completes the chain establishment within a specified time, and returns a re-establishment success message.
  • Step 59 After detecting the link establishment success message returned in step 54 or 58, the VNFM sends a download request to the EMSAgent, and the version server information is included in the request.
  • Step 510 After receiving the download request, the EMSAgent obtains the version server information in the message, starts the download module, and downloads the EMS software package from the version server specified by the VNFM through the download module.
  • Step 511 During the download process, the EMSAgent calculates the download progress information and reports it to the EMSAgent. VNFM.
  • Step 512 After receiving the message that the download progress is 100%, the VNFM sends a request to install the EMS software package to the EMSAgent.
  • Step 513 After receiving the installation request, the EMSAgent starts the installation module and starts to install the EMS.
  • Step 514 The EMS Agent calculates the installation process information and reports it to the VNFM during the process of installing the EMS.
  • Step 515 After the EMSAgent completes the installation of the EMS package, the EMS running parameters are modified according to the configuration information of the virtual machine, and the EMS is started after the modification is completed.
  • Step 516 After detecting that all processes of the EMS are started, the EMSAgent reports the automatic deployment completion message to the VNFM.
  • the EMSAgent can detect the progress of all the processes of the EMS by polling the EMS, and can also report all the processes of the EMS to the EMSAgent to report the startup progress.
  • the apparatus for automatically deploying an application in a virtualized environment according to Embodiment 3 of the present invention includes:
  • the first processing module 61 is configured to receive a download request sent by the virtualized network function manager VNFM, download an application software package according to the download request, and report the download progress to the VNFM;
  • the first receiving module 62 is configured to receive an installation request sent by the VNFM, where the installation request is sent by the VNFM after the download progress indicates that the application software package is downloaded;
  • the installation module 63 is configured to install the application package according to the installation request.
  • the device for automatically deploying an application in the virtualized environment completes the automatic deployment of the application in the virtual environment by interacting with the virtualized network function manager VNFM, and solves the prior art.
  • ETSI NFV architecture cannot implement EMS The problem of automatic deployment.
  • the downloading request carries the version server information;
  • the first processing module includes: a downloading submodule, configured to download the version from the version server specified by the VNFM according to the version server information in the download request Application package.
  • the device further includes: a startup module, configured to enable the listening port after the virtual machine is started; and a chain building module, configured to perform a chain-building operation after the listening port listens to the connection request sent by the VNFM;
  • the first feedback module is configured to respond to the VNFM to successfully establish a successful response after the link is successfully established.
  • the device further includes: a third processing module, configured to acquire virtual machine configuration information after the application software package is installed, and modify an operating parameter of the application according to the virtual machine configuration information, and start The application; the second feedback module is configured to feed back the deployed response to the VNFM after all the processes of the application are started.
  • a third processing module configured to acquire virtual machine configuration information after the application software package is installed, and modify an operating parameter of the application according to the virtual machine configuration information, and start The application
  • the second feedback module is configured to feed back the deployed response to the VNFM after all the processes of the application are started.
  • the device further includes: a second receiving module, configured to receive a link detection message sent by the VNFM; and a third feedback module, configured to provide feedback to the VNFM according to the link detection message The link responds normally.
  • the device further includes: a third receiving module, configured to receive a request for re-establishing the link sent by the VNFM if the response to the VNFM feedback link is not normal in the first preset time period;
  • the chain building module is configured to perform a re-linking operation according to the request for re-building the chain;
  • the fourth feedback module is configured to feedback the VNFM to re-establish a successful response after the link is successfully re-established.
  • the startup module includes: a startup submodule, configured to enable the listening port only after the virtual machine is first started.
  • the application may preferably be a network element management system EMS.
  • an embodiment of the present invention further provides a virtual machine, including: the apparatus for automatically deploying an application in the above virtualized environment.
  • the implementation examples of the device for automatically deploying an application in the above-mentioned virtualized environment are applicable to the embodiment of the virtual machine, and can achieve the same technical effect.
  • the device for automatically deploying an application in a virtualized environment is applied to a virtualized network function manager VNFM, and the device for automatically deploying an application in the virtualized environment includes:
  • the first sending module 71 is configured to send a download request to the virtual machine after the link is successfully established with the virtual machine, where the download request is used to request the virtual machine to download an application software package;
  • the second processing module 72 is configured to receive a download progress fed back by the virtual machine according to the download request, and send an installation request to the virtual machine when the download progress indicates that the application software package is downloaded.
  • the installation request is for requesting the virtual machine to install the application package.
  • the device for automatically deploying an application in the virtualized environment provided by the fourth embodiment of the present invention completes the automatic deployment of the application in the virtual environment by interacting with the proxy process in the virtual machine, and solves the ETSI NFV in the prior art.
  • the architecture is not able to implement the problem of automatic deployment of EMS.
  • the download request carries version server information.
  • the device further includes: a second sending module, configured to: when receiving the request for automatically deploying the application, initiate a virtual machine request to the underlying virtualization platform, and after a second preset time interval The virtual machine sends a link establishment request, and the fourth receiving module is configured to receive a successful response of the virtual machine according to the chain establishment request feedback.
  • a second sending module configured to: when receiving the request for automatically deploying the application, initiate a virtual machine request to the underlying virtualization platform, and after a second preset time interval The virtual machine sends a link establishment request
  • the fourth receiving module is configured to receive a successful response of the virtual machine according to the chain establishment request feedback.
  • the device further includes: a fifth processing module, configured to receive the deployed response of the virtual machine feedback, prompting the user that the application is automatically deployed.
  • the device further includes: a third sending module, configured to send a link detection message to the virtual machine; the first determining module is configured to determine the first preset time Whether the response of the link fed back by the virtual machine is received in the segment; and the fourth sending module is configured to send a request for re-establishing the link to the virtual machine.
  • the device further includes: a second judging module, configured to determine whether a re-linking success response of the virtual machine feedback is received in the third preset time period; and a prompting module, if not, Prompt user application auto-deployment failed.
  • a second judging module configured to determine whether a re-linking success response of the virtual machine feedback is received in the third preset time period
  • a prompting module if not, Prompt user application auto-deployment failed.
  • the application may preferably be a network element management system EMS.
  • an embodiment of the present invention further provides a virtualized network function manager VNFM, including: the device for automatically deploying an application program in the above virtualized environment.
  • the implementation examples of the device for automatically deploying an application in the above-mentioned virtualized environment are applicable to the embodiment of the VNFM, and the same technical effects can be achieved.
  • the modules/sub-modules may be implemented in software for execution by various types of processors.
  • an identified executable code module can comprise one or more physical or logical blocks of computer instructions, which can be constructed, for example, as an object, procedure, or function. Nonetheless, the executable code of the identified modules need not be physically located together, but may include different instructions stored in different bits that, when logically combined, constitute a module and implement the provisions of the module. purpose.
  • the executable code module can be a single instruction or a plurality of instructions, and can even be distributed across multiple different code segments, distributed among different programs, and distributed across multiple memory devices.
  • operational data may be identified within the modules and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed at different locations (including on different storage devices), and may at least partially exist as an electronic signal in a system or network on.
  • the module can be implemented by software, considering the level of the existing hardware process, the module can be implemented in software, and the technician can construct a corresponding hardware circuit to implement the corresponding function without considering the cost.
  • the hardware circuitry includes conventional Very Large Scale Integration (VLSI) circuits or gate arrays as well as existing semiconductors such as logic chips, transistors, or other discrete components.
  • VLSI Very Large Scale Integration
  • the modules can also be implemented with programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
  • the foregoing technical solution provided by the embodiment of the present invention can be applied to the automatic deployment of an application in a virtualized environment, and the automatic deployment of the application in the virtual environment is completed through interaction with the virtualized network function manager VNFM.
  • the problem that the ETSI NFV architecture in the prior art cannot implement automatic deployment of EMS is solved.

Abstract

本发明提供了一种虚拟化环境下自动部署应用程序的方法及装置,其中,虚拟化环境下自动部署应用程序的方法包括:接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;根据所述安装请求对所述应用程序软件包进行安装。本发明提供的方案通过与虚拟化网络功能管理器VNFM之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。

Description

一种虚拟化环境下自动部署应用程序的方法及装置 技术领域
本发明涉及虚拟化技术领域,特别是指一种虚拟化环境下自动部署应用程序的方法及装置。
背景技术
Network Functions Virtualisation(NFV,网络功能虚拟化)是由电信网络运营商提出的,是借助IT虚拟化技术,采用业界标准的大容量服务器、存储器和交换机承载各种各样的网络软件功能的技术标准。NFV实现了软件的灵活加载,实现在数据中心、网络节点和用户端等各个位置灵活的部署配置,从而加快网络部署和调整的速度,降低业务部署的复杂度,提高网络设备的统一化、通用化、适配性等。
另外,网络功能虚拟化的实现必须能与运营商当前的老网络设备共存,并与已有的(Element Management System,网元管理系统)EMS、(Network Management System,网络管理系统)NMS、OSS(Operation support system,运营支撑系统)/BSS(Business support system,业务支撑系统),以及已有的IT编排系统兼容。
此外,网络功能虚拟化通过运行在开放、标准的基础设施上的软件网络设备提供弹性、灵活的处理能力,并向接口管理和编排快速拉齐。这将大大降低把新虚拟装置集成到网络运营商运营环境中的时间、成本。因此,网络功能虚拟化只有当所有相关功能自动化后才具有伸缩性。
但是,随着虚拟化技术的发展,电信运营商和用户还希望网络功能虚拟化后网元管理系统能在提供现有FCAPS(Fault Management、Configuration Management、Accounting Management、Performance Management、Security Management,故障管理、配置管理、计费管理、性能管理、安全管理)功能基础上适配网元虚拟化的一些接口和特性变化, 网元管理系统也能够运行在虚拟化环境中。然而,在现有的ETSI(European Telecommunications Standards Institute,欧洲电信标准协会)NFV架构中,NFV没有考虑EMS的自动部署和管理。
发明内容
本发明实施例的目的在于提供一种虚拟化环境下自动部署应用程序的方法及装置,解决现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。
为了解决上述技术问题,本发明实施例提供一种虚拟化环境下自动部署应用程序的方法,包括:
接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
根据所述安装请求对所述应用程序软件包进行安装。
可选地,所述下载请求中携带版本服务器信息;
所述根据所述下载请求下载应用程序软件包的步骤包括:
根据所述下载请求中的版本服务器信息,从所述VNFM指定的版本服务器中,下载所述应用程序软件包。
可选地,在所述接收虚拟化网络功能管理器VNFM发送的下载请求之前,所述方法还包括:
虚拟机启动后开启监听端口;
在所述监听端口监听到所述VNFM发送的建链请求后,进行建链操作;
建链成功后,向所述VNFM反馈建链成功的响应。
可选地,在所述根据所述安装请求对所述应用程序软件包进行安装之后,所述方法还包括:
在所述应用程序软件包安装完毕后,获取虚拟机配置信息,并根据所述虚拟机配置信息修改应用程序的运行参数,启动所述应用程序;
在所述应用程序的所有进程均启动完毕后,向所述VNFM反馈部署完毕的响应。
可选地,在所述向所述VNFM反馈建链成功的响应之后,所述方法还包括:
接收所述VNFM发送的链路检测消息;
根据所述链路检测消息向所述VNFM反馈链路正常的响应。
可选地,在所述接收所述VNFM发送的链路检测消息后,所述方法还包括:
若第一预设时间段内未向所述VNFM反馈链路正常的响应,则接收所述VNFM发送的重新建链的请求;
根据所述重新建链的请求进行重新建链操作;
重新建链成功后,向所述VNFM反馈重新建链成功的响应。
可选地,所述虚拟机启动后开启监听端口的步骤包括:
只在所述虚拟机首次启动后,开启监听端口。
本发明实施例还提供了一种虚拟化环境下自动部署应用程序的装置,包括:
第一处理模块,设置为接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
第一接收模块,设置为接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
安装模块,设置为根据所述安装请求对所述应用程序软件包进行安装。
本发明实施例还提供了一种虚拟化环境下自动部署应用程序的方法,应用于虚拟化网络功能管理器VNFM,包括:
在与虚拟机之间建链成功后,向所述虚拟机发送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
可选地,所述下载请求中携带版本服务器信息。
可选地,在所述向所述虚拟机发送下载请求之前,所述方法还包括:
在接收到自动部署应用程序的请求时,向底层的虚拟化平台发起创建虚拟机请求,并在间隔第二预设时间段后向所述虚拟机发送建链请求;
接收所述虚拟机根据所述建链请求反馈的建链成功的响应。
可选地,在所述向所述虚拟机发送安装请求之后,所述方法还包括:
接收所述虚拟机反馈的部署完毕的响应,提示用户应用程序自动部署完毕。
可选地,在所述接收所述虚拟机根据所述建链请求反馈的建链成功的响应之后,所述方法还包括:
向所述虚拟机发送链路检测消息;
判断第一预设时间段内是否接收到所述虚拟机反馈的链路正常的响应;
若否,则向所述虚拟机发送重新建链的请求。
可选地,在所述向所述虚拟机发送重新建链的请求后,所述方法还包括:
判断在第三预设时间段内是否接收到所述虚拟机反馈的重新建链成功的响应;
若否,则提示用户应用程序自动部署失败。
本发明实施例还提供了一种虚拟化环境下自动部署应用程序的装置,应用于虚拟化网络功能管理器VNFM,包括:
第一发送模块,设置为在与虚拟机之间建链成功后,向所述虚拟机发 送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
第二处理模块,设置为接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的虚拟化环境下自动部署应用程序方法的实现。
本发明实施例的上述技术方案的有益效果如下:
上述方案中,所述虚拟化环境下自动部署应用程序的方法通过与虚拟化网络功能管理器VNFM之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。
附图说明
图1为本发明实施例一的虚拟化环境下自动部署应用程序的方法流程示意图;
图2为本发明实施例二的虚拟化环境下自动部署应用程序的方法流程示意图一;
图3为本发明实施例二的虚拟化环境下自动部署应用程序的系统架构示意图;
图4为本发明实施例二的EMS代理进程内部各模块的关系示意图;
图5为本发明实施例二的虚拟化环境下自动部署应用程序的方法流程示意图二;
图6为本发明实施例三的虚拟化环境下自动部署应用程序的装置结构示意图;
图7为本发明实施例四的虚拟化环境下自动部署应用程序的装置结构 示意图。
具体实施方式
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
本发明针对现有的技术中ETSI NFV架构不能够实现EMS自动部署的问题,提供了多种解决策略,具体如下:
实施例一
如图1所示,本发明实施例一提供的虚拟化环境下自动部署应用程序的方法包括:
步骤11:接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
步骤12:接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
步骤13:根据所述安装请求对所述应用程序软件包进行安装。
本发明实施例一提供的所述虚拟化环境下自动部署应用程序的方法通过与虚拟化网络功能管理器VNFM之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。
其中,所述下载请求中携带版本服务器信息;所述根据所述下载请求下载应用程序软件包的步骤包括:根据所述下载请求中的版本服务器信息,从所述VNFM指定的版本服务器中,下载所述应用程序软件包。
进一步的,在所述接收虚拟化网络功能管理器VNFM发送的下载请求之前,所述方法还包括:虚拟机启动后开启监听端口;在所述监听端口监听到所述VNFM发送的建链请求后,进行建链操作;建链成功后,向所述VNFM反馈建链成功的响应。
更进一步的,在所述根据所述安装请求对所述应用程序软件包进行安 装之后,所述方法还包括:在所述应用程序软件包安装完毕后,获取虚拟机配置信息,并根据所述虚拟机配置信息修改应用程序的运行参数,启动所述应用程序;在所述应用程序的所有进程均启动完毕后,向所述VNFM反馈部署完毕的响应。
为了确保链接的正常性,在所述向所述VNFM反馈建链成功的响应之后,所述方法还包括:接收所述VNFM发送的链路检测消息;根据所述链路检测消息向所述VNFM反馈链路正常的响应。
对应的,在所述接收所述VNFM发送的链路检测消息后,所述方法还包括:若第一预设时间段内未向所述VNFM反馈链路正常的响应,则接收所述VNFM发送的重新建链的请求;根据所述重新建链的请求进行重新建链操作;重新建链成功后,向所述VNFM反馈重新建链成功的响应。
具体的,所述虚拟机启动后开启监听端口的步骤包括:只在所述虚拟机首次启动后,开启监听端口。
其中,所述应用程序可优选为网元管理系统EMS。
实施例二
如图2所示,本发明实施例二提供的虚拟化环境下自动部署应用程序的方法,可应用于虚拟化网络功能管理器VNFM,所述虚拟化环境下自动部署应用程序的方法包括:
步骤21:在与虚拟机之间建链成功后,向所述虚拟机发送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
步骤22:接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
本发明实施例二提供的所述虚拟化环境下自动部署应用程序的方法通过与虚拟机中代理进程之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问 题。
具体的,所述下载请求中携带版本服务器信息。
进一步的,在所述向所述虚拟机发送下载请求之前,所述方法还包括:在接收到自动部署应用程序的请求时,向底层的虚拟化平台发起创建虚拟机请求,并在间隔第二预设时间段后向所述虚拟机发送建链请求;接收所述虚拟机根据所述建链请求反馈的建链成功的响应。
更进一步的,在所述向所述虚拟机发送安装请求之后,所述方法还包括:接收所述虚拟机反馈的部署完毕的响应,提示用户应用程序自动部署完毕。
为了确保链接的正常性,在所述接收所述虚拟机根据所述建链请求反馈的建链成功的响应之后,所述方法还包括:向所述虚拟机发送链路检测消息;判断第一预设时间段内是否接收到所述虚拟机反馈的链路正常的响应;若否,则向所述虚拟机发送重新建链的请求。
对应的,在所述向所述虚拟机发送重新建链的请求后,所述方法还包括:判断在第三预设时间段内是否接收到所述虚拟机反馈的重新建链成功的响应;若否,则提示用户应用程序自动部署失败。
其中,所述应用程序可优选为网元管理系统EMS。
下面结合虚拟机和虚拟化网络功能管理器VNFM双方对本发明提供的虚拟化环境下自动部署应用程序的方法进行说明,应用程序以网元管理系统EMS为例。
本发明提供的方案可以概述为:在运行EMS的虚拟机中启动一个代理进程,通过该进程实现与(Virtualized Network Function Manager虚拟化网络功能管理器)VNFM的交互,完成EMS在虚拟化环境中的自动部署。
VNFM接收到EMS自动部署请求后,向底层的IaaS(Infrastructure as a Service,即基础设施即服务)平台申请创建虚拟机,然后根据配置信息部署虚拟机并启动虚拟机,虚拟机首次启动时运行EMS代理进程,通过该代理进程完成EMS版本的下载、安装以及配置,从而实现EMS在虚拟 化平台的自动部署。
所述代理进程包括主控模块、Socket管理模块、下载管理模块、安装管理模块。
主控模块:负责与VNFM的交互,实现EMS代理进程总的流程控制;代理进程运行时,首先启动Socket管理模块,开启监听端口,将代理进程作为Socket服务端,接收来自VNFM的建链请求;其次,完成EMS版本文件下载;最后,完成EMS软件的安装以及修改EMS运行需要的一些参数。
Socket管理模块:实现代理进程与VNFM之间的Socket通讯链路管理,接收VNFM的建链请求和维护链路心跳。
下载管理模块:实现从VNFM指定的版本服务器下载EMS的版本包。
安装管理模块:实现网元管理软件静默安装流程控制,以及网元管理软件安装后运行参数的修改。
下面作进一步详细的描述,应用程序以网元管理系统EMS为例。
如图3所示,本发明是基于ETSI NFV架构实现,在ETSI NFV架构中,虚拟化网络功能管理器VNFM是属于虚拟化网络管理层,虚拟化网络功能VNF是作为一个纯软件实现的网络功能,从安装部署的角度来说,VNF就是一个虚拟机31(包括EMS代理进程32、EMS应用程序33和操作系统OS34),EMS代理进程运行在虚拟机中,与VNFM进行交互。
VNFM接收自动部署请求后,响应该请求并完成虚拟资源申请,获取虚拟资源申请结果后,向底层的IaaS(基础设施即服务,Infrastructure as a Service)平台发起创建虚拟机请求,请求中会附带虚拟机的配置信息;底层的IaaS平台响应创建虚拟机请求,完成虚拟机创建并将请求中附带的虚拟机配置信息作为注入文件传递到虚拟机中。
虚拟机首次启动时,会运行一个EMS代理进程,在该代理进程启动后,读取上述的注入文件并缓存起来,然后在指定端口启动监听,监听来自VNFM的指令。
如图4所示,EMS代理进程41包括主控模块42、Socket管理模块43、下载管理模块44、安装管理模块45。
EMS代理进程41:完成EMS的自动部署;该代理进程仅在虚拟机首次启动时运行。
主控模块42:完成EMS代理进程与VNFM子系统之间的消息交互;作为代理进程总的控制模块,主控模块运行后,调用Socket管理模块43,监听VNFM的建链请求;与VNFM建链成功后,接收VNFM发送的下载请求,调用下载管理模块44,从版本服务器下载EMS的软件包;完成软件包下载后,调用安装管理模块45,完成EMS软件的安装、部署、启动,向VNFM发送EMS自动部署成功消息。
Socket管理模块43:完成与VNFM之间的Socket链路管理;主控模块42读取该模块的Socket端口消息,当接收到VNFM的建链请求后,主控模块42完成与VNFM子系统的建链;当接收到周期性的心跳检测请求时,主控模块42通过Socket端口响应该心跳请求;当接收到下载请求时,主控模块42调用下载模块44下载EMS软件包,下载未完成之前主控模块42会通过Socket端口定时发送下载进度消息;当接收到安装请求时,主控模块42调用安装管理模块45,开始安装EMS软件,安装过程中主控模块42会通过Socket端口定时发送安装进度消息;安装完成后,主控模块42通过Socket端口发送自动部署完成消息。
下载管理模块44:完成从VNFM指定的版本服务器获取EMS程序包;当主控模块42读取到下载请求消息时,主控模块42解析下载请求消息,获取消息中的版本服务器信息,调用本模块,从指定的版本服务器下载EMS软件包,下载过程计算下载进度,将进度信息发送给主控模块42。
安装管理模块45:完成网元管理软件静默安装的流程控制,以及网元管理软件安装后运行参数的修改;当主控模块42读取到安装部署请求消息时,主控模块42调用本模块,开始静默安装、部署EMS,安装过程中,定时向主控模块42反馈安装进度,直至安装完成。
也就是,在VNFM接收到EMS自动部署请求后,向底层IaaS平台发送创建虚拟机请求,请求中会附带虚拟机的配置信息;IaaS平台响应创建虚拟机的请求,完成虚拟机创建及启动,并将配置信息在虚拟机首次启动时注入到虚拟机中,之后,如图5所示,EMS自动部署流程涉及到四个部分,即VNFM子系统,虚拟机VM,EMS代理进程和EMS,步骤如下:
步骤51:虚拟机启动成功后,启动EMS代理进程(EMSAgent),该代理进程程序置于虚拟机镜像中,限制只在虚拟机首次启动时运行该代理进程。
步骤52:EMSAgent进程启动后,在固定端口开启监听,将EMSAgent作为Socket服务器监听来自VNFM的建链请求。
步骤53:VNFM向EMSAgent进程发起建链请求。
步骤54:EMSAgent向VNFM返回建链成功消息,VNFM与EMSAgent之间建立Socket连接,该连接在自动部署完成之前会一直存在。
步骤55:在VNFM与EMSAgent之间建立Socket连接后,VNFM定时向EMSAgent发送心跳链路检测,以检测Socket链路状态。
步骤56:EMSAgent收到心跳链路检测消息后,返回响应消息。
步骤57:如果步骤55中检测到3个心跳周期没有响应,则VNFM重新向EMSAgent发起建链请求,超过指定时间没有完成建链,则VNFM返回自动部署失败。
步骤58:EMSAgent接收到VNFM重新发起建链请求,指定时间内完成建链,返回重新建链成功消息。
步骤59:VNFM检测到步骤54或58返回的建链成功消息后,向EMSAgent发送下载请求,请求中会附带版本服务器信息。
步骤510:EMSAgent接收到下载请求后,获取消息中的版本服务器信息,启动下载模块;通过下载模块从VNFM指定的版本服务器下载EMS软件包。
步骤511:EMSAgent在下载过程中,计算下载进度信息并上报给 VNFM。
步骤512:当VNFM接收到下载进度100%的消息后,向EMSAgent发送安装EMS软件包请求。
步骤513:EMSAgent接收到安装请求后,启动安装模块,开始安装EMS。
步骤514:EMSAgent在安装EMS的过程中,计算安装进程信息并上报给VNFM。
步骤515:EMSAgent完成EMS软件包安装后,根据虚拟机的配置信息修改EMS的运行参数,修改完成后启动EMS。
步骤516:EMSAgent检测到EMS所有进程均启动完毕后,向VNFM上报自动部署完成消息。
其中,EMSAgent可通过轮询EMS所有进程的启动进度来检测,也可以让EMS所有进程向EMSAgent上报启动进度来检测。
实施例三
如图6所示,本发明实施例三提供的虚拟化环境下自动部署应用程序的装置包括:
第一处理模块61,设置为接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
第一接收模块62,设置为接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
安装模块63,设置为根据所述安装请求对所述应用程序软件包进行安装。
本发明实施例三提供的所述虚拟化环境下自动部署应用程序的装置通过与虚拟化网络功能管理器VNFM之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS 自动部署的问题。
其中,所述下载请求中携带版本服务器信息;所述第一处理模块包括:下载子模块,用于根据所述下载请求中的版本服务器信息,从所述VNFM指定的版本服务器中,下载所述应用程序软件包。
进一步的,所述装置还包括:启动模块,设置为虚拟机启动后开启监听端口;建链模块,设置为在所述监听端口监听到所述VNFM发送的建链请求后,进行建链操作;第一反馈模块,设置为建链成功后,向所述VNFM反馈建链成功的响应。
更进一步的,所述装置还包括:第三处理模块,设置为在所述应用程序软件包安装完毕后,获取虚拟机配置信息,并根据所述虚拟机配置信息修改应用程序的运行参数,启动所述应用程序;第二反馈模块,设置为在所述应用程序的所有进程均启动完毕后,向所述VNFM反馈部署完毕的响应。
为了确保链接的正常性,所述装置还包括:第二接收模块,设置为接收所述VNFM发送的链路检测消息;第三反馈模块,设置为根据所述链路检测消息向所述VNFM反馈链路正常的响应。
对应的,所述装置还包括:第三接收模块,设置为若第一预设时间段内未向所述VNFM反馈链路正常的响应,则接收所述VNFM发送的重新建链的请求;重新建链模块,设置为根据所述重新建链的请求进行重新建链操作;第四反馈模块,设置为重新建链成功后,向所述VNFM反馈重新建链成功的响应。
具体的,所述启动模块包括:启动子模块,设置为只在所述虚拟机首次启动后,开启监听端口。
其中,所述应用程序可优选为网元管理系统EMS。
需要说明的是,上述涉及虚拟机侧的虚拟化环境下自动部署应用程序的方法的所述实现实施例均适用于该虚拟化环境下自动部署应用程序的装置的实施例中,也能达到相同的技术效果。
为了解决上述技术问题,本发明实施例还提供了一种虚拟机,包括:上述的虚拟化环境下自动部署应用程序的装置。
其中,上述虚拟化环境下自动部署应用程序的装置的所述实现实施例均适用于该虚拟机的实施例中,也能达到相同的技术效果。
实施例四
如图7所示,本发明实施例四提供的虚拟化环境下自动部署应用程序的装置,应用于虚拟化网络功能管理器VNFM,所述虚拟化环境下自动部署应用程序的装置包括:
第一发送模块71,设置为在与虚拟机之间建链成功后,向所述虚拟机发送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
第二处理模块72,设置为接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
本发明实施例四提供的所述虚拟化环境下自动部署应用程序的装置通过与虚拟机中代理进程之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。
具体的,所述下载请求中携带版本服务器信息。
进一步的,所述装置还包括:第二发送模块,设置为在接收到自动部署应用程序的请求时,向底层的虚拟化平台发起创建虚拟机请求,并在间隔第二预设时间段后向所述虚拟机发送建链请求;第四接收模块,设置为接收所述虚拟机根据所述建链请求反馈的建链成功的响应。
更进一步的,所述装置还包括:第五处理模块,设置为接收所述虚拟机反馈的部署完毕的响应,提示用户应用程序自动部署完毕。
为了确保链接的正常性,所述装置还包括:第三发送模块,设置为向所述虚拟机发送链路检测消息;第一判断模块,设置为判断第一预设时间 段内是否接收到所述虚拟机反馈的链路正常的响应;第四发送模块,设置为若否,则向所述虚拟机发送重新建链的请求。
对应的,所述装置还包括:第二判断模块,设置为判断在第三预设时间段内是否接收到所述虚拟机反馈的重新建链成功的响应;提示模块,用于若否,则提示用户应用程序自动部署失败。
其中,所述应用程序可优选为网元管理系统EMS。
需要说明的是,上述涉及VNFM侧的虚拟化环境下自动部署应用程序的方法的所述实现实施例均适用于该虚拟化环境下自动部署应用程序的装置的实施例中,也能达到相同的技术效果。
为了解决上述技术问题,本发明实施例还提供了一种虚拟化网络功能管理器VNFM,包括:上述的虚拟化环境下自动部署应用程序的装置。
其中,上述虚拟化环境下自动部署应用程序的装置的所述实现实施例均适用于该VNFM的实施例中,也能达到相同的技术效果。
需要说明的是,此说明书中所描述的许多功能部件都被称为模块/子模块,以便更加特别地强调其实现方式的独立性。
本发明实施例中,模块/子模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络 上。
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述原理前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
本发明实施例提供的上述技术方案,可以应用于虚拟化环境下自动部署应用程序的过程中,通过与虚拟化网络功能管理器VNFM之间的交互,完成应用程序在虚拟环境中的自动部署,解决了现有技术中ETSI NFV架构不能够实现EMS自动部署的问题。

Claims (15)

  1. 一种虚拟化环境下自动部署应用程序的方法,包括:
    接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
    接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
    根据所述安装请求对所述应用程序软件包进行安装。
  2. 如权利要求1所述的方法,其中,所述下载请求中携带版本服务器信息;
    所述根据所述下载请求下载应用程序软件包的步骤包括:
    根据所述下载请求中的版本服务器信息,从所述VNFM指定的版本服务器中,下载所述应用程序软件包。
  3. 如权利要求1所述的方法,其中,在所述接收虚拟化网络功能管理器VNFM发送的下载请求之前,所述方法还包括:
    虚拟机启动后开启监听端口;
    在所述监听端口监听到所述VNFM发送的建链请求后,进行建链操作;
    建链成功后,向所述VNFM反馈建链成功的响应。
  4. 如权利要求3所述的方法,其中,在所述根据所述安装请求对所述应用程序软件包进行安装之后,所述方法还包括:
    在所述应用程序软件包安装完毕后,获取虚拟机配置信息,并根据所述虚拟机配置信息修改应用程序的运行参数,启动所述应用程序;
    在所述应用程序的所有进程均启动完毕后,向所述VNFM反馈部署完毕的响应。
  5. 如权利要求3所述的方法,其中,在所述向所述VNFM反馈建链成功的响应之后,所述方法还包括:
    接收所述VNFM发送的链路检测消息;
    根据所述链路检测消息向所述VNFM反馈链路正常的响应。
  6. 如权利要求5所述的方法,其中,在所述接收所述VNFM发送的链路检测消息后,所述方法还包括:
    若第一预设时间段内未向所述VNFM反馈链路正常的响应,则接收所述VNFM发送的重新建链的请求;
    根据所述重新建链的请求进行重新建链操作;
    重新建链成功后,向所述VNFM反馈重新建链成功的响应。
  7. 如权利要求3所述的方法,其中,所述虚拟机启动后开启监听端口的步骤包括:
    只在所述虚拟机首次启动后,开启监听端口。
  8. 一种虚拟化环境下自动部署应用程序的装置,包括:
    第一处理模块,设置为接收虚拟化网络功能管理器VNFM发送的下载请求,根据所述下载请求下载应用程序软件包,并向所述VNFM报告下载进度;
    第一接收模块,设置为接收所述VNFM发送的安装请求,所述安装请求是所述VNFM在所述下载进度指示所述应用程序软件包下载完毕后发送的;
    安装模块,设置为根据所述安装请求对所述应用程序软件包进行安装。
  9. 一种虚拟化环境下自动部署应用程序的方法,应用于虚拟化网络功能管理器VNFM,包括:
    在与虚拟机之间建链成功后,向所述虚拟机发送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
    接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
  10. 如权利要求9所述的方法,其中,所述下载请求中携带版本服务器信息。
  11. 如权利要求9所述的方法,其中,在所述向所述虚拟机发送下载 请求之前,所述方法还包括:
    在接收到自动部署应用程序的请求时,向底层的虚拟化平台发起创建虚拟机请求,并在间隔第二预设时间段后向所述虚拟机发送建链请求;
    接收所述虚拟机根据所述建链请求反馈的建链成功的响应。
  12. 如权利要求9所述的方法,其中,在所述向所述虚拟机发送安装请求之后,所述方法还包括:
    接收所述虚拟机反馈的部署完毕的响应,提示用户应用程序自动部署完毕。
  13. 如权利要求11所述的方法,其中,在所述接收所述虚拟机根据所述建链请求反馈的建链成功的响应之后,所述方法还包括:
    向所述虚拟机发送链路检测消息;
    判断第一预设时间段内是否接收到所述虚拟机反馈的链路正常的响应;
    若否,则向所述虚拟机发送重新建链的请求。
  14. 如权利要求13所述的方法,其中,在所述向所述虚拟机发送重新建链的请求后,所述方法还包括:
    判断在第三预设时间段内是否接收到所述虚拟机反馈的重新建链成功的响应;
    若否,则提示用户应用程序自动部署失败。
  15. 一种虚拟化环境下自动部署应用程序的装置,应用于虚拟化网络功能管理器VNFM,包括:
    第一发送模块,设置为在与虚拟机之间建链成功后,向所述虚拟机发送下载请求,所述下载请求用于请求所述虚拟机下载应用程序软件包;
    第二处理模块,设置为接收所述虚拟机根据所述下载请求反馈的下载进度,并在所述下载进度指示所述应用程序软件包下载完毕时,向所述虚拟机发送安装请求,所述安装请求用于请求所述虚拟机安装所述应用程序软件包。
PCT/CN2017/076337 2016-03-23 2017-03-10 一种虚拟化环境下自动部署应用程序的方法及装置 WO2017162054A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610169323.2 2016-03-23
CN201610169323.2A CN107229484B (zh) 2016-03-23 2016-03-23 一种虚拟化环境下自动部署应用程序的方法及装置

Publications (1)

Publication Number Publication Date
WO2017162054A1 true WO2017162054A1 (zh) 2017-09-28

Family

ID=59899203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076337 WO2017162054A1 (zh) 2016-03-23 2017-03-10 一种虚拟化环境下自动部署应用程序的方法及装置

Country Status (2)

Country Link
CN (1) CN107229484B (zh)
WO (1) WO2017162054A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209078A (zh) * 2019-12-27 2020-05-29 广东睿江云计算股份有限公司 一种自动部署并检测虚拟机Web应用的方法及其系统
CN111722945A (zh) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 一种基于中间件实现的工业互联网应用系统及实现方法
CN112269636A (zh) * 2020-10-20 2021-01-26 苏州浪潮智能科技有限公司 云数据中心虚拟机安装软件的方法、系统、服务器及介质
CN117319224A (zh) * 2023-10-15 2023-12-29 上海同星智能科技有限公司 汽车总线虚拟通道的实现方法及实现系统

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255509B (zh) * 2018-02-07 2022-02-22 平安好房(上海)电子商务有限公司 应用部署方法、装置、设备及可读存储介质
CN109101317A (zh) * 2018-07-20 2018-12-28 郑州云海信息技术有限公司 一种虚拟化平台配置初始化方法和装置
CN110990127B (zh) * 2019-12-23 2023-05-12 深信服科技股份有限公司 虚拟机自动部署方法、装置、设备及存储介质
CN111857749A (zh) * 2020-07-07 2020-10-30 合肥森亿智能科技有限公司 一键部署应用程序的方法、系统及服务器

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253866A (zh) * 2014-09-20 2014-12-31 华为技术有限公司 虚拟网络功能网元的软件部署方法、系统及相关设备
CN104685935A (zh) * 2012-09-27 2015-06-03 交互数字专利控股公司 虚拟化网络中的端到端架构、api框架、发现以及接入
EP2940968A1 (en) * 2014-04-30 2015-11-04 Hewlett-Packard Development Company, L.P. Network infrastructure management

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407650C (zh) * 2005-11-10 2008-07-30 中国工商银行股份有限公司 分布式业务系统中的软件版本升级系统及其方法
CN102006334B (zh) * 2007-06-11 2013-01-02 华为技术有限公司 安装软件组件的方法、系统及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104685935A (zh) * 2012-09-27 2015-06-03 交互数字专利控股公司 虚拟化网络中的端到端架构、api框架、发现以及接入
EP2940968A1 (en) * 2014-04-30 2015-11-04 Hewlett-Packard Development Company, L.P. Network infrastructure management
CN104253866A (zh) * 2014-09-20 2014-12-31 华为技术有限公司 虚拟网络功能网元的软件部署方法、系统及相关设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209078A (zh) * 2019-12-27 2020-05-29 广东睿江云计算股份有限公司 一种自动部署并检测虚拟机Web应用的方法及其系统
CN111209078B (zh) * 2019-12-27 2023-09-19 广东睿江云计算股份有限公司 一种自动部署并检测虚拟机Web应用的方法及其系统
CN111722945A (zh) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 一种基于中间件实现的工业互联网应用系统及实现方法
CN112269636A (zh) * 2020-10-20 2021-01-26 苏州浪潮智能科技有限公司 云数据中心虚拟机安装软件的方法、系统、服务器及介质
CN112269636B (zh) * 2020-10-20 2022-11-11 苏州浪潮智能科技有限公司 云数据中心虚拟机安装软件的方法、系统、服务器及介质
CN117319224A (zh) * 2023-10-15 2023-12-29 上海同星智能科技有限公司 汽车总线虚拟通道的实现方法及实现系统

Also Published As

Publication number Publication date
CN107229484A (zh) 2017-10-03
CN107229484B (zh) 2021-05-04

Similar Documents

Publication Publication Date Title
WO2017162054A1 (zh) 一种虚拟化环境下自动部署应用程序的方法及装置
US10802906B2 (en) Monitoring method and apparatus of server, and storage medium
US11070444B2 (en) SDN control plane performance testing
US10275258B2 (en) Systems and methods for enhancing the availability of multi-tier applications on cloud computing platforms
US10038742B2 (en) Methods and apparatus to retire hosts in virtual server rack deployments for virtual computing environments
US8281302B2 (en) Method and apparatus for dynamically instantiating services using a service insertion architecture
US9529602B1 (en) Systems and methods for internet recovery and service
CN108234158B (zh) Vnf的建立方法、nfvo以及网络系统
EP1654655B1 (en) Embedded system administration
US20160043892A1 (en) System and method for cloud based provisioning, configuring, and operating management tools
US20120005325A1 (en) Systems and methods for automated processing of devices
CN108769124B (zh) PaaS平台的应用部署方法、装置、服务器及存储介质
WO2018095414A1 (zh) 虚拟机故障的检测和恢复方法及装置
US8566847B2 (en) Out-of-band host management via a management controller
US20190379576A1 (en) Providing dynamic serviceability for software-defined data centers
WO2019153532A1 (zh) 监控系统的部署方法、装置、计算机设备及存储介质
WO2021238592A1 (zh) 一种应用调试方法、系统、设备及介质
CN112099919A (zh) 一种基于云计算api的应用服务可视化快速部署方法
WO2013102397A1 (zh) 搭建应用运行环境的方法、装置及存储介质
US11539612B2 (en) Testing virtualized network functions
CN111464394B (zh) 一种节点监控方法、装置以及存储介质
CN112948008A (zh) 一种基于Ironic管理物理裸机的方法
CN114095498B (zh) 集群环境的部署方法、系统、计算机设备及存储介质
US20070198993A1 (en) Communication system event handling systems and techniques
CN109117243B (zh) 业务部署方法、装置、客户端设备及计算机可读存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17769331

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17769331

Country of ref document: EP

Kind code of ref document: A1