Module Import alias Import alias ImportFrom alias identifier Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIsNot NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Dict Str NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Str Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Str If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A logging N/A yaml heatclient exc heatexceptions N/A six swiftclient exceptions swiftexceptions tripleo_common.core exception tripleo_common.utils meta tripleo_common.utils templates N/A LOG N/A N/A logging getLogger __name__ PlanManager N/A object N/A __init__ N/A N/A self plan_storage_backend heatclient N/A N/A N/A N/A self plan_store plan_storage_backend N/A N/A self heatclient heatclient N/A create_plan N/A N/A self plan_name plan_files N/A N/A N/A Creates a plan to store templates

        Creates a plan by creating a container matching plan_name, and
        import given plan_files into it.  The plan files is a dictionary
        where the keys are filenames and the values are file contents.

        :param plan_name: The name of the plan to use as the container name
        :type plan_name: str
        :param plan_files: The files to import into the container.
        :type plan_files: dict
         N/A N/A N/A N/A N/A N/A self plan_store create plan_name N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Error creating plan. N/A N/A plan_files N/A N/A meta add_file_metadata plan_files N/A N/A N/A self update_plan plan_name plan_files N/A delete_plan N/A N/A self plan_name N/A N/A N/A Deletes a plan and associated files

        Deletes a plan by deleting the container matching plan_name. It
        will not delete the plan if a stack exists with the same name.

        Raises StackInUseError if a stack with the same name as plan_name
        exists.

        :param plan_name: The name of the container to delete
        :type plan_name: str
         N/A N/A N/A stack N/A N/A N/A N/A self heatclient stacks get plan_name N/A N/A stack None N/A N/A N/A N/A exception StackInUseError name plan_name N/A N/A N/A N/A heatexceptions HTTPNotFound N/A N/A N/A N/A N/A N/A N/A self plan_store delete plan_name N/A N/A N/A N/A swiftexceptions ClientException N/A ce N/A N/A N/A N/A LOG exception Swift error deleting plan. N/A N/A N/A ce http_status 404 N/A N/A N/A N/A six raise_from N/A N/A exception PlanDoesNotExistError name plan_name ce N/A N/A Exception N/A N/A N/A N/A LOG exception Error deleting plan. N/A N/A delete_file N/A N/A self plan_name filename N/A N/A N/A Deletes file in a plan container

        :param plan_name: The name of the plan to use as the container name
        :type plan_name: str
        :param filename: The file to delete from the container.
        :type filename: str
         N/A N/A N/A N/A N/A N/A self plan_store delete_file plan_name filename N/A N/A N/A N/A swiftexceptions ClientException N/A ce N/A N/A N/A N/A LOG exception Swift error deleting file. N/A N/A N/A ce http_status 404 N/A N/A N/A N/A six raise_from N/A N/A exception FileDoesNotExistError name filename ce N/A N/A Exception N/A N/A N/A N/A LOG exception Error deleting file from plan. N/A N/A delete_temporary_environment N/A N/A self plan_name N/A N/A N/A Deletes the temporary environment files

        The temporary environment is the combination of deployment parameters
        and selected environment information

        :param plan_name: The name of the plan to use as the container name
        :type plan_name: str
         N/A plan N/A N/A self get_plan plan_name N/A item N/A k v N/A N/A k v N/A N/A N/A plan files items N/A N/A N/A N/A N/A v get meta N/A get file-type temp-environment N/A N/A N/A N/A N/A self plan_store delete_file plan_name item N/A get_plan N/A N/A self plan_name N/A N/A N/A Retrieves the Heat templates and environment file

        Retrieves the files from the container matching plan_name.

        :param plan_name: The name of the plan to retrieve files for.
        :type plan_name: str
        :rtype dict
         N/A N/A N/A N/A N/A N/A self plan_store get plan_name N/A N/A N/A N/A swiftexceptions ClientException N/A ce N/A N/A N/A N/A LOG exception Swift error retrieving plan. N/A N/A N/A ce http_status 404 N/A N/A N/A N/A six raise_from N/A N/A exception PlanDoesNotExistError name plan_name ce N/A N/A Exception N/A N/A N/A N/A LOG exception Error retrieving plan. N/A N/A get_plan_list N/A N/A self N/A N/A N/A Gets a list of containers that store plans

        Gets a list of containers that contain metadata with the key of
        X-Container-Meta-Usage-Tripleo and value or 'plan'.

        :return: a list of strings containing plan names
         N/A N/A N/A N/A N/A N/A self plan_store list N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Error retrieving plan list. N/A N/A get_deployment_parameters N/A N/A self plan_name N/A N/A N/A Determine available deployment parameters

        :param plan_name: The name of the plan and container name
         N/A plan N/A N/A self get_plan plan_name N/A N/A template environment files N/A N/A templates process_plan_data N/A plan files N/A N/A N/A params N/A N/A N/A N/A self heatclient stacks validate template template files files environment environment show_nested True N/A N/A N/A N/A heatexceptions HTTPBadRequest N/A exc N/A N/A N/A N/A six raise_from N/A N/A exception HeatValidationFailedError msg exc exc N/A params N/A update_deployment_parameters N/A N/A self plan_name deployment_parameters N/A N/A N/A Update the deployment parameters

        :param plan_name: The name of the plan and container name
        :type plan_name: str
        :param deployment_parameters: dictionary of deployment parameters
        :type deployment_parameters: dict
         N/A plan N/A N/A self get_plan plan_name N/A deployment_params_file environments/deployment_parameters.yaml N/A N/A N/A N/A deployment_parameters get parameter_defaults N/A N/A deployment_parameters N/A parameter_defaults deployment_parameters N/A N/A deployment_params_file N/A plan files N/A N/A N/A N/A N/A plan files pop deployment_params_file N/A N/A template environment files N/A N/A templates process_plan_data N/A plan files N/A environment N/A N/A templates deep_update environment deployment_parameters N/A N/A N/A N/A N/A N/A N/A self heatclient stacks validate template template files files environment environment show_nested True N/A N/A N/A N/A heatexceptions HTTPBadRequest N/A exc N/A N/A N/A N/A six raise_from N/A N/A exception HeatValidationFailedError msg exc exc N/A env N/A N/A yaml safe_dump deployment_parameters default_flow_style False N/A N/A N/A plan files N/A deployment_params_file N/A contents meta env N/A file-type temp-environment N/A N/A N/A self update_plan plan_name N/A plan files N/A update_plan N/A N/A self plan_name plan_files N/A N/A N/A Updates files in a plan container

        :param plan_name: The name of the plan to use as the container name
        :type plan_name: str
        :param plan_files: The files to import into the container.
        :type plan_files: dict
         N/A N/A N/A N/A N/A N/A self plan_store update plan_name plan_files N/A N/A N/A N/A swiftexceptions ClientException N/A ce N/A N/A N/A N/A LOG exception Swift error updating plan. N/A N/A N/A ce http_status 404 N/A N/A N/A N/A six raise_from N/A N/A exception PlanDoesNotExistError name plan_name ce N/A N/A Exception N/A N/A N/A N/A LOG exception Error updating plan. N/A N/A N/A N/A self get_plan plan_name N/A validate_plan N/A N/A self plan_name N/A N/A N/A Validate Plan

        This private method provides validations to ensure a plan
        meets the proper criteria before allowed to persist in storage.

        :param plan_files: The files to import into the container.
        :type plan_files: dict
        :returns boolean
         N/A plan N/A N/A self get_plan plan_name N/A rt N/A k v N/A N/A k v N/A N/A N/A plan files items N/A N/A N/A N/A N/A v get meta N/A get file-type root-template N/A N/A N/A len rt 1 N/A N/A N/A N/A exception TooManyRootTemplatesError N/A N/A template environment files N/A N/A templates process_plan_data N/A plan files N/A N/A N/A N/A N/A N/A N/A self heatclient stacks validate template template files files environment environment show_nested True N/A N/A N/A N/A heatexceptions HTTPBadRequest N/A exc N/A N/A N/A N/A LOG exception Error validating the plan. N/A N/A N/A six raise_from N/A N/A exception HeatValidationFailedError msg exc exc N/A True N/A N/A