Module Expr Str Import alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad If CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Return NameLoad Return CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareGtE Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareGtE Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareGtE Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareGtE Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListLoad If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr UnaryOpNot NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num body If Call AttributeLoad NameLoad attr NameLoad NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str ListLoad attr Dict Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str ListLoad attr Dict Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad SubscriptLoad NameLoad Index Str UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore GeneratorExp SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Num Index Num comprehension NameStore NameLoad Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str Dict decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list
N/A N/A 
Release object and collection
 N/A copy distutils.version StrictVersion N/A itertools N/A yaml nailgun consts nailgun.db.sqlalchemy models nailgun.objects DeploymentGraph nailgun.objects NailgunCollection nailgun.objects NailgunObject nailgun.objects.serializers release release_serializer nailgun.orchestrator graph_configuration nailgun.plugins.manager PluginManager nailgun.settings settings Release N/A NailgunObject N/A N/A Release object N/A model N/A models Release N/A serializer N/A release_serializer ReleaseSerializer create N/A N/A cls data N/A N/A N/A Create Release instance with specified parameters in DB.

        :param data: dictionary of key-value pairs as object fields
        :returns: Release instance
         N/A N/A N/A data pop roles None N/A deployment_tasks N/A N/A data pop deployment_tasks N/A N/A release_obj N/A N/A N/A super Release cls create data N/A N/A N/A DeploymentGraph create_for_model N/A tasks deployment_tasks release_obj N/A release_obj N/A classmethod update N/A N/A cls instance data N/A N/A N/A Update existing Release instance with specified parameters.

        :param instance: Release instance
        :param data: dictionary of key-value pairs as object fields
        :returns: Release instance
         N/A N/A N/A data pop roles None N/A deployment_tasks N/A N/A data pop deployment_tasks None N/A release_obj N/A N/A N/A super Release cls update instance data N/A deployment_tasks N/A N/A deployment_graph_instance N/A N/A DeploymentGraph get_for_model instance N/A N/A N/A DeploymentGraph update deployment_graph_instance N/A tasks deployment_tasks N/A release_obj N/A classmethod update_role N/A N/A cls instance role N/A N/A N/A Update existing Release instance with specified role.

        Previous ones are deleted.

        :param instance: a Release instance
        :param role: a role dict
        :returns: None
         N/A N/A N/A instance roles_metadata N/A N/A role N/A name N/A role N/A meta N/A N/A N/A N/A instance volumes_metadata N/A volumes_roles_mapping N/A N/A role N/A name N/A N/A role get volumes_roles_mapping N/A N/A N/A N/A N/A instance volumes_metadata changed N/A classmethod remove_role N/A N/A cls instance role_name N/A N/A N/A result N/A N/A N/A instance roles_metadata pop role_name None N/A N/A N/A N/A N/A instance volumes_metadata N/A volumes_roles_mapping pop role_name None N/A N/A N/A N/A instance volumes_metadata changed N/A N/A bool result N/A classmethod is_deployable N/A N/A cls instance N/A N/A N/A Returns whether a given release deployable or not.

        :param instance: a Release instance
        :returns: True if a given release is deployable; otherwise - False
         N/A N/A N/A instance state N/A N/A consts RELEASE_STATES unavailable N/A N/A False N/A N/A experimental N/A N/A settings VERSION N/A feature_groups N/A N/A True N/A N/A N/A instance state N/A N/A consts RELEASE_STATES available N/A classmethod is_granular_enabled N/A N/A cls instance N/A N/A N/A Check if granular deployment is available for release

        :param instance: a Release instance
        :returns: boolean
         N/A N/A N/A StrictVersion N/A instance environment_version N/A StrictVersion N/A consts FUEL_GRANULAR_DEPLOY N/A classmethod is_lcm_supported N/A N/A cls instance N/A N/A N/A Check if LCM is available for release

        :param instance: a Release instance
        :returns: boolean
         N/A N/A N/A StrictVersion N/A instance environment_version N/A StrictVersion N/A consts FUEL_LCM_AVAILABLE N/A classmethod is_external_mongo_enabled N/A N/A cls instance N/A N/A N/A Check if external mongo is available for release

        :param instance: a Release instance
        :returns: boolean
         N/A N/A N/A StrictVersion N/A instance environment_version N/A StrictVersion N/A consts FUEL_EXTERNAL_MONGO N/A classmethod is_multiple_floating_ranges_enabled N/A N/A cls instance N/A N/A N/A Check if usage of multiple floating ranges is available for release


        :param instance: a Release instance
        :returns: boolean
         N/A N/A N/A StrictVersion N/A instance environment_version N/A StrictVersion N/A consts FUEL_MULTIPLE_FLOATING_IP_RANGES N/A classmethod get_deployment_tasks N/A N/A cls instance graph_type N/A None N/A N/A Get deployment graph based on release version.

        :param instance: Release instance
        :type instance: models.Release
        :param graph_type: deployment graph type
        :type graph_type: basestring|None
        :returns: list of deployment tasks
        :rtype: list
         N/A N/A graph_type None N/A N/A graph_type N/A consts DEFAULT_DEPLOYMENT_GRAPH_TYPE N/A env_version N/A instance environment_version N/A deployment_graph N/A N/A DeploymentGraph get_for_model instance graph_type N/A deployment_graph N/A N/A deployment_tasks N/A N/A DeploymentGraph get_tasks deployment_graph N/A N/A deployment_tasks N/A N/A N/A N/A graph_type N/A consts DEFAULT_DEPLOYMENT_GRAPH_TYPE N/A deployment_tasks N/A N/A N/A N/A env_version startswith 5.0 N/A N/A deployment_tasks N/A N/A yaml load N/A graph_configuration DEPLOYMENT_50 N/A N/A N/A N/A N/A env_version startswith 5.1 N/A N/A env_version startswith 6.0 N/A N/A deployment_tasks N/A N/A yaml load N/A graph_configuration DEPLOYMENT_51_60 N/A deployment_graph N/A N/A deployment_tasks N/A N/A N/A N/A DeploymentGraph update deployment_graph N/A tasks deployment_tasks N/A N/A N/A N/A DeploymentGraph create_for_model N/A tasks deployment_tasks instance N/A deployment_tasks N/A classmethod get_min_controller_count N/A N/A cls instance N/A N/A N/A N/A N/A N/A N/A instance roles_metadata N/A controller N/A limits N/A min N/A classmethod get_all_components N/A N/A cls instance N/A N/A N/A Get all components related to release

        Due to components architecture compatible/incompatible are duplex
        relations. So if some component is compatible/incompatible with another
        the last one also should have such relation.

        :param instance: Release instance
        :type instance: Release DB instance
        :returns: list -- list of all components
         N/A plugin_components N/A N/A PluginManager get_components_metadata instance N/A components N/A N/A copy deepcopy N/A N/A instance components_metadata plugin_components N/A N/A comp_i comp_j N/A N/A itertools permutations components 2 N/A N/A N/A N/A cls _check_relation comp_j comp_i incompatible N/A N/A N/A N/A N/A N/A comp_i setdefault incompatible N/A append N/A name message N/A comp_j N/A name N/A N/A Not compatible with {0} format N/A N/A N/A comp_j get label N/A N/A comp_j get name N/A N/A N/A cls _check_relation comp_j comp_i compatible N/A N/A N/A N/A N/A N/A comp_i setdefault compatible N/A append N/A name N/A comp_j N/A name N/A components N/A classmethod _check_relation N/A N/A cls a b relation N/A N/A N/A Helper function to check commutative property for relations N/A N/A N/A N/A cls _contain N/A N/A a get relation N/A N/A b N/A name N/A N/A N/A cls _contain N/A N/A b get relation N/A N/A a N/A name N/A classmethod _contain N/A N/A components name N/A N/A N/A Check if component with given name exists in components list

        :param components: list of components objects(dicts)
        :type components: list
        :param name: component name or wildcard
        :type name: string
         N/A prefixes N/A N/A N/A N/A N/A comp N/A name split * 1 N/A 0 N/A comp components N/A N/A any N/A N/A N/A name startswith x N/A x prefixes N/A staticmethod get_supported_dpdk_drivers N/A N/A cls instance N/A N/A N/A Get all supported DPDK drivers

        Returns dictionary, where keys are names of supported drivers and
        values are lists of supported device IDs for each driver.

        :param instance: Release instance
        :return: supported DPDK drivers and devices
         N/A metadata N/A instance networks_metadata N/A N/A N/A metadata get dpdk_drivers N/A N/A classmethod N/A ReleaseCollection N/A NailgunCollection N/A N/A Release collection N/A single Release N/A