System and method for building idempotent configuration management module for cloud infrastructure services

By using the resource API client in the cloud infrastructure to export the meta model and merge configuration requirements, calculate the desired state and perform matching actions, the problem of idempotence of the cloud configuration management module is solved, and simple and friendly configuration management and efficient cloud are achieved. Resource operations.

CN112136112BActive Publication Date: 2024-10-01ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980029974.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-29
Filing Date
2019-04-17
Publication Date
2024-10-01
Estimated Expiration
2039-04-17

AI Technical Summary

Technical Problem

In cloud infrastructure, it is difficult to ensure the idempotence of configuration management modules. Existing technologies usually require users to follow restricted rules or provide specific configuration properties, resulting in an unfriendly and complex user experience, and it is difficult to handle the complexity of cloud resources. Configuration and dynamic changes.

Method used

By using the API client of the resource to export the meta model, merge user input and configuration requirements of the resource type, calculate the expected state of the resource, and perform actions when matching, support operations such as creation, update, and deletion, ensuring idempotence without requiring A specific way of writing.

Benefits of technology

It implements simple and friendly idempotent configuration management in cloud infrastructure, ensuring that users correctly achieve the desired state, reducing the cost of the configuration management cycle and the complexity of the computing environment, and is suitable for various resource types and cloud service updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112136112B_ABST
    Figure CN112136112B_ABST
Patent Text Reader

Abstract

The embodiment provides a system and method for building an idempotent configuration management module for cloud infrastructure services. The idempotence of configuration management (CM) tasks in the CM plan is one of the mechanisms for achieving repeatable and reliable configuration management task automation. This helps DevOps and operations staff to reliably apply and maintain the configuration of their systems.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Copyright Notice

[0002] A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.

[0003] Priority claim

[0004] This application claims the benefit of priority to U.S. Patent Application No. 16 / 370,301, filed on March 29, 2019, entitled “SYSTEM AND METHOD FOR BUILDING IDEMPOTENT CONFIGURATION MANAGEMENT MODULES FOR CLOUD INFRASTRUCTURE SERVICE,” and U.S. Provisional Patent Application No. 62 / 666,839, filed on May 4, 2018, entitled “SYSTEM AND METHOD FOR BUILDING IDEMPOTENT CONFIGURATION MANAGEMENT MODULES FOR CLOUDINFRASTRUCTURE SERVICE,” which are incorporated herein by reference. Technical Field

[0005] The present invention relates generally to computer systems, and more particularly to infrastructure provisioning and configuration management. Background Art

[0006] Modern cloud-native applications and traditional enterprise applications deployed to the cloud require a large number of virtualized cloud infrastructure elements / services and software components for their operation.

[0007] One of the main benefits that cloud infrastructure providers offer their customers is flexibility. This flexibility can include adding and removing infrastructure service components to enable customers to quickly adjust application loads, optimize management costs, and improve their service reliability. However, this flexibility brings challenges in operational stability and reliability due to the eventual "configuration deviation" between the actual infrastructure and the desired infrastructure.

[0008] As a result, DevOps (Development and Operations) teams have turned to widespread adoption of "Infrastructure as Code" (IaC) practices to address the challenging task of provisioning and maintaining such a large, dynamic, and complex cloud infrastructure. IaC uses automation and standard software development practices to declare and manage infrastructure provisioning, deploy applications, and configure systems. Such IaC practices help DevOps and operations teams balance the "pressure" between software reliability and constantly evolving software to meet new or changing customer needs.

[0009] The idempotency of individual configuration management (CM) tasks in a CM plan is one of the key mechanisms for achieving repeatable and reliable automation of infrastructure provisioning and configuration management tasks. This helps DevOps and operations staff to reliably apply and maintain the configuration of their systems.

[0010] However, it is difficult to develop a configuration management module for cloud infrastructure resources that ensures idempotence of all actions against that resource without requiring users to follow a restricted set of rules. Summary of the invention

[0011] A system and method for building an idempotent configuration management module in a cloud infrastructure service. The method can be used to ensure idempotence of a configuration management module for cloud provider resources. The method ensures that all use case scenarios regarding idempotence are handled correctly. By ensuring idempotence, users can be assured that they have correctly reached the "desired state" of their topology. The solution also makes it easier for users to express the desired state of a resource in a concise and user-friendly (since users do not need to include any special elements in their input to obtain idempotence) manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A system is shown in which a CM tool may be used to implement certain tasks defined by a template in a cloud environment, according to an embodiment.

[0013] Figure 2 is a flow diagram illustrating a manner of ensuring idempotence within an Ansible module according to an embodiment.

[0014] Figure 3 is a flowchart of a method for building an idempotent configuration management module according to an embodiment.

[0015] Figure 4 A system for building an idempotent configuration management module according to an embodiment is shown.

[0016] Figure 5 A system for building an idempotent configuration management module according to an embodiment is shown.

[0017] Figure 6is a flow chart of a method for building an idempotent configuration management module for cloud infrastructure services according to an embodiment. DETAILED DESCRIPTION

[0018] The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like reference numerals indicate similar elements. It should be noted that references to "one" or "some" embodiments in this disclosure are not necessarily to the same embodiments, and such references mean at least one. Although specific implementations are discussed, it should be understood that the specific implementations are provided for illustrative purposes only. Those skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the present invention.

[0019] Common reference numbers may be used throughout the drawings and the detailed description to refer to the same elements; thus, if the element is described elsewhere, the reference numbers used in the figures may or may not be referenced in the detailed description specific to that figure.

[0020] According to embodiments, systems and methods are described herein for building an idempotent configuration management module in a cloud infrastructure service.

[0021] DevOps teams and system administrators use configuration management (CM) tools (such as Ansible, Puppet, Chef, cfengine) to declare the "desired state" of their infrastructure (and optionally the "actions" to achieve the desired state), which these tools then use to provision the infrastructure and configure, maintain, or repair it when the infrastructure deviates from the "desired state".

[0022] Some CM tools (such as cfengine) "converge" to a "desired state" through repeatable execution plans. Other tools (such as Ansible) directly ensure that the "desired state" is achieved if deviations are detected.

[0023] These CM tools provide users with a higher level of abstraction and DSL (Domain Specific Language) that allows them to easily express their configuration automation steps.

[0024] Figure 1 A system is shown in which a CM tool may be used to implement certain tasks defined by a template in a cloud environment, according to an embodiment.

[0025] According to an embodiment, manager 100 may be responsible for performing certain tasks at several nodes within cloud environment 110. Personnel with sufficient credentials (e.g., such as a DevOps team) may access and utilize the manager, and the manager may employ CM tool 102, which may reference template 105 to declare the desired state of the cloud infrastructure, as well as the nodes within the cloud infrastructure.

[0026] According to an embodiment, the CM tool may include the Ansible CM tool, and the template may include an Ansible playbook. Although several embodiments of the present application use Ansible as a CM tool, those skilled in the art will readily appreciate that the use of Ansible and playbooks is only one embodiment of the present disclosure. In the present disclosure, other and different CM tools may be used interchangeably.

[0027] According to an embodiment, a template may include a name, several targets, and certain tasks and resources associated with the template. Depending on the tasks to be performed, a manager may utilize one and / or multiple templates.

[0028] Idempotence

[0029] According to an embodiment, idempotency is basically "invariability under repetition." Repeating the same task multiple times always produces the same result (the result achieved by the first successful execution). Idempotency also means that if the desired state of a task has been achieved, no further action is required.

[0030] According to an embodiment, idempotency may be one of the beneficial mechanisms to achieve repeatable and reliable automation of configuration management tasks.Idempotency of individual CM tasks is also a key requirement for "aggregate maintenance" and is therefore used to build autonomous, reliable systems.

[0031] According to an embodiment, for cloud deployments, idempotency of infrastructure provisioning tasks becomes critical because if they are not idempotent, repeated execution of user CM plans will result in the creation of unnecessary additional cloud resources.

[0032] According to an embodiment, configuration management operations using these non-idempotent tasks will result in unnecessarily long configuration management cycles and lead to a very expensive, suboptimal computing environment for the deployment.

[0033] According to an embodiment, the idempotence of a single configuration management (CM) task in a CM plan is one of the mechanisms for achieving repeatable and reliable automation of infrastructure provisioning and configuration management tasks. This helps DevOps and operations staff to reliably apply and maintain the configuration of their systems.

[0034] However, according to an embodiment, it is difficult to develop a configuration management module for cloud infrastructure resources (the terms "resource" and "service" may be used interchangeably in this specification where appropriate) to ensure idempotence of all actions against the resource without requiring users to follow a restricted set of rules.

[0035] According to an embodiment, the cloud provider's resource CM module either restricts the set of properties that the user can configure, or requires the user to provide other configuration properties to obtain idempotent behavior for their actions. This is not user-friendly (because it requires them to consciously consider idempotency when writing their tasks), suboptimal (as if the user deviates from the requirements imposed by the module, they lose idempotency), and in some cases time-consuming to implement (when multiple users work against the same environment, they are now forced to use the same task definition to obtain idempotency).

[0036] According to an embodiment, the IaC tasks surrounding cloud infrastructure provisioning also have their own unique set of challenges.

[0037] Ansible

[0038] According to an embodiment, Ansible is a very popular CM tool that is widely used by DevOps practitioners and system administrators to implement IaC.

[0039] According to an embodiment, in Ansible, a playbook is a high-level DSL that users use to describe configurations, initiate application deployments, and perform orchestration of infrastructure components. Ansible provides a large set of "modules" out of the box to perform common provisioning, configuration management, and deployment tasks. Modules are also a pluggable mechanism in Ansible and allow third-party vendors (such as cloud service providers) to define new "rules" that Ansible users can use in their playbooks to control and manage their software or infrastructure.

[0040] Idempotence in Ansible modules

[0041] According to an embodiment, Ansible recommends that all modules be idempotent so that repeated execution of a playbook by a user results in a desired state being reached quickly and reliably. A typical way for an Ansible module to achieve idempotency is by checking whether the desired state has been reached, and if so, the module does not perform any changes to the components managed by the module.

[0042] According to an embodiment, for example, if a task requires the creation of a cloud service artifact, the cloud module can check whether a resource that matches the desired state specified by the user already exists, and return early if such a resource exists. This ensures that repeated execution of the task asserts the desired state, and if the resource is already in the desired state, no changes are performed on the resource.

[0043] Figure 2 is a flow diagram illustrating a manner of ensuring idempotence within an Ansible module, according to an embodiment.

[0044] According to an embodiment, a user may request the creation of a resource at step 205. For example, this may be accomplished through a playbook containing one or more tasks, which in turn use a CM module.

[0045] According to an embodiment, at step 210, the method may check to determine whether the requested resource already exists within the system, such as within a customer tenancy in a cloud provider.

[0046] According to an embodiment, at step 215, if the requested resource already exists, the resource is returned in response to the user request. This can ensure idempotence because it guarantees the same result for each user request, regardless of how many times step 205 is repeated.

[0047] However, according to an embodiment, the simple approach taken by Ansible in ensuring idempotence has some shortcomings and complexities.Cloud providers that build Ansible cloud modules to provision their cloud infrastructure resources (such as compute, storage, and network artifacts) face different challenges in ensuring idempotence.

[0048] According to an embodiment, these challenges include:

[0049] 1) Cloud resources have complex configuration (required and optional properties) requirements. a) Optional property values ​​may have static default values, or may have dynamic "default" values ​​generated at resource provisioning time. Modules must follow these configuration semantics when matching against existing resources and user input.

[0050] 2) Different users at different times can use any combination of these configuration properties to provide their desired state statements. In other words, for the same "desired state" of a resource, two different playbooks written at different times may have different configuration properties in their tasks. The idempotence logic in the module must handle this variation and still calculate the "desired state" and match it with existing resources.

[0051] 3) Cloud resources have a diverse set of actions allowed on them (create, update, delete, lifecycle actions), and it is critical that idempotence is supported for all actions.

[0052] 4) Clients must not be required to write their tasks in a specific way to achieve idempotency. The complexity of verifying which user request a desired state matches must be handled by the module itself, and users should not have to worry about writing their tasks in a specific way to achieve idempotency.

[0053] 5) Over time, cloud providers may evolve cloud services and support newer configuration properties. The idempotence logic of old modules must continue to work with future versions of the cloud provider's resources.

[0054] 6) In order to handle customized requirements, customers must have the possibility to control the matching logic to match their requirements.

[0055] According to the embodiments, various modules have been proposed to try to overcome these challenges. These modules are subject to various limitations. For example, some modules require users to specify a specific subset of resource attributes in the script to make resource creation idempotency work. This means that users of these modules need to read the documentation of the module carefully to understand how they can achieve idempotency and carefully craft the script to obtain idempotency. Similarly, some modules require properties that are unrelated to the requested resources to force resource creation idempotency. There are also difficulties with modules because no module is provided to provide the API client of the resource to introspect to discover new configuration properties. This means that whenever the API of the resource changes, the cloud module needs to be modified. In general, each module requires that in order to support idempotency, the current task must completely match the task definition that created the original resource. This is both troublesome for users and difficult to implement when there are multiple DevOps professionals working in a shared environment.

[0056] Idempotent configuration management module

[0057] According to an embodiment, a method employs the following techniques during matching to address each of the challenges listed above.

[0058] Figure 3 is a flowchart of a method for building an idempotent configuration management module according to an embodiment.

[0059] According to an embodiment, a user may request the creation of a resource at step 305. For example, this may be accomplished through a playbook containing one or more tasks, which in turn use a CM module.

[0060] According to an embodiment, at step 310, the method may use the resource's API client to introspect the current version of the resource's API to derive a metamodel of the requested resource type. The metamodel is used to determine the current set of configurable properties of the resource. This helps address challenges associated with cloud resources with complex configurations and optional properties that may have dynamic or static values. In addition, the method addresses issues caused by updates and new configurations of cloud services.

[0061] According to an embodiment, the method may also compute the "desired state" of the resource at step 320 by considering the user's CM task definition, by merging the user specification in the task with the configuration requirements of the discovered resource type. This merging step pays special attention to handling "optional" attributes, optional attributes with static and dynamic default values. This helps to address the challenges posed by different users providing declarations at different times using combinations of configuration attributes, as well as challenges associated with clients that do not need tasks to be written in a specific way to receive idempotence. Using the metamodel of the resource type, the merging step can fill in the default values ​​and optional fields to compute the "effective" desired state of the requested resource.

[0062] According to an embodiment, at step 325, the method then lists all available resources and compares to the calculated "valid" "desired state" to determine if the resource already exists. If the resource is found, it is returned to the user at step 330. When no matching resource is found, the action (e.g., CREATE, UPDATE) on the resource is performed at step 335. This allows idempotence to be supported regardless of what action (or set of actions) is allowed to be performed (e.g., create, update, delete, lifecycle actions).

[0063] According to an embodiment, the matching performed at step 325 takes into account the desired state of the requested resource, the set of attributes that must be matched against it, and the list of resources that are already available.

[0064] According to an embodiment, while the method is generic and works across various resource types, a customer may want to override the matching logic to require that matching be performed only for a customized subset of attributes. Then, instead of matching for all attributes of the available resources, the method only matches for those attributes requested by the user as determined at step 315. The method also supports such use cases. This helps address the challenges posed by customized requirements and allows customers to control the matching logic to match their requirements. Similarly, this can be used in situations where a request specifies a subset of attributes and then matches using that subset. If no such set is specified, the set of attributes to be matched is selected from the metamodel of the resource type.

[0065] According to an embodiment, the method provides a more user-friendly interface to clients of the module by not placing restrictions on achieving idempotency. It is also more efficient, reliable, and optimal than competing methods.

[0066] According to an embodiment, the method adopts several solutions, including: using the resource's API to export a metamodel of the cloud resource type (the advantage is that the exported metamodel is up-to-date with any updates to the cloud service resource API); determining the configuration-related properties of the cloud resource (required, optional, static and dynamic default values) based on the metamodel; merging the user input in the CM task with the discovered metamodel to calculate the user's "expected state"; and then matching the calculated "expected state" with existing resources in the cloud provider to determine whether action needs to be performed.

[0067] According to an embodiment, this method can be used to ensure the idempotency of the configuration management module of cloud provider resources. The method ensures that all use case scenarios regarding idempotency are handled correctly. By ensuring idempotency, users can be ensured to correctly achieve the "desired state" of their topology. The solution also makes it easier for users to express the desired state of resources in a concise and user-friendly (because users do not need to include any special elements in their input to obtain idempotency) way.

[0068] According to an embodiment, the following pseudo code shows a list of steps for implementing the method, and points out where some parts solve the difficulties in the above-mentioned idempotency. Although the steps of the method are shown in the context of the Ansible module, it will be easily understood by those skilled in the art that the method is general and applicable to other configuration management tools (e.g., Puppet, Chef, SaltStack, etc.).

[0069] - The module for resource R calls check_and_create and provides

[0070] - `R` resource metadata model, which contains information about how to create resources, obtain

[0071] information about all existing resources of R, the properties of R (optionally including fixed default values ​​or system-generated default values ​​for the properties),

[0072] - `inputs`, which represent user input that indicates the desired state of the resource.

[0073] - exclude_list which represents the set of attributes that must be excluded from the matching logic (only if the user has not provided a value for that attribute).

[0074] - `default_attr_values`, a dict with default values ​​for all defaultable attributes

[0075] -check_and_create(R,inputs,exclude_list,default_attr_values):

[0076] If the user has requested "force_create":

[0077] create_new_resource and return(changed=True, <new-resource>)

[0078] existing_resources = get_all_existing_resources() uses the R mechanism to list all resources of type R

[0079] for existing_resource in existing_resources:

[0080] if is_active(existing_resource):

[0081] if does_existing_resource_match_user_inputs(inputs,existing_resource):

[0082] return return(changed=False, <existing-resource>)

[0083] If no existing resource matches the user input:

[0084] create_new_resource and return(changed=True, <new-resource>)

[0085] -is_active(resource):

[0086] If the resource's lifecycle_state is one of the ACTIVE lifecycle states of type R, return true

[0087] else false

[0088] -does_existing_resource_match_user_inputs(inputs,existing_resource):

[0089] attrs_to_consider=get_attributes_to_consider_for_matching(R)

[0090] for A in attrs_to_consider:

[0091] # If the attribute is composite (e.g., list, dict, etc.), then recursively

[0092] #Perform the following checks on each component of the composite

[0093] #Addressing challenges #2, #4 as listed above in the second paragraph of page 7

[0094] Get the value of existing_resource of A

[0095] If the user actually specifies a value for A:

[0096] Get the user's specification of A from the input

[0097] If the value of A's existing_resource does not match the user's expectation for A, then return false

[0098] #Existing resources do not match user input, handle challenges as described in the list above at page 7, paragraph 2 #8

[0099] else if the user has not specified a value for A:

[0100] if A is in exclude_list: # Handle the challenge as described above in the list at page 7, paragraph 2 #6

[0101] Continue to check other properties

[0102] else:

[0103] If the value of A's existing_resource matches A's default value, then continue checking other attributes. #Ignore this attribute and continue other checks on this resource

[0104] else return false #The existing resource does not match the user input

[0105] #After checking the equivalence of all attributes in attrs_to_consider

[0106] return true # The existing resource matches the user input

[0107] -get_attributes_to_consider_for_matching(R):

[0108] This list is used if the user requests only certain attributes to be considered a match.

[0109] #Addressing the challenges as listed above in the second paragraph on page 7 #6

[0110] Return all attributes from R's GET model # Solve challenges #1 and #4 as described in the list above at paragraph 2 on page 7

[0111] Figure 4 A system for building an idempotent configuration management module according to an embodiment is shown.

[0112] According to an embodiment, at step 405, a user may request the creation of a resource at a controller machine 410. For example, this may be accomplished through a playbook containing one or more tasks, which in turn use a CM module.

[0113] According to an embodiment, at step 410, the method may use the resource's API client to introspect the current version of the resource's API to derive a metamodel of the requested resource type. For example, this may be performed at step 461, where the controller machine utilizes the API's cloud provider's software development kit (or other alternatives, such as swagger specifications) to determine the metamodel of supported resources via the API definition 460 of the resource API of the cloud provider 420. The metamodel is used to determine the current set of configurable properties for the resource. This helps address challenges associated with cloud resources with complex configurations and optional properties that may have dynamic or static values. In addition, the method addresses issues caused by updates and new configurations of cloud services.

[0114] According to an embodiment, at step 420, the "desired state" of the resource is computed by merging the user specification in the task with the configuration requirements of the discovered resource type, taking into account the user's CM task definition. This merge step pays special attention to handling "optional" attributes, optional attributes with static and dynamic default values. This helps address challenges posed by different users providing declarations at different times using combinations of configuration attributes, as well as challenges associated with clients that do not need tasks to be written in a specific way to receive idempotence. Using the metamodel of the resource type, the merge step can fill in the default values ​​and optional fields to compute the "effective" desired state of the requested resource.

[0115] According to an embodiment, at step 425, the method then retrieves 481 an existing resource list 480 from the cloud provider 420 and compares to the calculated "desired state" to determine if the resource already exists. If the resource is found, it is returned to the user at step 430. When no matching resource is found, an action (e.g., CREATE, UPDATE) is performed on the resource at step 435. Then, at 471, the resource 470 can be created, which supports idempotence regardless of what action (or set of actions) is allowed to be performed (e.g., create, update, delete, lifecycle actions).

[0116] According to an embodiment, the matching performed at step 425 takes into account the desired state of the requested resource, the set of attributes that must be matched against it, and the list of resources that are already available.

[0117] According to an embodiment, while the method is generic and works across various resource types, a customer may want to override the matching logic to require that matching be performed only for a customized subset of attributes. Then, instead of matching for all attributes of the available resources, the method only matches for those attributes requested by the user as determined at 415. The method also supports such use cases. This helps address the challenges posed by customized requirements and allows customers to control the matching logic to match their requirements. Similarly, this can be used in situations where a request specifies a subset of attributes and then matches using that subset. If no such set is specified, the set of attributes to be matched is selected from the metamodel of the resource type.

[0118] Figure 5 A system for building an idempotent configuration management module according to an embodiment is shown.

[0119] According to an embodiment, the controller machine 530 can be accessed and utilized by a user. The controller machine can provide a configuration management tool 504 that can be accessed and / or accessed by a user's rules or scripts. According to certain embodiments, the CM tool 504 can include Ansible. However, those skilled in the art will appreciate that Ansible is only one example of a CM tool that can be utilized within the disclosed systems and methods.

[0120] According to an embodiment, the CM tool may utilize one or more pluggable layers 506. Depending on the CM tool used within the system, these pluggable layers may be specific to the CM tool, or they may be generic in nature. In embodiments where Ansible is used as the CM tool, these pluggable layers may include Ansible modules. In other embodiments, the pluggable layers may include Terraform providers.

[0121] According to an embodiment, using a software development kit 508 , the CM artifacts can work with a cloud provider 540 application programming interface (API) 510 to create or manage cloud artifacts (eg, resources) within the cloud provider 540 .

[0122] Figure 6 is a flow chart of a method for building an idempotent configuration management module for cloud infrastructure services according to an embodiment.

[0123] At step 610 , the method may receive a request from a user for resources to be used in a cloud infrastructure service.

[0124] At step 620, the method may derive a metamodel for the requested resource type.

[0125] At step 630, the method may calculate a desired state for the requested resource.

[0126] In step 640 , the method may compare the desired state of the requested resource to a plurality of pre-existing resources in the cloud infrastructure service.

[0127] At step 650 , when a matching resource is found among the plurality of pre-existing resources, the method may return the matching resource.

[0128] Although various embodiments of the present invention have been described above, it should be understood that they are presented by way of example and not limitation. The embodiments are selected and described in order to explain the principles of the present invention and its practical application. The embodiments illustrate systems and methods that utilize the present invention to improve the performance of systems and methods by providing new and / or improved features and / or providing benefits such as reduced resource utilization, increased capacity, improved efficiency, and reduced latency.

[0129] In some embodiments, features of the present invention are implemented in whole or in part in a computer including a processor, a storage medium such as a memory, and a network card for communicating with other computers. In some embodiments, features of the present invention are implemented in a distributed computing environment, where one or more computer clusters are connected via a network such as a local area network (LAN), a switch fabric network (e.g., InfiniBand), or a wide area network (WAN). A distributed computing environment can have all computers located in a single location, or have clusters of computers at different remote geographic locations connected by a WAN.

[0130] In some embodiments, features of the present invention are implemented in whole or in part in the cloud as part of or as a service of a cloud computing system based on shared elastic resources delivered to users in a self-service, metered manner using Web technologies. There are five characteristics of the cloud (defined by the National Institute of Standards and Technology: on-demand self-service; extensive network access; resource pooling; rapid elasticity; and measured services). See, for example, "The NIST Definition of Cloud Computing", Special Publication 800-145 (2011), which is incorporated herein by reference. Cloud deployment models include: public, private, and hybrid. Cloud service models include software as a service (SaaS), platform as a service (PaaS), database as a service (DBaaS), and infrastructure as a service (IaaS). As used herein, a cloud is a combination of hardware, software, network, and Web technologies that deliver shared elastic resources to users in a self-service, metered manner. Unless otherwise noted, as used herein, cloud includes public cloud, private cloud, and hybrid cloud embodiments, as well as all cloud deployment models, including but not limited to cloud SaaS, cloud DBaaS, cloud PaaS, and cloud IaaS.

[0131] In some embodiments, features of the present invention are implemented with the assistance of hardware, software, firmware, or a combination thereof. In some embodiments, features of the present invention are implemented using a processor configured or programmed to perform one or more functions of the present invention. In some embodiments, the processor is a single-chip or multi-chip processor, a digital signal processor (DSP), a system on a chip (SOC), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a state machine, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. In some implementations, features of the present invention can be implemented by circuits specific to a given function. In other implementations, features can be implemented in a processor that is configured to execute using instructions, for example, stored on a computer-readable storage medium.

[0132] In some embodiments, features of the present invention are incorporated into software and / or firmware for controlling the hardware of processing and / or networking systems, and for enabling processors and / or networks to utilize features of the present invention to interact with other systems. Such software or firmware may include, but is not limited to, application code, device drivers, operating systems, virtual machines, hypervisors, application programming interfaces, programming languages, and execution environments / containers. Based on the teachings of the present disclosure, appropriate soft coding pieces can be easily prepared by skilled programmers, which is clear to those skilled in the software field.

[0133] In some embodiments, the present invention includes a computer program product, which is a storage medium or computer readable medium (medium) having instructions stored thereon / therein, which instructions can be used to program or otherwise configure a system such as a computer to perform any process or function of the present invention. The storage medium or computer readable medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data. In particular embodiments, the storage medium or computer readable medium is a non-transient storage medium or a non-transient computer readable medium.

[0134] The foregoing description is not intended to be exhaustive or to limit the invention to the precise form disclosed. In addition, where a particular series of affairs and steps have been used to describe an embodiment of the invention, it will be clear to those skilled in the art that the scope of the invention is not limited to the described affairs and series of steps. In addition, where a particular combination of hardware and software has been used to describe an embodiment of the invention, it will be appreciated that other combinations of hardware and software are also within the scope of the invention. In addition, although various embodiments describe a particular combination of features of the invention, it will be understood that it will be clear to those skilled in the relevant art that different combinations of features are within the scope of the invention so that the features of one embodiment can be incorporated into another embodiment. Moreover, it will be clear to those skilled in the relevant art that various additions, reductions, deletions, changes and other modifications and changes can be made in form, details, implementation and application without departing from the spirit and scope of the invention. The broader spirit and scope of the invention are intended to be defined by the following claims and their equivalents.

Claims

1. A method for building an idempotent configuration management module for a cloud infrastructure service, the method comprising: At a controller machine, receiving a user request for resources used in a cloud infrastructure service, the user request comprising a configuration management task definition; A metamodel of a resource type of the requested resource is derived to determine a set of configurable properties of the requested resource type, the configurable properties comprising: Required attributes, static optional properties, and Dynamic optional attributes; calculating a desired state of the requested resource, the calculating the desired state of the requested resource comprising comparing the determined set of configurable properties of the requested resource type with the configuration management task definition; comparing the desired state of the requested resource to a plurality of pre-existing resources in the cloud infrastructure service; and When a matching resource is found among the plurality of pre-existing resources, the matching resource is returned.

2. The method of claim 1, further comprising: When no matching resource is found, a resource is created that includes the desired state of the resource.

3. The method of any one of claims 1 to 2, wherein the plurality of pre-existing resources comprises a defined collection of resources.

4. The method of any one of claims 1 to 2, wherein calculating the desired state of the requested resource takes into account a user's configuration management task definition.

5. The method of any one of claims 1 to 2, wherein the user request comprises a defined set of resources.

6. The method of any one of claims 1 to 2, wherein comparing the desired state of the requested resource with the plurality of pre-existing resources in the cloud infrastructure utilizes an application programming interface of the cloud infrastructure service.

7. The method of any one of claims 1 to 2, wherein the user request includes a configuration management plan, the configuration management plan including the requested resources.

8. A system for building an idempotent configuration management module for a cloud infrastructure service, the system comprising: A computer system having a memory and a processor; as well as a configuration manager operating on the computer system, wherein the configuration manager operates to: At a controller machine, receiving a user request for resources used in a cloud infrastructure service, the user request comprising a configuration management task definition; The metamodel of the requested resource type is derived to determine a set of configurable properties of the requested resource type, the configurable properties including: Required attributes, static optional properties, and Dynamic optional attributes; calculating a desired state of the requested resource, the calculating the desired state of the requested resource comprising comparing the determined set of configurable properties of the requested resource type with the configuration management task definition; comparing the desired state of the requested resource to a plurality of pre-existing resources in the cloud infrastructure service; and When a matching resource is found among the plurality of pre-existing resources, the matching resource is returned.

9. The system of claim 8, wherein the configuration manager operating on the computer system further operates to: When no matching resource is found, a resource is created that includes the desired state of the resource.

10. The system of any one of claims 8 to 9, wherein the plurality of pre-existing resources comprises a defined collection of resources.

11. The system of any one of claims 8 to 9, wherein calculating the desired state of the requested resource takes into account a user's configuration management task definition.

12. The system of any one of claims 8 to 9, wherein the user request comprises a defined set of resources.

13. The system of any one of claims 8 to 9, wherein comparing the desired state of the requested resource with the plurality of pre-existing resources in the cloud infrastructure utilizes an application programming interface of the cloud infrastructure service.

14. The system of any one of claims 8 to 9, wherein the user request includes a configuration management plan, the configuration management plan including the requested resources.

15. A non-transitory computer-readable storage medium comprising instructions for building an idempotent configuration management module for a cloud infrastructure service, wherein when the instructions are read and executed by one or more computers, the one or more computers are caused to perform the following steps: At a controller machine, receiving a user request for resources used in a cloud infrastructure service, the user request comprising a configuration management task definition; The metamodel of the requested resource type is derived to determine a set of configurable properties of the requested resource type, the configurable properties including: Required attributes, static optional properties, and Dynamic optional attributes; calculating a desired state of the requested resource, the calculating the desired state of the requested resource comprising comparing the determined set of configurable properties of the requested resource type with the configuration management task definition; comparing the desired state of the requested resource to a plurality of pre-existing resources in the cloud infrastructure service; and When a matching resource is found among the plurality of pre-existing resources, the matching resource is returned.

16. The non-transitory computer-readable storage medium of claim 15, further comprising: When no matching resource is found, a resource is created that includes the desired state of the resource.

17. The non-transitory computer-readable storage medium of any one of claims 15 to 16, wherein the plurality of pre-existing resources comprises a defined collection of resources.

18. The non-transitory computer-readable storage medium of any one of claims 15 to 16, wherein calculating the desired state of the requested resource takes into account a user's configuration management task definition.

19. The non-transitory computer-readable storage medium of any one of claims 15 to 16, wherein the user request comprises a defined set of resources.

20. The non-transitory computer-readable storage medium of any one of claims 15 to 16, wherein comparing the desired state of the requested resource to the plurality of pre-existing resources in the cloud infrastructure utilizes an application programming interface of a cloud infrastructure service.