A cloud host management method and device, electronic equipment and readable medium
By adopting a general OpenAPI interface and cloud assistant service in the cloud platform, batch operation and maintenance management of cloud hosts has been realized, solving the problem that the existing platform cannot meet user needs and improving the efficiency and security of cloud host management.
Patent Information
- Application Number
- CN202411644426.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2044-11-18
AI Technical Summary
Existing cloud server management platforms are unable to meet users' needs for batch operation and maintenance management of large cloud server clusters, and cannot achieve customized and granular management scenarios, especially when batch distributing scripts and files to cloud servers, which requires manpower.
The system uses a general OpenAPI interface to issue cloud host management operation commands. Through permission authentication and generation of user identity credentials, it uses the cloud assistant API service and Agent service to parse and execute commands. Combined with a unified data storage and scheduling mechanism, it realizes batch operation and maintenance management of cloud hosts.
It enhances the fine-grained management capabilities of cloud servers, supports batch processing scenarios, ensures the security and reliability of operations, reduces operation and maintenance costs, and achieves login-free and efficient cloud server management.
Smart Images

Figure CN119697181B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] In the cloud computing field, various platforms offer different management methods for users to manage their cloud servers. These include VMware vSphere virtualization infrastructure management tools, virt-manager open-source virtualization management tools, and open-source cloud computing platforms such as OpenStack. These tools and platforms, when combined, meet users' requirements for different virtualization and cloud computing environments, allowing users to choose the appropriate management method for managing cloud servers and cloud resources. They also provide corresponding interfaces for users to call and perform secondary development to meet their customization needs.
[0003] As user business needs expand, existing management platforms are struggling to meet the demands for batch operation and maintenance management of large cloud server clusters. They also fall short in addressing users' increasingly customized and granular cloud server management scenarios. For example, users may desire to view and monitor the operational status of services within cloud servers without logging in, or they may require batch upgrades of software within cloud servers. Current management platforms cannot easily handle these issues. Furthermore, the cloud server management methods offered by existing platforms do not support users' batch operation and maintenance needs. If batch management and maintenance of cloud servers is required, such as batch distribution of scripts and files to cloud servers, customized secondary development with human intervention is still necessary. Summary of the Invention
[0004] This invention provides a cloud server management method, device, electronic device, and computer-readable storage medium to address the problem that existing management platforms are unable to meet users' needs for batch operation and maintenance management of large cloud server groups, and are unable to realize more customized and granular cloud server management scenarios.
[0005] This invention discloses a cloud server management method applied to a cloud platform, comprising:
[0006] S1: Obtain the user's cloud server management operation commands;
[0007] S2: Issue the cloud host management operation instructions in the form of a general API request;
[0008] S3: Perform permission authentication on the cloud host management operation command;
[0009] S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud host.
[0010] S5: Verify the parameters of the user identity credential and the cloud host management operation command;
[0011] S6: When the user identity credential and the cloud host management operation instruction pass the verification, the cloud host management operation instruction is sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
[0012] S7: Parse and execute the cloud host management operation instructions;
[0013] S8: Store the cloud host management operation instructions and the corresponding execution results.
[0014] This invention discloses a cloud server management device applied to a cloud platform, comprising:
[0015] The OpenAPI module is used to obtain the user's cloud server management operation instructions; and to issue the cloud server management operation instructions in the form of general API requests.
[0016] The authentication module is used to authenticate the permissions of the cloud host management operation commands;
[0017] The cloud assistant scheduling module is used to generate user identity credentials when the cloud host management operation command passes the authorization authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host.
[0018] The Cloud Assistant API module is used to verify the parameters of the user identity credentials and the cloud host management operation instructions; when the user identity credentials and the cloud host management operation instructions pass the verification, the cloud host management operation instructions are sent to the Cloud Assistant Agent service of the corresponding computing node of the cloud host.
[0019] The Cloud Assistant Agent module is used to parse and execute the cloud host management operation commands;
[0020] The database storage module is used to store the cloud host management operation instructions and the corresponding execution results.
[0021] This invention also discloses an electronic device, including 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;
[0022] The memory is used to store computer programs;
[0023] When the processor executes the program stored in the memory, it implements the cloud host management method as described in the embodiments of the present invention.
[0024] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the cloud host management method as described in this invention.
[0025] The embodiments of the present invention have the following advantages:
[0026] This invention employs a general OpenAPI interface to issue cloud host management operation commands in the form of general API requests, thereby enhancing the fine-grained management capabilities of cloud hosts in a cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, a unified data storage method to ensure that data processing records are traceable, and a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable. It also ensures controllable traffic concurrency and rapid resource scheduling and processing, meeting users' needs for batch operation and maintenance management of large cloud host groups. Attached Figure Description
[0027] Figure 1 This is a flowchart of the steps of a cloud server management method provided in an embodiment of the present invention;
[0028] Figure 2 This is a structural block diagram of a cloud server management device provided in an embodiment of the present invention;
[0029] Figure 3 This is a block diagram of an electronic device provided in an embodiment of the present invention;
[0030] Figure 4 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation
[0031] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0032] Reference Figure 1 The diagram illustrates a flowchart of a cloud server management method provided in an embodiment of the present invention. This cloud server management method is applied to a cloud platform and may specifically include the following steps:
[0033] S1: Obtain the user's cloud server management operation commands.
[0034] S2: Issue the cloud host management operation instructions in the form of a general API request.
[0035] API (Application Programming Interface) is an open interface used for interaction between users and the cloud platform, providing management and operation functions for cloud hosts.
[0036] In this invention, a universal API request standardizes the management operations for different types of cloud servers. All operation commands are transmitted through the same interface format, making the system design simpler and maintenance easier. Simultaneously, the universal API interface supports batch operations, allowing multiple commands to be issued with a single API request, enabling the management of large-scale cloud servers and improving operational efficiency.
[0037] S3: Perform permission authentication on the cloud host management operation commands.
[0038] In one possible implementation, S3 specifically involves: using a username and password to authenticate the user who initiated the cloud host management operation command.
[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, primarily responsible for providing user identity management, authentication, and authorization services. For users calling the Cloud Assistant service, permission is verified. For compliant users, authentication is performed using their username and password. Upon successful authentication, a corresponding token is generated, authorizing access to the Cloud Assistant API module for further operations.
[0040] In this invention, usernames and passwords are used for authentication to ensure that only authenticated users can access the cloud assistant service, preventing unauthorized users from performing operations. Token-based authorization avoids transmitting usernames and passwords for every operation, reducing the risk of exposing sensitive information and further enhancing security.
[0041] S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone (AZ) of 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 processing requests issued through the Cloud Assistant OpenAPI, performing relevant permission authentication, and then scheduling them to the Cloud Assistant API service in the corresponding availability zone of the cloud host.
[0043] In this invention, permission authentication is performed in the Region-level scheduling module, which prevents unauthorized requests from entering the specific availability zone through the scheduling module, thereby preventing invalid or malicious requests from entering the next layer of processing in the cloud platform.
[0044] S5: Verify the parameters of the user identity credential and the cloud host management operation command.
[0045] S6: When the user identity credential 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 corresponding computing node of the cloud host.
[0046] In one possible implementation, the step of S6, which involves sending the cloud host management operation command to the cloud assistant agent service of the corresponding computing node of the cloud host, specifically involves: using the watch mechanism of the distributed key-value storage system (ETCD) to send the cloud host management operation command to the cloud assistant agent service of the corresponding computing node of 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 REST (Representational State Transfer) requests from the Cloud Assistant scheduling module and further verifies the parameters and user token in the request. Simultaneously, the ETCD database stores metadata information related to the cloud host and its corresponding compute node information. The Cloud Assistant API module can obtain the compute node information of the corresponding cloud host. Then, using the watch mechanism based on a distributed key-value storage system, the Cloud Assistant API module, located on the control node, successfully forwards the request to the Cloud Assistant Aagent module on the corresponding compute node of the cloud host.
[0048] The watch mechanism is primarily an event monitoring mechanism that allows applications to monitor changes to specific keys in ETCD (Enterprise Transfer Code), i.e., one or a group of keys, and receive notifications when changes occur. The watch mechanism essentially relies on resource version numbers (revisions). In this design pattern, each update to a specific key increases the atomicity of the revision, and changes are detected through comparison of revision values. Based on the watch mechanism, after receiving a request, the Cloud Assistant API module selects the Cloud Assistant Agent module on the node where the cloud host resides, and distributes the request task to ETCD. The Cloud Assistant Agent module listens for changes in task information through ETCD's watch mechanism and receives notifications, thus receiving script commands from the Cloud Assistant API module to execute the task request. Simultaneously, several data compression tasks are run for ETCD data storage, periodically compressing and cleaning up expired data to ensure that the ETCD data storage volume does not exceed the cluster's capacity limit, guaranteeing cluster reliability.
[0049] S7: Parse and execute the cloud host management operation instructions.
[0050] In one possible implementation, S7 specifically includes sub-steps S701 to S704:
[0051] S701: Parse the cloud host management operation instructions.
[0052] S702: Arrangement operation execution logic.
[0053] S703: By calling the general interface of the guest agent (QGA, QEMU Guest Agent), the QGA service is invoked to send the instruction script corresponding to the cloud host management operation instruction to the cloud host for execution.
[0054] QGA is a tool that helps improve cloud host management and monitoring. It provides a standardized approach to enable more interaction and communication between the host system and the cloud host, thereby improving the manageability and security of the virtualization environment.
[0055] Optionally, the QGA generic interface is configured in Libvirt, an open-source virtualization management tool and library that provides a set of APIs and command-line tools for managing different virtualization technologies. Libvirt's main goal is to provide a consistent management interface for different virtualization technologies, simplifying the management and integration of cloud hosts.
[0056] The QGA service is essentially a QGA client process running inside the cloud host, providing specific QGA services. It is created by installing the relevant software into an image template, which then runs in the background after the cloud host is created. The Cloud Assistant Agent module triggers QGA execution commands by calling Libvirt's interface and passes the return value to the Cloud Assistant Agent module.
[0057] S704: Collect the return data after the QGA service is executed.
[0058] Furthermore, the collected data is organized and returned to the Cloud Assistant API module, which in turn pushes it to the Cloud Assistant scheduling module. The asynchronous statistical task of the Cloud Assistant scheduling module persistently stores the execution results in the data storage module.
[0059] In this invention, the standardized interface provided by QGA enables the host system to communicate and manage the virtual machine in a standardized manner. This standardization avoids inconsistencies between different virtualization platforms and simplifies cross-platform management operations. Simultaneously, QGA acts as a client process within the cloud host, allowing the host machine to directly transmit operation commands to the cloud host for execution via the QGA interface, avoiding the latency and instability of traditional network communication and improving execution efficiency and stability.
[0060] S8: Store the cloud host management operation instructions and the 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 server management operation commands are recorded in the database storage module. Users can also create frequently used commands to achieve unified management and batch issuance of command content. User-issued script command execution records are also stored in the database storage module for subsequent user queries of execution records and statistical analysis of execution results. Each execution record is persistently processed; whether a task succeeds or fails, its status will be updated in the execution record based on the script execution result within the cloud server. If script execution times out, the service will stop the task and update the script execution result to a timeout status. Each execution record is clearly and accurately recorded, allowing users to query script task execution results and choose to reissue or execute the next task. Since each command issuance generates an execution record, the idempotency and consistency of each script command execution result are guaranteed. Simultaneously, the cloud assistant scheduling module performs traffic processing and security audits to ensure task execution reliability and prevent users from issuing dangerous commands or scripts.
[0063] Optionally, the data storage module is a MariaDB cluster, also a Region-level database cluster. It stores records of user commands issued to the cloud assistant service, as well as records of operation execution results. This allows users to subsequently query the execution records and corresponding results. The Region-level database ensures high availability of the database storage module.
[0064] Furthermore, this invention provides a unified OpenAPI interface to achieve unified management of cloud servers. It supports batch operation and maintenance management capabilities for cloud servers through general interface calls. This 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 can utilize the cloud assistant platform to perform common usage scenarios such as installing and uninstalling software, starting and stopping services, and upgrading services within the cloud server. They can also rely on the cloud assistant management channel capabilities to achieve customized operation and maintenance operations and internal service monitoring, including memory and CPU resource monitoring. By adopting a general OpenAPI interface, it provides fine-grained management capabilities for cloud servers in a cloud computing environment, offering a complete new batch operation and maintenance channel and service monitoring system for cloud servers.
[0065] Furthermore, in this invention, the entire process of cloud server operation and maintenance management is password-free, login-free, and does not require the use of jump servers, greatly reducing operation and maintenance management costs and complexity. The cloud assistant platform can realize user authentication, traffic resource distribution, operation record storage and query, and operation command whitelist restriction, making it more secure and efficient. At the same time, the cloud assistant management channel system mainly uses QGA to realize the interaction between the host machine and the cloud server, which does not rely on the network, and the communication is more efficient and stable compared to the TCP network.
[0066] Furthermore, this invention provides a unified authentication module that effectively supports batch processing scenarios. It also provides a unified data storage module to ensure that data processing records are traceable and verifiable. Finally, it provides a unified cloud assistant scheduling module to ensure that the entire user operation process is secure and identifiable, with controllable traffic concurrency and rapid resource scheduling. Based on QGA channel encapsulation, it possesses good data exchange stability and scalability. The cloud assistant management channel system proposed and implemented based on this provides multiple functions including user authentication, security auditing, traffic limiting, batch cloud host operation and maintenance, and service management, offering numerous advantages such as security, efficiency, convenience, controllability, and service reliability.
[0067] Furthermore, this invention implements a cloud assistant service system under a multi-availability zone architecture, providing batch management capabilities for cloud hosts in multi-availability zone scenarios. Compared with existing technologies, this invention enables the cloud assistant management channel system to adapt to multi-availability zone resource pools, achieving a flexible and adaptable architecture that aligns with the mainstream trends in current cloud computing underlying service architectures. Simultaneously, 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 have the following advantages:
[0069] This invention employs a general OpenAPI interface to issue cloud host management operation commands in the form of general API requests, thereby enhancing the fine-grained management capabilities of cloud hosts in a cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, a unified data storage method to ensure that data processing records are traceable, and a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable. It also ensures controllable traffic concurrency and rapid resource scheduling and processing, 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 all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0071] Reference Figure 2 The diagram illustrates a structural block diagram of a cloud server management device provided in an embodiment of the present invention. The cloud server management device is applied to a cloud platform and may specifically include the following modules:
[0072] OpenAPI module 201 is used to obtain the user's cloud server management operation instructions; and to issue the cloud server management operation instructions in the form of a general API request.
[0073] The authentication module 202 is used to authenticate the permissions of the cloud host management operation commands;
[0074] The cloud assistant scheduling module 203 is used to generate user identity credentials when the cloud host management operation command passes the permission authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host.
[0075] The Cloud Assistant API module 204 is used to verify the parameters of the user identity credential and the cloud host management operation command; when the user identity credential and the cloud host management operation command pass the verification, the cloud host management operation command is sent to the Cloud Assistant Agent service of the corresponding computing node of 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 one possible implementation, the authentication module 202 is specifically used to: authenticate the user who initiates the cloud host management operation command using the username and password.
[0079] In one 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 instructions to the cloud assistant Agent service of the corresponding computing node of the cloud host.
[0080] In one possible implementation, the cloud assistant agent module 205 is specifically used for:
[0081] Parse the cloud server management operation commands;
[0082] Arrange the execution logic of operations;
[0083] By calling the client agent general interface and the QGA service, the instruction script corresponding to the cloud host management operation instruction is sent to the cloud host for execution.
[0084] Collect the return data after the QGA service is executed.
[0085] In one possible implementation, the execution result includes: execution success, execution failure, and execution timeout.
[0086] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0087] The embodiments of the present invention have the following advantages:
[0088] This invention employs a general OpenAPI interface to issue cloud host management operation commands in the form of general API requests, thereby enhancing the fine-grained management capabilities of cloud hosts in a cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, a unified data storage method to ensure that data processing records are traceable, and a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable. It also ensures controllable traffic concurrency and rapid resource scheduling and processing, meeting users' needs for batch operation and maintenance management of large cloud host groups.
[0089] Additionally, refer to Figure 3 This diagram illustrates a block diagram of an electronic device provided in an embodiment of the present invention. 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 via the communication bus 1304.
[0090] Memory 1303 is used to store computer programs;
[0091] When processor 1301 executes a program stored in memory 1303, it performs the following steps:
[0092] S1: Obtain the user's cloud server management operation commands;
[0093] S2: Issue the cloud host management operation instructions in the form of a general API request;
[0094] S3: Perform permission authentication on the cloud host management operation command;
[0095] S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud host.
[0096] S5: Verify the parameters of the user identity credential and the cloud host management operation command;
[0097] S6: When the user identity credential and the cloud host management operation instruction pass the verification, the cloud host management operation instruction is sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
[0098] S7: Parse and execute the cloud host management operation instructions;
[0099] S8: Store the cloud host management operation instructions and the corresponding execution results.
[0100] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0101] The communication interface is used for communication between the aforementioned terminal and other devices.
[0102] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0103] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be 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, or discrete hardware components.
[0104] Reference Figure 4The diagram illustrates a computer-readable medium provided in an embodiment of the present invention. In another embodiment of the present invention, a computer-readable storage medium 1401 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the cloud host management method described in the above embodiments.
[0105] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the cloud host management method described in the above embodiments.
[0106] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially 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, all or part of the processes or functions described in the embodiments of the present invention are generated. 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. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 integrates one or more available media. The available medium can 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)).
[0107] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0108] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0109] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A cloud server management method, characterized in that, Applied to cloud platforms, including: S1: Obtain the user's cloud server management operation commands; S2: Issue the cloud host management operation instructions in the form of a general API request; S3: Perform permission authentication on the cloud host management operation command; S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud host. S5: Verify the parameters of the user identity credential and the cloud host management operation command; S6: When the user identity credential and the cloud host management operation instruction pass the verification, the cloud host management operation instruction is sent to the cloud assistant agent service of the corresponding computing node of the cloud host. S7: Parse and execute the cloud host management operation instructions; S8: Store the cloud host management operation instructions and the corresponding execution results.
2. The cloud server management method according to claim 1, characterized in that, Specifically, S3 is: The user who initiates the cloud server management operation command is authenticated using the username and password.
3. The cloud server management method according to claim 1, characterized in that, The step S6, which involves sending the cloud host management operation command to the cloud assistant agent service corresponding to the cloud host's computing node, specifically involves: Based on the watch mechanism of the distributed key-value storage system, the cloud host management operation instructions are sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
4. The cloud server management method according to claim 1, characterized in that, Specifically, S7 includes: S701: Parse the cloud host management operation instructions; S702: Arrangement operation execution logic; S703: By calling the client agent general interface and the QGA service, the instruction script corresponding to the cloud host management operation instruction is sent to the cloud host for execution. S704: Collect the return data after the QGA service is executed.
5. The cloud server management method according to claim 1, characterized in that, The execution results include: execution successful, execution failed, and execution timed out.
6. A cloud server management device, characterized in that, Applied to cloud platforms, including: The OpenAPI module is used to obtain the user's cloud server management operation instructions; and to issue the cloud server management operation instructions in the form of general API requests. The authentication module is used to authenticate the permissions of the cloud host management operation commands; The cloud assistant scheduling module is used to generate user identity credentials when the cloud host management operation command passes the authorization authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host. The Cloud Assistant API module is used to verify the parameters of the user identity credentials and the cloud host management operation instructions; when the user identity credentials and the cloud host management operation instructions pass the verification, the cloud host management operation instructions are sent to the Cloud Assistant Agent service of the corresponding computing node of the cloud host. The Cloud Assistant Agent module is used to parse and execute the cloud host management operation commands; The database storage module is used to store the cloud host management operation instructions and the corresponding execution results.
7. The cloud server management device according to claim 6, characterized in that, The authentication module is specifically used for: The user who initiates the cloud server management operation command is authenticated using the username and password.
8. The cloud server 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 instructions are sent to the cloud assistant agent service of the corresponding computing node of 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; When the processor executes the program stored in the memory, it implements the cloud host management method as described in any one of claims 1-5.
10. A computer-readable medium, characterized in that, It stores instructions that, when executed by one or more processors, cause the processors to perform 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