[go: up one dir, main page]

CN111083160A - Resource information recovery method and device - Google Patents

Resource information recovery method and device Download PDF

Info

Publication number
CN111083160A
CN111083160A CN201911382305.2A CN201911382305A CN111083160A CN 111083160 A CN111083160 A CN 111083160A CN 201911382305 A CN201911382305 A CN 201911382305A CN 111083160 A CN111083160 A CN 111083160A
Authority
CN
China
Prior art keywords
resource information
resource
information
identifier
target equipment
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.)
Pending
Application number
CN201911382305.2A
Other languages
Chinese (zh)
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911382305.2A priority Critical patent/CN111083160A/en
Publication of CN111083160A publication Critical patent/CN111083160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a resource information recovery method and device, which can improve recovery efficiency. The resource information recovery method is applied to a cloud platform and comprises the following steps: when resource information needs to be recovered, acquiring resource information to be processed from target equipment, and forming a resource information set by the acquired resource information and resource identifications corresponding to the resource information; acquiring a set identifier-information corresponding relation, wherein the identifier-information corresponding relation records a resource identifier of the configured resource information in the cloud platform and resource information which is corresponding to the resource identifier and is to be configured in the target equipment; and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.

Description

Resource information recovery method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for recovering resource information.
Background
In a cloud platform such as an OpenStack, some network services such as services including a network, a subnet, a route and the like are integrated, and meanwhile, a user management interface is provided, a user can configure network resources through the user management interface, and after configuration is completed, configured resource information needs to be issued to devices for implementing network configuration such as an SDN controller, a firewall device and the like, so as to further implement network configuration according to the resource information.
However, there is a possibility that resource information in a device such as an SDN controller or a firewall device is lost or modified, which may cause inconsistency between the device such as the SDN controller or the firewall device and the resource information configured in the cloud platform, which may cause an abnormality in the configured network, and therefore, there is a need to solve the inconsistency.
Generally, when resource information configured in an SDN controller, a firewall device, or other devices is wrong or missing, a user needs to manually perform troubleshooting and recovery, the troubleshooting time is long, so that the recovery efficiency is low, and a service interruption or an unexpected effect may be caused for too long time.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for recovering resource information, which can improve the recovery efficiency.
The invention provides a resource information recovery method, which is applied to a cloud platform and comprises the following steps:
when resource information needs to be recovered, acquiring resource information to be processed from target equipment, and forming a resource information set by the acquired resource information and resource identifications corresponding to the resource information;
acquiring a set identifier-information corresponding relation, wherein the identifier-information corresponding relation records a resource identifier of the configured resource information in the cloud platform and resource information which is corresponding to the resource identifier and is to be configured in the target equipment;
and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.
According to an embodiment of the invention, the method further comprises: when a resource synchronization request is received, determining that resource information needs to be recovered, wherein the resource synchronization request carries at least one appointed resource identifier;
acquiring resource information to be processed from target equipment, wherein the resource information comprises the following steps: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
According to an embodiment of the present invention, recovering resource information of the target device according to the resource information set and the identifier-information correspondence includes:
aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
In accordance with one embodiment of the present invention,
the resource information set comprises all configured resource information in the target equipment and resource identifications corresponding to the resource information;
and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation, wherein the resource information recovery comprises the following steps:
searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
According to an embodiment of the present invention, recovering the resource information of the target device according to the resource information set and the identifier-information correspondence, further includes:
and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
A second aspect of the present invention provides a resource information recovery apparatus, which is applied to a cloud platform, and includes:
the resource information acquisition module is used for acquiring resource information to be processed from the target equipment when resource information needs to be recovered, and forming a resource information set by the acquired resource information and the resource identifier corresponding to the resource information;
a corresponding relation obtaining module, configured to obtain a set identifier-information corresponding relation, where the identifier-information corresponding relation records a resource identifier of resource information configured in the cloud platform and resource information to be configured in the target device corresponding to the resource identifier;
and the resource information recovery module is used for recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.
According to an embodiment of the invention, the apparatus further comprises: a recovery determining module, configured to determine that resource information recovery is required when a resource synchronization request is received, where the resource synchronization request carries at least one specified resource identifier;
the resource information obtaining module is specifically configured to, when obtaining resource information to be processed from a target device: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
According to an embodiment of the present invention, when the resource information recovery module recovers the resource information of the target device according to the resource information set and the identifier-information correspondence, the resource information recovery module is specifically configured to:
aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
In accordance with one embodiment of the present invention,
the resource information set comprises all configured resource information in the target equipment and resource identifications corresponding to the resource information;
the resource information recovery module is specifically configured to, when performing resource information recovery on the target device according to the resource information set and the identifier-information correspondence:
searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
According to an embodiment of the present invention, when the resource information recovery module recovers the resource information of the target device according to the resource information set and the identifier-information correspondence, the resource information recovery module is further configured to:
and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the cloud platform acquires the resource information set and the identification-information corresponding relation, wherein the resource information set comprises resource information acquired from the target equipment and resource identification corresponding to the resource information, the resource identification of the resource information configured in the cloud platform and the resource information to be configured in the target equipment corresponding to the resource identification are recorded in the identification-information corresponding relation, and the resource information recovery can be automatically performed on the target equipment according to the resource information set and the identification-information corresponding relation, so that the resource information actually configured by the target equipment is the same as the resource information to be configured, the resource information synchronization of the target equipment and the cloud platform is realized, the recovery efficiency of the resource information is improved, and the time of service interruption or failure to meet the expected effect is shortened.
Drawings
FIG. 1 is a flowchart illustrating a resource information recovery method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application scenario of an embodiment of the present invention;
fig. 3 is a block diagram of a resource information recovery apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various ports, this information should not be limited to these terms. These terms are only used to distinguish one type of device from another. For example, a first port may also be referred to as a second port, and similarly, a second port may also be referred to as a first port, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to make the description of the present invention clearer and more concise, some technical terms in the present invention are explained below:
SDN: a software defined network, a novel network innovation architecture, is an implementation mode of network virtualization, and realizes flexible control of network flow by separating a control plane and a data plane of network equipment.
OpenStack: an open source cloud computing management platform is combined by several main components to complete specific work, and provides an infrastructure as a service (IaaS) solution through various complementary services.
Neutron: the core component in OpenStack for providing network services provides abstractions of networks, subnets and routing objects, each abstraction can implement a corresponding service, and according to network configuration, a corresponding physical device can be simulated: the network comprises sub-networks, and the route is routed and forwarded between different sub-networks and networks.
Restful Api: an interface is provided, and each component in OpenStack can realize corresponding functions by calling Restful Api. In the embodiment of the present invention, the SDN controller and the firewall device may also integrate a Restful Api as a resource calling interface of the SDN controller and the firewall device.
Agent: and the service agent component of OpenStack is responsible for distributing the messages.
Driver: and the driver component of the OpenStack is responsible for calling the required resources.
The resource information recovery method according to the embodiment of the present invention is described in more detail below, but should not be limited thereto.
In one embodiment, referring to fig. 1, a resource information recovery method applied to a cloud platform may include the following steps:
s100: when resource information needs to be recovered, acquiring resource information to be processed from target equipment, and forming a resource information set by the acquired resource information and resource identifications corresponding to the resource information;
s200: acquiring a set identifier-information corresponding relation, wherein the identifier-information corresponding relation records a resource identifier of the configured resource information in the cloud platform and resource information which is corresponding to the resource identifier and is to be configured in the target equipment;
s300: and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.
The resource information recovery method of the embodiment of the invention can be applied to a cloud platform, and the cloud platform can be OpenStack, for example. More specifically, the resource information recovery method according to the embodiment of the present invention may be applied to Neutron in a cloud platform, that is, the resource information recovery method according to the embodiment of the present invention is executed by Neutron.
In the following embodiment, the cloud platform is taken as an OpenStack for illustration, but should not be taken as a limitation.
Firewall plug-in (firewall plug in) can be loaded in OpenStack for realizing the function of a firewall, and meanwhile, the connection of the firewall equipment of OpenStack to a cloud environment can be realized, so that the cloud of the firewall equipment is realized.
OpenStack can register rpc remote invocation service when loading firewall plug-ins, which rpc service can be used to receive rpc sync requests to synchronize the target device and return sync status. Since resource information recovery may require a period of time, in order to make OpenStack aware of recovery, the sync initiator rpc may periodically acquire a synchronization state from the sync peer, for example, if the synchronization state is not complete, it indicates that resource information recovery is not complete.
The user can configure the resource information in the OpenStack through the user management interface, and after the configuration of the resource information is completed, the configured resource information is issued to the target device and further implemented into the physical device to implement the network configuration. However, there is a possibility that a problem of missing or rewriting resource information occurs in the target device, resulting in an abnormality in the configured network.
The embodiment of the invention can find the problem that the resource information in the target equipment is lost or rewritten in time and repair the resource information of the target equipment to overcome the problem. Furthermore, the configured network can be recovered to normal as soon as possible.
Optionally, referring to fig. 2, the target device may be an SDN controller 21 or a firewall device 22 (an entity device), and the cloud platform 10 may perform resource information recovery for the SDN controller 21 or the firewall device 22 separately, or may perform resource information recovery for the SDN controller 21 and the firewall device 22 at the same time. Certainly, the target device is not limited to this, and other devices that need to implement resource information synchronization with the cloud platform may also be used.
In step S100, when resource information needs to be recovered, resource information to be processed is acquired from the target device, and the acquired resource information and a resource identifier corresponding to the resource information are combined into a resource information set.
Resource information recovery may be triggered manually, or automatically on a timed basis. The manual trigger may be: when receiving the resource synchronization request, triggering resource information recovery, namely determining that the resource information recovery is needed. The timed auto-trigger may be: and setting a trigger period, and triggering resource information recovery when the trigger time is reached every time, namely determining that the resource information recovery is required.
The manual trigger may be decided by the user when to trigger, such as may be triggered when a network anomaly is discovered. The timed automatic trigger may be selected to be triggered in a time period when the server is not busy or the user does not operate, for example, the timed automatic trigger may be triggered in the middle of the night every day, although the recovery period is not particularly limited.
Neutron in OpenStack can acquire resource information to be processed from a target device through a Restful Api. The resource information to be processed may be selected resource information, that is, part of resource information is selected from the configured resource information in the target device to obtain the resource information (of course, it is also possible to select the resource information that is just missing in the target device, and in this case, the resource information is not obtained). The resource information to be processed may also be full resource information, that is, all resource information configured in the target device is obtained.
Each piece of resource information has a corresponding resource identifier, and when the resource information is acquired, the resource identifiers corresponding to the resource information can be acquired together. And forming a resource information set by the resource information acquired from the target equipment and the resource identifier corresponding to the resource information.
In general, the resource information set includes at least one piece of resource information, but in an extreme case, for example, in the case of acquiring the selected resource information, the target device just lacks the resource information to be acquired, and at this time, the resource information is not acquired, that is, the resource information does not exist in the resource information set.
The resource information is specifically network resource information, and may include configuration data related to resources such as a route, a gateway, a subnet, qos (Quality of service), l2 (two-layer forwarding), l3 (three-layer forwarding), vpc (virtual private cloud), floating ip (internet protocol), and a virtual firewall.
Each piece of resource information may contain one or more pieces of resource configuration data, and taking a gateway as an example, the corresponding piece of resource information may include a routing policy, a source network address translation policy, and the like.
The resource identifier may be a name or a number of the resource information, as long as the resource information can be uniquely identified.
In step S200, a set identifier-information correspondence is obtained, where a resource identifier of the resource information configured in the cloud platform and resource information to be configured in the target device corresponding to the resource identifier are recorded in the identifier-information correspondence.
Neutron in OpenStack can obtain the identification-information correspondence from OpenStack through Restful Api. The identifier-information correspondence records a resource identifier of the configured resource information in the OpenStack and resource information to be configured in the target device corresponding to the resource identifier.
Since the number of the target devices may be one or more, when there are multiple target devices, the configured resource information in the OpenStack includes resource information that should be configured by the multiple target devices, and the resource information that should be configured by different target devices may share one identifier-information correspondence.
Taking two target devices as an SDN controller and a firewall device as an example, the identifier-information correspondence may record a resource identifier of resource information configured in the cloud platform, resource information to be configured in the SDN controller corresponding to the resource identifier, and resource information to be configured in the firewall device corresponding to the resource identifier.
Of course, the present invention is not limited thereto, and different identifier-information correspondence relationships may be used for resource information to be configured by different target devices.
In step S300, resource information recovery is performed on the target device according to the resource information set and the identifier-information correspondence.
The identification-information corresponding relation records the resource information which is required to be configured by the target equipment, and the resource information set comprises the resource information which is already configured by the target equipment, so that whether the resource information which is actually configured by the target equipment is the same as the resource information which is required to be configured can be automatically checked according to the resource information set and the identification-information corresponding relation, the corresponding resource information is found through the resource identification during checking, and the resource recovery is carried out on the target equipment when the resource information which is actually configured in the target equipment is not the same as the resource information which is required to be configured, so that the resource information of the target equipment and the resource information of the cloud platform are synchronized.
In the embodiment of the invention, the cloud platform acquires the resource information set and the identification-information corresponding relation, wherein the resource information set comprises resource information acquired from the target equipment and resource identification corresponding to the resource information, the resource identification of the resource information configured in the cloud platform and the resource information to be configured in the target equipment corresponding to the resource identification are recorded in the identification-information corresponding relation, and the resource information recovery can be automatically performed on the target equipment according to the resource information set and the identification-information corresponding relation, so that the resource information actually configured by the target equipment is the same as the resource information to be configured, the resource information synchronization of the target equipment and the cloud platform is realized, the recovery efficiency of the resource information is improved, and the time of service interruption or failure to meet the expected effect is shortened.
In one embodiment, the method further comprises: when a resource synchronization request is received, determining that resource information needs to be recovered, wherein the resource synchronization request carries at least one appointed resource identifier;
in step S100, acquiring resource information to be processed from the target device includes: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
And determining that resource information recovery is required according to the resource synchronization request, namely triggering resource information recovery in a manual triggering mode. In addition, the resource synchronization request carries at least one specified resource identifier, that is, the user can select the resource information to be checked.
For example, when a user finds a network anomaly, a resource synchronization request may be input in OpenStack to trigger resource information recovery, where a specified resource identifier carried in the resource synchronization request may be determined according to the network anomaly, for example, if the network anomaly indicates that a route is in problem, the specified resource identifier carried in the resource synchronization request may be a resource identifier of resource information related to the route.
When the resource information is acquired from the target device, only the resource information corresponding to the specified resource identifier needs to be acquired. Of course, if the resource information is missing, the resource information may not be acquired or all of the required resource information may not be acquired.
The resource information is selected by the user for checking and recovering, so that the data volume compared in the checking process can be reduced, the checking efficiency can be improved, and the recovery efficiency can be improved.
In an embodiment, in step S300, recovering the resource information of the target device according to the resource information set and the identifier-information correspondence may include the following steps:
s301: aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
s302: if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
s303: if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
In this embodiment, only the resource information selected by the user is checked and recovered.
If the first resource information corresponding to the specified resource identifier does not exist in the resource information set, it is indicated that the resource information corresponding to the specified resource identifier is missing in the target device, so that second resource information corresponding to the specified resource identifier needs to be acquired from the identifier-information correspondence, the second resource information is resource information to be configured by the target device corresponding to the specified resource identifier, the second resource information is issued to the target device, and the target device configures the second resource information locally after receiving the second resource information.
If first resource information corresponding to the specified resource identifier exists in the resource information set, it is indicated that the resource information corresponding to the specified resource identifier is not lost in the target device, but if the first resource information is different from second resource information corresponding to the specified resource identifier in the identifier-information corresponding relationship, it is indicated that the resource information corresponding to the specified resource identifier in the target device is modified, so that the resource information needs to be updated, the second resource information is issued to the target device, and after the target device receives the second resource information, the configured first resource information is replaced by the second resource information.
The Driver can be called by an Agent in the OpenStack, and RestfulApi of the target device is called by the Driver, so that the second resource information is issued to the target device. When the second resource information is issued to the target device, the resource identifier corresponding to the second resource information may be sent together, so that the target device may store the resource identifier corresponding to the second resource information.
In this embodiment, by comparing the resource information corresponding to the specified resource identifier in the identifier-information correspondence with the resource information in the resource information set, missing or modified resource information in the selected resource information range in the target device is checked, so that the repair of this part of information is achieved in a targeted manner, and the compared data amount can be reduced.
In one embodiment, the resource information set includes all resource information configured in the target device and resource identifiers corresponding to the resource information;
in step S300, recovering the resource information of the target device according to the resource information set and the identifier-information correspondence may include the following steps:
s304: searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
s305: if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
s306: if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
Different from the previous embodiment, in the present embodiment, all resource information configured by the target device is checked and recovered.
If the third resource information corresponding to the resource identifier does not exist in the resource information set, it is indicated that the resource information corresponding to the resource identifier is missing in the target device, so that fourth resource information corresponding to the resource identifier needs to be acquired from the identifier-information correspondence, the fourth resource information is resource information to be configured by the target device corresponding to the resource identifier, the fourth resource information is issued to the target device, and the target device configures the fourth resource information locally after receiving the fourth resource information.
If the third resource information corresponding to the resource identifier exists in the resource information set, it is indicated that the resource information corresponding to the resource identifier is not missing in the target device, but if the third resource information is different from the fourth resource information corresponding to the resource identifier in the identifier-information correspondence, it is indicated that the resource information corresponding to the resource identifier in the target device is modified, so that the resource information needs to be updated, the fourth resource information is issued to the target device, and after the target device receives the fourth resource information, the configured third resource information is replaced by the fourth resource information.
The Driver can be called by an Agent in the OpenStack, and RestfulApi of the target device is called by the Driver, so that the fourth resource information is issued to the target device. When the fourth resource information is issued to the target device, the resource identifier corresponding to the fourth resource information may be sent together, so that the target device may store the resource identifier corresponding to the fourth resource information.
In this embodiment, all missing or modified resource information in the target device is checked by comparing the resource information corresponding to all resource identifiers in the identifier-information correspondence with the resource information in the resource information set, so as to implement the restoration of the full amount of resource information.
In an embodiment, in step S300, recovering the resource information of the target device according to the resource information set and the identifier-information correspondence, further includes the following steps:
s307: and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
Since the resource identifier in the resource information set is the resource identifier corresponding to the resource information acquired from the target device, that is, the resource information corresponding to the resource identifier in the resource information set is already configured in the target device, and if the resource information corresponding to the resource identifier does not exist in the identifier-information correspondence, it is indicated that the resource information corresponding to the resource identifier already configured in the target device is redundant, at this time, the target device may be notified to delete the fifth resource information corresponding to the resource identifier already configured.
An Agent in the OpenStack may be used to send a deletion instruction, the deletion instruction may carry a resource identifier corresponding to the fifth resource information, and the target device deletes the fifth resource information after receiving the deletion instruction.
In this embodiment, configured redundant resource information in the target device may be checked, and network anomaly caused by the redundant resource information may be avoided.
Optionally, in the whole checking and repairing process, information related to missing, modified or redundant resource information in the target device, such as behavior information including acquisition and comparison of the resource information, may be recorded through the first log; the information of resource information recovery for the target device through the second log record may include, for example, recovered resource information, information of whether recovery was successful, total time of recovery, and the like.
Thereafter, the cause of the network abnormality due to the absence, modification, or the like can be analyzed from the first log. In addition, partial resource information has dependency, when recovery fails, the dependency relationship can be quickly analyzed according to the second log, the troubleshooting speed is improved, and the related information can be informed to a user.
The present invention further provides a resource information recovery apparatus, which is applied to a cloud platform, and in an embodiment, referring to fig. 3, the resource information recovery apparatus 100 includes:
a resource information obtaining module 101, configured to obtain resource information to be processed from a target device when resource information needs to be recovered, and form a resource information set by the obtained resource information and a resource identifier corresponding to the resource information;
a corresponding relationship obtaining module 102, configured to obtain a set identifier-information corresponding relationship, where the identifier-information corresponding relationship records a resource identifier of resource information configured in the cloud platform and resource information to be configured in the target device corresponding to the resource identifier;
and the resource information recovery module 103 is configured to perform resource information recovery on the target device according to the resource information set and the identifier-information correspondence.
In one embodiment, the apparatus further comprises: a recovery determining module, configured to determine that resource information recovery is required when a resource synchronization request is received, where the resource synchronization request carries at least one specified resource identifier;
the resource information obtaining module is specifically configured to, when obtaining resource information to be processed from a target device: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
In an embodiment, when the resource information recovery module recovers the resource information of the target device according to the resource information set and the identifier-information correspondence, the resource information recovery module is specifically configured to:
aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
In one embodiment of the present invention,
the resource information set comprises all configured resource information in the target equipment and resource identifications corresponding to the resource information;
the resource information recovery module is specifically configured to, when performing resource information recovery on the target device according to the resource information set and the identifier-information correspondence:
searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
In an embodiment, when the resource information recovery module recovers the resource information of the target device according to the resource information set and the identifier-information correspondence, the resource information recovery module is further configured to:
and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units.
The present invention also provides a machine-readable storage medium on which a program is stored, which, when executed by a processor, implements the resource information recovery method as described in the foregoing embodiments.
The present invention may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, having program code embodied therein. Machine-readable storage media include both permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A resource information recovery method is applied to a cloud platform and comprises the following steps:
when resource information needs to be recovered, acquiring resource information to be processed from target equipment, and forming a resource information set by the acquired resource information and resource identifications corresponding to the resource information;
acquiring a set identifier-information corresponding relation, wherein the identifier-information corresponding relation records a resource identifier of the configured resource information in the cloud platform and resource information which is corresponding to the resource identifier and is to be configured in the target equipment;
and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.
2. The method for recovering resource information of claim 1, further comprising: when a resource synchronization request is received, determining that resource information needs to be recovered, wherein the resource synchronization request carries at least one appointed resource identifier;
acquiring resource information to be processed from target equipment, wherein the resource information comprises the following steps: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
3. The method for recovering resource information according to claim 2, wherein recovering resource information of the target device according to the resource information set and the identifier-information correspondence includes:
aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
4. The resource information recovery method of claim 1,
the resource information set comprises all configured resource information in the target equipment and resource identifications corresponding to the resource information;
and recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation, wherein the resource information recovery comprises the following steps:
searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
5. The method for recovering resource information according to claim 3 or 4, wherein the resource information recovery is performed on the target device according to the resource information set and the identifier-information correspondence, further comprising:
and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
6. A resource information recovery device is applied to a cloud platform, and comprises:
the resource information acquisition module is used for acquiring resource information to be processed from the target equipment when resource information needs to be recovered, and forming a resource information set by the acquired resource information and the resource identifier corresponding to the resource information;
a corresponding relation obtaining module, configured to obtain a set identifier-information corresponding relation, where the identifier-information corresponding relation records a resource identifier of resource information configured in the cloud platform and resource information to be configured in the target device corresponding to the resource identifier;
and the resource information recovery module is used for recovering the resource information of the target equipment according to the resource information set and the identification-information corresponding relation.
7. The apparatus for restoring resource information as set forth in claim 6, wherein the apparatus further comprises: a recovery determining module, configured to determine that resource information recovery is required when a resource synchronization request is received, where the resource synchronization request carries at least one specified resource identifier;
the resource information obtaining module is specifically configured to, when obtaining resource information to be processed from a target device: and acquiring resource information corresponding to the specified resource identifier from the configured resource information of the target equipment.
8. The apparatus for recovering resource information according to claim 7, wherein the resource information recovering module, when recovering the resource information of the target device according to the resource information set and the identifier-information correspondence, is specifically configured to:
aiming at each appointed resource identification in the identification-information corresponding relation, searching first resource information corresponding to the appointed resource identification in the resource information set;
if not, acquiring second resource information corresponding to the specified resource identifier from the identifier-information corresponding relation, and sending the second resource information to the target equipment for configuration;
if the first resource information and the second resource information are found, comparing the first resource information with the second resource information, and if the first resource information and the second resource information are different, issuing the second resource information to the target equipment so that the target equipment replaces the configured first resource information with the second resource information.
9. The resource information recovery apparatus according to claim 6,
the resource information set comprises all configured resource information in the target equipment and resource identifications corresponding to the resource information;
the resource information recovery module is specifically configured to, when performing resource information recovery on the target device according to the resource information set and the identifier-information correspondence:
searching third resource information corresponding to the resource identifier in the resource information set aiming at each resource identifier in the identifier-information corresponding relation;
if not, acquiring fourth resource information corresponding to the resource identifier from the identifier-information corresponding relation, and sending the fourth resource information to the target equipment for configuration;
if the third resource information and the fourth resource information are found, comparing the third resource information with the fourth resource information, and if the third resource information and the fourth resource information are different, issuing the fourth resource information to the target equipment so that the target equipment replaces the configured third resource information with the fourth resource information.
10. The apparatus for recovering resource information according to claim 8 or 9, wherein the resource information recovering module, when recovering resource information of the target device according to the resource information set and the identifier-information correspondence, is further configured to:
and for each resource identifier in the resource information set, searching the resource information corresponding to the resource identifier in the identifier-information corresponding relationship, and if the resource information is not searched, notifying the target device to delete the configured fifth resource information corresponding to the resource identifier.
CN201911382305.2A 2019-12-27 2019-12-27 Resource information recovery method and device Pending CN111083160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911382305.2A CN111083160A (en) 2019-12-27 2019-12-27 Resource information recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382305.2A CN111083160A (en) 2019-12-27 2019-12-27 Resource information recovery method and device

Publications (1)

Publication Number Publication Date
CN111083160A true CN111083160A (en) 2020-04-28

Family

ID=70318944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382305.2A Pending CN111083160A (en) 2019-12-27 2019-12-27 Resource information recovery method and device

Country Status (1)

Country Link
CN (1) CN111083160A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625262A (en) * 2020-05-28 2020-09-04 广东浪潮大数据研究有限公司 Rollback method, system, equipment and storage medium of workload resources
CN113472799A (en) * 2021-07-07 2021-10-01 新华三大数据技术有限公司 Interconnection management method, device and equipment based on cloud platform
CN115699707A (en) * 2020-08-21 2023-02-03 Oppo广东移动通信有限公司 Internet of things communication method, device, equipment, computer storage medium and chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160294920A1 (en) * 2015-03-30 2016-10-06 Tangome, Inc. Network communication system
US20170187812A1 (en) * 2015-12-29 2017-06-29 Acer Incorporated Cloud management systems and device management methods thereof
CN107197042A (en) * 2017-07-04 2017-09-22 郑州云海信息技术有限公司 A kind of resource synchronization method and device
CN107819863A (en) * 2017-11-16 2018-03-20 郑州云海信息技术有限公司 A kind of Explore of Unified Management Ideas and device of cloud platform user
CN108984266A (en) * 2018-06-15 2018-12-11 华为技术有限公司 A kind of management method of virtual machine, apparatus and system
CN110545203A (en) * 2019-08-21 2019-12-06 之江实验室 method for establishing initial resource backup pool and self-healing repair of cloud platform by cloud platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160294920A1 (en) * 2015-03-30 2016-10-06 Tangome, Inc. Network communication system
US20170187812A1 (en) * 2015-12-29 2017-06-29 Acer Incorporated Cloud management systems and device management methods thereof
CN107197042A (en) * 2017-07-04 2017-09-22 郑州云海信息技术有限公司 A kind of resource synchronization method and device
CN107819863A (en) * 2017-11-16 2018-03-20 郑州云海信息技术有限公司 A kind of Explore of Unified Management Ideas and device of cloud platform user
CN108984266A (en) * 2018-06-15 2018-12-11 华为技术有限公司 A kind of management method of virtual machine, apparatus and system
CN110545203A (en) * 2019-08-21 2019-12-06 之江实验室 method for establishing initial resource backup pool and self-healing repair of cloud platform by cloud platform

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625262A (en) * 2020-05-28 2020-09-04 广东浪潮大数据研究有限公司 Rollback method, system, equipment and storage medium of workload resources
CN111625262B (en) * 2020-05-28 2023-08-22 广东浪潮大数据研究有限公司 Rollback method, system, equipment and storage medium of workload resource
CN115699707A (en) * 2020-08-21 2023-02-03 Oppo广东移动通信有限公司 Internet of things communication method, device, equipment, computer storage medium and chip
CN113472799A (en) * 2021-07-07 2021-10-01 新华三大数据技术有限公司 Interconnection management method, device and equipment based on cloud platform
CN113472799B (en) * 2021-07-07 2023-04-07 新华三大数据技术有限公司 Interconnection management method, device and equipment based on cloud platform

Similar Documents

Publication Publication Date Title
US12463904B2 (en) Network flow management for isolated virtual networks
US20230208909A1 (en) Automatic replacement of computing nodes in a virtual computer network
US11354039B2 (en) Tenant-level sharding of disks with tenant-specific storage modules to enable policies per tenant in a distributed storage system
CN112003961B (en) A resource exposure method, system, device and medium in kubernetes
US20210326212A1 (en) System and method for managing blockchain nodes
US9998955B1 (en) Multi-tier stateful network flow management architecture
CN109714239B (en) Management message issuing method, VNFM (virtual network management frequency) equipment and server
US11368407B2 (en) Failover management using availability groups
US9934273B1 (en) Metadata synchronization in flow management systems
CN113326101B (en) Thermal migration method, device and equipment based on remote direct data storage
US11082338B1 (en) Distributed connection state tracking for large-volume network flows
US10097454B1 (en) Flexible packet rewriting framework
US20130159374A1 (en) Method And Apparatus For Messaging In The Cloud
US10673694B2 (en) Private network mirroring
CN104243196A (en) Virtual network mapping protection method and system under SDN architecture
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
CN111083160A (en) Resource information recovery method and device
CN114172853A (en) Flow forwarding and bare computer server configuration method and device
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
JP5789008B2 (en) Method and system for determining interface requirements between virtual network elements and network hypervisors for seamless (distributed) virtual network resource management
US9942096B2 (en) Abstraction layer and distribution scope for a logical switch router architecture
CN107291575B (en) Processing method and equipment for data center fault
EP2594051B1 (en) Systems and methods recovering from the failure of a server load balancer
CN117793034B (en) Network card adding method, device, computing device and machine-readable storage medium
CN116170345B (en) Automatic flow testing method, equipment and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication