Cloud host management method and device, electronic equipment and readable medium

By using common OpenAPI interface and cloud assistant scheduling in the cloud host management platform, the problem that existing platforms are difficult to meet users' batch operation and maintenance management needs is solved, and efficient, secure and controllable and delicate management of cloud hosts is achieved.

CN119697181AActive Publication Date: 2025-03-25CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
CN202411644426.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-25
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

The existing cloud host management platform is difficult to meet users' needs for the large cloud host group batch operation and maintenance management, and it is difficult to achieve more customized and delicate cloud host management scenarios for users.

Method used

The cloud host management operation instructions are issued in the form of a general API request, and the batch operation and maintenance management of cloud hosts is realized through unified permission authentication, cloud assistant scheduling, data storage and cloud assistant Agent services.

Benefits of technology

It has improved the delicate management capabilities of cloud hosts in the cloud computing environment, supported batch processing scenarios, ensured that data processing record results can be checked and traced, the entire process of user operations can be safely identifiable, traffic concurrency and controllability, and resource scheduling and processing quickly, meeting users' needs for the large cloud host group batch operation and maintenance management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697181A_ABST
    Figure CN119697181A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a cloud host management method and device, electronic equipment and a readable medium, and relates to the technical field of cloud computing, and the cloud host management method comprises the following steps: obtaining a cloud host management operation instruction of a user; issuing a cloud host management operation instruction in the form of a universal API request; performing authority authentication on the cloud host management operation instruction; when the cloud host management operation instruction passes the authority authentication, generating a user identity credential, and sending the cloud host management operation instruction to a cloud assistant API service in a corresponding available area of the cloud host; verifying parameters of the user identity credential and the cloud host management operation instruction; when the user identity credential and the cloud host management operation instruction pass verification, issuing the cloud host management operation instruction to a cloud assistant Agent service of a computing node corresponding to the cloud host; analyzing and executing the cloud host management operation instruction; and storing the cloud host management operation instruction and a corresponding execution result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a cloud host management method, a cloud host management device, an electronic device and a computer-readable medium. Background Art

[0002] In the field of cloud computing, various platforms can provide various management methods for users to manage their own cloud hosts, such as VMWare vSphere virtualization infrastructure management tools, virt-manager open source virtualization management tools, and openstack and other open source cloud computing platforms. These tools and platforms are combined to meet users' requirements for different virtualization and cloud computing environments, allowing users to choose appropriate management methods to manage cloud hosts and cloud resources. At the same time, corresponding interfaces are also provided for users to call and perform secondary development to meet their customization needs.

[0003] As user business needs expand, existing management platforms can no longer meet users' needs for batch operation and maintenance management of large cloud host groups. Current management platforms are also difficult to implement for users' more customized and sophisticated cloud host management scenarios. For example, users expect to view and monitor the operating status of cloud host internal services without logging into the cloud host, or to upgrade the internal software of the cloud host in batches. Current management platforms are unable to handle these issues conveniently. At the same time, the cloud host management methods provided by various existing platforms cannot support users' batch operation and maintenance needs. If batch management and operation of cloud hosts is required, such as batch distribution of scripts and files to the cloud hosts, human resources are required for customized secondary development. Summary of the invention

[0004] The embodiments of the present invention provide a cloud host management method, device, electronic device and computer-readable storage medium to solve the problem that the existing management platform is difficult to meet the user's needs for batch operation and maintenance management of large cloud host groups, and is difficult to achieve more customized and sophisticated cloud host management scenarios for users.

[0005] The embodiment of the present invention discloses a cloud host management method, which is applied to a cloud platform and includes:

[0006] S1: Obtain the user's cloud host management operation instructions;

[0007] S2: issuing the cloud host management operation instruction in the form of a general API request;

[0008] S3: Performing authority authentication on the cloud host management operation instruction;

[0009] S4: When the cloud host management operation instruction passes the authority authentication, a user identity credential is generated, and the cloud host management operation instruction is sent to the cloud assistant API service in the available zone corresponding to the cloud host;

[0010] S5: Verify the user identity credentials and the parameters of the cloud host management operation instruction;

[0011] S6: When the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host;

[0012] S7: parsing and executing the cloud host management operation instruction;

[0013] S8: Storing the cloud host management operation instructions and corresponding execution results.

[0014] The embodiment of the present invention discloses a cloud host management device, which is applied to a cloud platform and includes:

[0015] The OpenAPI module is used to obtain the user's cloud host management operation instructions; and issue the cloud host management operation instructions in the form of a general API request;

[0016] An authentication module is used to authenticate the permissions of the cloud host management operation instructions;

[0017] A cloud assistant scheduling module, used to generate a user identity credential when the cloud host management operation instruction passes the authority authentication, and send the cloud host management operation instruction to the cloud assistant API service in the available zone corresponding to the cloud host;

[0018] The cloud assistant API module is used to verify the user identity credentials and the parameters of the cloud host management operation instruction; when the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host;

[0019] A cloud assistant Agent module, used to parse and execute the cloud host management operation instructions;

[0020] The database storage module is used to store the cloud host management operation instructions and the corresponding execution results.

[0021] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0022] The memory is used to store computer programs;

[0023] The processor is used to implement the cloud host management method as described in the embodiment of the present invention when executing the program stored in the memory.

[0024] The embodiment of the present invention further discloses one or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the cloud host management method as described in the embodiment of the present invention.

[0025] The embodiments of the present invention include the following advantages:

[0026] The present invention adopts a universal OpenAPI interface and issues the cloud host management operation instructions in the form of a universal API request, thereby improving the delicate management capabilities of cloud hosts in a cloud computing environment, adopts a unified permission authentication method, and friendly supports batch processing scenarios. It adopts a unified data storage method to ensure that data processing record results are searchable and traceable, and adopts a unified cloud assistant scheduling to ensure that the entire user operation process is safe and identifiable, traffic concurrency is controllable, and resource scheduling is rapid, thereby meeting users' needs for batch operation and maintenance management of large cloud host groups. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a flow chart of the steps of a cloud host management method provided in an embodiment of the present invention;

[0028] Figure 2 is a structural block diagram of a cloud host management device provided in an embodiment of the present invention;

[0029] Figure 3 is a block diagram of an electronic device provided in an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0032] Reference Figure 1 , shows a flow chart of the steps of a cloud host management method provided in an embodiment of the present invention. The cloud host management method is applied to a cloud platform and may specifically include the following steps:

[0033] S1: Obtain the user's cloud host management operation instructions.

[0034] S2: Send the cloud host management operation instruction in the form of a general API request.

[0035] Among them, API (Application Programming Interface) is an open interface for interaction between users and cloud platforms, providing management and operation functions of cloud hosts.

[0036] In the present invention, the management operations of different types of cloud hosts can be standardized by using a common API request. All operation instructions are transmitted through the same interface format, making the system design more concise and maintenance more convenient. At the same time, the common API interface supports batch operations, and multiple instructions can be issued through a single API request, realizing the management of large-scale cloud hosts and improving operation efficiency.

[0037] S3: Performing authority authentication on the cloud host management operation instruction.

[0038] In a possible implementation, S3 specifically includes: using a user name and password to authenticate the authority of the user who initiates the cloud host management operation instruction.

[0039] It should be noted that this step can be implemented by the authentication module. The authentication module is a region-level identity authentication and authorization service, which is mainly responsible for providing user identity management, authentication and authorization services. For users who call the cloud assistant service, the authority is identified. By authenticating the compliant users with their usernames and passwords, the corresponding token information is generated after passing the authentication, and the access to the cloud assistant API module is authorized to proceed to the next step.

[0040] In the present invention, user names and passwords are used for identity authentication to ensure that only authenticated users can access the cloud assistant service, preventing unauthorized users from performing operations. Access is authorized by token, avoiding the need to transmit user names and passwords for each operation, reducing the risk of exposing sensitive information, and further improving security.

[0041] S4: When the cloud host management operation instruction passes the authority authentication, a user identity credential is generated, and the cloud host management operation instruction is sent to the cloud assistant API service in the availability zone (AZ) corresponding to the cloud host.

[0042] It should be noted that this step can be implemented by the cloud assistant scheduling module. The cloud assistant scheduling module is a region-level scheduling module, which is mainly responsible for sending the request issued through the cloud assistant OpenAPI to the cloud assistant API service in the corresponding available zone of the cloud host after relevant permission authentication through scheduling.

[0043] In the present invention, permission authentication is performed in the Region-level scheduling module, so that unauthorized requests cannot enter the specific available zone through the scheduling module, thereby preventing invalid or malicious requests from entering the next layer of processing of the cloud platform.

[0044] S5: Verify the user identity credentials and the parameters of the cloud host management operation instruction.

[0045] S6: When the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host.

[0046] In a possible implementation, the step of sending the cloud host management operation instruction to the cloud assistant Agent service of the computing node corresponding to the cloud host in S6 is specifically: based on the watch mechanism of the distributed key-value storage system (ETCD), sending the cloud host management operation instruction to the cloud assistant Agent service of the computing node corresponding to the cloud host.

[0047] It should be noted that this step can be implemented by the cloud assistant API module. The cloud assistant API module receives the REST (Representational State Transfer) request from the cloud assistant scheduling module, and further verifies the parameters and user token sent in the request. At the same time, the database ETCD stores the metadata information related to the cloud host and the computing node information where it is located. The cloud assistant API module can obtain the computing node information where the corresponding cloud host is located. Then, using the watch mechanism based on the distributed key-value storage system, the cloud assistant API module located at the control node successfully sends the request to the cloud assistant Agent module of the computing node corresponding to the cloud host.

[0048] Among them, the watch mechanism is mainly an event monitoring mechanism, which allows applications to monitor specific keys in ETCD, that is, changes in one or a group of keys, and can be notified when changes occur. The implementation of the watch mechanism essentially relies on the resource version number revision. In this design mode, each update change action on a specific key will increase the atomicity of the revision, and the change event is perceived by comparing the revision value. Based on the watch mechanism, after receiving the request, the cloud assistant API module selects the cloud assistant Agent module of the node where the cloud host is located, and sends the request task to ETCD. The cloud assistant Agent module monitors the task information changes through the watch mechanism of ETCD and is notified, thereby receiving the script command execution task request sent by the cloud assistant API module. At the same time, for ETCD data storage, several data compression tasks will be run to regularly compress and clean up expired data to ensure that the ETCD data storage volume does not exceed the cluster tolerance limit and ensure cluster reliability.

[0049] S7: Parse and execute the cloud host management operation instruction.

[0050] In a possible implementation manner, the S7 specifically includes sub-steps S701 to S704:

[0051] S701: Parse the cloud host management operation instruction.

[0052] S702: Arrange operation execution logic.

[0053] S703: calling the QGA service by calling the client agent (QGA, QEMU Guest Agent) general interface, and sending the instruction script corresponding to the cloud host management operation instruction to the cloud host for execution.

[0054] Among them, QGA is a tool that helps improve cloud host management and monitoring. It provides a standardized method to allow more interaction and communication between the host system and the cloud host to improve the manageability and security of the virtualized environment.

[0055] Optionally, the QGA generic interface is configured in Libvirt, which is an open source virtualization management tool and library that provides a set of APIs and command-line tools for managing different virtualization technologies. The main goal of Libvirt is to provide a consistent management interface for different virtualization technologies to simplify the management and integration of cloud hosts.

[0056] The essence of the QGA service is the QGA client process running inside the cloud host, providing specific QGA services. The relevant software is installed into the image template and runs in the background after the cloud host is created. The cloud assistant agent module triggers the QGA execution command by calling the Libvirt interface and passes the return value to the cloud assistant agent module.

[0057] S704: Collect the returned data after the QGA service is executed.

[0058] Furthermore, by collecting and organizing the data, it is returned to the cloud assistant API module, and then pushed to the cloud assistant scheduling module. The asynchronous statistical task of the cloud assistant scheduling module stores the execution result data persistently in the data storage module.

[0059] In the present invention, through the standardized interface provided by QGA, the host system can perform standardized communication and management with the virtual machine. This standardized method avoids the inconsistency between different virtualization platforms and simplifies cross-platform management operations. At the same time, QGA acts as a client process inside the cloud host, allowing the host machine to directly pass operation instructions to the cloud host through the QGA interface for execution, avoiding the delay and instability of traditional network communication and improving execution efficiency and stability.

[0060] S8: Storing the cloud host management operation instructions and corresponding execution results.

[0061] Optionally, the execution result includes: execution success, execution failure and execution timeout.

[0062] It should be noted that the issued cloud host management operation instruction records will be saved in the database storage module. At the same time, users can also create common commands by themselves to achieve unified management of command content and batch issuance. The execution records of script commands issued by users are also stored in the database storage module for subsequent users to query the operation execution records and count the operation execution results. Each execution record is persistently processed. Whether the task execution succeeds or fails, its status will be updated according to the script execution result in the cloud host. If the script execution times out, the service will stop the execution task and update the script execution result to the timeout status. Each execution record is recorded clearly and accurately. Users can choose to re-issue or execute the next task by querying the script task execution result. Since each command issuance will generate an execution record, the idempotence and consistency of each script command execution result are guaranteed. At the same time, the cloud assistant scheduling module will perform traffic processing and security review to ensure the reliability of task execution and prevent users from issuing some dangerous commands or scripts.

[0063] Optionally, the data storage module is a mariadb cluster, which is also a region-level database cluster. It is used to store the records of instructions issued by users calling the cloud assistant service and the records of operation execution results. It allows users to query the execution records and the corresponding execution operation results later. The region-level database ensures the high availability of the database storage module.

[0064] Furthermore, the present invention realizes unified management of cloud hosts by providing a unified OpenAPI interface. It supports providing batch operation and maintenance management capabilities of cloud hosts through general interface calls. It includes executing general commands, distributing and executing script files, such as Shell, PowerShell, Bat, and Python, as well as collecting and aggregating command and script execution results. Users use the cloud assistant platform to implement common usage scenarios such as installing and uninstalling software, starting and stopping services, and upgrading services within the cloud host. They can also rely on the cloud assistant management channel capabilities to realize user-customized operation and maintenance operations and internal service monitoring, memory, and CPU resource monitoring. A general OpenAPI interface is used to provide delicate management capabilities of cloud hosts in a cloud computing environment, and a complete set of new cloud host batch operation and maintenance channels and service monitoring systems are provided.

[0065] Furthermore, in the present invention, the whole process of cloud host operation and maintenance management is password-free, login-free, and does not require the use of a jump server, which greatly reduces the cost and complexity of operation and maintenance management. The cloud assistant platform can realize user authentication, traffic resource distribution, operation record storage query, and operation command whitelist restriction, which is safer and more efficient. At the same time, the cloud assistant management channel system is mainly based on QGA to realize the interaction between the host and the cloud host, which does not rely on the network, and the communication is more efficient and stable compared to the TCP network.

[0066] Furthermore, the present invention provides a unified authentication module to support batch processing scenarios in a friendly manner. The present invention provides a unified data storage module to ensure that the data processing record results are traceable. The present invention provides a unified cloud assistant scheduling module to ensure that the entire process of user operation is safe and identifiable, traffic concurrency is controllable, and resource scheduling is rapid. Based on QGA channel encapsulation, it has good data exchange stability and scalability. The cloud assistant management channel system proposed and implemented based on this realizes user authentication, security audit, traffic restriction, cloud host batch operation and maintenance, service management and control, and has many advantages such as safety and efficiency, convenience and control, and reliable service.

[0067] Furthermore, the present invention implements a cloud assistant service system under a multi-availability zone architecture, and provides cloud host batch management capabilities in multi-availability zone scenarios. Compared with the prior art, the present invention implements a cloud assistant management channel system that adapts to a multi-availability zone resource pool, achieves flexible and changeable architecture, and conforms to the mainstream trend of the current cloud computing underlying service architecture. At the same time, the multi-availability zone architecture design also ensures the stability and high availability of the cloud assistant management channel system service itself.

[0068] The embodiments of the present invention include the following advantages:

[0069] The present invention adopts a universal OpenAPI interface and issues the cloud host management operation instructions in the form of a universal API request, thereby improving the delicate management capabilities of cloud hosts in a cloud computing environment, adopts a unified permission authentication method, and friendly supports batch processing scenarios. It adopts a unified data storage method to ensure that data processing record results are searchable and traceable, and adopts a unified cloud assistant scheduling to ensure that the entire user operation process is safe and identifiable, traffic concurrency is controllable, and resource scheduling is rapid, thereby meeting users' needs for batch operation and maintenance management of large cloud host groups.

[0070] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0071] Reference Figure 2 , shows a structural block diagram of a cloud host management device provided in an embodiment of the present invention, the cloud host management device, applied to a cloud platform, may specifically include the following modules:

[0072] The OpenAPI module 201 is used to obtain the user's cloud host management operation instructions; and issue the cloud host management operation instructions in the form of a general API request;

[0073] The authentication module 202 is used to authenticate the authority of the cloud host management operation instruction;

[0074] The cloud assistant scheduling module 203 is used to generate a user identity credential when the cloud host management operation instruction passes the authority authentication, and send the cloud host management operation instruction to the cloud assistant API service in the available zone corresponding to the cloud host;

[0075] The cloud assistant API module 204 is used to verify the user identity credentials and the parameters of the cloud host management operation instruction; when the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host;

[0076] The cloud assistant Agent module 205 is used to parse and execute the cloud host management operation instructions;

[0077] The database storage module 206 is used to store the cloud host management operation instructions and the corresponding execution results.

[0078] In a possible implementation, the authentication module 202 is specifically used to: use a user name and password to authenticate the authority of the user who initiates the cloud host management operation instruction.

[0079] In a possible implementation, the cloud assistant API module 204 is specifically used to: based on the watch mechanism of the distributed key-value storage system, send the cloud host management operation instruction to the cloud assistant Agent service of the computing node corresponding to the cloud host.

[0080] In a possible implementation, the cloud assistant Agent module 205 is specifically used for:

[0081] Parsing the cloud host management operation instructions;

[0082] Orchestrate operation execution logic;

[0083] By calling the client agent general interface, calling the QGA service, sending the instruction script corresponding to the cloud host management operation instruction to the cloud host for execution;

[0084] Collect the return data after the QGA service is executed.

[0085] In a possible implementation, the execution result includes: execution success, execution failure, and execution timeout.

[0086] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0087] The embodiments of the present invention include the following advantages:

[0088] The present invention adopts a universal OpenAPI interface and issues the cloud host management operation instructions in the form of a universal API request, thereby improving the delicate management capabilities of cloud hosts in a cloud computing environment, adopts a unified permission authentication method, and friendly supports batch processing scenarios. It adopts a unified data storage method to ensure that data processing record results are searchable and traceable, and adopts a unified cloud assistant scheduling to ensure that the entire user operation process is safe and identifiable, traffic concurrency is controllable, and resource scheduling is rapid, thereby meeting users' needs for batch operation and maintenance management of large cloud host groups.

[0089] In addition, refer to Figure 3 , shows a block diagram of an electronic device provided in an embodiment of the present invention. The embodiment of the present invention also provides an electronic device, including a processor 1301, a communication interface 1302, a memory 1303 and a communication bus 1304, wherein the processor 1301, the communication interface 1302, and the memory 1303 communicate with each other through the communication bus 1304,

[0090] Memory 1303, used for storing computer programs;

[0091] The processor 1301 is used to implement the following steps when executing the program stored in the memory 1303:

[0092] S1: Obtain the user's cloud host management operation instructions;

[0093] S2: issuing the cloud host management operation instruction in the form of a general API request;

[0094] S3: Performing authority authentication on the cloud host management operation instruction;

[0095] S4: When the cloud host management operation instruction passes the authority authentication, a user identity credential is generated, and the cloud host management operation instruction is sent to the cloud assistant API service in the available zone corresponding to the cloud host;

[0096] S5: Verify the user identity credentials and the parameters of the cloud host management operation instruction;

[0097] S6: When the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host;

[0098] S7: parsing and executing the cloud host management operation instruction;

[0099] S8: Storing the cloud host management operation instructions and corresponding execution results.

[0100] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0101] The communication interface is used for communication between the above terminal and other devices.

[0102] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0103] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0104] Reference Figure 4, showing a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. In another embodiment provided by the present invention, a computer-readable storage medium 1401 is also provided, in which instructions are stored, and when the instructions are run on a computer, the computer executes the cloud host management method described in the above embodiment.

[0105] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the cloud host management method described in the above embodiment.

[0106] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0107] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0108] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A cloud host management method, characterized in that: Applied to cloud platforms, including: S1: Obtain the user's cloud host management operation instructions; S2: issuing the cloud host management operation instruction in the form of a general API request; S3: Performing authority authentication on the cloud host management operation instruction; S4: When the cloud host management operation instruction passes the authority authentication, a user identity credential is generated, and the cloud host management operation instruction is sent to the cloud assistant API service in the available zone corresponding to the cloud host; S5: Verify the user identity credentials and the parameters of the cloud host management operation instruction; S6: When the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host; S7: parsing and executing the cloud host management operation instruction; S8: Storing the cloud host management operation instructions and corresponding execution results.

2. The cloud host management method according to claim 1, characterized in that: The S3 is specifically: The user who initiates the cloud host management operation instruction is authenticated by using the user name and password.

3. The cloud host management method according to claim 1, characterized in that: The cloud assistant Agent service of sending the cloud host management operation instruction to the computing node corresponding to the cloud host in S6 is specifically: Based on the watch mechanism of the distributed key-value storage system, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host.

4. The cloud host management method according to claim 1, characterized in that: The S7 specifically includes: S701: Parsing the cloud host management operation instruction; S702: Arrange operation execution logic; S703: calling the QGA service by calling the client agent general interface, and sending the instruction script corresponding to the cloud host management operation instruction to the cloud host for execution; S704: Collect the return data after the QGA service is executed.

5. The cloud host management method according to claim 1, characterized in that: The execution results include: execution success, execution failure and execution timeout.

6. A cloud host management device, characterized in that: Applied to cloud platforms, including: The OpenAPI module is used to obtain the user's cloud host management operation instructions; and issue the cloud host management operation instructions in the form of a general API request; An authentication module is used to authenticate the permissions of the cloud host management operation instructions; A cloud assistant scheduling module, used to generate a user identity credential when the cloud host management operation instruction passes the authority authentication, and send the cloud host management operation instruction to the cloud assistant API service in the available zone corresponding to the cloud host; The cloud assistant API module is used to verify the user identity credentials and the parameters of the cloud host management operation instruction; when the user identity credentials and the cloud host management operation instruction are verified, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host; A cloud assistant Agent module, used to parse and execute the cloud host management operation instructions; The database storage module is used to store the cloud host management operation instructions and the corresponding execution results.

7. The cloud host management device according to claim 6, characterized in that: The authentication module is specifically used for: The user who initiates the cloud host management operation instruction is authenticated by using the user name and password.

8. The cloud host management device according to claim 6, characterized in that: The cloud assistant API module is specifically used for: Based on the watch mechanism of the distributed key-value storage system, the cloud host management operation instruction is sent to the cloud assistant Agent service of the computing node corresponding to the cloud host.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the cloud host management method according to any one of claims 1 to 5 when executing the program stored in the memory.

10. A computer-readable medium, characterized in that Instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the cloud host management method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Private cloud system and operating method

    CN107181808A

  • Container cluster management method, device and system, electronic equipment and storage medium

    CN113687912A

  • Method, device, and system for access control of a cloud hosting service

    US20170063836A1

  • Platform-as-a-service PAAS container platform construction method, server, system, and storage medium

    WO2019100605A1

  • KR20240110793A

Cited By

  • Cloud server management method and apparatus, electronic device, and readable medium

    WO2026103699A1