An interface display service deployment method, device, equipment and medium

By building and deploying container images of vitrage interface display services that are adapted to kolla-ansible, the problem of vitrage service being unavailable when OpenStack cluster failure is solved, and the independent interface display and analysis function of vitrage service in the event of failure is realized.

CN112463299BActive Publication Date: 2025-05-27BEIJING INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011357447.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2025-05-27
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

OpenStack's vitrage service cannot access the shared interface display service when the cluster fails, resulting in the interface service error and cannot be used and problem analysis cannot be performed.

Method used

Build a container image of the vitrage interface display service that is adapted to kolla-ansible and push it to the mirror repository of the OpenStack environment. Modify the configuration of kolla-ansible to support the deployment of vitrage interface display service, ensuring that vitrage has a separate interface display service and can be used normally when the cluster fails.

Benefits of technology

When the OpenStack cluster fails, the vitrage service can continue to run normally through a separate interface display service, and the results obtained by the analysis can be displayed correctly to help the operation and maintenance personnel perform operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112463299B_ABST
    Figure CN112463299B_ABST
Patent Text Reader

Abstract

The present application discloses an interface display service deployment method, apparatus, device and medium. The method includes: constructing a container image of the vitrage interface display service adapted to kolla-ansible; pushing the container image into the image repository corresponding to the OpenStack environment, and modifying the configuration of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service; starting the container image in the image repository to start the vitrage interface display service. In this way, the vitrage of OpenStack can have a separate interface display service, and when the shared interface display service in OpenStack fails due to a cluster failure, the separate interface display service owned by vitrage can still be used normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly relates to a method, device, equipment, and medium for deploying an interface display service. Background Art

[0002] OpenStack is a free software and open-source project jointly developed by NASA (National Aeronautics and Space Administration) and Rackspace and licensed under the Apache license. OpenStack is an open-source cloud computing management platform project that combines several main components to complete specific tasks. OpenStack supports almost all types of cloud environments, and the project goal is to provide a cloud computing management platform that is simple to implement, highly scalable, rich, and standardized.

[0003] Kolla-ansible is responsible for deploying containerized OpenStack services and infrastructure components, configuring OpenStack services using kolla-ansible, and orchestrating the deployment of OpenStack service containers. By leveraging the isolation of containers, it is possible to upgrade and roll back OpenStack service containers, control the scope of impact of upgrades and rollbacks, and reduce the complexity of OpenStack cluster operation and maintenance.

[0004] Among them, Vitrage (Platform Problem Location and Analysis Service) is an OpenStack RCA (Root Cause Analysis) service used to organize, analyze, and expand OpenStack alarms and events to find the root cause after a real problem occurs.

[0005] Problems existing in the current use of the vitrage service in OpenStack: The display of the vitrage service interface in OpenStack is achieved through horizon. That is, currently, the vitrage service interface is a service interface commonly used by various services in OpenStack. When a cluster failure occurs and horizon cannot be accessed, the service interface will display an error and become unusable. However, the vitrage service needs to work at this time to analyze the cause of the error, but the interface service is already unavailable at this time. Summary of the Invention

[0006] In view of this, the purpose of this application is to provide a method, device, equipment, and medium for deploying an interface display service, which can enable OpenStack's vitrage to have a separate interface display service. When the shared interface display service in OpenStack fails due to a cluster failure, the separate interface display service owned by vitrage can still be used normally. The specific solutions are as follows:

[0007] In a first aspect, the present application discloses a method for deploying an interface display service, including:

[0008] Construct a container image of the vitrage interface display service adapted to kolla-ansible, where the vitrage interface display service is used to display the results obtained by vitrage analysis;

[0009] Push the container image to the image repository corresponding to the OpenStack environment, and modify the configuration of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service;

[0010] Start the container image in the image repository to start the vitrage interface display service.

[0011] Optionally, the constructing the container image of the vitrage interface display service adapted to kolla-ansible includes:

[0012] Select a base image;

[0013] Set up a basic environment and install basic compilation packages;

[0014] Install node js and nginx.

[0015] Optionally, the starting the container image in the image repository includes:

[0016] Map the keystone port to access the configuration file of kolla-ansible for information authentication;

[0017] When the information authentication is passed, map the vitrage port to access the configuration file of the kolla-ansible so that the vitrage port can obtain the results obtained by vitrage analysis;

[0018] Modify the configuration address of the nginx and compile the node js;

[0019] Start the vitrage interface display service.

[0020] Optionally, the modifying the configuration of the kolla-ansible includes:

[0021] Add a deployment field of the vitrage interface display service to the target file of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service;

[0022] Add the startup configuration of the container image of the Vitrage interface display service under the role directory of the kolla-ansible.

[0023] Optionally, add the deployment field of the Vitrage interface display service to the target file of the kolla-ansible, including:

[0024] Add the corresponding deployment information of the Vitrage interface display service to the global control file, host file inventory, and file module entry file of the kolla-ansible, so that the kolla-ansible supports the deployment of the Vitrage interface display service.

[0025] Optionally, starting the container image in the image repository includes:

[0026] When starting the OpenStack cloud platform deployment, determine whether to deploy the Vitrage interface display service according to the global control file of the kolla-ansible;

[0027] If the Vitrage interface display service is not deployed, directly deploy other services in the OpenStack cloud platform;

[0028] If the Vitrage interface display service is deployed, obtain the container image from the image repository and start the container image.

[0029] In a third aspect, the present application discloses a device for deploying an interface display service, including:

[0030] An image building module, configured to build a container image of a Vitrage interface display service adapted to the kolla-ansible, wherein the Vitrage interface display service is used to display the results obtained by Vitrage analysis;

[0031] An image pushing module, configured to push the container image to the image repository corresponding to the OpenStack environment;

[0032] A configuration modification module, configured to modify the configuration of the kolla-ansible so that the kolla-ansible supports the deployment of the Vitrage interface display service;

[0033] A service startup module, configured to start the container image in the image repository to start the Vitrage interface display service.

[0034] Optionally, the configuration modification module is configured to:

[0035] Add a deployment field of the Vitrage interface display service to the target file of kolla-ansible, so that kolla-ansible supports the deployment of the Vitrage interface display service;

[0036] Add a startup configuration of the container image of the Vitrage interface display service under the role directory of kolla-ansible.

[0037] In a third aspect, the present application discloses an electronic device, including:

[0038] A memory and a processor;

[0039] Wherein, the memory is used to store a computer program;

[0040] The processor is used to execute the computer program to implement the interface display service deployment method disclosed above.

[0041] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the interface display service deployment method disclosed above.

[0042] It can be seen that in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first constructed, where the Vitrage interface display service is used to display the results obtained by Vitrage analysis. Then, the container image is pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible is modified so that Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image in the image repository can be started to start the Vitrage interface display service. Thus, in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first constructed, and the Vitrage interface display service is used to display the results obtained by Vitrage analysis, so that the Vitrage interface display service can be deployed through Kolla-Ansible. Then, the container image needs to be pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible needs to be modified so that the configuration of Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image can be started, that is, the Vitrage interface display service can be started. This can enable Vitrage in OpenStack to have a separate interface display service. When the shared interface display service in OpenStack fails due to a cluster failure, the separate Vitrage interface display service owned by Vitrage can still be used normally, and the results obtained by Vitrage analysis can be displayed so that the operation and maintenance personnel can perform operation and maintenance based on the displayed results. Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.

[0044] Figure 1 It is a flowchart of a method for an interface display service disclosed in the present application;

[0045] Figure 2 It is a partial flowchart of a specific method for an interface display service disclosed in the present application;

[0046] Figure 3 It is a partial flowchart of a specific method for an interface display service disclosed in the present application;

[0047] Figure 4 Partial flowchart of a specific interface display service method disclosed in this application;

[0048] Figure 5 Schematic structural diagram of an interface display service deployment device disclosed in this application;

[0049] Figure 6 Schematic structural diagram of an electronic device disclosed in this application. Specific implementation manners

[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0051] See Figure 1 As shown, the embodiments of the present application disclose an interface display service deployment method, and the method includes:

[0052] Step S11: Build a container image of the vitrage interface display service adapted to kolla-ansible, where the vitrage interface display service is used to display the results obtained by vitrage analysis.

[0053] In the specific implementation process, it is necessary to deploy a separate vitrage interface display service for vitrage in OpenStack to display the results obtained by vitrage analysis, so as to avoid the problem that when the vitrage service uses the interface display service shared by each service in OpenStack, the shared interface display service becomes unavailable due to failures of some services in OpenStack. Deploying a separate interface display service for vitrage in OpenStack requires first building a container image of the vitrage interface display service adapted to kolla-ansible, so that the vitrage interface display service can be deployed through kolla-ansible.

[0054] Specifically, building the container image of the vitrage interface display service adapted to kolla-ansible includes: selecting a base image; setting up a basic environment and installing basic compilation packages; installing node js and nginx.

[0055] That is, to build a container image for the Vitrage interface display service adapted to the kolla-ansible, it is necessary to select a base image, set up a basic environment, install basic compilation packages, and also install node js and nginx to support the WEB interface display of the Vitrage interface display service.

[0056] Step S12: Push the container image to the image repository corresponding to the OpenStack environment, and modify the configuration of the kolla-ansible so that the kolla-ansible supports the deployment of the Vitrage interface display service.

[0057] After building the container image, it is also necessary to push the container image to the image repository corresponding to the OpenStack environment and modify the configuration of the kolla-ansible so that the kolla-ansible can support the deployment of the Vitrage interface display service.

[0058] Specifically, modifying the configuration of the kolla-ansible includes: adding a deployment field for the Vitrage interface display service in the target file of the kolla-ansible so that the kolla-ansible supports the deployment of the Vitrage interface display service; adding a startup configuration for the container image of the Vitrage interface display service under the role directory of the kolla-ansible.

[0059] Among them, adding the deployment field for the Vitrage interface display service in the target file of the kolla-ansible includes: adding corresponding deployment information for the Vitrage interface display service in the global control file, the host file list, and the file module entry file of the kolla-ansible so that the kolla-ansible supports the deployment of the Vitrage interface display service.

[0060] That is, it is necessary to add deployment information for the Vitrage interface display service in the global control file (globals.yml) of the kolla-ansible. The specific deployment information to be added can be: enable_luna: "yes", where luna is the name of the Vitrage interface display service. Among them, the global control file (globals.yml) can control whether to deploy the Vitrage interface display service in the cluster.

[0061] Add the deployment information of the Vitrage interface display service to the host file inventory (multinode and all-in-one) of Kolla-Ansible. Specifically, a luna group can be added under the host file inventory (multinode and all-in-one), where luna is the name of the Vitrage interface display service. Adding a luna group under the host file inventory (multinode and all-in-one) enables support in single-node and multi-node environments and specifies the nodes for luna service deployment.

[0062] Add the deployment information of the Vitrage interface display service to the file module entry file (site.yml) of Kolla-Ansible. Specifically, luna-related fields can be added to the file module entry file (site.yml) to include the luna service in the Ansible project.

[0063] It is also necessary to add the startup configuration of the container image of the Vitrage interface display service under the role directory (role) of Kolla-Ansible. Specifically, the startup configuration to be added can be determined according to the actual situation.

[0064] See Figure 2 As shown, it is a partial flowchart for the deployment of the interface display service. First, select the base image, then build the base environment, install the base compilation package, then install node js, and install nginx.

[0065] See Figure 3 As shown, it is a partial flowchart for the deployment of the interface display service. Add enable_luna: "yes" to the global control file globals.yml of Kolla-Ansible, add a luna group under multinode and all-in-one, add luna-related fields to the file module entry file site.yml of Kolla-Ansible, and add settings for luna to the Kolla-Ansible configuration file of the luna service in the role directory (role) of Kolla-Ansible.

[0066] Step S13: Start the container image in the image repository to start the Vitrage interface display service.

[0067] Then it is also necessary to start the container image in the image repository to start the Vitrage interface display service.

[0068] Specifically, starting the container image in the image repository includes: mapping the keystone port to access the configuration file of kolla-ansible for information authentication; when the information authentication is passed, mapping the vitrage port to access the configuration file of kolla-ansible so that the vitrage port can obtain the results analyzed by vitrage; modifying the configuration address of nginx and compiling node js; starting the vitrage interface display service.

[0069] That is, it is necessary to first map the keystone port to access the configuration file of kolla-ansible for information authentication, and after the information authentication is successful, the vitrage interface display service can be started. When the information authentication is passed, map the vitrage port to access the configuration file of kolla-ansible so that the vitrage port can obtain the results analyzed by vitrage, so that the vitrage interface display service can display the results analyzed by vitrage. It is also necessary to modify the configuration address of nginx to direct the data stream analyzed by vitrage to the front end, and compile node js, and then the vitrage interface display service can be started.

[0070] When deploying the vitrage interface display service in the container image together with other services in OpenStack, when starting the deployment of the OpenStack cloud platform, it is judged whether to deploy the vitrage interface display service according to the global control file of kolla-ansible; if the vitrage interface display service is not deployed, the deployment of other services in the OpenStack cloud platform is directly carried out; if the vitrage interface display service is deployed, the container image is obtained from the image repository and the container image is started.

[0071] See Figure 4 As shown, it is a partial flowchart of the interface display service method. Start the deployment of the OpenStack cloud platform, judge whether to deploy the luna service. If not, directly deploy other services in the OpenStack cloud platform. If so, map the keystone port to access the configuration file of kolla-ansible, then map the vitrage port to access the configuration file of kolla-ansible, modify the configuration address of nginx, compile node js, and then the luna service can be started, where luna is the name of the vitrage interface display service.

[0072] It can be seen that in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first built, where the Vitrage interface display service is used to display the results obtained from Vitrage analysis. Then, the container image is pushed to the mirror repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible is modified so that Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image in the mirror repository can be started to start the Vitrage interface display service. Thus, in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first built, and the Vitrage interface display service is used to display the results obtained from Vitrage analysis, so that the Vitrage interface display service can be deployed through Kolla-Ansible. Then, the container image also needs to be pushed to the mirror repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible is modified so that the configuration of Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image can be started, that is, the Vitrage interface display service can be started. This can enable Vitrage in OpenStack to have a separate interface display service. When the shared interface service in OpenStack fails due to a cluster failure, the separate Vitrage interface display service owned by Vitrage can still be used normally to display the results obtained from Vitrage analysis, so that the operation and maintenance personnel can perform operation and maintenance based on the displayed results.

[0073] See Figure 5 As shown, an embodiment of this application discloses an interface display service deployment device, including:

[0074] An image building module 11, configured to build a container image of the Vitrage interface display service adapted to Kolla-Ansible, where the Vitrage interface display service is used to display the results obtained from Vitrage analysis;

[0075] An image pushing module 12, configured to push the container image to the mirror repository corresponding to the OpenStack environment;

[0076] A configuration modification module 13, configured to modify the configuration of Kolla-Ansible so that Kolla-Ansible supports the deployment of the Vitrage interface display service;

[0077] The service startup module 14 is used to start the container image in the image repository to start the Vitrage interface display service.

[0078] It can be seen that in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first built. The Vitrage interface display service is used to display the results obtained by Vitrage analysis. Then, the container image is pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible is modified so that Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image in the image repository can be started to start the Vitrage interface display service. Thus, in this application, a container image of the Vitrage interface display service adapted to Kolla-Ansible is first built, and the Vitrage interface display service is used to display the results obtained by Vitrage analysis, so that the Vitrage interface display service can be deployed through Kolla-Ansible. Then, the container image also needs to be pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla-Ansible needs to be modified so that the configuration of Kolla-Ansible supports the deployment of the Vitrage interface display service. Then, the container image can be started, that is, the Vitrage interface display service can be started. This can enable Vitrage in OpenStack to have a separate interface display service. When the shared interface display service in OpenStack fails due to a cluster failure, the separate Vitrage interface display service of Vitrage can still be used normally to display the results obtained by Vitrage analysis, so that the operation and maintenance personnel can perform operation and maintenance according to the displayed results.

[0079] In some specific implementation processes, the image building module 11 is used for:

[0080] Select a base image;

[0081] Set up a basic environment and install basic compilation packages;

[0082] Install Node.js and Nginx.

[0083] In some specific implementation processes, the service startup module 14 is used for:

[0084] Map the Keystone port to access the configuration file of Kolla-Ansible for information authentication;

[0085] When the information authentication is passed, map the vitrage port to access the configuration file of the kolla-ansible so that the vitrage port can obtain the results obtained by vitrage analysis;

[0086] Modify the configuration address of the nginx and compile the node js;

[0087] Start the vitrage interface display service.

[0088] In some specific implementation processes, the configuration modification module 13 is used for:

[0089] Add a deployment field for the vitrage interface display service to the target file of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service;

[0090] Add a startup configuration for the container image of the vitrage interface display service under the role directory of the kolla-ansible.

[0091] In some specific implementation processes, the configuration modification module 13 is used for:

[0092] Add corresponding deployment information for the vitrage interface display service to the global control file, host file list, and file module entry file of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service.

[0093] In some specific implementation processes, the service startup module 14 is used for:

[0094] When starting the OpenStack cloud platform deployment, determine whether to deploy the vitrage interface display service according to the global control file of the kolla-ansible;

[0095] If the vitrage interface display service is not deployed, directly deploy other services in the OpenStack cloud platform;

[0096] If the vitrage interface display service is deployed, obtain the container image from the image repository and start the container image.

[0097] See Figure 6 As shown, it is a schematic structural diagram of an electronic device 20 provided by an embodiment of the present application, and the electronic device 20 can implement the steps of the interface display service deployment method disclosed in the foregoing embodiments.

[0098] Generally, the electronic device 20 in this embodiment includes: a processor 21 and a memory 22.

[0099] Among them, the processor 21 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 21 may be implemented by at least one of DSP (digital signal processing), FPGA (field-programmable gate array), and PLA (programmable logic array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (central processing unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (graphics processing unit), and the GPU is responsible for rendering and drawing the images that need to be displayed on the display screen. In some embodiments, the processor 21 may include an AI (artificial intelligence) processor, and the AI processor is used to process computing operations related to machine learning.

[0100] The memory 22 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 22 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 22 is at least used to store the following computer program 221. After the computer program is loaded and executed by the processor 21, it can implement the steps of the interface display service deployment method disclosed in any of the foregoing embodiments.

[0101] In some embodiments, the electronic device 20 may further include a display screen 23, an input / output interface 24, a communication interface 25, a sensor 26, a power supply 27, and a communication bus 28.

[0102] Those skilled in the art can understand that Figure 6 the structure shown in

[0103] does not limit the electronic device 20, and it may include more or fewer components than those shown in the figure.

[0104] Build a container image for the Vitrage interface display service adapted to Kolla - Ansible, where the Vitrage interface display service is used to display the results obtained from Vitrage analysis; push the container image to the image repository corresponding to the OpenStack environment, and modify the configuration of Kolla - Ansible so that Kolla - Ansible supports the deployment of the Vitrage interface display service; start the container image in the image repository to start the Vitrage interface display service.

[0105] It can be seen that in this application, first, a container image for the Vitrage interface display service adapted to Kolla - Ansible is built, where the Vitrage interface display service is used to display the results obtained from Vitrage analysis. Then, the container image is pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla - Ansible is modified so that Kolla - Ansible supports the deployment of the Vitrage interface display service. Then, the container image in the image repository can be started to start the Vitrage interface display service. Thus, in this application, first, a container image for the Vitrage interface display service adapted to Kolla - Ansible is built, and the Vitrage interface display service is used to display the results obtained from Vitrage analysis so that the Vitrage interface display service can be deployed through Kolla - Ansible. Then, the container image needs to be pushed to the image repository corresponding to the OpenStack environment, and the configuration of Kolla - Ansible needs to be modified so that the configuration of Kolla - Ansible supports the deployment of the Vitrage interface display service. Then, the container image can be started, that is, the Vitrage interface display service can be started. This can enable Vitrage in OpenStack to have a separate interface display service. When the shared interface service in OpenStack fails due to a cluster failure, the separate Vitrage interface display service owned by Vitrage can still be used normally to display the results obtained from Vitrage analysis so that the operation and maintenance personnel can perform operation and maintenance based on the displayed results.

[0106] In this embodiment, when the computer sub - program saved in the computer - readable storage medium is executed by a processor, the following steps can be specifically implemented: select a base image; build a basic environment and install basic compilation packages; install node js and nginx.

[0107] In this embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by a processor, the following steps may be specifically implemented: map the keystone port to access the configuration file of kolla-ansible for information authentication; when the information authentication is passed, map the vitrage port to access the configuration file of kolla-ansible so that the vitrage port can obtain the results obtained by vitrage analysis; modify the configuration address of nginx and compile nodejs; start the vitrage interface display service.

[0108] In this embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by a processor, the following steps may be specifically implemented: add a deployment field for the vitrage interface display service to the target file of kolla-ansible so that kolla-ansible supports the deployment of the vitrage interface display service; add a startup configuration for the container image of the vitrage interface display service under the role directory of kolla-ansible.

[0109] In this embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by a processor, the following steps may be specifically implemented: add the corresponding deployment information of the vitrage interface display service to the global control file, the host file inventory, and the file module entry file of kolla-ansible so that kolla-ansible supports the deployment of the vitrage interface display service.

[0110] In this embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by a processor, the following steps may be specifically implemented: when starting the deployment of the OpenStack cloud platform, determine whether to deploy the vitrage interface display service according to the global control file of kolla-ansible; if the vitrage interface display service is not deployed, directly deploy other services in the OpenStack cloud platform; if the vitrage interface display service is deployed, obtain the container image from the image repository and start the container image.

[0111] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part.

[0112] The steps of the methods or algorithms described in connection with the embodiments disclosed in this specification may be implemented directly in hardware, in software modules executed by a processor, or in a combination thereof. The software modules may be located in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well known in the art.

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

[0114] The above has introduced in detail a method, apparatus, device, and medium for deploying an interface display service provided by this application. Specific examples are used in this specification to illustrate the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation of this application.

Claims

1. An interface display service deployment method, characterized in that, it includes: Construct a container image of the vitrage interface display service adapted to kolla-ansible, where the vitrage interface display service is used to display the results obtained by vitrage analysis; Push the container image to the image repository corresponding to the OpenStack environment, and modify the configuration of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service; Start the container image in the image repository to start the vitrage interface display service; The constructing of the container image of the vitrage interface display service adapted to kolla-ansible includes: Select a base image; Set up a basic environment and install basic compilation packages; Install node js and nginx; The starting of the container image in the image repository includes: Map the keystone port to access the configuration file of the kolla-ansible for information authentication; When the information authentication is passed, map the vitrage port to access the configuration file of the kolla-ansible so that the vitrage port can obtain the results obtained by vitrage analysis; Modify the configuration address of the nginx and compile the node js; Start the vitrage interface display service; The modifying of the configuration of the kolla-ansible includes: Add a deployment field of the vitrage interface display service in the target file of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service; Add a startup configuration of the container image of the vitrage interface display service under the role directory of the kolla-ansible; The adding of the deployment field of the vitrage interface display service in the target file of the kolla-ansible includes: Add the corresponding deployment information of the vitrage interface display service in the global control file, host file list and file module entry file of the kolla-ansible so that the kolla-ansible supports the deployment of the vitrage interface display service; The adding of the corresponding deployment information of the vitrage interface display service in the global control file, host file list and file module entry file of the kolla-ansible includes: Add enable_luna: "yes" in the globals.yml of the global control file of the kolla-ansible, where luna is the name of the vitrage interface display service; Add the luna group to the host file lists multinode and all-in-one of kolla-ansible to specify the nodes for luna service deployment; Add luna-related fields to the file module entry file site.yml of kolla-ansible to include the luna service in the ansible project; Add the startup configuration of the container image of the vitrage interface display service under the role directory role of kolla-ansible; 2. The interface display service deployment method according to claim 1, wherein, starting the container image in the image repository includes: When starting the OpenStack cloud platform deployment, determine whether to deploy the vitrage interface display service according to the global control file of kolla-ansible; If the vitrage interface display service is not deployed, directly deploy other services in the OpenStack cloud platform; If the vitrage interface display service is deployed, obtain the container image from the image repository and start the container image.

3. An interface display service deployment device, wherein, including: An image building module for building a container image of the vitrage interface display service adapted to kolla-ansible, wherein the vitrage interface display service is used to display the results obtained by vitrage analysis; An image pushing module for pushing the container image to the image repository corresponding to the OpenStack environment; A configuration modification module for modifying the configuration of kolla-ansible so that kolla-ansible supports the deployment of the vitrage interface display service; A service startup module for starting the container image in the image repository to start the vitrage interface display service; The image building module is used for: Selecting a base image; Setting up a basic environment and installing basic compilation packages; Installing node js and nginx; The service startup module is used for: Mapping the keystone port to access the configuration file of kolla-ansible for information authentication; When the information authentication is passed, mapping the vitrage port to access the configuration file of kolla-ansible so that the vitrage port can obtain the results obtained by vitrage analysis; Modifying the configuration address of nginx and compiling node js; Starting the vitrage interface display service; The configuration modification module is used for: Adding a deployment field of the vitrage interface display service to the target file of kolla-ansible so that kolla-ansible supports the deployment of the vitrage interface display service; Add the startup configuration of the container image of the Vitrage interface display service under the role directory of kolla-ansible; The configuration modification module is used for: Add the corresponding deployment information of the Vitrage interface display service to the global control file, host file inventory, and file module entry file of kolla-ansible, so that kolla-ansible supports the deployment of the Vitrage interface display service; Specifically, the configuration modification module is used for: add enable_luna: "yes" to the global control file globals.yml of kolla-ansible, where luna is the name of the Vitrage interface display service; Add the luna group to the host file inventory multinode and all-in-one of kolla-ansible to specify the nodes for luna service deployment; Add luna-related fields to the file module entry file site.yml of kolla-ansible to include the luna service in the ansible project; Add the startup configuration of the container image of the Vitrage interface display service under the role directory role of kolla-ansible.

4. An electronic device, characterized in that, comprising: a memory and a processor; wherein, the memory is used to store a computer program; the processor is used to execute the computer program to implement the interface display service deployment method according to any one of claims 1 to 2.

5. A computer-readable storage medium, characterized in that, used to store a computer program, wherein the computer program, when executed by a processor, implements the interface display service deployment method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Container service deployment method, device and equipment and readable storage medium

    CN111736956A