Method, apparatus, and storage medium for installing components

By receiving parameter information, determining the target node, and transmitting the installation package, the automatic installation of components in the cloud computing system is achieved, solving the problems of high human resource consumption and low efficiency in the cloud computing system and improving installation efficiency.

CN114428619BActive Publication Date: 2026-06-09LOONGSON TECH CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LOONGSON TECH CORP
Filing Date
2020-10-29
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Installing new components in cloud computing systems requires manual operation, which leads to high human resource consumption and low efficiency, especially in complex cloud computing systems.

Method used

By receiving parameter information, the target node is identified and a connection is established with it. The installation package is then located and transmitted from the preset installation source, enabling the target node to automatically install components.

Benefits of technology

Reduce manual operation costs and time costs, and improve the efficiency of component installation without changing the existing environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428619B_ABST
    Figure CN114428619B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for installing components, which are used for a cloud computing system, and the method comprises the following steps: receiving parameter information, wherein the parameter information at least comprises component information of a target component to be installed; determining a target node for installing the target component in each node of the cloud computing system according to the parameter information, and establishing a connection with the target node; searching for an installation package corresponding to the target component in a preset installation source according to current version information of the cloud computing system and the component information of the target component; and transmitting the installation package to the target node, so that the target node realizes automatic installation of the target component by running the installation package. Through the present application, the target component can be automatically installed under the cloud computing system, so that the labor cost can be reduced and the efficiency of installing components can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method for installing components, an apparatus for automatically installing components, and a storage medium. Background Technology

[0002] With the rapid development of cloud computing, many research institutions and enterprises have begun to deploy cloud computing systems. Among them, cloud computing systems mainly adopt the following three service models: IaaS (Infrastructure as a Service), PaaS (Platform-as-a-Service), and SaaS (Software-as-a-Service).

[0003] Cloud computing systems contain numerous components used to implement different functions. Taking the OpenStack cloud computing system, based on the IaaS service model, as an example, the OpenStack cloud computing system can control a large number of computing, storage, and network resources within the entire data center. The control function for each type of resource is implemented through a component.

[0004] However, components in a cloud computing system are typically installed during the deployment process. For example, before deploying an OpenStack cloud computing system, the components that need to be installed are written in a deployment file beforehand. Then, the deployment file is executed to complete the deployment of the OpenStack cloud computing system, and the components are installed during the deployment process.

[0005] After a cloud computing system is deployed, installing new components requires manual intervention. However, due to the complexity of cloud computing system configuration and the large number of components involved, this process not only demands a high level of expertise from operators but also consumes significant human resources, greatly impacting the efficiency of component installation. Summary of the Invention

[0006] In view of the above problems, embodiments of this application are proposed to provide a method for installing components in a cloud computing system that overcomes or at least partially solves the above problems, thereby reducing manual operation costs and improving the efficiency of component installation.

[0007] Accordingly, embodiments of this application also provide an apparatus for installing components, a cloud computing system, an electronic device, and a storage medium to ensure the implementation and application of the above methods.

[0008] To address the aforementioned problems, this application discloses a method for installing components, the method being used in a cloud computing system, the method comprising:

[0009] Receive parameter information, which includes at least the component information of the target component to be installed;

[0010] Based on the parameter information, determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node.

[0011] Based on the current version information of the cloud computing system and the component information of the target component, the installation package corresponding to the target component is searched in the preset installation source;

[0012] The installation package is transmitted to the target node so that the target node can automatically install the target component by running the installation package.

[0013] This application also discloses an apparatus for installing components in a cloud computing system, the apparatus comprising:

[0014] A receiving module is used to receive parameter information, which includes at least component information of the target component to be installed;

[0015] A connection determination module is used to determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node based on the parameter information.

[0016] The installation package search module is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component.

[0017] A transmission module is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package.

[0018] This application also discloses a cloud computing system, which includes a device for installing components, a pre-set installation source, and a target node; wherein the pre-set installation source stores an installation package corresponding to the target component, and the device for installing components includes:

[0019] A receiving module is used to receive parameter information, which includes at least component information of the target component to be installed;

[0020] A connection determination module is used to determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node based on the parameter information.

[0021] The installation package search module is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component.

[0022] A transmission module is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package.

[0023] This application also discloses an apparatus for mounting components, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs contain instructions for performing the following operations:

[0024] Receive parameter information, which includes at least the component information of the target component to be installed;

[0025] Based on the parameter information, determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node.

[0026] Based on the current version information of the cloud computing system and the component information of the target component, the installation package corresponding to the target component is searched in the preset installation source;

[0027] The installation package is transmitted to the target node so that the target node can automatically install the target component by running the installation package.

[0028] This application also discloses a readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform one or more of the installation component methods described in this application.

[0029] The embodiments of this application have the following advantages:

[0030] In summary, this application embodiment can receive parameter information for installing the target component via an electronic device, determine the target node from various nodes of the cloud computing system based on the parameter information, and search for the installation package of the target component from a preset installation source. The electronic device transmits the installation package of the target component to the target node through a connection established with the target node, and then runs the installation package on the target node, realizing the automatic installation of the target component on the target node. Through this application embodiment, for an already deployed cloud computing system, without changing the existing environment of the deployed cloud computing system, it is possible to automatically install new components in the cloud computing system, saving significant manual operation costs and time costs, and improving the efficiency of component installation in the cloud computing system. Attached Figure Description

[0031] Figure 1 This is a flowchart illustrating the steps of a method for installing components according to this application, as described in Embodiment 1.

[0032] Figure 2 This is a flowchart illustrating the steps of a second embodiment of a method for installing components according to this application;

[0033] Figure 3 This is a structural block diagram of an embodiment of an installation component according to this application;

[0034] Figure 4 This is a structural block diagram of one embodiment of a cloud computing system according to this application;

[0035] Figure 5 This is a block diagram of a device 800 for mounting components according to this application. Detailed Implementation

[0036] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0037] To make it easier to understand, let's first give a brief explanation of cloud computing systems.

[0038] Cloud computing is a type of distributed computing that refers to breaking down massive data processing programs into countless smaller programs via a network "cloud." These smaller programs are then processed and analyzed by a system composed of multiple servers to obtain results and return them to the user. Cloud computing can complete the processing of tens of thousands of data points in a very short time (a few seconds), achieving powerful network services. Therefore, cloud computing systems can maintain and manage vast virtual computing resources, such as virtual machines, networks, firewalls, load balancers, applications, and databases, providing users with on-demand access to and rapid delivery of computing resources.

[0039] The cloud computing system in this application embodiment can adopt any one of the following three service modes: IaaS, PaaS, and SaaS.

[0040] The cloud computing system may contain multiple nodes, each with its specific functions. For example, the cloud computing system may include control nodes, compute nodes, network nodes, storage nodes, and other nodes. Control nodes are nodes with control functions, capable of controlling other nodes, including virtual machine creation, migration, network allocation, storage allocation, etc. Compute nodes are nodes with computing functions, responsible for running virtual machines. Network nodes are nodes with communication functions, responsible for communication between external and internal networks. Storage nodes are nodes with storage management functions, responsible for performing storage management on virtual machines.

[0041] To address the problem of high manpower consumption and low installation efficiency when installing new components in an already deployed cloud computing system, this application provides a method for installing components.

[0042] Method Example 1

[0043] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a method for installing a component according to this application. The method can be used to automatically install a target component in a cloud computing system, and specifically may include the following steps:

[0044] Step 101: Receive parameter information, wherein the parameter information includes at least the component information of the target component to be installed;

[0045] Step 102: Based on the parameter information, determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node;

[0046] Step 103: Based on the current version information of the cloud computing system and the component information of the target component, search for the installation package corresponding to the target component in the preset installation source;

[0047] Step 104: Transmit the installation package to the target node so that the target node can automatically install the target component by running the installation package.

[0048] The component installation method provided in this application can be applied to electronic devices connected to a cloud computing system. By running a specific application on the electronic device, new components can be automatically installed in the cloud computing system. Specifically, an application for automatically installing components in the cloud computing system can be pre-configured on the electronic device, and the electronic device can be set to be connected to each node in the cloud computing system via a network. This network connection can mean that the electronic device and each node are in the same intranet environment.

[0049] For ease of description, the cloud computing system in this application embodiment takes the OpenStack environment based on the IaaS mode as an example. It can be understood that this application embodiment does not limit the specific type of cloud computing system.

[0050] The electronic device refers to a device that inputs programs and data to a computer or receives processing results from a computer via communication facilities. It can be a PC (Personal Computer), a mobile terminal, etc., and broadly includes mobile phones, laptops, tablets, wearable electronic devices, multi-functional controllers, monitoring platforms, and even in-vehicle computers. This application does not limit the specific type of electronic device.

[0051] In practice, the electronic device can receive the parameter information input by the user through a pre-installed application and run the application. The application can then automatically install the target component on the target node of the cloud computing system, enabling the target node to perform the corresponding function of the target component.

[0052] The target component refers to a new component to be installed in the cloud computing system. By installing the target component on a target node, the target node can acquire the functional characteristics of the component. For example, if the target component is a component with logical storage capabilities, installing the target component on the target node enables the target node to implement the logical storage functionality of the target component.

[0053] The parameter information received through the electronic device includes at least the component information of the target component to be installed. This component information includes, but is not limited to, the name of the target component. Based on the name of the target component, its functional category can be determined, such as storage, computing, billing, etc. Based on the parameter information, the target node for installing the target component can be determined among the nodes of the cloud computing system, and the installation package corresponding to the target component can be searched in a preset installation source based on the current version information of the cloud computing system and the component information of the target component.

[0054] The pre-set installation source refers to a resource set that provides installation package resources for various components. Furthermore, the installation source can record the mapping relationship between the version information of the cloud computing system and the version information of each component. Optionally, the installation source can be deployed in the intranet environment of the cloud computing system, so that even when the cloud computing system cannot connect to the internet, the installation package of the target component can still be downloaded normally, ensuring the normal installation of the target component. The version information and installation package resources can be default resources provided by the official cloud computing website. The pre-set installation source described in this application can be pre-configured by those skilled in the art according to business needs. The installation source can be stored in an electronic device or in the cloud computing system, etc., and this application does not impose any restrictions.

[0055] After locating the installation package corresponding to the target component in the preset installation sources, the electronic device can establish a connection with the target node, and then transmit the installation package to the target node, enabling the target node to automatically install the target component by running the installation package.

[0056] It should be noted that, in specific implementations, the order in which the steps of establishing a connection between the electronic device and the target node, and searching for the installation package corresponding to the target component in a preset installation source, are not limited in the embodiments of this application. For example, after receiving the parameter information input by the user, the target node to which the target component is to be installed can be determined from among the nodes of the cloud computing system based on the parameter information, and a connection can be established with the target node; then, the installation package corresponding to the target component can be searched for in the preset installation source based on the current version information of the cloud computing system and the component information of the target component. Alternatively, the installation package corresponding to the target component can be searched for in the preset installation source based on the current version information of the cloud computing system and the component information of the target component; then, the target node to which the target component is to be installed can be determined from among the nodes of the cloud computing system based on the parameter information, and a connection can be established with the target node. Alternatively, these two steps can be executed in parallel, and after determining that the electronic device and the target node have established a connection, and that the installation package corresponding to the target component has been found in the preset installation source, the installation package is transmitted to the target node based on the connection.

[0057] When the electronic device and each node of the cloud computing system are in the same intranet environment, this embodiment of the application can obtain the installation package of the target component from the preset installation source without connecting to the Internet. For example, the preset installation source can be deployed in the cloud computing system. The electronic device finds the installation package corresponding to the target component in the preset installation source according to the received parameter information, and downloads the installation package through the intranet environment. This download can be performed without an Internet connection. Then, a connection is established with the target node through the intranet environment, and the installation package is transmitted to the target node so that the target node runs the installation package to complete the installation of the target component.

[0058] When the pre-installed installation source, electronic devices, and cloud computing system are in the same intranet environment, the installation package of the target component can still be downloaded normally even if the cloud computing system cannot connect to the Internet, thus ensuring the normal installation of the target component.

[0059] Of course, in practice, the pre-installed installation source, electronic devices, and cloud computing system can be located in different network environments. In this scenario, the pre-installed installation source, electronic devices, and cloud computing system can connect to the Internet to transmit data and execute the installation of the target components.

[0060] This application embodiment receives parameter information for installing the target component through an electronic device. Based on the parameter information, it can determine the target node from each node of the cloud computing system and find the installation package of the target component from a preset installation source. The electronic device transmits the installation package of the target component to the target node through a connection established with the target node, so that the target node can automatically install the target component by running the installation package. This can save a lot of manual operation costs and time costs, and improve the efficiency of installing components in the cloud computing system.

[0061] It should be noted that, in the embodiments of this application, the target node can be directly specified by the received parameter information. For example, when the user enters the parameter information of the target component in the application of the electronic device, the user can enter the first address of the target node to specify the target node; or, if the user does not specify the first address of the target node when entering the parameter information, the target node can be assigned to the target component through the control node.

[0062] In one optional embodiment of this application, step 102, which involves determining the target node for installing the target component in each node of the cloud computing system based on the parameter information and establishing a connection with the target node, includes:

[0063] Step S11: When the parameter information contains the first address corresponding to the target node, determine the target node based on the first address;

[0064] Step S12: Establish a connection with the target node through the first address.

[0065] Specifically, after the electronic device receives the parameter information for installing the target component, it first detects whether the parameter information contains the first address of the target node. If the parameter information contains the first address of the target node, it means that the user has specified the first address of the target node when inputting the parameter information of the target component, and the node corresponding to the first address is directly determined as the target node.

[0066] The first address can be the IP (Internet Protocol) address of the target node. The connection established between the electronic device and the target node through the first address can be a remote connection, through which the installation package can be transmitted to the target node.

[0067] In an optional embodiment of this application, step 102, which involves determining the target node to which the target component is to be installed and establishing a connection with the target node based on the parameter information, may further include:

[0068] Step S21: When the parameter information does not contain the first address corresponding to the target node, obtain the second address corresponding to the control node in the cloud computing system;

[0069] Step S22: Establish a connection with the control node through the second address, and send a first query command to the control node to query the associated nodes related to the function of the target component in a preset file through the control node; wherein, the preset file is used to store the node information of each node in the cloud computing system;

[0070] Step S23: Determine the associated node as the target node.

[0071] If the electronic device detects that the parameter information does not contain the first address of the target node, it means that the user did not specify the first address of the target node when inputting the parameter information of the target component. In this case, the target node can be assigned to the target component through the control node.

[0072] Specifically, at this time, the second address corresponding to the control node in the cloud computing system can be obtained, a connection can be established with the control node through the second address of the control node, and a first query command can be sent to the control node to request the control node to allocate the target node.

[0073] The control node refers to a type of node with control functions, capable of controlling other nodes. If the first address of the target node is not specified in the parameter information, a target node can be assigned to the target component through the control node. The second address can be the IP address of the control node. The connection established between the electronic device and the control node can be a remote connection. The first query command can carry component information of the target component, and the first query command is used to instruct the control node to query associated nodes related to the function of the target component in a preset file.

[0074] In response to the first query command, the control node can determine the functional category of the target component based on the component information of the target component, and then query the associated nodes related to the function of the target component in the preset file, and determine the associated nodes as the target nodes.

[0075] The preset file can be a system file of the cloud computing system, such as the / etc / hosts file. The preset file stores node information for each node in the cloud computing system, including at least the node's functional information and address information. The preset file can be stored on the server of the control node, or on any node server in the cloud computing system, or on all node servers in the cloud computing system; this embodiment does not impose any limitations on this.

[0076] It should be noted that the second address corresponding to the control node can be directly specified when the user inputs parameter information, or, if the parameter information does not contain the second address corresponding to the control node, the second address can be obtained by reading preset binding information. For example, for different cloud computing systems, binding information for different cloud computing systems can be pre-stored, and the binding information includes at least the second address of the control node in the cloud computing system. The binding information can be stored in a preset file; of course, the binding information can be stored in any storage location, and this application embodiment does not impose any restrictions on this.

[0077] In this embodiment, if the user does not specify a target node, an associated node in the cloud computing system that is functionally related to the target component can be used as the target node. "Functionally related" means that the associated node's functional category is the same as the target component's functional category, for example, both being storage functions.

[0078] Optionally, if multiple associated nodes are found in the cloud computing system, an optimal associated node is determined among the multiple associated nodes based on the node information, and the optimal associated node is used as the target node.

[0079] As can be seen, this application can actively specify target nodes for target components by receiving parameter information, or passively allocate target nodes for target components through control nodes. It can quickly determine the target node to be installed on the target component among the nodes of the cloud computing system, thereby improving the efficiency of installing target components.

[0080] In this embodiment, the input of the parameter information is highly flexible. Those skilled in the art or other implementers can customize the content of the parameter information and the timing of its input according to business needs. Even if no target node is specified, a target node matching the target component can be automatically assigned through the control node, which can reduce the difficulty for operators to input parameter information and improve the convenience of installing components.

[0081] Similarly, the current version information of the cloud computing system can be determined through active specification or passive querying. For example, when a user enters parameter information of a target component in an application on an electronic device, they can enter the current version information of the cloud computing system; or, if the user does not enter the current version information of the cloud computing system, the current version information of the cloud computing system can be determined through passive querying.

[0082] In one optional embodiment of this application, before step 103 searches for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component, it may further include:

[0083] Step S31: When the parameter information contains the current version information of the cloud computing system, directly obtain the current version information;

[0084] Step S32: When the parameter information does not contain the current version information of the cloud computing system, the current version information of the cloud computing system is obtained by querying the control node in the cloud computing system.

[0085] Specifically, after the electronic device receives the parameter information for installing the target component, it checks whether the parameter information contains the current version information of the cloud computing system. If the parameter information contains the current version information of the cloud computing system, it means that the user has specified the current version information of the cloud computing system, and the current version information can be directly obtained from the parameter information.

[0086] If the electronic device detects that the parameter information does not include the current version information of the cloud computing system, it means that the user has not specified the current version information of the cloud computing system. In this case, the current version information of the cloud computing system can be queried through the control node in the cloud computing system.

[0087] In one optional embodiment of this application, step S32, which involves querying the current version information of the cloud computing system through the control node in the cloud computing system, includes:

[0088] Step S41: When the current state is a connection established with the control node, send the second query command directly to the control node;

[0089] Step S42: When the current state is that no connection has been established with the control node, obtain the second address corresponding to the control node in the cloud computing system, establish a connection with the control node through the second address, and send a second query command to the control node;

[0090] Step S43: Obtain the version information of the installed basic components through the control node;

[0091] Step S44: Determine the current version information of the cloud computing system based on the version information of the basic components.

[0092] Specifically, there is a mapping relationship between the version information of each cloud computing system and the version information of each component. When an electronic device has established a connection with the control node through the second address of the control node, it directly sends a second query command to the control node. The second query command is used to instruct the control node to query the current version information of the cloud computing system. When the electronic device has not established a connection with the control node through the second address of the control node, it obtains the second address corresponding to the control node in the cloud computing system, establishes a connection with the control node through the second address, and sends a second query command to the control node.

[0093] In this embodiment, the control node of the cloud computing system may have basic components installed, and the version information of the basic components is consistent with the current version information of the cloud computing system. Therefore, this embodiment can obtain the current version information of the cloud computing system by querying the version information of the basic components. For example, the nova component is a basic component in the OpenStack cloud computing system. The second query command can be the "nova-manage--version" command. By sending the second query command, such as the "nova-manage--version" command, to the control node, the control node can perform the operation of querying the version information of the nova component, thereby obtaining the version information of the nova component, and using the version information of the nova component as the current version information of the OpenStack environment.

[0094] Optionally, the method for searching for the installation package corresponding to the target component in the preset installation source in step 103 may specifically include:

[0095] Step S51: Determine the version information of the target component using the current version information of the cloud computing system;

[0096] Step S52: Using the component information and version information of the target component, search for the installation package corresponding to the target component in the preset installation source.

[0097] Specifically, the electronic device reads a preset file, determines the version information of the target component based on the current version information of the cloud computing system obtained from the preset file, and then searches for the installation package corresponding to the target component in the preset installation source based on the component information (such as the component name) and the version information of the target component in the parameter information.

[0098] Optionally, to reduce data interaction between nodes and improve efficiency during component installation, this embodiment of the application can create a temporary file, denoted as file A, when the electronic device receives parameter information and initiates the component installation. File A can be used to record the parameter information acquired by the electronic device. For example, after receiving user-inputted parameter information for installing the target component, the component information of the target component can be recorded in file A. Similarly, if the parameter information includes the first address of the target node, the first address of the target node can be recorded in file A. If the parameter information includes the current version information of the cloud computing system, the current version information of the cloud computing system can be recorded in file A. Furthermore, if the parameter information does not include the first address of the target node or the current version information of the cloud computing system, the first address of the target node or the current version information of the cloud computing system obtained through a query via the control node can be recorded in file A.

[0099] In this way, if parameter information such as the first address and the current version information of the cloud environment is needed during the subsequent installation of the target component, it can be directly read from file A. In addition, file A can also record the installation log during the installation process of the component.

[0100] In one optional embodiment of this application, before establishing a connection with the target node in step 102, the method may further include: reading the temporary file to obtain the first address of the target node recorded in the temporary file.

[0101] Specifically, the electronic device can read the temporary file and obtain the first address of the target node from the temporary file, thereby enabling the electronic device to establish a connection with the target node based on the first address.

[0102] In one optional embodiment of this application, the method may further include:

[0103] Step S61: Determine the functional category of the target component based on the component information of the target component;

[0104] Step S62: Based on the functional category of the target component, determine the installation script corresponding to the target component and transmit the installation script to the target node;

[0105] Step 104, which describes enabling the target node to run the installation package, includes: enabling the target node to call the installation script to run the installation package and automatically install the target component.

[0106] In this embodiment, an installation script can be written to automatically execute the installation package. Optionally, the installation script can be divided according to the functional categories of the components, with different installation scripts corresponding to components of different functional categories, and the same installation script being used for components of the same functional category.

[0107] In this embodiment of the application, the functional category of the target component can be determined based on the component information of the target component, and then the installation script corresponding to the target component can be determined based on the functional category of the target component.

[0108] The installation script can be stored on the electronic device. After determining the installation script corresponding to the target component, the electronic device can transmit the installation script to the target node through a connection established with the target node. For example, the installation script can be transmitted from the electronic device to the target node via the SCP (Secure Copy) protocol. Then, the target node invokes the installation script to automatically install the target component by running the installation package.

[0109] As can be seen, this application can obtain the installation package and installation script corresponding to the target component by receiving parameter information, so as to quickly and automatically install the target component in the cloud computing system. This application can reduce the technical requirements of the implementers for the component installation operation.

[0110] In one optional embodiment of this application, after step 104, which involves transmitting the installation package to the target node so that the target node can automatically install the target component by running the installation package, the method may further include: starting the relevant services of the target component in the target node through a connection established with the target node.

[0111] The related services refer to the functions corresponding to the target component. The electronic device can automatically start the related services of the target component in the target node through the connection established with the target node, so that the target node can have the functional performance of the target component without the need for operators to manually start the service, which can reduce the cost of manual operation.

[0112] In summary, this application embodiment can receive parameter information for installing the target component via an electronic device, determine the target node from various nodes of the cloud computing system based on the parameter information, and search for the installation package of the target component from a preset installation source. The electronic device transmits the installation package of the target component to the target node through a connection established with the target node, and then runs the installation package on the target node, realizing the automatic installation of the target component on the target node. Through this application embodiment, for an already deployed cloud computing system, without changing the existing environment of the deployed cloud computing system, it is possible to automatically install new components in the cloud computing system, saving significant manual operation costs and time costs, and improving the efficiency of component installation in the cloud computing system.

[0113] Method Example 2

[0114] Reference Figure 2 The diagram illustrates a flowchart of an embodiment of a method for installing a component according to this application. The method can be used to automatically install a target component in a cloud computing system, and specifically may include the following steps:

[0115] Step 201: Receive parameter information, which includes at least the component information of the target component to be installed.

[0116] Step 202: Detect whether the parameter information contains the current version information of the cloud computing system. If the parameter information does not contain it, proceed to step 203; if the parameter information does contain it, proceed to step 204.

[0117] Step 203: Obtain the second address of the control node in the cloud computing system, establish a connection with the control node based on the second address, and send a second query command to the control node to query the current version information of the cloud computing system through the control node.

[0118] Step 204: Obtain the current version information directly from the parameter information.

[0119] Step 205: Detect whether the parameter information contains the first address of the target node. If the parameter information does not contain it, proceed to step 206; if the parameter information contains it, proceed to step 208.

[0120] Step 206: By remotely connecting to the control node, a first query command is sent to the control node to query the node information recorded in the system file to obtain the associated nodes related to the function of the target component.

[0121] Step 207: Determine the associated node as the target node.

[0122] Step 208: Determine the target node based on the first address.

[0123] Step 209: Based on the current version information of the cloud computing system and the component information of the target component, search for the installation package corresponding to the target component in the preset installation source.

[0124] Step 210: Establish a connection with the target node through the first address of the target node, and transmit the installation package to the target node so that the target node can automatically install the target component by running the installation package.

[0125] Through the embodiments of this application, new components can be automatically installed in a deployed cloud computing system without changing the existing environment of the deployed cloud computing system. This can save a lot of manual operation costs and time costs, and improve the efficiency of installing components in the cloud computing system.

[0126] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0127] Device Examples

[0128] Reference Figure 3 The diagram illustrates a structural block diagram of an embodiment of an installation component according to this application. The device is used in a cloud computing system and may specifically include the following modules:

[0129] The receiving module 301 is used to receive parameter information, which includes at least the component information of the target component to be installed;

[0130] The connection module 302 is used to determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node based on the parameter information.

[0131] The installation package search module 303 is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component.

[0132] The transmission module 304 is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package.

[0133] Optionally, the connection determination module 302 includes:

[0134] The first address acquisition submodule is used to determine the target node based on the first address when the parameter information contains the first address corresponding to the target node.

[0135] The connection establishment submodule is used to establish a connection with the target node through the first address.

[0136] Optionally, the connection determination module 302 further includes:

[0137] The second address acquisition submodule acquires the second address corresponding to the control node in the cloud computing system when the parameter information does not contain the first address corresponding to the target node.

[0138] The first address query submodule establishes a connection with the control node through the second address and sends a first query command to the control node to query the associated nodes related to the function of the target component in a preset file through the control node; wherein, the preset file is used to store the node information of each node in the cloud computing system;

[0139] The target node determination submodule is used to determine that the associated node is the target node.

[0140] Optionally, the device further includes:

[0141] The version information acquisition module is used to directly acquire the current version information when the parameter information contains the current version information of the cloud computing system;

[0142] The version information acquisition module is further configured to obtain the current version information of the cloud computing system by querying the control node in the cloud computing system when the parameter information does not contain the current version information of the cloud computing system.

[0143] Optionally, the version information acquisition module includes:

[0144] The command sending submodule is used to directly send a second query command to the control node when the current state is a state of establishing a connection with the control node;

[0145] The command sending submodule is also used to obtain the second address corresponding to the control node in the cloud computing system when the current state is not a connection established with the control node, establish a connection with the control node through the second address, and send a second query command to the control node;

[0146] The version information query submodule is used to query the version information of the installed basic components through the control node;

[0147] The copyright information determination submodule is used to determine the current version information of the cloud computing system based on the version information of the basic components.

[0148] Optionally, the device further includes:

[0149] The component category determination module is used to determine the functional category of the target component based on the component information of the target component;

[0150] The target node determination module is used to determine the installation script corresponding to the target component based on the functional category of the target component and transmit the installation script to the target node;

[0151] The transmission module is specifically used to transmit the installation package to the target node, so that the target node can call the installation script to run the installation package and automatically install the target component.

[0152] The device for installing components according to the embodiments of this application can automatically install new components in a deployed cloud computing system without changing the existing environment of the deployed cloud computing system, thereby saving a lot of manual operation costs and time costs, and improving the efficiency of installing components in the cloud computing system.

[0153] Reference Figure 4This diagram illustrates a structural block diagram of a cloud computing system embodiment of this application. The cloud computing system includes a device 401 for installing components, a preset installation source 402, and a target node 403. The preset installation source stores an installation package corresponding to the target component. The device for installing components includes:

[0154] A receiving module is used to receive parameter information, which includes at least component information of the target component to be installed;

[0155] A connection determination module is used to determine the target node to which the target component is to be installed in each node of the cloud computing system and establish a connection with the target node based on the parameter information.

[0156] The installation package search module is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component.

[0157] A transmission module is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package.

[0158] Optionally, the connection determination module includes:

[0159] The first address acquisition submodule is used to determine the target node based on the first address when the parameter information contains the first address corresponding to the target node.

[0160] The connection establishment submodule is used to establish a connection with the target node through the first address.

[0161] Optionally, the system further includes a control node, and the connection determination module further includes:

[0162] The second address acquisition submodule acquires the second address corresponding to the control node in the cloud computing system when the parameter information does not contain the first address corresponding to the target node.

[0163] The first address query submodule establishes a connection with the control node through the second address and sends a first query command to the control node to query the associated nodes related to the function of the target component in a preset file through the control node; wherein, the preset file is used to store the node information of each node in the cloud computing system;

[0164] The target node determination submodule is used to determine that the associated node is the target node.

[0165] Optionally, the system further includes:

[0166] The version information acquisition module is used to directly acquire the current version information when the parameter information contains the current version information of the cloud computing system;

[0167] The version information acquisition module is further configured to obtain the current version information of the cloud computing system by querying the control node in the cloud computing system when the parameter information does not contain the current version information of the cloud computing system.

[0168] Optionally, the version information acquisition module includes:

[0169] The command sending submodule is used to directly send a second query command to the control node when the current state is a state of establishing a connection with the control node;

[0170] The command sending submodule is also used to obtain the second address corresponding to the control node in the cloud computing system when the current state is not a connection established with the control node, establish a connection with the control node through the second address, and send a second query command to the control node;

[0171] The version information query submodule is used to query the version information of the installed basic components through the control node;

[0172] The copyright information determination submodule is used to determine the current version information of the cloud computing system based on the version information of the basic components.

[0173] Optionally, the system further includes:

[0174] The component category determination module is used to determine the functional category of the target component based on the component information of the target component;

[0175] The target node determination module is used to determine the installation script corresponding to the target component based on the functional category of the target component and transmit the installation script to the target node;

[0176] The transmission module is specifically used to transmit the installation package to the target node, so that the target node can call the installation script to run the installation package and automatically install the target component.

[0177] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0178] This application provides an apparatus for installing components. The apparatus includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs contain instructions for performing the following operations: receiving parameter information, the parameter information including at least component information of a target component to be installed; determining a target node for installing the target component among the nodes of a cloud computing system based on the parameter information and establishing a connection with the target node; searching for an installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component; and transmitting the installation package to the target node so that the target node automatically installs the target component by running the installation package.

[0179] Figure 5 This is a block diagram illustrating an apparatus 800 for mounting components according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0180] Reference Figure 5 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0181] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0182] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0183] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.

[0184] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0185] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice information processing mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0186] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0187] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0188] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency information processing (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0189] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0190] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0191] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a terminal's processor, enables the terminal to perform a method for installing a component, the method comprising: receiving parameter information, the parameter information including at least component information of a target component to be installed; determining a target node for installing the target component among nodes of a cloud computing system based on the parameter information and establishing a connection with the target node; searching for an installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component; and transmitting the installation package to the target node so that the target node automatically installs the target component by running the installation package.

[0192] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0193] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0194] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0195] These computer program instructions may also be stored in a computer-readable storage medium capable of directing a computer or other programmable data processing terminal device to operate in a predictive manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0197] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0198] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0199] The foregoing has provided a detailed description of a method and apparatus for installing components, an apparatus for installing components, and a storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for installing components, characterized in that, The method is used in a cloud computing system, and the method includes: Receive parameter information, which includes at least the component information of the target component to be installed; When the parameter information does not contain the first address corresponding to the target node, a connection is established with the control node, and a first query command is sent to the control node to query the preset file through the control node to obtain the associated node related to the function of the target component as the target node, and a connection is established with the target node. The target node refers to the node to be installed with the target component determined among the nodes of the cloud computing system, and the function related means that the function category of the associated node is the same as the function category of the target component. Based on the current version information of the cloud computing system and the component information of the target component, the installation package corresponding to the target component is searched in the preset installation source; The installation package is transmitted to the target node so that the target node can automatically install the target component by running the installation package; The method further includes: when the electronic device receives parameter information and starts the installation of the component, creating a temporary file, the temporary file being used to record the parameter information obtained by the electronic device and the installation log during the component installation process.

2. The method according to claim 1, characterized in that, The step of determining the target node to be installed with the target component among the nodes of the cloud computing system and establishing a connection with the target node based on the parameter information includes: When the parameter information contains a first address corresponding to the target node, the target node is determined based on the first address; A connection is established with the target node through the first address.

3. The method according to claim 1 or 2, characterized in that, The step of determining the target node to which the target component is to be installed in the cloud computing system and establishing a connection with the target node based on the parameter information further includes: When the parameter information does not contain the first address corresponding to the target node, obtain the second address corresponding to the control node in the cloud computing system. A connection is established with the control node via the second address, and a first query command is sent to the control node to query the associated nodes related to the function of the target component in a preset file through the control node; wherein, the preset file is used to store the node information of each node in the cloud computing system; The associated node is identified as the target node.

4. The method according to any one of claims 1-3, characterized in that, Before searching for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component, the method further includes: When the parameter information contains the current version information of the cloud computing system, the current version information is obtained directly; When the parameter information does not include the current version information of the cloud computing system, the current version information of the cloud computing system can be obtained by querying the control node in the cloud computing system.

5. The method according to claim 4, characterized in that, The step of obtaining the current version information of the cloud computing system by querying the control node in the cloud computing system includes: When the current state is a connection established with the control node, send the second query command directly to the control node; When the current state is that no connection has been established with the control node, obtain the second address corresponding to the control node in the cloud computing system, establish a connection with the control node through the second address, and send a second query command to the control node; The version information of the installed basic components can be obtained by querying the control node; Based on the version information of the basic components, the current version information of the cloud computing system is determined.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Based on the component information of the target component, determine the functional category of the target component; Based on the functional category of the target component, determine the installation script corresponding to the target component and transmit the installation script to the target node; The step of enabling the target node to run the installation package includes: This causes the target node to invoke the installation script to run the installation package and automatically install the target component.

7. A device for mounting components, characterized in that, The device is used in a cloud computing system, and the device includes: A receiving module is used to receive parameter information, which includes at least component information of the target component to be installed; The connection module is configured to establish a connection with the control node when the parameter information does not contain the first address corresponding to the target node, and send a first query command to the control node to query the preset file through the control node to obtain the associated node related to the function of the target component as the target node, and establish a connection with the target node. The target node refers to the node to be installed on the target component determined among the nodes of the cloud computing system, and the function related means that the function category of the associated node is the same as the function category of the target component. The installation package search module is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component. A transmission module is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package. When the electronic device receives parameter information and starts the operation of installing the component, a temporary file is created. The temporary file is used to record the parameter information obtained by the electronic device and the installation log during the component installation process.

8. A cloud computing system, characterized in that, The cloud computing system includes a device for installing components, a pre-configured installation source, and a target node; wherein the pre-configured installation source stores an installation package corresponding to the target component, and the device for installing components includes: A receiving module is used to receive parameter information, which includes at least component information of the target component to be installed; The connection module is configured to establish a connection with the control node when the parameter information does not contain the first address corresponding to the target node, and send a first query command to the control node to query the preset file through the control node to obtain the associated node related to the function of the target component as the target node, and establish a connection with the target node. The target node refers to the node to be installed on in the nodes of the cloud computing system, and the function related means that the function category of the associated node is the same as the function category of the target component. The installation package search module is used to search for the installation package corresponding to the target component in a preset installation source based on the current version information of the cloud computing system and the component information of the target component. A transmission module is used to transmit the installation package to the target node, so that the target node can automatically install the target component by running the installation package. When the electronic device receives parameter information and starts the operation of installing the component, a temporary file is created. The temporary file is used to record the parameter information obtained by the electronic device and the installation log during the component installation process.

9. An apparatus for mounting components, characterized in that, The device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs contain instructions for performing the following operations: Receive parameter information, which includes at least the component information of the target component to be installed; When the parameter information does not contain the first address corresponding to the target node, a connection is established with the control node, and a first query command is sent to the control node to query the preset file through the control node to obtain the associated node related to the function of the target component, which is then used as the target node, and a connection is established with the target node. Here, the target node refers to the node to which the target component is to be installed in each node of the cloud computing system, and the function related means that the function category of the associated node is the same as the function category of the target component. Based on the current version information of the cloud computing system and the component information of the target component, the installation package corresponding to the target component is searched in the preset installation source; The installation package is transmitted to the target node so that the target node can automatically install the target component by running the installation package; Specifically, when the electronic device receives parameter information and initiates the installation of the component, a temporary file is created. This temporary file is used to record the parameter information acquired by the electronic device and the installation log during the component installation process.

10. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method of installing the component as described in any one of claims 1-6.