Automated operation and maintenance method and device, computer-readable storage medium, electronic device
By synchronizing automated operation and maintenance scripts and data on the control nodes of hybrid clouds, and forwarding and executing automated operation and maintenance operations in hybrid cloud scenarios, the problem that public and private clouds cannot be managed in a unified manner is solved, and efficient automated operation and maintenance management is achieved.
Patent Information
- Application Number
- CN202111667475.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In hybrid cloud scenarios, unified automation operation and maintenance cannot be achieved between public and private clouds, resulting in inefficient management.
By monitoring the task warehouse of the central node on the control node of the hybrid cloud, synchronizes the automated operation and maintenance scripts and data to the federated node, and authenticates and forwards it after receiving the automated operation and maintenance operation request, ensuring that the target federated node can perform automated operation and maintenance operations.
It realizes unified automated operation and maintenance in hybrid cloud scenarios, solves the problem of unification of management between public and private clouds, and improves the efficiency and consistency of operation and maintenance management.
Smart Images

Figure CN114297309B_ABST
Abstract
Description
Background Art
[0002] With the continuous reduction of the technical threshold and cost of cloud computing, as well as considerations for security, more and more enterprises are building their own private cloud platforms, gradually forming a hybrid cloud model that combines public clouds and private clouds.
[0003] In the related art, the management of the cloud platform is to separately deploy an automated operation and maintenance platform in each cloud environment to achieve regional autonomous management, that is, the automated operation and maintenance of the cloud platform. However, in a hybrid cloud scenario, public clouds and private clouds, and private clouds and private clouds are isolated from each other, and it is impossible to achieve unified automated operation and maintenance of public clouds and private clouds.
[0004] Therefore, a new automated operation and maintenance method needs to be provided.
[0005] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0006] The purpose of the present disclosure is to provide an automated operation and maintenance method, an automated operation and maintenance device, a computer-readable storage medium, and an electronic device, so as to at least to some extent overcome the problem of the inability to perform unified automated operation and maintenance of hybrid clouds caused by the limitations and defects of the related art.
[0007] According to one aspect of the present disclosure, an automated operation and maintenance method is provided, which is applied to a control node of a hybrid cloud and includes:
[0008] Monitor the task repository of the central node, and synchronize the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud;
[0009] Receive an automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and when the authentication passes, obtain the target federated node sent by the central node;
[0010] Forward the automated operation and maintenance operation request to the target federated node, so that the target federated node performs an automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0011] In an exemplary embodiment of the present disclosure, monitoring the task repository of the central node and synchronizing the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud includes:
[0012] Start a real-time synchronization subprocess to monitor the task repository of the central node;
[0013] When it is determined that the general automated operation and maintenance scripts and data included in the task repository of the central node change, generate a file to be synchronized according to the general automated operation and maintenance scripts and data in the task repository;
[0014] Trigger file synchronization processing through the real-time synchronization subprocess, and synchronize the file to be synchronized to the federated nodes included in the hybrid cloud.
[0015] In an exemplary embodiment of the present disclosure, triggering file synchronization processing through the real-time synchronization subprocess and synchronizing the file to be synchronized to the federated nodes included in the hybrid cloud includes:
[0016] Obtain the domain names of the federated nodes included in the hybrid cloud, and generate a synchronization request according to the domain names, the temporary call token, and the file to be synchronized;
[0017] Through the synchronization request, call the application programming interface for the federated nodes to execute automated operation and maintenance script synchronization;
[0018] Authenticate the temporary call token in the synchronization request, and when the authentication passes, synchronize the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request.
[0019] In an exemplary embodiment of the present disclosure, before receiving the automated operation and maintenance operation request sent by the central node, the automated operation and maintenance method further includes:
[0020] Respond to the registration of the application programming interface for the federated nodes included in the hybrid cloud to execute automated operation and maintenance operations;
[0021] Receive the application programming interface call permission applied by the central node for the federated nodes to execute automated operation and maintenance operations, and authenticate the central node;
[0022] After the authentication of the central node passes, generate a temporary call token required when the central node calls the application programming interface for the federated nodes to execute automated operation and maintenance operations, and send the temporary call token to the central node so that the central node caches the temporary call token.
[0023] In an exemplary embodiment of the present disclosure, authenticating the automated operation and maintenance operation request includes:
[0024] Obtain the temporary call token included in the automated operation and maintenance operation request, and authenticate the temporary call token.
[0025] According to one aspect of the present disclosure, there is provided an automated operation and maintenance method, which is applied to a central node of a hybrid cloud and includes:
[0026] Receiving an automated operation and maintenance operation request and authenticating the automated operation and maintenance operation request;
[0027] When the authentication is passed, determining a target federated node through the automated operation and maintenance operation request, and sending the automated operation and maintenance operation request to the target federated node, so that the target federated node completes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0028] In an exemplary embodiment of the present disclosure, determining a target federated node through the automated operation and maintenance operation request and sending the automated operation and maintenance operation request to the target federated node includes:
[0029] Obtaining the domain name included in the automated operation and maintenance operation request and determining the target federated node according to the domain name;
[0030] Obtaining the temporary call token included in the automated operation and maintenance operation request, authenticating the temporary call token, and when it is determined that the authentication is passed, sending the automated operation and maintenance operation request to the target federated node.
[0031] According to one aspect of the present disclosure, there is provided an automated operation and maintenance method, which is applied to a federated node of a hybrid cloud and includes:
[0032] Receiving the automated operation and maintenance script and data synchronized by the central node and the automated operation and maintenance operation request sent by the central node;
[0033] Converting the call protocol of the automated operation and maintenance operation request into a remote connection call protocol of an automated operation and maintenance execution engine;
[0034] Sending the automated operation and maintenance script and data to a remote host for performing the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host performs the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0035] In an exemplary embodiment of the present disclosure, converting the call protocol of the automated operation and maintenance operation request into a remote connection call protocol of an automated operation and maintenance execution engine includes:
[0036] Obtaining the automated operation and maintenance execution engine;
[0037] Converting the call protocol of the automated operation and maintenance operation request into a remote connection call protocol corresponding to the automated operation and maintenance operation engine according to the automated operation and maintenance execution engine.
[0038] According to one aspect of the present disclosure, there is provided an automated operation and maintenance method, which is applied to a hybrid cloud and includes:
[0039] The control node monitors the central node, obtains the automated operation and maintenance scripts and data included in the central node, and synchronizes the automated operation and maintenance scripts and data to the federated nodes included in the hybrid cloud;
[0040] The central node obtains an automated operation and maintenance operation request, and sends the automated operation and maintenance operation request to the control node, and the control node authenticates the automated operation and maintenance operation request;
[0041] When the authentication is passed, the central node determines the target federated node through the automated operation and maintenance operation request, and sends the automated operation and maintenance operation request to the target federated node through the control node;
[0042] The target federated node converts the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine of the target node according to the automated operation and maintenance operation request;
[0043] The target federated node sends the automated operation and maintenance scripts and data to the remote host that performs the automated operation and maintenance operation in the target federated node according to the remote connection call protocol, so that the remote host in the target federated node performs the automated operation and maintenance operation according to the automated operation and maintenance scripts and data.
[0044] According to one aspect of the present disclosure, there is provided an automated operation and maintenance device, which is applied to the control node of a hybrid cloud and includes:
[0045] A script monitoring module, configured to monitor the task repository of the central node, and synchronize the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud;
[0046] A target federated node acquisition module, configured to receive the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and obtain the target federated node sent by the central node when the authentication is passed;
[0047] An automated operation and maintenance operation execution module, configured to send the automated operation and maintenance operation request to the target federated node, so that the target federated node performs the automated operation and maintenance operation according to the automated operation and maintenance scripts and data.
[0048] According to one aspect of the present disclosure, there is provided an automated operation and maintenance device, which is applied to the central node of a hybrid cloud and includes:
[0049] A target node determination module, configured to receive an automated operation and maintenance operation request, and authenticate the automated operation and maintenance operation request;
[0050] An authentication module, configured to, when the authentication is passed, determine a target federated node through the automated operation and maintenance operation request, and send the automated operation and maintenance operation request to the target federated node, so that the target federated node completes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0051] According to an aspect of the present disclosure, there is provided an automated operation and maintenance device, applied to a federated node of a hybrid cloud, including:
[0052] A request receiving module, configured to receive an automated operation and maintenance script and data synchronized by a central node and an automated operation and maintenance operation request sent by the central node;
[0053] A call protocol conversion module, configured to convert the call protocol of the automated operation and maintenance operation request into a remote connection call protocol of an automated operation and maintenance execution engine;
[0054] An automated operation and maintenance operation execution module, configured to send the automated operation and maintenance script and data to a remote host for performing an automated operation and maintenance operation according to the remote connection call protocol, so that the remote host performs the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0055] According to an aspect of the present disclosure, there is provided an automated operation and maintenance device, applied to a hybrid cloud, including:
[0056] A script synchronization module, configured to control a node to monitor a central node, obtain an automated operation and maintenance script and data included in the central node, and synchronize the automated operation and maintenance script and data to a federated node included in the hybrid cloud;
[0057] A request authentication module, configured to obtain an automated operation and maintenance operation request by a central node, and send the automated operation and maintenance operation request to a control node, and authenticate the automated operation and maintenance operation request through the control node;
[0058] A request sending module, configured to, when the authentication is passed, determine a target federated node by the central node through the automated operation and maintenance operation request, and send the automated operation and maintenance operation request to the target federated node through the control node;
[0059] A protocol conversion module, configured to, according to the automated operation and maintenance operation request by the target federated node, convert the call protocol of the automated operation and maintenance operation request into a remote connection call protocol of an automated operation and maintenance execution engine of the target node;
[0060] An automated operation and maintenance operation execution module is used for the target federated node to send the automated operation and maintenance script and data to the remote host in the target federated node that executes the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host in the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0061] According to one aspect of the present disclosure, there is provided a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the automated operation and maintenance method described in any of the above exemplary embodiments is implemented.
[0062] According to one aspect of the present disclosure, there is provided an electronic device, including:
[0063] a processor; and
[0064] a memory for storing executable instructions of the processor;
[0065] wherein the processor is configured to execute the automated operation and maintenance method described in any of the above exemplary embodiments by executing the executable instructions.
[0066] An automated operation and maintenance method provided by an embodiment of the present disclosure monitors the task repository of the central node, synchronizes the automated operation and maintenance script and data included in the task repository of the central node to the federated nodes included in the hybrid cloud; receives an automated operation and maintenance operation request sent by the central node, authenticates the automated operation and maintenance operation request, and when the authentication passes, obtains the target federated node sent by the central node; forwards the automated operation and maintenance operation request to the target federated node, so that the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data. On the one hand, by monitoring the task repository of the central node and synchronizing the automated operation and maintenance script and data of the central node to the federated nodes included in the hybrid cloud when new automated operation and maintenance script and data are included in the task repository of the central node, the consistency of the automated operation and maintenance data in the central node and the federated nodes is ensured, and the automated operation and maintenance capabilities of all cloud environments are ensured with maximum efficiency; on the other hand, after receiving the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation, and when the authentication passes, forward the automated operation and maintenance operation request to the target federated node, so that the target federation completes the automated operation and maintenance operation, realizing unified automated operation and maintenance of nodes in the hybrid cloud scenario, solving the problem in the prior art that it is impossible to perform unified automated operation and maintenance on public clouds and private clouds, and improving the efficiency of automated operation and maintenance management in the hybrid cloud scenario; on the other hand, through the control node, the decoupling of the application programming interface call logic for executing the automated operation and maintenance operation between the central node and the federated nodes is realized, making the overall architecture of the system clearer and more explicit.
[0067] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0069] Figure 1 A flowchart schematically showing an automated operation and maintenance method according to an exemplary embodiment of the present disclosure.
[0070] Figure 2 A block diagram schematically showing an automated operation and maintenance system according to an exemplary embodiment of the present disclosure.
[0071] Figure 3 A flowchart schematically showing a method of listening to a task repository of a central node and synchronizing an automated operation and maintenance script and data included in the task repository of the central node to a federated node included in a hybrid cloud according to an exemplary embodiment of the present disclosure.
[0072] Figure 4 A flowchart schematically showing a method of triggering file synchronization processing through a real-time synchronization subprocess and synchronizing a file to be synchronized to a federated node included in a hybrid cloud according to an exemplary embodiment of the present disclosure.
[0073] Figure 5 A flowchart schematically showing a general automated operation and maintenance script synchronization process according to an exemplary embodiment of the present disclosure.
[0074] Figure 6 A flowchart schematically showing an automated operation and maintenance method before receiving an automated operation and maintenance operation request sent by a central node according to an exemplary embodiment of the present disclosure.
[0075] Figure 7 A flowchart schematically showing an automated operation and maintenance method according to an exemplary embodiment of the present disclosure.
[0076] Figure 8 A flowchart schematically showing a method of determining a target federated node through an automated operation and maintenance operation request and sending the automated operation and maintenance operation request to the target federated node when authentication is passed according to an exemplary embodiment of the present disclosure.
[0077] Figure 9A flowchart schematically showing an automated operation and maintenance method according to an exemplary embodiment of the present disclosure.
[0078] Figure 10 A flowchart schematically showing a method for converting a call protocol of an automated operation and maintenance operation request into a remote connection call protocol of an automated operation and maintenance execution engine according to an exemplary embodiment of the present disclosure.
[0079] Figure 11 A flowchart schematically showing an automated operation and maintenance method according to an exemplary embodiment of the present disclosure.
[0080] Figure 12 A block diagram schematically showing an automated operation and maintenance device according to an exemplary embodiment of the present disclosure.
[0081] Figure 13 A block diagram schematically showing an automated operation and maintenance device according to an exemplary embodiment of the present disclosure.
[0082] Figure 14 A block diagram schematically showing an automated operation and maintenance device according to an exemplary embodiment of the present disclosure.
[0083] Figure 15 A block diagram schematically showing an automated operation and maintenance device according to an exemplary embodiment of the present disclosure.
[0084] Figure 16 A block diagram schematically showing an electronic device for implementing the above-mentioned automated operation and maintenance method according to an exemplary embodiment of the present disclosure. Detailed implementation manners
[0085] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and comprehensive, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring the various aspects of the present disclosure.
[0086] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0087] With the popularization of cloud computing, the vast majority of enterprises have deployed their applications and services to the cloud. With the continuous reduction of the technical threshold and cost of cloud computing, as well as considerations for security, more and more enterprises have built their own private cloud platforms, gradually forming a hybrid mode of mixing public clouds and private clouds. In the scenario of mixing public clouds and private clouds, public clouds and private clouds, and private clouds and private clouds are usually isolated from each other. Only one set of automated operation and maintenance platforms can be deployed separately in each cloud environment to achieve autonomous management of the cloud environment, and unified management of automated operation and maintenance in the hybrid cloud scenario cannot be achieved; in the hybrid cloud scenario, there are certain differences in different cloud environments, and it is difficult to adapt to all cloud environments in the related technologies; moreover, in the actual production process, the network environment is extremely complex (for example, for some private clouds with very high security levels, their external gateways may only open access permissions for ports 80 and 443 in the incoming direction). At the same time, the communication connection protocol relied on in the related technologies for automated operation and maintenance cannot be used normally, and unified management, sharing, and synchronization of automated operation and maintenance scripts, data, etc. cannot be achieved.
[0088] Based on the above one or more problems, in the exemplary embodiment of the present example, an automated operation and maintenance method is first provided. This method can run on a server, a server cluster, a cloud server, etc.; of course, those skilled in the art can also run the method of the present invention on other platforms according to needs, and no special limitation is made in this exemplary embodiment. Refer to Figure 1 As shown, this automated operation and maintenance method may include steps S110 - step S130:
[0089] Step S110. Monitor the task repository of the central node, and synchronize the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud;
[0090] Step S120. Receive the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and when the authentication passes, obtain the target federated node sent by the central node;
[0091] Step S130. Forward the automated operation and maintenance operation request to the target federated node, so that the target federated node performs automated operation and maintenance operations according to the automated operation and maintenance script and data.
[0092] The above automated operation and maintenance method monitors the task repository of the central node, synchronizes the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud; receives the automated operation and maintenance operation request sent by the central node, authenticates the automated operation and maintenance operation request, and when the authentication passes, obtains the target federated node sent by the central node; forwards the automated operation and maintenance operation request to the target federated node, so that the target federated node performs automated operation and maintenance operations according to the automated operation and maintenance script and data. On the one hand, by monitoring the task repository of the central node and synchronizing the automated operation and maintenance scripts and data of the central node to the federated nodes included in the hybrid cloud when new automated operation and maintenance scripts and data are included in the task repository of the central node, the consistency of the automated operation and maintenance data in the central node and the federated nodes is ensured, and the automated operation and maintenance capabilities of all cloud environments are ensured with the highest efficiency; on the other hand, after receiving the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation, and when the authentication passes, forward the automated operation and maintenance operation request to the target federated node, so that the target federation completes the automated operation and maintenance operation, realizing the unified automated operation and maintenance of nodes in the hybrid cloud scenario, solving the problem in the prior art that the public cloud and the private cloud cannot be uniformly automated operation and maintained, and improving the efficiency of automated operation and maintenance management in the hybrid cloud scenario; on the other hand, through the control node, the decoupling of the application programming interface call logic for performing automated operation and maintenance operations between the central node and the federated nodes is realized, making the overall architecture of the system clearer and more definite.
[0093] Next, each step involved in the automated operation and maintenance method of the exemplary embodiments of the present disclosure will be explained and described in detail.
[0094] First, the application scenario and purpose of the exemplary embodiments of the present disclosure will be explained and described. Specifically, the exemplary embodiments of the present disclosure can be applied to the hybrid cloud scenario, and mainly study how to achieve the unified automated operation and maintenance of the nodes included in the hybrid cloud scenario.
[0095] Based on the automated operation and maintenance operation request received by the central node in this disclosure, after receiving the automated operation and maintenance operation request, first, authenticate the automated operation and maintenance operation request. After the authentication passes, determine the target federated node for executing the automated operation and maintenance operation according to the domain name included in the automated operation and maintenance operation request. The central node sends the automated operation and maintenance operation request to the target federated node, and the target federated node completes the corresponding automated operation according to the automated operation request, realizing the unified automated operation and maintenance of the hybrid cloud and improving the efficiency of automated operation and maintenance.
[0096] Secondly, explain and illustrate the automated operation and maintenance system involved in the exemplary embodiments of this disclosure. Refer to Figure 2As shown in the figure, the automated operation and maintenance system may include a central node 210, an application programming interface gateway (API gateway) 220, a synchronization device 230, and a federated node 240. Among them, the central node 210 refers to an automated operation and maintenance platform in a certain cloud environment in a hybrid cloud scenario. This automated operation and maintenance platform can uniformly manage the automated operation and maintenance platforms in all cloud environments. When the central node 210 obtains an automated operation and maintenance operation request through an application, it performs a permission check on the automated operation and maintenance operation request through a permission control device. When the permission check passes, the application of the central node determines the domain name carried in the automated operation and maintenance operation request. When the domain name is the domain name of the federated node, the current automated operation and maintenance operation request is a federated unified management request. The application of the central node 210 sends a call request to the application programming interface of the federated node registered in the API gateway 220 for executing the automated operation and maintenance operation. The central node 210 may include a permission control device 211, an application 212, an application programming interface service 213, a task log recording device 214, a protocol conversion device 215, a task repository 216, a task execution unit 217, a host list 218, and a remote host 219. The API gateway 220 is network-connected to the central node 210 and is used to receive the call request sent by the central node to the application programming interface of the federated node registered for executing the automated operation and maintenance operation. According to the call request, it matches and authenticates the application programming interface registered by the target federated node. When the application programming interface registered by the target federated node passes the matching and authentication, it forwards the automated operation and maintenance operation request to the corresponding federated node 240. The federated node 240 refers to the automated operation and maintenance platforms in all cloud environments that can accept the unified management of the central node in a hybrid cloud scenario. It is network-connected to the API gateway 220 and is used to execute the automated operation and maintenance operation request after receiving it. The federated node may include a permission control device 241, an application 242, an application programming interface service 243, a task log recording device 244, a protocol conversion device 245, a task repository 246, a task execution unit 247, a host list 248, and a remote host 249. The synchronization device 230 is network-connected to the central node 210 and the API gateway 220 and is used to monitor the task repository of the central node, obtain the automated operation and maintenance scripts and data included in the task repository of the central node, convert the automated operation and maintenance scripts and data into files to be synchronized, send the synchronization files to the API gateway 220, and the API gateway 220 synchronizes the files to be synchronized to the federated node 240.
[0097] Hereinafter, in conjunction with Figure 2 Steps S110 to S130 will be explained and described in detail.
[0098] In step S110, monitor the task repository of the central node, and synchronize the automation operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud.
[0099] Among them, the control node includes a synchronization device and an API gateway; the central node may include a permission control device, an application, an API interface service, a protocol conversion device, a task repository, a task log recording device, a task execution unit, and a remote host. Among them, the task repository is a folder used to store the automated operation and maintenance scripts and data that have been orchestrated.
[0100] In this exemplary embodiment, referring to Figure 3 As shown, monitoring the task repository of the central node and synchronizing the automation operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud may include steps S310 - S330:
[0101] Step S310. Start a real-time synchronization subprocess to monitor the task repository of the central node;
[0102] Step S320. When it is determined that the general automation operation and maintenance scripts and data included in the task repository of the central node have changed, generate a file to be synchronized according to the general automation operation and maintenance scripts and data in the task repository;
[0103] Step S330. Trigger file synchronization processing through the real-time synchronization subprocess, and synchronize the file to be synchronized to the federated nodes included in the hybrid cloud.
[0104] Hereinafter, steps S310 - S330 will be explained and described. Specifically, the task repository of the central node can be monitored through the synchronization device included in the control node, and the general automation operation and maintenance scripts and data included in the task repository of the central node can be synchronized to the task repository of the federated nodes. The synchronization device includes two synchronization subprocesses: a real-time synchronization subprocess and a failure retry synchronization subprocess.
[0105] The process of synchronizing the general automation operation and maintenance scripts includes: starting the real-time synchronization subprocess of the synchronization device, monitoring the task repository of the central node through this real-time synchronization subprocess, and when the general automation operation and maintenance scripts or data in the task repository of the central node change, packaging the general automation operation and maintenance scripts and data in the task repository of the central node into a file to be synchronized, and triggering file synchronization processing through this real-time synchronization subprocess.
[0106] Further, referring to Figure 4As shown, triggering file synchronization processing through the real-time synchronization subprocess and synchronizing the to-be-synchronized file to the federated nodes included in the hybrid cloud may include steps S410 - S430:
[0107] Step S410. Obtain the domain names of the federated nodes included in the hybrid cloud, and generate a synchronization request based on the domain names, the temporary call token, and the to-be-synchronized file;
[0108] Step S420. Through the synchronization request, call the application programming interface for the federated nodes to execute automated operation and maintenance script synchronization;
[0109] Step S430. Authenticate the temporary call token in the synchronization request. When the authentication passes, synchronize the to-be-synchronized file to the federated nodes included in the hybrid cloud according to the synchronization request.
[0110] Next, steps S410 - S430 will be explained and described. Specifically, referring to Figure 5 the shown general automated operation and maintenance script synchronization flowchart. First, the real-time synchronization subprocess of the synchronization device obtains the domain names of the federated nodes included in the hybrid cloud, and generates a synchronization request by using the domain names, the temporary call token that the central node needs to provide when the central node calls the application programming interface of the federated nodes to execute automated operation and maintenance operations from the control node, and the to-be-synchronized file. Then, the real-time synchronization subprocess uses the synchronization request to call, one by one, the application programming interfaces for the federated nodes to execute automated operation and maintenance script synchronization registered in the API gateway of all federated nodes in the control node. The API gateway matches and authenticates the automated operation and maintenance script synchronization application programming interface and the temporary call token. When it passes, the API gateway forwards the synchronization request to the application programming interface service of the federated nodes. After receiving the synchronization request, the application programming interface service of the federated nodes synchronizes the to-be-synchronized file in the synchronization request to the task repository of the federated node, and returns the synchronization result to the API gateway. Then, the API gateway returns the synchronization result to the real-time synchronization subprocess. The real-time synchronization subprocess judges the received synchronization result. When it judges that the synchronization result is a synchronization failure, it adds the synchronization request of the federated node to the failure retry synchronization queue, so that the failure retry synchronization subprocess periodically obtains the synchronization request from the failure retry synchronization queue and triggers file synchronization processing. Among them, the failure retry subprocess maintains the failure retry synchronization queue and periodically obtains synchronization tasks from the failure retry synchronization queue and triggers file synchronization processing.
[0111] In the present exemplary embodiment, the real-time synchronization subprocess of the synchronization device ensures that the general automated operation and maintenance scripts and data in the task repository of the central node can be uniformly synchronized to the task repository of the federated nodes. The failed retry synchronization subprocess ensures that the failed synchronization requests can eventually be successfully synchronized, enabling all cloud environments to have consistent automated operation and maintenance capabilities with maximum efficiency.
[0112] In step S120, receive the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and when the authentication passes, obtain the target federated node sent by the central node.
[0113] In the present exemplary embodiment, as shown in Figure 6 before receiving the automated operation and maintenance operation request sent by the central node, the automated operation and maintenance method may further include steps S610 - S630:
[0114] Step S610. Respond to the application programming interface for the federated nodes included in the hybrid cloud to register for executing automated operation and maintenance operations;
[0115] Step S620. Receive the call permission for the application programming interface for the central node to execute automated operation and maintenance operations on the federated nodes, and authenticate the central node;
[0116] Step S630. After the authentication of the central node passes, generate a temporary call token required when the central node calls the application programming interface for the federated nodes to execute automated operation and maintenance operations, and send the temporary call token to the central node so that the central node caches the temporary call token.
[0117] The following will explain and describe steps S610 - S630. Specifically, before obtaining the automated operation and maintenance operation request, the central node can obtain all the federated nodes included in the hybrid cloud and register the application programming interfaces for all the federated nodes to perform automated operation and maintenance operations in the API gateway of the control node, that is, register the automated operation and maintenance application programming interfaces of the federated nodes in the API gateway. Among them, the API gateway is used for routing proxy and authentication of the call of the automated operation and maintenance application programming interface across cloud environments. In addition, the API gateway of the control node can also receive the call permission application of the central node to the application programming interface for performing automated operation and maintenance operations on the federated nodes. After receiving the application, it performs permission authentication on the central node. When the authentication is passed, it generates a temporary call token that needs to be provided when the central node calls the application programming interface of the federated nodes to perform system animation operation and maintenance, and sends the generated temporary call token to the application of the central node; among them, the temporary call token has a valid time limit, and the valid time limit of the temporary call token can be 10 minutes or 15 minutes. In this exemplary embodiment, the valid time limit of the temporary call token is not specifically limited, and those skilled in the art can freely configure it according to needs; after receiving the temporary call token, the application of the central node caches it and can use the temporary call token to send a request to the API gateway to call the application programming interface of the target federated node to perform automated operation and maintenance operations; among them, after the central node caches the temporary call token, the central node can reuse the temporary call token within the valid time limit of the temporary call token without applying each time, improving the call efficiency of the application programming interface in the API gateway; the API gateway uses the call request to match the application programming interface registered by the target federated node and performs authentication through the temporary call token. When the application programming interface match is successful and the temporary call token authentication is passed, the API gateway forwards the automated operation and maintenance operation request of the central node to the application programming interface service of the target federated node; when the match fails and / or the authentication fails, the API gateway refuses to forward the automated operation and maintenance operation request to the target federated node.
[0118] Through the API gateway in the control node, the decoupling of the application programming interface call logic for performing automated operation and maintenance operations between the central node and the federated nodes is achieved, making the overall architecture of the system clearer and more explicit, and at the same time ensuring that the application programming interfaces for performing automated operation and maintenance operations on the nodes included in all cloud environments can be uniformly registered, managed, called, and authenticated.
[0119] In the present exemplary embodiment, after receiving an automated operation and maintenance operation request sent by the central node, the control node may authenticate the automated operation and maintenance operation request. Among them, authenticating the automated operation and maintenance operation request may include:
[0120] Obtain the temporary call token included in the automated operation and maintenance operation request, and authenticate the temporary call token
[0121] Specifically, the temporary call token included in the automated operation and maintenance operation request sent by the central node can be obtained, and the API gateway in the control node authenticates the temporary call token. When the authentication is passed, the API gateway in the control node obtains the target federated node for executing the automated operation and maintenance operation sent by the central node.
[0122] In step S130, forward the automated operation and maintenance operation request to the target federated node, so that the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0123] In the present exemplary embodiment, after the API gateway in the control node obtains the target federated node for executing the automated operation and maintenance operation sent by the central node, the API gateway forwards the automated operation and maintenance operation request to the target federated node, so that after the target federated node receives the automated operation and maintenance operation request, it obtains the automated operation and maintenance script and data from the task repository of the target federated node, and executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0124] In the present disclosure, an automated operation and maintenance method is further provided, which is applied to the central node of a hybrid cloud. The central node includes a control node. Refer to Figure 7 As shown, the automated operation and maintenance method may include step S710 and step S720:
[0125] Step S710. Receive an automated operation and maintenance operation request, and authenticate the automated operation and maintenance operation request;
[0126] Step S720. When the authentication is passed, determine the target federated node through the automated operation and maintenance operation request, and send the automated operation and maintenance operation request to the target federated node, so that the target federated node completes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0127] Hereinafter, step S710 and step S720 will be explained and described. Specifically, the application program of the central node is used to provide a unified operation interaction interface for the automated operation and maintenance platform in the hybrid cloud scenario, and can receive an automated request issued by the central node administrator through the application program of the central node; the automated request may include the domain name of the federated node or the domain name of the central node, and no specific limitation is made in this exemplary embodiment. When the automated request includes the domain name of the central node, regional autonomous management of the central node can be realized through the automated request. Among them, regional autonomous management means that the automated operation and maintenance platforms in all cloud environments in the hybrid cloud scenario can be separated from the control of the central node and perform automated operation and maintenance management on their respective cloud environments by themselves. Both the central node and the federated node have the ability of regional autonomous management; when the automated request includes the domain name of the federated node, federated unified management can be realized through the automated request; federated unified management means that the automated operation and maintenance platforms (federated nodes) in all cloud environments in the hybrid cloud scenario can be uniformly controlled by the automated operation and maintenance platform (central node) in one of the cloud environments. The central node is an automated operation and maintenance platform in a certain cloud environment in the hybrid cloud scenario, and this automated operation and maintenance platform can uniformly control the automated operation and maintenance platforms in all cloud environments. The federated node is an automated operation and maintenance platform in all cloud environments that can receive the unified control of the central node in the hybrid cloud scenario.
[0128] After the application program of the central node receives the automated operation and maintenance operation request issued by the central node administrator, it will call the permission control device of the central node to check and control the automated operation and maintenance operation request. Among them, there are two permission control strategies: blacklist and whitelist. Both the blacklist and whitelist strategies can be applied simultaneously, and the priority of the blacklist is higher than that of the whitelist; specifically, when the administrator who sends the automated operation and maintenance operation request is both on the white list and on the black list, since the priority of the blacklist is higher than that of the white list, the application program of the central node will reject the automated operation and maintenance operation request. In addition, permission management can also be implemented through RBAC (Role-Based Access Control). No specific limitation is made on the permission management method in this exemplary embodiment. Through the permission control device, it is ensured that only legitimate users can execute all operations of the automated operation and maintenance platform, and blacklist and white list permission control strategies are provided, making the configuration of the permission control strategy more flexible and convenient.
[0129] After the permission check passes, the application program of the central node generates an automated operation and maintenance operation request according to the automated request and the temporarily called token, and sends the automated operation and maintenance operation request to the control node included in the central node, and the API gateway in the control node authenticates the automated operation and maintenance operation request.
[0130] Further, referring to Figure 8 as shown, when the authentication is passed, the target federated node is determined through the automated operation and maintenance operation request, and the automated operation and maintenance operation request is sent to the target federated node, which may include step S810 and step S820:
[0131] Step S810. Obtain the domain name included in the automated operation and maintenance operation request, and determine the target federated node according to the domain name;
[0132] Step S820. Obtain the temporary call token included in the automated operation and maintenance operation request, authenticate the temporary call token, and when it is determined that the authentication is passed, send the automated operation and maintenance operation request to the target federated node.
[0133] Hereinafter, step S810 and step S820 will be explained and described. Specifically, first, the application program of the central node determines the domain name included in the automated operation and maintenance operation request, and determines the target federated node for performing the automated operation and maintenance operation according to the domain name; and, the control node included in the central node authenticates the temporary call token included in the automated operation and maintenance operation request, and when the authentication is passed, forwards the automated operation and maintenance operation request to the corresponding target federated node through the control node included in the central node.
[0134] In addition, when the domain name included in the automated operation and maintenance operation request is the domain name of the central node, that is, the automated operation and maintenance operation request is the regional autonomous management of the central node. First, the application program of the central node sends the automated operation and maintenance operation request to the application programming interface service of the central node, and then, the application programming interface service of the central node calls different API interfaces according to the content of the automated operation and maintenance operation request to complete the automated operation and maintenance operation. Among them, the application programming interface service of the central node provides three types of API interfaces: task warehouse class API interface, task execution class API interface, and task log class API interface. Among them, the task warehouse class API interface is used to provide API interfaces for the management, maintenance, and synchronization of automated operation and maintenance scripts and data in the task warehouse; the task execution class API interface is used to provide standard and unified automated operation and maintenance operation API interfaces, shielding the differences of different underlying automated operation and maintenance execution engines; the task log class API interface is used to record the execution status, results, and output information of automated operation and maintenance tasks, and display API interfaces.
[0135] In the present disclosure, an automated operation and maintenance method is further provided, which is applied to the federated node of the hybrid cloud, referring to Figure 9 as shown, this automated operation and maintenance operation method may include step S910-step S930:
[0136] Step S910. Receive the automated operation and maintenance scripts and data synchronized by the central node and the automated operation and maintenance operation request sent by the central node;
[0137] Step S920. Convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine;
[0138] Step S930. Send the automated operation and maintenance scripts and data to the remote host performing the automated operation and maintenance according to the remote connection call protocol, so that the remote host performs the automated operation and maintenance according to the automated operation and maintenance scripts and data.
[0139] Hereinafter, Steps S910 - S930 will be explained and described. Specifically, first, the federated node receives the automated operation and maintenance scripts and data synchronized by the central node: after the federated node receives the file to be synchronized forwarded by the control node, it decompresses the file to be synchronized and saves the decompressed general automated operation and maintenance scripts and data to the task repository of the federated node; then, the protocol conversion device included in the federated node converts the call protocol of the automated operation and maintenance operation request into the corresponding remote connection call protocol of the automated operation and maintenance execution engine; finally, according to the remote call protocol, the automated operation and maintenance scripts and data included in the task repository of the federated node are sent to the remote host in the federated node that performs the automated operation and maintenance, so that the remote host completes the automated operation and maintenance according to the automated operation and maintenance scripts and data.
[0140] Further, in this exemplary embodiment, referring to Figure 10 as shown, converting the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine may include Step S1010 and Step S1020:
[0141] Step S1010. Obtain the automated operation and maintenance execution engine;
[0142] Step S1020. According to the automated operation and maintenance execution engine, convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol corresponding to the automated operation and maintenance operation engine.
[0143] The following will explain and illustrate step S1010 and step S1020. Specifically, after the application programming interface service of the target federated node receives the automated operation and maintenance operation request forwarded by the API gateway, the application programming interface service of the target federated node calls the corresponding application programming interface. When the automated operation and maintenance operation request is an automated operation and maintenance task, first, determine the automated execution engine in the target federation for executing the automated operation and maintenance task; then, the application programming interface service of the target federated node calls the protocol conversion device of the target federated node, and through the protocol conversion device of the target federated node, converts the call protocol of the automated operation and maintenance operation request into a remote connection call protocol corresponding to the automated execution engine in the target federated node for executing the automated operation and maintenance task. Among them, the application programming interface service of the target federated node provides three types of API interfaces: task repository class API interfaces, task execution class API interfaces, and task log class API interfaces; task repository class API interfaces are used to provide API interfaces for the management, maintenance, and synchronization of automated operation and maintenance scripts and data in the task repository; task execution class API interfaces are used to provide standard and unified automated operation and maintenance operation API interfaces, shielding the differences of different underlying automated operation and maintenance execution engines; task log class API interfaces are used to record the execution status, results, and output information of automated operation and maintenance tasks, as well as display API interfaces.
[0144] For example, when the call protocol for the automated operation and maintenance operation request in the central node or the target federated node is the HTTP (Hyper Text Transfer Protocol) protocol, and the automated operation and maintenance execution engine for executing the automated operation and maintenance task in the central node or the target federated node is Ansible, since the protocol used by this Ansible is the SSH (Secure Shell) protocol, therefore, the HTTP call protocol of the automated operation and maintenance operation request can be converted into the SSH protocol corresponding to the Ansible engine for executing the automated operation task in the central node or the target federated node through the protocol conversion device of the central node or the target federated node.
[0145] By using the protocol conversion device of the central node or the target federated node to adapt to different automated operation and maintenance engines, different automated operation and maintenance tools can be selected according to different cloud environments, improving the adaptability and flexibility of the automated operation and maintenance platform.
[0146] Moreover, based on the protocol conversion device, a set of standard application programming interfaces are used to abstract the management operations of automated operation and maintenance, and uniformly provide services externally at the application programming interface service layer, shielding the underlying technical implementation details externally, reducing the development difficulty of the upper-layer services, and improving the development efficiency of the system. At the same time, based on the generality and openness of the application programming interface, mutual calls between any cloud environments can be realized, solving the adaptation problem of different cloud environments.
[0147] In the present disclosure, an automated operation and maintenance method is also provided, which is applied to a hybrid cloud. Referring to Figure 11 as shown, the automated operation and maintenance method may include steps S1110 - step S1150:
[0148] Step S1110. The control node monitors the central node, obtains the automated operation and maintenance scripts and data included in the central node, and synchronizes the automated operation and maintenance scripts and data to the federated nodes included in the hybrid cloud;
[0149] Step S1120. The central node obtains an automated operation and maintenance operation request, and sends the automated operation and maintenance operation request to the control node, and the control node authenticates the automated operation and maintenance operation request;
[0150] Step S1130. When the authentication is passed, the central node determines the target federated node through the automated operation and maintenance operation request, and sends the automated operation and maintenance operation request to the target federated node through the control node;
[0151] Step S1140. The target federated node converts the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine of the target node;
[0152] Step S1150. The target federated node sends the automated operation and maintenance scripts and data to the remote host that executes the automated operation and maintenance operation in the target federated node according to the remote connection call protocol, so that the remote host in the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance scripts and data.
[0153] The following will explain and illustrate steps S1110 - S1150. Specifically, first, the API gateway in the control node listens to the task repository of the central node. When it detects a change in the task repository of the central node, it obtains the automated operation and maintenance scripts and data included in the task repository of the central node, and sends the automated operation and maintenance scripts and data to the federated nodes included in the hybrid cloud through the control node, so that the federated nodes included in the hybrid cloud store the obtained automated operation and maintenance scripts and data in their task repositories. Among them, the task repository of the central node and the task repositories of the federated nodes are folders used to store the already orchestrated automated operation and maintenance scripts and data. Then, the application in the central node receives the automated request issued by the central node administrator. The application in the central node verifies the permissions of the automated request. When the permission verification passes, it generates an automated operation and maintenance operation request based on the automated request and the temporary call token, and sends the automated operation and maintenance operation request to the control node. Next, after the API in the control node receives the automated operation and maintenance operation request, it authenticates the automated operation and maintenance operation request through the temporary call token included in the automated operation and maintenance operation request. When the authentication passes, the central node determines the target federated node for executing the automated operation and maintenance operation request based on the domain name included in the automated operation and maintenance operation request. After determining the target federated node, the control node forwards the automated operation and maintenance operation request to the target federated node. After receiving the automated operation and maintenance operation request, the target federated node obtains the automated operation and maintenance execution engine included therein, and converts the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine according to the obtained automated operation and maintenance execution engine. After obtaining the remote connection call protocol, it obtains the remote host information corresponding to the automated operation and maintenance operation corresponding to the automated operation and maintenance operation request in the host list of the target federated node, and connects to the remote host in a remote connection manner through the remote host information. Among them, the host list is a list used to store all hosts in the cloud environment, and usually synchronizes with the CMDB (Configuration Management Database). The host can be a physical machine, a virtual machine, a cloud host, or a network device, etc. In this exemplary embodiment, the host is not specifically limited. After obtaining the remote host information, it connects to the remote host in a remote connection manner through the remote host information, and transfers the automated operation and maintenance scripts and data to the remote host in the form of temporary files through the remote call protocol, and triggers the remote host to execute the automated operation and maintenance operation according to the automated operation and maintenance scripts and data included in the temporary file.
[0154] The automated operation and maintenance method provided by the exemplary embodiments of the present disclosure has at least the following advantages: On the one hand, after obtaining an automated operation and maintenance operation request, the target node for executing the automated operation and maintenance operation is determined according to the automated operation and maintenance operation request, and the automated operation and maintenance operation request is sent to the corresponding target node. The remote host in the target node completes the automated operation and maintenance operation, realizing unified automated operation and maintenance of nodes in a hybrid cloud scenario. On the other hand, by setting up an API gateway, decoupling of the call to the automated operation and maintenance application programming interface between the central node and the federated nodes is achieved, and protocol conversion devices are set in the central node and the federated nodes. Through the protocol conversion devices, different automated operation and maintenance engines can be adapted. Moreover, based on the protocol conversion devices, an automated operation and maintenance application programming interface service is abstracted and provided as an interface service to the outside, shielding the underlying implementation details of automated operation and maintenance. On the further hand, strict control and restriction of the operation permissions of users are carried out through permission management, ensuring the security of automated operation and maintenance operations.
[0155] The exemplary embodiments of the present disclosure also provide an automated operation and maintenance device. Refer to Figure 12 as shown, it may include: a script monitoring module 1210, a target federated node acquisition module 1220, and an automated operation and maintenance operation execution module 1230. Among them:
[0156] The script monitoring module 1210 is configured to monitor the task repository of the central node and synchronize the automated operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud;
[0157] The target federated node acquisition module 1220 is configured to receive the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and when the authentication passes, acquire the target federated node sent by the central node;
[0158] The automated operation and maintenance operation execution module 1230 is configured to send the automated operation and maintenance operation request to the target federated node, so that the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0159] The exemplary embodiments of the present disclosure also provide an automated operation and maintenance device. Refer to Figure 13 as shown, it may include: a target node determination module 1310 and an authentication module 1320. Among them:
[0160] The target node determination module 1310 is configured to receive the automated operation and maintenance operation request and authenticate the automated operation and maintenance operation request;
[0161] The authentication module 1320 is used to determine the target federated node through the automated operation and maintenance operation request when the authentication is passed, and send the automated operation and maintenance operation request to the target federated node, so that the target federated node completes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0162] The exemplary embodiments of the present disclosure also provide an automated operation and maintenance device. Refer to Figure 14 as shown, which may include: a request receiving module 1410, a call protocol conversion module 1420, and an automated operation and maintenance operation execution module 1430. Among them:
[0163] The request receiving module 1410 is used to receive the automated operation and maintenance script and data synchronized by the central node and the automated operation and maintenance operation request sent by the central node;
[0164] The call protocol conversion module 1420 is used to convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine;
[0165] The automated operation and maintenance operation execution module 1430 is used to send the automated operation and maintenance script and data to the remote host for performing the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host performs the automated operation and maintenance operation according to the automated operation and maintenance script and data.
[0166] The exemplary embodiments of the present disclosure also provide an automated operation and maintenance device. Refer to Figure 15 as shown, which may include: a script synchronization module 1510, a request authentication module 1520, a request sending module 1530, a protocol conversion module 1540, and an automated operation and maintenance operation execution module 1550. Among them:
[0167] The script synchronization module 1510 is used to control the node to monitor the central node, obtain the automated operation and maintenance script and data included in the central node, and synchronize the automated operation and maintenance script and data to the federated nodes included in the hybrid cloud;
[0168] The request authentication module 1520 is used for the central node to obtain the automated operation and maintenance operation request, and send the automated operation and maintenance operation request to the control node, and authenticate the automated operation and maintenance operation request through the control node;
[0169] The request sending module 1530 is used, when the authentication is passed, for the central node to determine the target federated node through the automated operation and maintenance operation request, and send the automated operation and maintenance operation request to the target federated node through the control node;
[0170] A protocol conversion module 1540 is configured to convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine of the target node according to the automated operation and maintenance operation request by the target federated node;
[0171] An automated operation and maintenance operation execution module 1550 is configured to send the automated operation and maintenance script and data to a remote host for executing automated operation and maintenance operations in the target federated node according to the remote connection call protocol by the target federated node, so that the remote host in the target federated node executes the automated operation and maintenance operations according to the automated operation and maintenance script and data.
[0172] The specific details of each module in the above automated operation and maintenance device have been described in detail in the corresponding automated operation and maintenance method, so they will not be elaborated here.
[0173] In an exemplary embodiment of the present disclosure, listening to the task repository of the central node and synchronizing the automated operation and maintenance script and data included in the task repository of the central node to the federated nodes included in the hybrid cloud includes:
[0174] Starting a real-time synchronization subprocess to listen to the task repository of the central node;
[0175] When it is determined that the general automated operation and maintenance script and data included in the task repository of the central node have changed, generating a file to be synchronized according to the general automated operation and maintenance script and data in the task repository;
[0176] Triggering file synchronization processing through the real-time synchronization subprocess to synchronize the file to be synchronized to the federated nodes included in the hybrid cloud.
[0177] In an exemplary embodiment of the present disclosure, triggering file synchronization processing through the real-time synchronization subprocess to synchronize the file to be synchronized to the federated nodes included in the hybrid cloud includes:
[0178] Obtaining the domain names of the federated nodes included in the hybrid cloud, and generating a synchronization request according to the domain names, the temporary call token, and the file to be synchronized;
[0179] Invoking the application programming interface for synchronizing the automated operation and maintenance script of the federated node through the synchronization request;
[0180] Authenticating the temporary call token in the synchronization request, and when the authentication passes, synchronizing the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request.
[0181] In an exemplary embodiment of the present disclosure, before receiving the automated operation and maintenance operation request sent by the central node, the automated operation and maintenance method further includes:
[0182] Respond to the application programming interface for the federated node to perform automated operation and maintenance operations registered by the federated nodes included in the hybrid cloud;
[0183] Receive the call permission for the application programming interface for the central node to perform automated operation and maintenance operations on the federated node, and authenticate the central node;
[0184] After the authentication of the central node passes, generate a temporary call token required when the central node calls the application programming interface for the federated node to perform automated operation and maintenance operations, and send the temporary call token to the central node so that the central node caches the temporary call token.
[0185] In an exemplary embodiment of the present disclosure, authenticating the automated operation and maintenance operation request includes:
[0186] Obtain the temporary call token included in the automated operation and maintenance operation request, and authenticate the temporary call token.
[0187] In an exemplary embodiment of the present disclosure, determining the target federated node through the automated operation and maintenance operation request and sending the automated operation and maintenance operation request to the target federated node includes:
[0188] Obtain the domain name included in the automated operation and maintenance operation request, and determine the target federated node according to the domain name;
[0189] Obtain the temporary call token included in the automated operation and maintenance operation request, authenticate the temporary call token, and when it is determined that the authentication passes, send the automated operation and maintenance operation request to the target federated node.
[0190] In an exemplary embodiment of the present disclosure, converting the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine includes:
[0191] Obtain the automated operation and maintenance execution engine;
[0192] According to the automated operation and maintenance execution engine, convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol corresponding to the automated operation and maintenance operation engine.
[0193] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0194] In addition, although the steps of the methods in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.
[0195] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0196] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, method, or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "system" here.
[0197] The following refers to Figure 16 to describe the electronic device 1600 according to this embodiment of the present disclosure. Figure 16 The illustrated electronic device 1600 is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.
[0198] As Figure 16 shown, the electronic device 1600 is presented in the form of a general-purpose computing device. The components of the electronic device 1600 may include but are not limited to: at least one of the above-mentioned processing units 1610, at least one of the above-mentioned storage units 1620, a bus 1630 connecting different system components (including the storage unit 1620 and the processing unit 1610), and a display unit 1640.
[0199] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 1610, so that the processing unit 1610 executes the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification. For example, the processing unit 1610 can execute as Figure 1Step S110 shown in FIG. 0: Monitor the task repository of the central node, and synchronize the automation operation and maintenance scripts and data included in the task repository of the central node to the federated nodes included in the hybrid cloud; S120: Receive the automation operation and maintenance operation request sent by the central node, authenticate the automation operation and maintenance operation request, and when the authentication passes, obtain the target federated node sent by the central node; S130: Forward the automation operation and maintenance operation request to the target federated node, so that the target federated node performs automation operation and maintenance operations according to the automation operation and maintenance scripts and data.
[0200] The storage unit 1620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 16201 and / or a cache storage unit 16202, and may further include a read-only storage unit (ROM) 16203.
[0201] The storage unit 1620 may further include a program / utilities 16204 having a set (at least one) of program modules 16205. Such program modules 16205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.
[0202] The bus 1630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.
[0203] The electronic device 1600 may also communicate with one or more external devices 1700 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1600, and / or may communicate with any device that enables the electronic device 1600 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be through the input / output (I / O) interface 1650. And the electronic device 1600 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 1660. As shown in the figure, the network adapter 1660 communicates with other modules of the electronic device 1600 through the bus 1630. It should be understood that although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0204] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a portable hard drive, etc.) or on a network, including several instructions for causing a computing device (such as a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0205] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which there is a program product capable of implementing the above method of this specification. In some possible implementation manners, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0206] The program product for implementing the above method according to the embodiments of the present disclosure can adopt a portable compact disc read-only memory (CD-ROM) and include program code, and can run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0207] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0208] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0209] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0210] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).
[0211] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes may be executed, for example, synchronously or asynchronously in multiple modules.
[0212] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.
Claims
1. An automated operation and maintenance method, characterized in that, applied to the control node of the hybrid cloud, the automated operation and maintenance method includes: Starting a real-time synchronization subprocess to monitor the task repository of the central node; when it is determined that the general automated operation and maintenance scripts and data included in the task repository of the central node have changed, generating a file to be synchronized according to the general automated operation and maintenance scripts and data in the task repository; obtaining the domain names of the federated nodes included in the hybrid cloud, and generating a synchronization request according to the domain names, a temporary call token, and the file to be synchronized; through the synchronization request, calling the application programming interface for the federated nodes to execute automated operation and maintenance script synchronization; authenticating the temporary call token in the synchronization request, and when the authentication passes, synchronizing the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request; Receiving an automated operation and maintenance operation request sent by the central node, authenticating the automated operation and maintenance operation request, and when the authentication passes, obtaining the target federated node sent by the central node; Forwarding the automated operation and maintenance operation request to the target federated node, so that the target federated node performs automated operation and maintenance operations according to the automated operation and maintenance scripts and data.
2. The automated operation and maintenance method according to claim 1, characterized in that, Before receiving the automated operation and maintenance operation request sent by the central node, the automated operation and maintenance method further includes: Responding to the registration of the application programming interface for the federated nodes included in the hybrid cloud to execute automated operation and maintenance operations; Receiving an application from the central node for the call permission of the application programming interface for the federated nodes to execute automated operation and maintenance operations, and authenticating the central node; After the authentication of the central node passes, generating a temporary call token required when the central node calls the application programming interface for the federated nodes to execute automated operation and maintenance operations, and sending the temporary call token to the central node, so that the central node caches the temporary call token.
3. The automated operation and maintenance method according to claim 2, characterized in that, Authenticating the automated operation and maintenance operation request includes: Obtaining the temporary call token included in the automated operation and maintenance operation request, and authenticating the temporary call token.
4. An automated operation and maintenance method, characterized in that, applied to the central node of the hybrid cloud, where the central node includes a control node, the automated operation and maintenance method includes: Receiving an automated operation and maintenance operation request, and authenticating the automated operation and maintenance operation request; When the authentication passes, obtaining the domain name included in the automated operation and maintenance operation request, and determining the target federated node according to the domain name; obtaining the temporary call token included in the automated operation and maintenance operation request, authenticating the temporary call token, and when it is determined that the authentication passes, sending the automated operation and maintenance operation request to the target federated node, so that the target federated node completes automated operation and maintenance operations according to the automated operation and maintenance scripts and data.
5. An automated operation and maintenance method, Characterized in that, For a federated node applied to a hybrid cloud, the automated operation and maintenance method includes: The application programming interface service of the target federated node receives the automated operation and maintenance scripts and data synchronized by the central node and the automated operation and maintenance operation request sent by the central node; wherein, the application of the central node determines the target federated node according to the domain name included in the automated operation and maintenance operation request; Convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine; Send the automated operation and maintenance scripts and data to the remote host performing the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host executes the automated operation and maintenance operation according to the automated operation and maintenance scripts and data.
6. The automated operation and maintenance method according to claim 5, Characterized in that, Converting the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine includes: Obtain the automated operation and maintenance execution engine; According to the automated operation and maintenance execution engine, convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol corresponding to the automated operation and maintenance execution engine.
7. An automated operation and maintenance method, Characterized in that, Applied to a hybrid cloud, the automated operation and maintenance method includes: The control node starts a real-time synchronization subprocess to monitor the task repository of the central node; when it is determined that the general automated operation and maintenance scripts and data included in the task repository of the central node have changed, generate a file to be synchronized according to the general automated operation and maintenance scripts and data in the task repository; obtain the domain names of the federated nodes included in the hybrid cloud, and generate a synchronization request according to the domain names, temporary call tokens and the file to be synchronized; through the synchronization request, call the application programming interface of the federated node for automated operation and maintenance script synchronization; authenticate the temporary call token in the synchronization request, and when the authentication passes, synchronize the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request; The central node obtains an automated operation and maintenance operation request, and sends the automated operation and maintenance operation request to the control node, and the control node authenticates the automated operation and maintenance operation request; When the authentication passes, the central node obtains the domain name included in the automated operation and maintenance operation request, determines the target federated node according to the domain name; obtains the temporary call token included in the automated operation and maintenance operation request, authenticates the temporary call token, and when it is determined that the authentication passes, sends the automated operation and maintenance operation request to the target federated node; The target federated node converts the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine of the target federated node according to the automated operation and maintenance operation request; The target federated node sends the automated operation and maintenance script and data to the remote host in the target federated node that executes the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host in the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
8. An automated operation and maintenance device Characterized in that Applied to the control node of the hybrid cloud, the automated operation and maintenance device includes: A script monitoring module, which is used to start a real-time synchronization subprocess to monitor the task repository of the central node; when it is determined that the general automated operation and maintenance script and data included in the task repository of the central node have changed, generate a file to be synchronized according to the general automated operation and maintenance script and data in the task repository; obtain the domain names of the federated nodes included in the hybrid cloud, and generate a synchronization request according to the domain names, the temporary call token, and the file to be synchronized; through the synchronization request, call the application programming interface of the federated node to execute automated operation and maintenance script synchronization; authenticate the temporary call token in the synchronization request, and when the authentication passes, synchronize the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request. A target federated node acquisition module, which is used to receive the automated operation and maintenance operation request sent by the central node, authenticate the automated operation and maintenance operation request, and when the authentication passes, obtain the target federated node sent by the central node. An automated operation and maintenance operation execution module, which is used to send the automated operation and maintenance operation request to the target federated node, so that the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
9. An automated operation and maintenance device Characterized in that Applied to the central node in the hybrid cloud, where the central node includes a control node, the automated operation and maintenance device includes: A target node determination module, which is used to receive the automated operation and maintenance operation request and authenticate the automated operation and maintenance operation request. An authentication module, which is used to, when the authentication passes, obtain the domain name included in the automated operation and maintenance operation request, determine the target federated node according to the domain name; obtain the temporary call token included in the automated operation and maintenance operation request, authenticate the temporary call token, and when it is determined that the authentication passes, send the automated operation and maintenance operation request to the target federated node, so that the target federated node completes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
10. An automated operation and maintenance device Characterized in that Applied to the federated node of the hybrid cloud, the automated operation and maintenance device includes: A request receiving module, which is used for the application programming interface service of the target federated node to receive the automated operation and maintenance script and data synchronized by the central node and the automated operation and maintenance operation request sent by the central node; wherein, the application of the central node determines the target federated node according to the domain name included in the automated operation and maintenance operation request. Call protocol conversion module, which is used to convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine; Automated operation and maintenance operation execution module, which is used to send the automated operation and maintenance script and data to the remote host for executing the automated operation and maintenance operation according to the remote connection call protocol, so that the remote host executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
11. An automated operation and maintenance device Characterized in that Applied to a hybrid cloud, the automated operation and maintenance device includes: Script synchronization module, which is used to start a real-time synchronization subprocess to monitor the task repository of the central node; when it is determined that the general automated operation and maintenance scripts and data included in the task repository of the central node change, generate a file to be synchronized according to the general automated operation and maintenance scripts and data in the task repository; obtain the domain names of the federated nodes included in the hybrid cloud, and generate a synchronization request according to the domain names, temporary call tokens and the file to be synchronized; through the synchronization request, call the application programming interface for the federated nodes to execute automated operation and maintenance script synchronization; authenticate the temporary call token in the synchronization request, and when the authentication passes, synchronize the file to be synchronized to the federated nodes included in the hybrid cloud according to the synchronization request; Request authentication module, which is used for the central node to obtain an automated operation and maintenance operation request and send the automated operation and maintenance operation request to the control node, and authenticate the automated operation and maintenance operation request through the control node; Request sending module, which is used for the central node to obtain the domain name included in the automated operation and maintenance operation request when the authentication passes, and determine the target federated node according to the domain name; obtain the temporary call token included in the automated operation and maintenance operation request, authenticate the temporary call token, and when it is determined that the authentication passes, send the automated operation and maintenance operation request to the target federated node; Protocol conversion module, which is used for the target federated node to convert the call protocol of the automated operation and maintenance operation request into the remote connection call protocol of the automated operation and maintenance execution engine of the target federated node according to the automated operation and maintenance operation request; Automated operation and maintenance operation execution module, which is used for the target federated node to send the automated operation and maintenance script and data to the remote host for executing the automated operation and maintenance operation in the target federated node according to the remote connection call protocol, so that the remote host in the target federated node executes the automated operation and maintenance operation according to the automated operation and maintenance script and data.
12. A computer-readable storage medium, on which a computer program is stored, Characterized in that When the computer program is executed by a processor, it implements the automated operation and maintenance method according to any one of claims 1-7.
13. An electronic device Characterized in that Includes: Processor; And A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the automated operation and maintenance method according to any one of claims 1-7 by executing the executable instructions.
Citation Information
Patent Citations
Node management method and system and computer readable storage medium
CN110191007A
Safety control method and device
CN112398860A