CN113411225B - QGA service management method, device, equipment and medium based on cloud host - Google Patents

QGA service management method, device, equipment and medium based on cloud host Download PDF

Info

Publication number
CN113411225B
CN113411225B CN202110957554.0A CN202110957554A CN113411225B CN 113411225 B CN113411225 B CN 113411225B CN 202110957554 A CN202110957554 A CN 202110957554A CN 113411225 B CN113411225 B CN 113411225B
Authority
CN
China
Prior art keywords
qga
service
cloud host
installation
cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110957554.0A
Other languages
Chinese (zh)
Other versions
CN113411225A (en
Inventor
杨亚伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110957554.0A priority Critical patent/CN113411225B/en
Publication of CN113411225A publication Critical patent/CN113411225A/en
Priority to PCT/CN2021/127503 priority patent/WO2023019736A1/en
Application granted granted Critical
Publication of CN113411225B publication Critical patent/CN113411225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a QGA service management method, a device, equipment and a medium based on a cloud host; in the scheme, whether each cloud host is provided with the QGA service or not can be automatically detected, and the installation information is displayed on a UI (user interface). Before a user executes operation on the cloud host, whether the operation is executed or not can be determined through the displayed installation information, wherein: if the installation information is the installed QGA service, the operation can be executed on the cloud host, and if the installation information is the uninstalled QGA service, the user can execute the operation on the cloud host after the QGA service is installed on the cloud host through the displayed installation prompt, so that the failure of the operation of the cloud host caused by the fact that the QGA service is not installed on the cloud host is avoided.

Description

QGA service management method, device, equipment and medium based on cloud host
Technical Field
The invention relates to the technical field of electronics, in particular to a QGA service management method, device, equipment and medium based on a cloud host.
Background
When a large number of cloud hosts are operated on a cloud platform based on Openstack (open source cloud computing management platform project), for a user to modify passwords, perform snapshot and other operations on the cloud hosts online, the user needs to rely on a QGA service (Qemu-guest-agent, a common application program operated inside a virtual machine), but the user does not determine whether the cloud host installs the QGA service, and when the cloud host does not install the QGA service, operation failure can be caused. At present, whether the QGA service is installed on each cloud host needs to be confirmed through a manual detection mode, a large amount of labor cost is consumed by the detection mode, and the efficiency is low.
Disclosure of Invention
The invention aims to provide a QGA service management method, a device, equipment and a medium based on a cloud host, so as to avoid the failure of cloud host operation caused by the fact that the QGA service is not installed on the cloud host.
In order to achieve the above object, the invention provides a method for managing a QGA service based on a cloud host, comprising:
initiating an installation information acquisition request to libvirt service through Nova-computer service to inquire installation information of cloud hosts on all computing nodes in a cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
displaying the installation information of each cloud host in a corresponding UI page;
if the installation information of the first cloud host is that the QGA service is not installed, an installation prompt is displayed in a UI page of the first cloud host, so that the corresponding QGA service is installed for the first cloud host through the installation prompt.
Wherein, showing an installation prompt in a UI page of the first cloud host includes:
and displaying an active installation prompt and an automatic installation prompt in a UI page of the first cloud host.
Wherein, through the installation suggestion is for the corresponding QGA service of first cloud host installation, include:
if a trigger instruction corresponding to the active installation prompt is received, acquiring a QGA service installation prompt corresponding to an operating system of the first cloud host;
and displaying the QGA service installation prompt in a UI interface so that a user can manually install the QGA service according to the QGA service installation prompt.
Wherein, through the installation suggestion is for the corresponding QGA service of first cloud host installation, include:
and if a trigger instruction corresponding to the automatic installation prompt is received, automatically installing corresponding QGA service in the first cloud host through a QGA installation package matched with the first cloud host.
Wherein the automatically installing the corresponding QGA service in the first cloud host through the QGA installation package matched with the first cloud host comprises:
judging whether a target ISO mirror image of the QGA installation package matched with the first cloud host exists in the Glance mirror image service;
if so, mounting the target ISO mirror image to the first cloud host, and executing an automatic installation script in the first cloud host to install the QGA service;
if the target ISO mirror image does not exist in the cloud platform resource sharing server, the target ISO mirror image is obtained from the cloud platform resource sharing server and is mounted to the first cloud host, and an automatic installation script is executed in the first cloud host to install the QGA service.
Wherein, the method also comprises:
periodically detecting the service state of the QGA service in each cloud host;
and if a second cloud host with an abnormal service state exists, displaying abnormal prompt information of the second cloud host in a UI (user interface) page corresponding to the second cloud host, restarting the QGA service of the second cloud host, and continuously executing the step of periodically detecting the service state of the QGA service in each cloud host.
In order to achieve the above object, the present invention further provides a cloud host based QGA service management apparatus, including:
the acquisition module is used for initiating an installation information acquisition request to the libvirt service through the Nova-computer service so as to inquire the installation information of the cloud hosts on all the computing nodes in the cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
the first display module is used for displaying the installation information of each cloud host in a corresponding UI page;
the second display module is used for displaying an installation prompt in a UI page of the first cloud host if the installation information of the first cloud host is that the QGA service is not installed;
wherein the second display module is specifically configured to: and displaying an active installation prompt and an automatic installation prompt in a UI page of the first cloud host.
And the installation module is used for installing the corresponding QGA service for the first cloud host through the installation prompt.
To achieve the above object, the present invention further provides an electronic device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the QGA service management method based on the cloud host when executing the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the above cloud host based QGA service management method.
According to the scheme, the QGA service management method, the device, the equipment and the medium based on the cloud host provided by the embodiment of the invention are provided; in the scheme, whether the QGA service is installed on each cloud host can be automatically detected, and the installation information is displayed on a UI (user interface), so that before a user performs operation on the cloud host, whether the operation is performed can be determined through the displayed installation information, if the installation information is the installed QGA service, the operation can be performed on the cloud host, if the installation information is the uninstalled QGA service, the installation prompt of the user through display can be performed on the cloud host after the QGA service is installed on the cloud host, and therefore the operation failure of the cloud host caused by the fact that the QGA service is not installed on the cloud host is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for managing a QGA service based on a cloud host according to an embodiment of the present invention;
fig. 2 is a schematic overall flow chart of a QGA service management method disclosed in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cloud host based QGA service management apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a QGA service management method, a device, equipment and a medium based on a cloud host, wherein the QGA service can be detected, installed and monitored more intelligently, particularly, whether the QGA is installed on the cloud host of a cloud platform can be detected, when the QGA service is not installed on the cloud host, a user is prompted on a detail page of the cloud host, and the installation of the QGA service or automatic installation is guided by the installation prompt; in addition, whether the QGA service in the cloud host runs normally or not can be monitored regularly, if the service is abnormal, the service is restarted, the QGA running state is displayed on a cloud platform interface, a user can check the QGA running state conveniently, the maintenance efficiency is improved, and operation failure is avoided.
Referring to fig. 1, a schematic flow diagram of a method for managing a QGA service based on a cloud host provided in an embodiment of the present invention includes:
s101, initiating an installation information acquisition request to a libvirt service through a Nova-computer service to inquire installation information of cloud hosts on all computing nodes in a cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
s102, displaying the installation information of each cloud host in a corresponding UI page;
in this embodiment, a cloud host refers to a complete computer system with complete hardware system functions, which is simulated by software and runs in a completely isolated environment. When the installation information of the QGA service of each cloud host is obtained, an installation information obtaining request is sent to the libvirt service through the Nova-computer service so as to inquire the installation information of the cloud hosts on all computing nodes in a cluster; and updating the database according to the installation information of each cloud host.
Nova is a raw and core component in OpenStack, mainly providing computing services, and managing a virtual machine to respond to a service request made by an OpenStack user. The Nova project is used for interacting with a large number of other OpenStack services and internal components, and Nova must cooperate with each service component to respond to a request of a user to run a virtual machine. Nova-computer service is a computing node service in OpenStack that starts a cloud host, and Libvirt is a service that provides a convenient way to manage a collection of virtual machines and other virtualization functions, such as management of storage and network interfaces. In this scheme, when the Nova-computer service periodically initiates a request to the libvirt service, traverses cloud hosts on all computing nodes in the cluster, and queries whether the cloud hosts install the QGA service, in this embodiment, the process specifically includes: the Nova-computer service issues a request to a libvirt service through a timer, IP splicing is carried out on computing nodes obtained from a Nova database through qemu + tcp, connection with the computing nodes is established to traverse cloud hosts on all the computing nodes in a cluster, root passwords of the cloud hosts are obtained through the Nova database, the cloud hosts on the computing nodes are logged in, whether the QGA service is installed on the cloud hosts on a cloud platform or not is inquired, whether the cloud hosts are installed or not can be judged by executing rpm-qa | grep qemu in the cloud hosts, when a return result indicates that the QGA service is installed on the cloud hosts, and when the return result is empty, the fact that the QGA service is not installed on the cloud hosts is indicated.
Moreover, in this embodiment, a database is also required to be provided, where the database is used to include installation information of the QGA service of each cloud host; therefore, after the installation information is acquired, the database needs to be updated according to the installation information. For example: adding QGA fields in the Nova database instances table, wherein the meaning of the fields indicates whether the cloud host installs the QGA service, triggering to update QGA fields in the Nova database instances table by obtaining a return value in the last step, if the cloud host is found not to install the QGA service, updating the value of the Nova database instances table QGA field to be 0 (indicating that the cloud host does not install the QGA service), if the cloud host is found to install the QGA service, updating the value of the Nova database instances table QGA field to be 1 (indicating that the cloud host installs the QGA service), and returning through the Nova-api service, displaying relevant information on the details page of the cloud host to prompt a user, such as: whether the cloud host is provided with the prompt information of the QGA service or not is prompted, and if the cloud host is not provided with the QGA service, the installation prompt can be displayed. The cloud host detail page is a UI (user interface) interface corresponding to the cloud host, a user can determine whether to execute cloud host operation according to information displayed on the cloud host detail page, and the Nova-api provides a computing service interface for the user on a control node in the OpenStack.
And S103, if the installation information of the first cloud host is that the QGA service is not installed, displaying an installation prompt in a UI page of the first cloud host so as to install the corresponding QGA service for the first cloud host through the installation prompt.
In this embodiment, a host that does not have the QGA service installed is referred to as a first cloud host. In the related scheme, if a large number of cloud hosts on the cloud platform are found without installing the QGA service, the cloud hosts need to be manually installed, and for different operating systems and different versions, the versions for installing the QGA service are different, the installation method is also different, the installation of software also has a certain professional ability requirement on users, although the network is full of a large number of courses for installing the software, the users need to spend a large amount of time trying a feasible method under the condition that the users do not clearly know the software, and thus, the operation of the users is not friendly. Therefore, in the scheme, after the database data is updated, the result is returned through the Nova-api service, the relevant information is displayed in the detail page of the cloud host of the cloud platform, and for the cloud host without the QGA service, the QGA service can be installed by a user in an auxiliary or assisted mode of displaying the installation prompt.
Specifically, in the present embodiment, the installation prompts displayed in the UI page of the first cloud host include an active installation prompt and an automatic installation prompt. If a trigger instruction corresponding to the active installation prompt is received, acquiring a QGA service installation prompt corresponding to an operating system of the first cloud host; and displaying the QGA service installation prompt in a UI interface so that the user can manually install the QGA service according to the QGA service installation prompt. If a trigger instruction corresponding to the automatic installation prompt is received, automatically installing corresponding QGA service in the first cloud host through a QGA installation package matched with the first cloud host, wherein the process specifically comprises the following steps: judging whether a target ISO mirror image of a QGA installation package matched with the first cloud host exists in the Glance mirror image service, if so, mounting the target ISO mirror image to the first cloud host, and executing an automatic installation script in the first cloud host to install the QGA service; and if the target ISO mirror image does not exist in the cloud platform resource sharing server, acquiring the target ISO mirror image from the cloud platform resource sharing server, mounting the target ISO mirror image to the first cloud host, and executing an automatic installation script in the first cloud host to install the QGA service.
That is to say, when the user installs the QGA service, the user may select active installation or automatic installation, and in this embodiment, the active installation prompt and the automatic installation prompt may be displayed in the UI interface in a button manner. If the user wants to actively install the QGA service, clicking a button corresponding to the active installation prompt in a UI (user interface), displaying the QGA service installation prompt after the system receives a trigger instruction sent by the user clicking the button, wherein an installation method corresponding to an operating system of the first cloud host is recorded in the QGA service installation prompt, and the installation method displayed in the QGA service installation prompt can be various, so that the user can select a proper installation method from the installation method to install the QGA service on the first cloud host.
If the user wants to automatically install the QGA service, clicking a button corresponding to the automatic installation prompt in a UI interface, and after receiving a trigger instruction sent by the user clicking the button, triggering the automatic installation of the QGA service logic, such as: firstly, whether an ISO mirror image of a QGA installation package matched with a first cloud host exists in the Glance mirror image service is checked, the mirror image also comprises a QGA installation script, if the ISO mirror image does not exist, the ISO mirror image of the QGA installation package is pulled from a cloud platform resource sharing server and uploaded to the Glance mirror image service, after the operation is completed, the first cloud host is mounted with the ISO mirror image of the QGA installation package in the cloud platform Glance mirror image service, an automatic installation script is executed in the first cloud host to install the QGA service, and the QGA service is started.
If the user selects the automatic installation of the QGA service, the value of the Nova database instances table QGA needs to be updated to 1 after the user is guided to install the QGA service; when the user selects the automatic installation of the QGA service, similarly, after the QGA service is installed, the value of the Nova database instances table QGA needs to be updated to 1. The cloud platform is a cloud computing service platform which is based on hardware resources and software resource services and provides computing, network, storage and other capabilities. The Glance is a set of virtual machine image searching and retrieving system, supports various virtual machine image formats, and has the functions of creating and uploading images, deleting images and editing basic information of the images.
It should be noted that, after the QGA service is installed in the cloud host, some abnormal scenes may also occur, which may cause the QGA service to be turned off or prohibited, and at this time, the user is unaware of the situation, and the user lacks the ability to timely sense the abnormality of the QGA service of the cloud host, and performs operations such as online snapshot on the cloud host, which may also cause operation failure, thus causing great inconvenience to the user in using the cloud platform, and also being not beneficial to popularization of the cloud platform. Therefore, in the present embodiment, the service state of the QGA service in each cloud host may also be periodically detected; and if a second cloud host with an abnormal service state exists, displaying abnormal prompt information of the second cloud host in a UI (user interface) page corresponding to the second cloud host, restarting the QGA service of the second cloud host, and continuously executing the step of periodically detecting the service state of the QGA service in each cloud host.
Specifically, after the QGA service is installed on the cloud host on the cloud platform, timing monitoring QGA state logic can be triggered, a request QGA service is initiated at regular time through Libvirt service to execute a guest-ping instruction, when a return result is null, the QGA service is normal, and when the return result is error, the QGA service is abnormal; when monitoring that the QGA service of the cloud host is abnormal, firstly updating the QGA service abnormality of the cloud host on a cloud platform interface, triggering to restart the QGA service in the cloud host, after the service is restarted, executing a guest-ping instruction by the QGA service, returning a null value to indicate that the service is normal, and updating the QGA service state of the cloud host to be normal on the cloud platform interface, so that the operation failure of a user on the cloud host is avoided.
Referring to fig. 2, an overall flow diagram of a method for managing a QGA service according to an embodiment of the present invention includes: s201: the Nova-computer service issues a request, S202: the Libvirt service detects whether the cloud host is provided with the QGA service; s204: if the QGA service is installed, updating the database; s203: if the QGA service is not installed, updating the database, prompting a user to install the QGA service or automatically installing the QGA service on a UI (user interface), and executing S204 to update the database after the QGA service is installed; s205: triggering and monitoring the QGA service state, S206: and modifying the QGA service state on the UI interface, calling Libvirt service to restart the QGA service if the QGA service state is abnormal, and updating the QGA service state on the UI interface after the QGA service state is normal.
In conclusion, the scheme realizes a more universal cloud platform for automatically detecting whether the cloud host is provided with the QGA service, automatically installing the QGA service and automatically monitoring the QGA service, the Nova-computer service issues a request through a timer, and the Libvirt service automatically detects whether all the cloud hosts on the cloud platform are provided with the QGA service; if the QGA service is not installed, the appropriate QGA installation package mirror image is retrieved from the Glance service and is mounted to the cloud host through matching the system version of the cloud host, and the automatic installation of the QGA in the cloud host is triggered; the method can also be used for periodically initiating a request QGA service to execute a guest-ping instruction through Libvirt to monitor the QGA service state of the cloud host on the cloud platform, displaying the QGA service state in the cloud host details on the cloud platform interface, and restarting the QGA service when the QGA service is found to be abnormal so as to enable the service to be recovered to be normal. It is thus clear that this scheme has increased detection, installation, control QGA mechanism for the cloud platform, can realize automatic patrolling and examining to platform cloud host computer, detects whether the cloud host computer installs QGA service, and automatic installation QGA service and control QGA service in time discover unusually, accomplish visual management, and the user can be early discovery solution problem, has strengthened the robustness of cloud platform, has also brought the improvement to user experience.
In the following, the management apparatus, the device, and the medium according to the embodiments of the present invention are described, and the management apparatus, the device, and the medium described below may be referred to the management method described above.
Referring to fig. 3, an embodiment of the present invention provides a structural schematic diagram of a cloud host-based QGA service management apparatus, including:
the acquisition module 11 is configured to initiate an installation information acquisition request to a libvirt service through a Nova-computer service to query installation information of cloud hosts on all computing nodes in a cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
the first display module 12 is configured to display the installation information of each cloud host in a corresponding UI page;
the second display module 13 is configured to display an installation prompt in a UI page of the first cloud host if the installation information of the first cloud host is that the QGA service is not installed;
and the installation module 14 is configured to install a corresponding QGA service for the first cloud host through the installation prompt.
Wherein, the second display module 13 is specifically configured to: and displaying an active installation prompt and an automatic installation prompt in a UI page of the first cloud host.
Wherein the installation module 14 comprises:
the acquisition unit is used for acquiring a QGA service installation prompt corresponding to the operating system of the first cloud host when receiving a trigger instruction corresponding to the active installation prompt;
and the display unit is used for displaying the QGA service installation prompt in a UI (user interface) so that a user can manually install the QGA service according to the QGA service installation prompt.
Wherein the installation module 14 comprises:
and the automatic installation unit is used for automatically installing the corresponding QGA service in the first cloud host through the QGA installation package matched with the first cloud host when receiving the trigger instruction corresponding to the automatic installation prompt.
Wherein the automatic mounting unit includes:
the judgment subunit is used for judging whether a target ISO mirror image of the QGA installation package matched with the first cloud host exists in the Glance mirror image service;
the installation subunit is used for mounting the target ISO mirror image to the first cloud host when the target ISO mirror image of the QGA installation package matched with the first cloud host exists in the Glance mirror image service, and executing an automatic installation script in the first cloud host to install the QGA service;
the acquisition subunit is configured to acquire a target ISO image from a cloud platform resource sharing server, mount the target ISO image to the first cloud host through the installation subunit, and execute an automated installation script in the first cloud host to perform installation of the QGA service.
Wherein, the device still includes:
the detection module is used for periodically detecting the service state of the QGA service in each cloud host;
the third display module is used for displaying abnormal prompt information of the second cloud host in a UI page corresponding to the second cloud host when the second cloud host with abnormal service state exists;
and the restarting module is used for restarting the QGA service of the second cloud host and continuously triggering the detection module.
Referring to fig. 4, an electronic device according to an embodiment of the present invention includes:
a memory 21 for storing a computer program;
a processor 22, configured to implement the steps of the cloud host based QGA service management method according to the foregoing embodiment when executing the computer program.
In this embodiment, the device may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
The device may include a memory 21, a processor 22, and a bus 23.
The memory 21 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 21 may in some embodiments be an internal storage unit of the device, for example a hard disk of the device. The memory 21 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) Card, Flash memory Card (Flash Card), etc. provided on the device. Further, the memory 21 may also include both an internal storage unit of the device and an external storage device. The memory 21 may be used not only to store application software installed in the device and various types of data such as program codes for executing a management method, etc., but also to temporarily store data that has been output or is to be output.
Processor 22, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, executes program code or processes data stored in memory 21, such as program code for executing management methods.
The bus 23 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the device may further include a network interface 24, and the network interface 24 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used to establish a communication connection between the device and other electronic devices.
Optionally, the device may further comprise a user interface 25, the user interface 25 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 25 may also comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device and for displaying a visualized user interface.
Fig. 4 shows only the device with the components 21-25, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the device, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the cloud host-based QGA service management method according to the foregoing embodiment are implemented.
Wherein the storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A QGA service management method based on a cloud host is characterized by comprising the following steps:
the method comprises the steps that an installation information acquisition request is sent to libvirt service at regular time through Nova-computer service so as to inquire installation information of cloud hosts on all computing nodes in a cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
displaying the installation information of each cloud host in a corresponding UI page;
if the installation information of the first cloud host is that the QGA service is not installed, an installation prompt is displayed in a UI page of the first cloud host, so that the corresponding QGA service is installed for the first cloud host through the installation prompt.
2. The QGA service management method of claim 1, wherein presenting an installation prompt in a UI page of the first cloud host comprises:
and displaying an active installation prompt and an automatic installation prompt in a UI page of the first cloud host.
3. The QGA service management method of claim 2, wherein installing the corresponding QGA service for the first cloud host via the installation hint comprises:
if a trigger instruction corresponding to the active installation prompt is received, acquiring a QGA service installation prompt corresponding to an operating system of the first cloud host;
and displaying the QGA service installation prompt in a UI interface so that a user can manually install the QGA service according to the QGA service installation prompt.
4. The QGA service management method of claim 2, wherein installing the corresponding QGA service for the first cloud host via the installation hint comprises:
and if a trigger instruction corresponding to the automatic installation prompt is received, automatically installing corresponding QGA service in the first cloud host through a QGA installation package matched with the first cloud host.
5. The QGA service management method of claim 4, wherein said automatically installing the corresponding QGA service in the first cloud host through the QGA installation package matched with the first cloud host comprises:
judging whether a target ISO mirror image of the QGA installation package matched with the first cloud host exists in the Glance mirror image service;
if so, mounting the target ISO mirror image to the first cloud host, and executing an automatic installation script in the first cloud host to install the QGA service;
if the target ISO mirror image does not exist in the cloud platform resource sharing server, the target ISO mirror image is obtained from the cloud platform resource sharing server and is mounted to the first cloud host, and an automatic installation script is executed in the first cloud host to install the QGA service.
6. The QGA service management method of any one of claims 1 to 5, further comprising:
periodically detecting the service state of the QGA service in each cloud host;
and if a second cloud host with an abnormal service state exists, displaying abnormal prompt information of the second cloud host in a UI (user interface) page corresponding to the second cloud host, restarting the QGA service of the second cloud host, and continuously executing the step of periodically detecting the service state of the QGA service in each cloud host.
7. A QGA service management device based on a cloud host is characterized by comprising:
the acquisition module is used for initiating an installation information acquisition request to libvirt service at regular time through Nova-computer service so as to inquire the installation information of the cloud host on all the computing nodes in the cluster; updating the database according to the installation information of each cloud host; the installation information includes: installed and uninstalled QGA services;
the first display module is used for displaying the installation information of each cloud host in a corresponding UI page;
the second display module is used for displaying an installation prompt in a UI page of the first cloud host if the installation information of the first cloud host is that the QGA service is not installed;
and the installation module is used for installing the corresponding QGA service for the first cloud host through the installation prompt.
8. The QGA service management device of claim 7, wherein,
the second display module is specifically configured to: and displaying an active installation prompt and an automatic installation prompt in a UI page of the first cloud host.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cloud-host based QGA service management method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, wherein a computer program is stored thereon, and when executed by a processor, the computer program implements the steps of the cloud host-based QGA service management method according to any one of claims 1 to 7.
CN202110957554.0A 2021-08-20 2021-08-20 QGA service management method, device, equipment and medium based on cloud host Active CN113411225B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110957554.0A CN113411225B (en) 2021-08-20 2021-08-20 QGA service management method, device, equipment and medium based on cloud host
PCT/CN2021/127503 WO2023019736A1 (en) 2021-08-20 2021-10-29 Cloud host-based qga service management method and apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110957554.0A CN113411225B (en) 2021-08-20 2021-08-20 QGA service management method, device, equipment and medium based on cloud host

Publications (2)

Publication Number Publication Date
CN113411225A CN113411225A (en) 2021-09-17
CN113411225B true CN113411225B (en) 2021-11-09

Family

ID=77689018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110957554.0A Active CN113411225B (en) 2021-08-20 2021-08-20 QGA service management method, device, equipment and medium based on cloud host

Country Status (2)

Country Link
CN (1) CN113411225B (en)
WO (1) WO2023019736A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411225B (en) * 2021-08-20 2021-11-09 苏州浪潮智能科技有限公司 QGA service management method, device, equipment and medium based on cloud host
CN114697242A (en) * 2022-03-21 2022-07-01 浪潮云信息技术股份公司 Client virtual network card flow management method and system under government affair cloud scene

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046027A (en) * 2019-04-23 2019-07-23 山东超越数控电子股份有限公司 A kind of virtual platform implementation method and virtual platform
CN111258721A (en) * 2020-01-19 2020-06-09 苏州浪潮智能科技有限公司 Cloud host operating system user management method, device, equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638475B (en) * 2011-02-11 2014-12-10 运软网络科技(上海)有限公司 Multi-dimensional intelligent service point virtual desktop method and infrastructure
CN103699430A (en) * 2014-01-06 2014-04-02 山东大学 Working method of remote KVM (Kernel-based Virtual Machine) management system based on J2EE (Java 2 Platform Enterprise Edition) framework
US10171371B2 (en) * 2014-09-30 2019-01-01 International Business Machines Corporation Scalable metering for cloud service management based on cost-awareness
CN110990124B (en) * 2019-12-10 2024-04-12 北京京东尚科信息技术有限公司 Cloud host recovery method and device
CN112003917B (en) * 2020-08-14 2022-12-27 苏州浪潮智能科技有限公司 File storage management method, system, device and medium
CN112099913B (en) * 2020-09-01 2023-12-01 北京思特奇信息技术股份有限公司 Method for realizing virtual machine security isolation based on OpenStack
CN112256348B (en) * 2020-10-23 2023-12-22 北京浪潮数据技术有限公司 Cloud service platform creation method and system, electronic equipment and storage medium
CN112416377B (en) * 2020-11-23 2022-11-25 苏州浪潮智能科技有限公司 Method and device for manufacturing boot image, electronic equipment and storage medium
CN113411225B (en) * 2021-08-20 2021-11-09 苏州浪潮智能科技有限公司 QGA service management method, device, equipment and medium based on cloud host

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046027A (en) * 2019-04-23 2019-07-23 山东超越数控电子股份有限公司 A kind of virtual platform implementation method and virtual platform
CN111258721A (en) * 2020-01-19 2020-06-09 苏州浪潮智能科技有限公司 Cloud host operating system user management method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于QEMU-KVM的桌面云服务端软件架构设计与实现;姚华超;《中国优秀博硕士学位论文全文数据库(硕士)》;20131231;全文 *

Also Published As

Publication number Publication date
CN113411225A (en) 2021-09-17
WO2023019736A1 (en) 2023-02-23

Similar Documents

Publication Publication Date Title
EP2950203B1 (en) Application scenario identification method, power consumption management method and apparatus and terminal device
CN113411225B (en) QGA service management method, device, equipment and medium based on cloud host
CN110086658B (en) Interface switching method and device and computer readable storage medium
EP3819764A2 (en) Service information processing method, apparatus, device and computer storage medium
CN103080902A (en) Information processing apparatus and update process support system
CN104932926A (en) System and method for achieving dynamic matching of equipment and drives in intelligent operation system platform
CN111475172B (en) Bare metal deployment method and device
CN109117153B (en) Application processing method, device, terminal and storage medium
CN110708366A (en) Plug-in process management method, related method and related device
CN111008106B (en) Server monitoring management method and device, electronic equipment and storage medium
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN109857579B (en) Data processing method and related device
JP2007080167A (en) Software resource distribution system and method, and program
CN113672263A (en) Firmware parameter update control method and device and electronic equipment
CN112256351B (en) Method for realizing Feign component, method and device for calling micro-service
US20170199733A1 (en) Method for terminal to update operating system, terminal and system
CN112463549A (en) Auditing method, device and equipment of cloud platform and computer readable storage medium
US10572213B2 (en) Universal application pinning
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN114866517A (en) Installation file execution method and device and storage medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN113656378A (en) Server management method, device and medium
CN109101253B (en) Management method and device for host in cloud computing system
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant