CN114296879B - Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk - Google Patents

Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk Download PDF

Info

Publication number
CN114296879B
CN114296879B CN202111641376.7A CN202111641376A CN114296879B CN 114296879 B CN114296879 B CN 114296879B CN 202111641376 A CN202111641376 A CN 202111641376A CN 114296879 B CN114296879 B CN 114296879B
Authority
CN
China
Prior art keywords
hard disk
cloud hard
creating
opentack
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
CN202111641376.7A
Other languages
Chinese (zh)
Other versions
CN114296879A (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.)
Nantong Smart Software Technology Co ltd
Original Assignee
Nantong Smart Software 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 Nantong Smart Software Technology Co ltd filed Critical Nantong Smart Software Technology Co ltd
Priority to CN202111641376.7A priority Critical patent/CN114296879B/en
Publication of CN114296879A publication Critical patent/CN114296879A/en
Application granted granted Critical
Publication of CN114296879B publication Critical patent/CN114296879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method, a storage medium and a processor for supporting activity detection in a process of creating an opentack cloud hard disk, wherein the method comprises the following steps: s1: adding a monitoring module in the client-volume for monitoring activities of creating a cloud hard disk and downloading; s2: nova initiates a request for creating a cloud hard disk, continuously acquires state information of the cloud hard disk by accessing a client-api, and judges: 1) If the acquired state information of the cloud hard disk is updated relative to the last query result, the cloud hard disk creating process is active, and the timeout timing data are reset; 2) If the acquired state information of the cloud hard disk is not updated relative to the last query result, the active data is not changed, the overtime timing is continuously increased, the step S2 is repeated until the overtime timing exceeds a set threshold, and the cloud hard disk is failed to be established. By setting the monitoring module, the change of the active data in each inquiry is judged, so that the possibility of error timeout can be greatly reduced.

Description

Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk
Technical Field
The invention belongs to the technical field of virtualized computing, and particularly relates to a method, a storage medium and a processor for supporting activity detection in a process of creating an opentack cloud hard disk.
Background
Cloud hard disks are widely accepted and employed in cloud computing virtualization applications as block storage devices that are accessible across nodes. In openstack, we typically create a mirror-based cloud hard disk as the system disk for the virtual machine, creating more blank cloud hard disks as additional disks. When creating a cloud hard disk based on a mirror image, nova needs to wait for the cloud hard disk to be ready before the cloud hard disk can be mounted in a newly created virtual machine.
When creating a virtual machine based on a cloud hard disk, nova needs to wait for a cander to create the cloud hard disk, and the time consumption of this process is difficult to determine because of a relatively large number of factors. In the current software implementation, a time-out duration is set in the nova configuration file, the duration is controlled by a query interval (block_device_allocation_retries) and a maximum number of queries (block_device_allocation_retries_interval), and if the waiting duration exceeds the product of the two, waiting is not continued. When the cloud hard disk creation process is time-consuming, such as slow download image, timeout easily occurs, and virtual machine creation failure is finally caused, as shown in fig. 1.
Aiming at the problems, the traditional solution method mainly comprises the following steps: (1) manually adjusting the query interval and/or the query times; (2) configuring a mirrored disk cache. The time span required by different cloud hard disks and mirror images is greatly different, and the timeout duration is greatly adjusted, so that the due meaning of the timeout duration is lost. The latter is an application that uses space to change time, and is not suitable in some situations, such as space being less abundant, or cloud hard disk being created for the first time based on the mirror image.
Disclosure of Invention
The invention aims to provide a method, a storage medium and a processor for supporting activity detection in a process of creating an opentack cloud hard disk, and solves the technical problem that when a cloud hard disk-based virtual machine is created in the prior art, time-out occurs easily when the cloud hard disk creation process is time-consuming, and finally virtual machine creation failure is caused.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for supporting activity detection in a process of creating an opentack cloud hard disk comprises the following steps:
s1: adding a monitoring module in the client-volume for monitoring activities of creating a cloud hard disk and downloading;
s2: nova initiates a request for creating a cloud hard disk, continuously acquires state information of the cloud hard disk by accessing a client-api, and judges:
1) If the acquired state information of the cloud hard disk is updated relative to the last query result, the cloud hard disk creating process is active, and the timeout timing data are reset;
2) If the acquired state information of the cloud hard disk is not updated relative to the last query result and the active data is not changed, continuously increasing the timeout timer, and repeating the step S2 until the timeout timer exceeds a set threshold value, wherein the cloud hard disk fails to be established; that is, only when the status information is continuously in the creating or downloading state and the active data is not updated, the failure of the whole cloud hard disk creation process is triggered according to the timeout period.
In the invention, after nova initiates a request for creating the cloud hard disk, state information of the cloud hard disk is still acquired by accessing a cander-api, but the cloud hard disk is judged to be failed to be created when the timeout time is equal to the product of the query interval and the query times, but the cloud hard disk is dependent on the keep-alive information. Only when the status is continuous in creating or downloading and the keep-alive information is not updated, the failure of the whole flow is triggered according to the timeout duration. In the case where keep-alive information is continuously updated again, the timer is always reset. This can greatly reduce the possibility of false timeouts and make the setting of the query interval and number of queries more meaningful.
Further optimizing, the monitoring module monitors the progress bar size increase condition of the cloud hard disk download file, and takes the progress bar size increase condition as the activity data; and updating the acquired active data to a database along with the cloud hard disk state information record, wherein nova inquires the acquired information of the cloud hard disk through a cander-api and simultaneously contains the active information.
Further optimizing, wherein the timeout setting threshold is equal to the product of the query interval duration and the number of queries; the query interval duration is a set value.
A computer readable storage medium, the computer readable storage medium comprising a stored program, wherein the computer readable storage medium is controlled to execute the method for supporting the activity detection of the process of creating an opentack cloud hard disk when the program runs.
A processor supporting the detection of the activity of the process of creating an opentack cloud hard disk, wherein the processor is used for running a program, and the method supporting the detection of the activity of the process of creating the opentack cloud hard disk is executed when the program runs.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects:
according to the cloud hard disk management method and device, the monitoring module is arranged, after nova initiates a request for creating the cloud hard disk, state information of the cloud hard disk is still acquired through accessing the cander-api, but the cloud hard disk is judged to be failed to be created when the timeout duration is equal to the product of the query interval and the query times, and the cloud hard disk is dependent on the keep-alive information. Only when the status is continuous in creating or downloading and the keep-alive information is not updated, the failure of the whole flow is triggered according to the timeout duration. In the case where keep-alive information is continuously updated again, the timer is always reset. This can greatly reduce the possibility of false timeouts and make the setting of the query interval and number of queries more meaningful.
Drawings
FIG. 1 is a schematic flow chart of creating an opentack cloud hard disk side in the prior art;
FIG. 2 is a schematic flow chart of a method for supporting activity detection in the process of creating an opentack cloud hard disk;
fig. 3 is a flowchart supporting creation of an openstack cloud hard disk according to 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 accompanying drawings in the embodiments of the present invention.
Embodiment one:
as shown in fig. 2 and 3, a method for supporting activity detection in a process of creating an openstack cloud hard disk includes the following steps:
s1: a monitor module (monitor) is added in the client-volume for monitoring the activity of creating cloud hard disk and downloading process. Specifically, the volume change of the target output is detected according to the different rear end drives. As the download process, the size increase of the temporary download file is checked as the active data. The server-volume is a service deployed on a storage node, and the main function of the server-volume is to perform one-layer abstract encapsulation on the back-end storage, provide a unified interface for a user, and perform storage-related operations by calling a back-end storage drive API.
S2: nova initiates a request for creating a cloud hard disk, continuously acquires state information of the cloud hard disk by accessing a client-api, and judges:
1) If the acquired state information of the cloud hard disk is updated relative to the last query result, the cloud hard disk creating process is active, and the timeout timing data are reset;
2) If the acquired state information of the cloud hard disk is not updated relative to the last query result and the active data is not changed, continuously increasing the timeout timer, and repeating the step S2 until the timeout timer exceeds a set threshold value, wherein the cloud hard disk fails to be established; that is, only when the status information is continuously in the creating or downloading state and the active data is not updated, the failure of the whole cloud hard disk creation process is triggered according to the timeout period. This shows that the actual cloud hard disk creation process is stalled for a long time, and the timeout mechanism works in this case, avoiding unnecessary waiting for a long time.
In the invention, after nova initiates a request for creating the cloud hard disk, state information of the cloud hard disk is still acquired by accessing a cander-api, but the cloud hard disk is judged to be failed to be created when the timeout time is equal to the product of the query interval and the query times, but the cloud hard disk is dependent on the keep-alive information. Only when the status is continuous in creating or downloading and the keep-alive information is not updated, the failure of the whole flow is triggered according to the timeout duration. In the case where keep-alive information is continuously updated again, the timer is always reset. This can greatly reduce the possibility of false timeouts and make the setting of the query interval and number of queries more meaningful.
In this embodiment, the monitoring module monitors the progress bar size increase condition of the cloud hard disk download file, and uses the progress bar size increase condition as the activity data; and updating the acquired active data to a database along with the cloud hard disk state information record, wherein nova inquires the acquired information of the cloud hard disk through a cander-api and simultaneously contains the active information.
In this embodiment, the timeout threshold is equal to a product of the query interval duration and the number of queries; the query interval duration is a set value.
Embodiment two:
a computer readable storage medium, the computer readable storage medium comprising a stored program, wherein the computer readable storage medium is controlled to execute the method for supporting the activity detection of the process of creating an opentack cloud hard disk when the program runs.
Embodiment III:
a processor supporting the detection of the activity of the process of creating an opentack cloud hard disk, wherein the processor is used for running a program, and the method supporting the detection of the activity of the process of creating the opentack cloud hard disk is executed when the program runs.
The above examples are given for clarity of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (4)

1. A method for supporting activity detection in a process of creating an opentack cloud hard disk is characterized by comprising the following steps:
s1: adding a monitoring module in the client-volume for monitoring activities of creating a cloud hard disk and downloading;
s2: nova initiates a request for creating a cloud hard disk, continuously acquires state information of the cloud hard disk by accessing a client-api, and judges:
1) If the acquired state information of the cloud hard disk is updated relative to the last query result, the cloud hard disk creating process is active, and the timeout timing data are reset;
2) If the acquired state information of the cloud hard disk is not updated relative to the last query result and the active data is not changed, continuously increasing the timeout timer, and repeating the step S2 until the timeout timer exceeds a set threshold value, wherein the cloud hard disk fails to be established; that is, only when the status information is continuously in creating or downloading and the active data is not updated, the failure of the whole cloud hard disk creation process is triggered according to the timeout period;
the monitoring module monitors the size increase condition of a progress bar of the cloud hard disk download file, and takes the progress bar as active data; and updating the acquired active data to a database along with the cloud hard disk state information record, wherein nova inquires the acquired information of the cloud hard disk through a cander-api and simultaneously contains the active information.
2. The method for supporting activity detection in creating an opentack cloud hard disk according to claim 1, wherein the timeout setting threshold is equal to a product of a query interval duration and a number of queries; the query interval duration is a set value.
3. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the device in which the computer readable storage medium is controlled to execute the method for supporting the activity detection of the process of creating an openstack cloud hard disk according to any one of claims 1-2 when the program runs.
4. A processor supporting the detection of the activity of a process for creating an opentack cloud hard disk, wherein the processor is configured to run a program, and wherein the program runs the method supporting the detection of the activity of a process for creating an opentack cloud hard disk according to any one of claims 1-2.
CN202111641376.7A 2021-12-30 2021-12-30 Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk Active CN114296879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111641376.7A CN114296879B (en) 2021-12-30 2021-12-30 Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111641376.7A CN114296879B (en) 2021-12-30 2021-12-30 Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk

Publications (2)

Publication Number Publication Date
CN114296879A CN114296879A (en) 2022-04-08
CN114296879B true CN114296879B (en) 2023-10-24

Family

ID=80972448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111641376.7A Active CN114296879B (en) 2021-12-30 2021-12-30 Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk

Country Status (1)

Country Link
CN (1) CN114296879B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107346217A (en) * 2017-07-17 2017-11-14 郑州云海信息技术有限公司 A kind of cloud hard disk management method, cloud computing management platform and virtual platform
CN109407992A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus for creating cloud hard disk
CN111885169A (en) * 2020-07-24 2020-11-03 北京浪潮数据技术有限公司 Method, system and device for realizing high availability of cloud hard disk service
CN111901385A (en) * 2020-06-30 2020-11-06 广东浪潮大数据研究有限公司 Cloud hard disk speed limiting method, system and device and computer readable storage medium
CN112463248A (en) * 2020-11-24 2021-03-09 苏州浪潮智能科技有限公司 Method for mounting and dismounting cloud hard disk based on OpenStack cloud platform
CN113254247A (en) * 2021-05-14 2021-08-13 山东英信计算机技术有限公司 Server BMC I2C exception recovery method and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9645839B2 (en) * 2010-10-27 2017-05-09 Microsoft Technology Licensing, Llc Stateful applications operating in a stateless cloud computing environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107346217A (en) * 2017-07-17 2017-11-14 郑州云海信息技术有限公司 A kind of cloud hard disk management method, cloud computing management platform and virtual platform
CN109407992A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus for creating cloud hard disk
CN111901385A (en) * 2020-06-30 2020-11-06 广东浪潮大数据研究有限公司 Cloud hard disk speed limiting method, system and device and computer readable storage medium
CN111885169A (en) * 2020-07-24 2020-11-03 北京浪潮数据技术有限公司 Method, system and device for realizing high availability of cloud hard disk service
CN112463248A (en) * 2020-11-24 2021-03-09 苏州浪潮智能科技有限公司 Method for mounting and dismounting cloud hard disk based on OpenStack cloud platform
CN113254247A (en) * 2021-05-14 2021-08-13 山东英信计算机技术有限公司 Server BMC I2C exception recovery method and related device

Also Published As

Publication number Publication date
CN114296879A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US10877940B2 (en) Data storage with a distributed virtual array
JP4768497B2 (en) Moving data in storage systems
US7886114B2 (en) Storage controller for cache slot management
US7640409B1 (en) Method and apparatus for data migration and failover
US20170046152A1 (en) Firmware update
US7383290B2 (en) Transaction processing systems and methods utilizing non-disk persistent memory
US10430082B2 (en) Server management method and server for backup of a baseband management controller
JP2003162439A (en) Storage system and control method therefor
US20090177837A1 (en) Methods and apparatus for managing hdd's spin-down and spin-up in tiered storage systems
JP2006302273A (en) Virtually unlimited storage
WO2014168913A1 (en) Database management system with database hibernation and bursting
US11675611B2 (en) Software service intervention in a computing system
US7171583B2 (en) For PPRC backup systems
EP2981920A1 (en) Detection of user behavior using time series modeling
US11934665B2 (en) Systems and methods for ephemeral storage snapshotting
US10114754B1 (en) Techniques for space reservation in a storage environment
US10296218B2 (en) Update control method, update control apparatus, and storage medium
CN114296879B (en) Method, storage medium and processor for supporting activity detection in process of creating opentack cloud hard disk
US9298397B2 (en) Nonvolatile storage thresholding for ultra-SSD, SSD, and HDD drive intermix
CN113220650A (en) Data storage method, device, apparatus, storage medium, and program
US11941030B2 (en) Methods for hierarchical propagation in tree structures and devices thereof
US20230385159A1 (en) Systems and methods for preventing data loss
CN114237811A (en) Slimming client server virtualization method and virtual slimming client server
JP6788188B2 (en) Control device and control program
EP3094055B1 (en) Data storage with a distributed virtual array

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