CN110768834B - Method, system, device and medium for notifying upgrading result of virtual machine configuration - Google Patents

Method, system, device and medium for notifying upgrading result of virtual machine configuration Download PDF

Info

Publication number
CN110768834B
CN110768834B CN201911024847.2A CN201911024847A CN110768834B CN 110768834 B CN110768834 B CN 110768834B CN 201911024847 A CN201911024847 A CN 201911024847A CN 110768834 B CN110768834 B CN 110768834B
Authority
CN
China
Prior art keywords
target
virtual machine
tenant
cloud computing
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911024847.2A
Other languages
Chinese (zh)
Other versions
CN110768834A (en
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911024847.2A priority Critical patent/CN110768834B/en
Publication of CN110768834A publication Critical patent/CN110768834A/en
Application granted granted Critical
Publication of CN110768834B publication Critical patent/CN110768834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The embodiment of the invention provides a method, a system, equipment and a storage medium for notifying a configuration upgrading result of a virtual machine, which are applied to a console service node in a cloud computing system; the cloud computing system comprises a management physical machine and cloud computing physical machines, wherein one or more virtual machines run on each cloud computing physical machine; the control console service node is a virtual machine or a cloud computing physical machine which is used for interacting with tenants in the cloud computing system; the method comprises the following steps: obtaining configuration upgrading result information of a target virtual machine from a management physical machine; the configuration upgrading result information is as follows: managing the physical machine obtained from the target virtual machine; obtaining a communication address preset by a target tenant; and sending the configuration upgrading result information to the communication address. Therefore, by applying the embodiment of the invention, the configuration upgrading result can be sent to the corresponding communication address, and the tenant does not need to open a remote maintenance interface for checking, so that the tenant can conveniently obtain the configuration upgrading result in time, and the tenant experience is improved.

Description

Method, system, device and medium for notifying configuration upgrading result of virtual machine
Technical Field
The invention relates to the technical field of virtual machine configuration upgrading in a cloud computing system, in particular to a method and a system for notifying a virtual machine configuration upgrading result, a console service node device and a storage medium.
Background
Cloud computing is a pay-per-use business model. The mode provides convenient and fast on-demand network access and a configurable resource pool (comprising computing, storage and network resources) for the tenant, and an application system deployed on the resource pool by the tenant can acquire computing power, storage space and information service according to the requirement.
The cloud server, also called a cloud host, a virtual machine and a virtual server, refers to a complete computer system which has complete hardware system functions and operates in a completely isolated environment through software simulation, and is one of basic units of cloud computing services provided by a cloud service provider for tenants.
In the related art, when purchasing and creating a virtual machine, a tenant sets a configuration for each virtual machine. When the current virtual machine cannot meet the requirement, configuration upgrade needs to be performed on the virtual machine, where the configuration upgrade generally includes upgrading a memory of the virtual machine, a storage space of a disk, and a core number of a Central Processing Unit (CPU).
At present, in the configuration upgrading process, a tenant continuously checks through a client remote login maintenance interface, and can acquire a configuration upgrading result after the configuration upgrading of the virtual machine as soon as possible. If the tenant does not log in the remote maintenance interface for checking, the tenant cannot timely acquire the configuration upgrading result of the virtual machine, and the experience of the tenant is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a system for notifying a configuration upgrading result of a virtual machine, a console service node device and a storage medium, so that a tenant can conveniently obtain the configuration upgrading result of the virtual machine in time, and the experience of the tenant is improved. The specific technical scheme is as follows:
in a first aspect, the present invention provides a method for notifying an upgrade result of a virtual machine configuration, which is applied to a console service node in a cloud computing system; the cloud computing system comprises a management physical machine and cloud computing physical machines, and one or more virtual machines run on each cloud computing physical machine; the control console service node is a virtual machine or a cloud computing physical machine which is used for interacting with tenants in the cloud computing system; the method comprises the following steps:
obtaining configuration upgrading result information of a target virtual machine from the management physical machine; the configuration upgrading result information is as follows: in the process that the target virtual machine carries out configuration upgrading based on the configuration upgrading request of the target tenant, the management physical machine is obtained from the target virtual machine;
obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant;
and sending the configuration upgrading result information to the communication address.
Optionally, the step of obtaining configuration upgrade result information of the target virtual machine from the management physical machine includes:
receiving a target message generated by the management physical machine forwarded by a message middleware node; the target message comprises configuration upgrading result information of the target virtual machine; the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system.
Optionally, the target message includes a target virtual machine identifier of the target virtual machine;
the method further comprises the following steps: obtaining target virtual machine identifications of a plurality of target virtual machines contained in a configuration upgrading request of a target tenant;
before the step of obtaining the preset communication address of the target tenant, the method further includes:
judging whether target messages of all target virtual machines contained in the configuration upgrading request are received or not based on target virtual machine identifications contained in the received target messages and target virtual machine identifications of a plurality of target virtual machines contained in the configuration upgrading request;
if yes, the step of obtaining the preset communication address of the target tenant is executed.
Optionally, the method further includes:
after receiving the configuration upgrading request, sending the configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine; the order service node is a virtual machine or a cloud computing physical machine which is used for managing orders in the cloud computing system;
the step of determining whether target messages of all target virtual machines included in the configuration upgrade request are received based on the target virtual machine identifiers included in the received target messages and the target virtual machine identifiers of the plurality of target virtual machines included in the configuration upgrade request includes:
acquiring a main order corresponding to a target virtual machine identifier in the target message from the order service node, and storing configuration upgrading result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order;
judging whether each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information or not;
the step of sending the configuration upgrade result information to the communication address includes:
and combining the information of each configuration upgrading result in the main order into a notification message, and sending the notification message to the communication address.
Optionally, the method further includes:
and if all the corresponding configuration upgrading result information of each sub-order corresponding to each target virtual machine identifier in the main order is not stored, sending the main order in which the configuration upgrading result information in the target message is stored to the order service node so that the order service node updates the main order.
Optionally, the step of obtaining the preset communication address of the target tenant includes:
acquiring a preset communication address of the target tenant from a preset tenant information management node; the tenant information management node is used for a virtual machine or a cloud computing physical machine for tenant information management, and the tenant information comprises tenant identification information and a communication address.
Optionally, the target message includes a message that the target pre-migration is successful or failed, a message that the target migration is successful or failed, and a message that the final upgrade is successful or failed.
In a second aspect, the present invention provides a cloud computing system, the system comprising: the method comprises the steps of managing physical machines and cloud computing physical machines, wherein one or more virtual machines run on each cloud computing physical machine; the virtual machine or the cloud computing physical machine used for interacting with the tenant is a console service node;
the console service node is used for obtaining configuration upgrading result information of the target virtual machine from the management physical machine; obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant; sending the configuration upgrading result information to the communication address;
the management physical machine is used for acquiring configuration upgrading result information from the target virtual machine in the configuration upgrading process of the target virtual machine based on the configuration upgrading request of the target tenant.
Optionally, the system further includes: the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system;
the message middleware node is used for forwarding the target message generated by the management physical machine to the console service node; and the target message comprises configuration upgrading result information of the target virtual machine.
Optionally, the system further includes: the order service node is a virtual machine or a cloud computing physical machine which is used for managing orders in the cloud computing system;
the order service node is used for generating a main order containing each sub order for each target virtual machine after receiving a configuration upgrading request sent by the console service node;
the console service node is used for
Obtaining target virtual machine identifications of a plurality of target virtual machines contained in a configuration upgrading request of a target tenant;
sending the configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine;
receiving a target message generated by the management physical machine forwarded by a message middleware node; the target message comprises configuration upgrading result information of the target virtual machine;
acquiring a main order corresponding to a target virtual machine identifier in the target message from the order service node, and storing configuration upgrading result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order;
judging whether each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information or not;
if yes, obtaining a preset communication address of the target tenant;
and combining the information of each configuration upgrading result in the main order into a notification message, and sending the notification message to the communication address.
Optionally, the system further includes: the tenant information management node is a virtual machine or a cloud computing physical machine which is used for tenant information management in the cloud computing system;
and the tenant information management node is used for acquiring a preset communication address of the target tenant from a preset tenant information management node.
In a third aspect, the present invention provides a console service node device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of notifying the configuration upgrading result of any virtual machine when the program stored in the memory is executed.
In a fourth aspect, the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program is executed by a processor to perform the steps of any one of the above methods for notifying the upgrade result of the virtual machine configuration.
In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above methods for notifying the upgrade result of the virtual machine configuration.
In the notification method, the configuration upgrade result information of a target virtual machine is obtained from a management physical machine; the configuration upgrading result information is as follows: the management physical machine is obtained from the target virtual machine in the process of carrying out configuration upgrading on the target virtual machine based on the configuration upgrading request of the target tenant; obtaining a communication address preset by the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant; and sending the configuration upgrading result information to the communication address.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for notifying an upgrade result of a virtual machine configuration according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for notifying an upgrade result of a virtual machine configuration according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system for notifying an upgrade result of a virtual machine configuration according to an embodiment of the present invention;
fig. 4 is another schematic structural diagram of a system for notifying an upgrade result of a virtual machine configuration according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a console service node device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In order to solve the problems that if a tenant does not log in a remote maintenance interface to check a configuration upgrading result after the configuration upgrading is performed on a virtual machine, the configuration upgrading result of the virtual machine cannot be timely obtained, and the experience of the tenant is low, the embodiment of the invention provides a notification method and a notification system of the configuration upgrading result, a console service node device and a storage medium.
Referring to fig. 1, the method for notifying the configuration upgrade result of the virtual machine according to the embodiment of the present invention is applied to a console service node in a cloud computing system; the cloud computing system comprises a management physical machine and cloud computing physical machines, wherein one or more virtual machines run on each cloud computing physical machine; the console service node is a virtual machine or a cloud computing physical machine used for interacting with a tenant in a cloud computing system, and as shown in fig. 1, a specific processing flow of the method may include:
step S101, obtaining configuration upgrading result information of a target virtual machine from the management physical machine; the configuration upgrading result information is as follows: and in the process of carrying out configuration upgrading on the target virtual machine based on the configuration upgrading request of the target tenant, the management physical machine is obtained from the target virtual machine.
The system comprises a console service node, a message middleware node and a management physical machine, wherein the console service node is used for receiving a target message generated by the management physical machine and forwarded by the message middleware node; the target message comprises configuration upgrading result information of the target virtual machine; the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system.
The management physical machine can be implemented as a physical machine cluster where the cloud computing management platform OpenStack is located.
In an implementation manner, the management physical machine may query, every preset time, for example, the preset time is 1 minute, the current state of each target virtual machine for which the virtual machine configuration and upgrade have not been completed before 1 minute. Specifically, the management physical machine may call an interface of a physical machine virtualization layer where the target virtual machine is located, to obtain a current state of the target virtual machine; and if the current state of the target virtual machine is that the configuration upgrading result exists, the management physical machine obtains the configuration upgrading result, generates a target message containing configuration upgrading result information and sends the target message to the message middleware node.
And the message middleware node sends the target message to the console service node.
A console service node receives a target message generated by the management physical machine and forwarded by a message middleware node, wherein the target message also comprises a target virtual machine identifier of the target virtual machine; further, if the target virtual node is only one, the console service node may directly perform step S102; if there are multiple target virtual nodes, the target virtual machine identifiers of multiple target virtual machines included in the configuration upgrading request of the target tenant can be obtained first; judging whether target messages of all target virtual machines contained in the configuration upgrading request are received or not based on target virtual machine identifications contained in the received target messages and target virtual machine identifications of a plurality of target virtual machines contained in the configuration upgrading request; if so, step S102 is performed.
Step S102, obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant.
In an implementation manner, when the configuration and upgrade request of the target tenant includes a plurality of target virtual machines, if it is determined that the target messages of all the target virtual machines included in the configuration and upgrade request are received, the communication address preset by the target tenant is obtained.
In some embodiments, the preset communication address of the target tenant includes both the short message notification address and the mailbox address. Therefore, the tenant is further ensured to be capable of timely acquiring the configuration upgrading result of the virtual machine, and experience of the tenant is improved.
And step S103, sending the configuration upgrading result information to the communication address.
It may be implemented that the result of the target premigration success or failure, the result of the target migration success or failure, and the result of the final upgrade success or failure may be sent to the communication address.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
Another flowchart of a method for notifying an upgrade result of a virtual machine configuration according to an embodiment of the present invention, as shown in fig. 2, may include:
step S201, obtain target virtual machine identifiers of multiple target virtual machines included in the configuration upgrade request of the target tenant.
The method comprises the following steps that executable, when a configuration upgrading request of a target tenant for carrying out batch on virtual machines is received, target virtual machine identifications of a plurality of target virtual machines contained in the configuration upgrading request are obtained; when a configuration upgrading request of a target tenant for a virtual machine is received, a target virtual machine identifier of the target virtual machine contained in the configuration upgrading request is obtained.
Step S202, sending a configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine; the order service node is a virtual machine or a cloud computing physical machine which is used for managing orders in the cloud computing system.
In an implementation manner, the order service node generates a sub-order for each target virtual machine, and the sub-orders are associated together to serve as a main order, that is, the main order includes the sub-orders. In an implementation manner, the master order may include the identifier of each target virtual machine and the configuration upgrade result.
The configuration upgrading method includes that a console service node sends a configuration upgrading request to a management physical machine, and after receiving the configuration upgrading request, the management physical machine calls a virtualization layer interface of a physical machine where a target virtual machine in the configuration upgrading request is located to perform configuration upgrading on the target virtual machine. And the management physical machine obtains a configuration upgrading result from the target virtual machine in the configuration upgrading process, generates a target message containing configuration upgrading result information and sends the target message to the message middleware node.
Step S203, receiving the target message generated by the management physical machine forwarded by the message middleware node; the target message comprises configuration upgrading result information of the target virtual machine and a target virtual machine identifier; the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system; the configuration upgrading result information is as follows: and in the process of carrying out configuration upgrading on the target virtual machine based on the configuration upgrading request of the target tenant, managing the physical machine obtained from the target virtual machine.
The management physical machine can acquire configuration upgrading result information from the target virtual machine, generate a target message containing the configuration upgrading result information and send the target message to the message middleware node; the target message comprises configuration upgrading result information of the target virtual machine and a target virtual machine identifier; as may be implemented, the target messages may include a target premigration success or failure message, a target migration success or failure message, and a final promotion success or failure message. In practice, the target message may further include a target message category identifier.
The message middleware node sends the target message to a console service node;
the console service node receives the target message generated by the management physical machine forwarded by the message middleware node. It is practicable to execute the step S204 after determining that the category identifier in the target message is the preset category identifier.
The message middleware node decouples the management physical machine and the console service node, and can efficiently and reliably transfer messages.
Step S204, obtaining a main order corresponding to the target virtual machine identifier in the target message from the order service node, and storing the configuration upgrade result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order.
Step S205, determining whether each sub-order corresponding to each target virtual machine identifier in the main order has stored corresponding configuration upgrade result information.
If the result of the judgment is no, that is, all the corresponding configuration upgrading result information of each sub-order corresponding to each target virtual machine identifier in the main order is not stored, executing step S206; if the result of the determination is yes, that is, each sub-order corresponding to each target virtual machine identifier in the main order has stored corresponding configuration upgrade result information, step S207 is executed.
Step S206, sending the main order in which the configuration upgrade result information in the target message is stored to the order service node, so that the order service node updates the main order. The process returns to step S203.
For example: and 3 target virtual machines with identifiers respectively being identifier 1, identifier 2 and identifier 3 are arranged in the main order, and only if the identifier 2 stores the configuration upgrading result in the target message, the main order in which the configuration upgrading result information in the target message is stored is sent to the order service node, so that the order service node updates the main order.
Step S207, obtaining a preset communication address of the target tenant from a preset tenant information management node; the tenant information management node is used for a virtual machine or a cloud computing physical machine for tenant information management, and the tenant information comprises tenant identification information and a communication address; the communication address comprises a short message notification address or a mailbox address of a target tenant.
And if each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information. For example: and 3 target virtual machines with identifiers 1, 2 and 3 in the main order are respectively provided, and the identifier 1, the identifier 2 and the identifier 3 in the main order store corresponding configuration upgrading result information, so that a communication address preset by a target tenant is obtained from a preset tenant information management node.
Step S208, merging the information of each configuration upgrade result in the master order into a notification message, and sending the notification message to the communication address.
And in practice, the configuration upgrading result information in the main order is combined into a notification message, and the notification message is sent to a short message notification address or a mail address through a short message or a mail.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
Moreover, in this embodiment, when the tenant performs batch configuration upgrade on multiple target virtual machines, after corresponding configuration upgrade result information is stored in all the main orders corresponding to the multiple target virtual machines, the console service node may merge the configuration upgrade result information into one notification message, and send the notification message to the target tenant in one email or one short message, thereby further improving tenant experience. Meanwhile, the message middleware node decouples the management physical machine and the console service node, so that the target message can be efficiently and reliably transmitted.
Corresponding to the above embodiment of the method for notifying the upgrade result of the configuration of the virtual machine, as shown in fig. 3, a schematic structural diagram of a cloud computing system in the embodiment of the present invention may include:
the management system comprises a management physical machine 301 and cloud computing physical machines 300 and 302, wherein one or more virtual machines run on each cloud computing physical machine; the virtual machine used for interacting with the tenant is a console service node 303, and the console service node 303 runs in the cloud computing physical machine 302;
the cloud computing physical machine 300 is used for running a target virtual machine;
the management physical machine 301 is configured to obtain configuration upgrade result information from the target virtual machine in a configuration upgrade process of the target virtual machine based on a configuration upgrade request of a target tenant;
the cloud computing physical machine 302 is used for operating a console service node 303;
the console service node 303 is configured to obtain configuration upgrade result information of the target virtual machine from the management physical machine; obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant; and sending the configuration upgrading result information to the communication address.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
As shown in fig. 4, another schematic structural diagram of the cloud computing system provided in the embodiment of the present invention may include: a management physical machine 400, a target virtual machine 401, a target virtual machine 402, a message middleware node 403, an order service node 404, a console service node 405, and a tenant information management node 406; wherein the message middleware node 403: the method comprises the steps that a virtual machine or a cloud computing physical machine used for transmitting messages in a cloud computing system is adopted; the order service node 404: the method comprises the steps that a virtual machine or a cloud computing physical machine is used for managing orders in the cloud computing system; console service node 405: computing a physical machine for a virtual machine or cloud for interacting with a tenant; the tenant information management node 406: the virtual machine or the cloud computing physical machine is used for tenant information management in the cloud computing system;
the management physical machine 400 is configured to obtain configuration upgrade result information from the target virtual machine and generate a target message in a configuration upgrade process of the target virtual machine based on a configuration upgrade request of a target tenant;
the message middleware node 403 is configured to forward the target message generated by the management physical machine to the console service node; the target message comprises configuration upgrading result information of the target virtual machine;
the order service node 404 is configured to generate a main order including each sub order for each target virtual machine after receiving a configuration upgrade request sent by a console service node;
the console service node 405 is configured to obtain target virtual machine identifiers of multiple target virtual machines included in a configuration upgrade request of a target tenant; sending the configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine; receiving a target message generated by the management physical machine forwarded by a message middleware node; the target message comprises configuration upgrading result information of the target virtual machine; acquiring a main order corresponding to a target virtual machine identifier in the target message from the order service node, and storing configuration upgrading result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order; judging whether each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information or not; if yes, obtaining a communication address preset by the target tenant; and combining the information of each configuration upgrading result in the main order into a notification message, and sending the notification message to the communication address.
The tenant information management node 406 is configured to obtain a preset communication address of the target tenant from a preset tenant information management node.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
Moreover, in this embodiment, when a tenant performs batch configuration upgrade on multiple target virtual machines, after corresponding configuration upgrade result information is stored in a main order corresponding to the multiple target virtual machines, the console service node may merge the configuration upgrade result information in the main order into a notification message, and send the notification message to the target tenant in a mail or a short message, thereby further improving tenant experience. Meanwhile, the message middleware node decouples the management physical machine and the console service node, so that the target message can be efficiently and reliably transmitted.
The embodiment of the present invention further provides a console service node device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
obtaining configuration upgrading result information of a target virtual machine from the management physical machine; the configuration upgrading result information is as follows: in the process that the target virtual machine carries out configuration upgrading based on the configuration upgrading request of the target tenant, the management physical machine is obtained from the target virtual machine;
obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant;
and sending the configuration upgrading result information to the communication address.
Therefore, by applying the embodiment of the invention, the configuration and upgrade result can be sent to the communication address corresponding to the target tenant, that is, the configuration and upgrade result is notified to the target tenant in a short message or mail manner, the target tenant does not need to open a remote maintenance interface for checking, the tenant can conveniently obtain the configuration and upgrade result in time, and the tenant experience is improved.
In practice, the console service node device is an electronic device.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any one of the above methods for notifying the upgrade result of the virtual machine configuration.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for notifying the upgrade result of any one of the above-mentioned embodiments of the virtual machine configuration.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments of the apparatus, the electronic device, the computer-readable storage medium, and the computer program product, which are substantially similar to the method embodiment, the description is relatively simple, and reference may be made to part of the description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for notifying an upgrading result of virtual machine configuration is characterized by being applied to a console service node in a cloud computing system; the cloud computing system comprises a management physical machine and cloud computing physical machines, wherein one or more virtual machines run on each cloud computing physical machine; the control console service node is a virtual machine or a cloud computing physical machine which is used for interacting with tenants in the cloud computing system; the method comprises the following steps:
receiving a target message generated by the management physical machine forwarded by a message middleware node; the target message comprises configuration upgrading result information of a target virtual machine and a target virtual machine identifier of the target virtual machine; the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system; the configuration upgrading result information is as follows: the management physical machine is obtained from the target virtual machine in the process of carrying out configuration upgrading on the target virtual machine based on the configuration upgrading request of the target tenant; the configuration upgrading comprises upgrading the memory of the virtual machine, the storage space of the disk and the number of cores of a Central Processing Unit (CPU);
obtaining target virtual machine identifications of a plurality of target virtual machines contained in a configuration upgrading request of a target tenant;
after receiving the configuration upgrading request, sending the configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine; the order service node is a virtual machine or a cloud computing physical machine which is used for managing orders in the cloud computing system;
acquiring a main order corresponding to a target virtual machine identifier in the target message from the order service node, and storing configuration upgrading result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order;
judging whether each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information or not;
if yes, obtaining a preset communication address of the target tenant; the communication address comprises a short message notification address or a mail address of a target tenant;
and combining the information of each configuration upgrading result in the main order into a notification message, and sending the notification message to the communication address.
2. The method of claim 1, further comprising:
and if all the corresponding configuration upgrading result information of each sub-order corresponding to each target virtual machine identifier in the main order is not stored, sending the main order in which the configuration upgrading result information in the target information is stored to the order service node so that the order service node updates the main order.
3. The method according to claim 1, wherein the step of obtaining the preset communication address of the target tenant comprises:
acquiring a preset communication address of the target tenant from a preset tenant information management node; the tenant information management node is used for a virtual machine or a cloud computing physical machine for tenant information management, and the tenant information comprises tenant identification information and a communication address.
4. The method of claim 1, wherein the target messages comprise a target premigration success or failure message, a target migration success or failure message, and a final upgrade success or failure message.
5. A cloud computing system, comprising: the management system comprises a management physical machine, cloud computing physical machines, a message middleware node and an order service node, wherein one or more virtual machines run on each cloud computing physical machine; the virtual machine or the cloud computing physical machine used for interacting with the tenant is a console service node; the message middleware node is a virtual machine or a cloud computing physical machine which is used for transmitting messages in the cloud computing system; the order service node is a virtual machine or a cloud computing physical machine which is used for managing orders in the cloud computing system;
the message middleware node is used for forwarding the target message generated by the management physical machine to the console service node; the target message comprises configuration upgrading result information of the target virtual machine;
the console service node is used for obtaining configuration upgrading result information of the target virtual machine from the management physical machine; obtaining a communication address preset by a target tenant; the communication address comprises a short message notification address or a mail address of a target tenant; sending the configuration upgrading result information to the communication address;
the management physical machine is used for acquiring configuration upgrading result information from the target virtual machine in the process of performing configuration upgrading on the target virtual machine based on a configuration upgrading request of a target tenant, wherein the configuration upgrading comprises upgrading the memory of the virtual machine, the storage space of a disk and the number of cores of a Central Processing Unit (CPU);
the order service node is used for generating a main order containing each sub order for each target virtual machine after receiving a configuration upgrading request sent by the console service node;
the console service node is used for
Obtaining target virtual machine identifications of a plurality of target virtual machines contained in a configuration upgrading request of a target tenant;
sending the configuration upgrading request to a preset order service node so that the order service node generates a main order containing each sub order for each target virtual machine;
receiving a target message generated by the management physical machine forwarded by a message middleware node; the target message comprises configuration upgrading result information of the target virtual machine;
acquiring a main order corresponding to a target virtual machine identifier in the target message from the order service node, and storing configuration upgrading result information in the target message to a sub-order corresponding to the target virtual machine identifier in the main order;
judging whether each sub-order corresponding to each target virtual machine identifier in the main order stores corresponding configuration upgrading result information or not;
if yes, obtaining a preset communication address of the target tenant;
and combining the information of each configuration upgrading result in the main order into a notification message, and sending the notification message to the communication address.
6. The system of claim 5, further comprising: the tenant information management node is a virtual machine or a cloud computing physical machine which is used for tenant information management in the cloud computing system;
and the tenant information management node is used for acquiring a preset communication address of the target tenant from a preset tenant information management node.
7. The console service node device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 4 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201911024847.2A 2019-10-25 2019-10-25 Method, system, device and medium for notifying upgrading result of virtual machine configuration Active CN110768834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911024847.2A CN110768834B (en) 2019-10-25 2019-10-25 Method, system, device and medium for notifying upgrading result of virtual machine configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911024847.2A CN110768834B (en) 2019-10-25 2019-10-25 Method, system, device and medium for notifying upgrading result of virtual machine configuration

Publications (2)

Publication Number Publication Date
CN110768834A CN110768834A (en) 2020-02-07
CN110768834B true CN110768834B (en) 2023-01-03

Family

ID=69333688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911024847.2A Active CN110768834B (en) 2019-10-25 2019-10-25 Method, system, device and medium for notifying upgrading result of virtual machine configuration

Country Status (1)

Country Link
CN (1) CN110768834B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078417A1 (en) * 2014-11-17 2016-05-26 中兴通讯股份有限公司 Method and device for upgrading virtualized network function manager, and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9619244B2 (en) * 2014-09-05 2017-04-11 Xiaomi Inc. Method and system for upgrading an electronic device
JP2017097707A (en) * 2015-11-26 2017-06-01 沖電気工業株式会社 System for dynamically deploying virtual machine and server
CN107278291A (en) * 2016-06-02 2017-10-20 达闼科技(北京)有限公司 A kind of notification message display methods, device, electronic equipment and computer program product
CN107562511A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Moving method, physical server, virtual server and the system of physical to virtual
CN206541292U (en) * 2016-08-30 2017-10-03 广西电网有限责任公司 A kind of automatic deployment system of virtual machine
CN107783820A (en) * 2017-11-01 2018-03-09 国云科技股份有限公司 A kind of cloud platform virtual machine timing operation task method to set up

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078417A1 (en) * 2014-11-17 2016-05-26 中兴通讯股份有限公司 Method and device for upgrading virtualized network function manager, and server

Also Published As

Publication number Publication date
CN110768834A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US10313183B2 (en) Network function virtualization NFV fault management apparatus, device, and method
CN107967140B (en) Software modification initiating method, metadata publishing method and device
CN108322325B (en) Virtual machine management method and device
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN108897854B (en) Monitoring method and device for overtime task
US11461679B2 (en) Message management using machine learning techniques
CN107480205B (en) Method and device for partitioning data
CN111427701A (en) Workflow engine system and business processing method
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN103618758B (en) Web server and system resource access control method thereof
CN112817562A (en) Service processing method and device
US9948694B2 (en) Addressing application program interface format modifications to ensure client compatibility
CN113010238A (en) Permission determination method, device and system for micro application call interface
CN110768834B (en) Method, system, device and medium for notifying upgrading result of virtual machine configuration
CN107045452B (en) Virtual machine scheduling method and device
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN113765871B (en) Method and device for managing fort machine
CN113760487A (en) Service processing method and device
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN113742617A (en) Cache updating method and device
CN110868477A (en) Task scheduling method, device and system
CN111080250A (en) Flow backspacing compensation method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant