Module Import alias ImportFrom alias ImportFrom alias identifier Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword ListLoad Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel NameLoad Index Str Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Str Str Str NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Global identifier If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad Str If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad NameLoad body Return NameLoad If Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict body Return NameLoad If Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict body Return NameLoad If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword BinOpAdd AttributeLoad NameLoad attr Str Num body Return NameLoad If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword BinOpAdd AttributeLoad NameLoad attr Str Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad If CompareEq Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad decorator_list
N/A N/A uuid oslo_config cfg oslo_log log logging N/A six sahara conductor c sahara context sahara exceptions ex sahara.i18n _ sahara.service.castellan utils key_manager sahara.service.edp job_utils sahara.service trusts t sahara.swift utils su sahara.utils.openstack base b sahara.utils.openstack keystone k N/A PROXY_DOMAIN None N/A conductor N/A c API N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A cfg CONF N/A opts N/A N/A N/A cfg BoolOpt use_domain_for_proxy_users default False help Enables Sahara to use a domain for creating temporary proxy users to access Swift. If this is enabled a domain must be created for Sahara to use. N/A N/A cfg StrOpt proxy_user_domain_name default None help The domain Sahara will use to create new proxy users for Swift object access. N/A N/A cfg ListOpt proxy_user_role_names default N/A Member help A list of the role names that the proxy user should assume through trust for Swift object access. N/A N/A N/A CONF register_opts opts create_proxy_user_for_job_execution N/A N/A job_execution N/A N/A N/A Creates a proxy user and adds the credentials to the job execution

    :param job_execution: The job execution model to update

     N/A username N/A N/A job_{0} format N/A job_execution id N/A password N/A N/A key_manager store_secret N/A proxy_user_create username N/A current_user N/A N/A k auth N/A proxy_user N/A N/A k auth_for_proxy username password N/A trust_id N/A N/A t create_trust trustor current_user trustee proxy_user role_names N/A CONF proxy_user_role_names N/A update N/A job_configs N/A N/A N/A job_execution job_configs to_dict N/A N/A N/A update N/A job_configs N/A proxy_configs N/A proxy_username proxy_password proxy_trust_id username password trust_id N/A N/A N/A conductor job_execution_update N/A N/A context ctx job_execution update N/A delete_proxy_user_for_job_execution N/A N/A job_execution N/A N/A N/A Delete a proxy user based on a JobExecution

    :param job_execution: The job execution with proxy user information
    :returns: An updated job_configs dictionary or None

     N/A proxy_configs N/A N/A N/A job_execution job_configs get proxy_configs N/A N/A proxy_configs None N/A N/A proxy_username N/A N/A proxy_configs get proxy_username N/A proxy_trust_id N/A N/A proxy_configs get proxy_trust_id N/A proxy_user N/A N/A k auth_for_proxy proxy_username N/A N/A key_manager get_secret N/A N/A proxy_configs get proxy_password proxy_trust_id N/A N/A N/A t delete_trust proxy_user proxy_trust_id N/A N/A proxy_user_delete proxy_username N/A N/A N/A key_manager delete_secret N/A N/A proxy_configs get proxy_password N/A update N/A N/A N/A job_execution job_configs to_dict N/A N/A update N/A proxy_configs N/A update N/A None N/A create_proxy_user_for_cluster N/A N/A cluster N/A N/A N/A Creates a proxy user and adds the credentials to the cluster

    :param cluster: The cluster model to update

     N/A N/A N/A N/A cluster cluster_configs get proxy_configs N/A N/A cluster N/A username N/A N/A cluster_{0} format N/A cluster id N/A password N/A N/A key_manager store_secret N/A proxy_user_create username N/A current_user N/A N/A k auth N/A proxy_user N/A N/A k auth_for_proxy username password N/A trust_id N/A N/A t create_trust trustor current_user trustee proxy_user role_names N/A CONF proxy_user_role_names N/A update N/A cluster_configs N/A N/A N/A cluster cluster_configs to_dict N/A N/A N/A update N/A cluster_configs N/A proxy_configs N/A proxy_username proxy_password proxy_trust_id username password trust_id N/A N/A N/A conductor cluster_update N/A N/A context ctx cluster update N/A delete_proxy_user_for_cluster N/A N/A cluster N/A N/A N/A Delete a proxy user based on a Cluster

    :param cluster: The cluster model with proxy user information

     N/A proxy_configs N/A N/A N/A cluster cluster_configs get proxy_configs N/A N/A proxy_configs None N/A N/A proxy_username N/A N/A proxy_configs get proxy_username N/A proxy_trust_id N/A N/A proxy_configs get proxy_trust_id N/A proxy_user N/A N/A k auth_for_proxy proxy_username N/A N/A key_manager get_secret N/A N/A proxy_configs get proxy_password proxy_trust_id N/A N/A N/A t delete_trust proxy_user proxy_trust_id N/A N/A proxy_user_delete proxy_username N/A N/A N/A key_manager delete_secret N/A N/A proxy_configs get proxy_password N/A update N/A cluster_configs N/A N/A N/A cluster cluster_configs to_dict N/A N/A N/A update N/A cluster_configs N/A proxy_configs N/A N/A N/A conductor cluster_update N/A N/A context ctx cluster update N/A domain_for_proxy N/A N/A N/A N/A N/A Return the proxy domain or None

    If configured to use the proxy domain, this function will return that
    domain. If not configured to use the proxy domain, this function will
    return None. If the proxy domain can't be found this will raise an
    exception.

    :returns: A Keystone Domain object or None.
    :raises ConfigurationError: If the domain is requested but not specified.
    :raises NotFoundException: If the domain name is specified but cannot be
                               found.

     N/A N/A N/A CONF use_domain_for_proxy_users False N/A N/A None N/A N/A N/A CONF proxy_user_domain_name None N/A N/A N/A N/A ex ConfigurationError N/A _ Proxy domain requested but not specified. N/A admin N/A N/A k client_for_admin N/A PROXY_DOMAIN N/A N/A PROXY_DOMAIN N/A N/A domain_list N/A N/A b execute_with_retries N/A N/A admin domains list name N/A CONF proxy_user_domain_name N/A N/A N/A len domain_list 0 N/A N/A N/A N/A ex NotFoundException value N/A CONF proxy_user_domain_name message_template N/A _ Failed to find domain %s N/A N/A N/A len domain_list 1 N/A N/A N/A N/A ex NotFoundException value N/A CONF proxy_user_domain_name message_template N/A _ Unexpected results found when searching for domain %s N/A PROXY_DOMAIN N/A domain_list N/A 0 N/A PROXY_DOMAIN N/A job_execution_requires_proxy_user N/A N/A job_execution N/A N/A N/A Returns True if the job execution requires a proxy user. _check_values N/A N/A values N/A N/A N/A N/A any N/A N/A N/A value startswith N/A su SWIFT_INTERNAL_PREFIX N/A value values N/A isinstance value N/A six string_types N/A N/A N/A N/A CONF use_domain_for_proxy_users False N/A N/A False N/A paths N/A N/A N/A conductor data_source_get N/A N/A context ctx N/A job_execution output_id N/A N/A conductor data_source_get N/A N/A context ctx N/A job_execution input_id N/A N/A _check_values N/A N/A ds url N/A ds paths ds N/A N/A True N/A N/A _check_values N/A N/A six itervalues N/A N/A N/A job_execution job_configs get configs N/A N/A N/A True N/A N/A _check_values N/A N/A six itervalues N/A N/A N/A job_execution job_configs get params N/A N/A N/A True N/A N/A _check_values N/A N/A N/A job_execution job_configs get args N/A N/A N/A True N/A job N/A N/A conductor job_get N/A N/A context ctx N/A job_execution job_id N/A N/A _check_values N/A N/A main url N/A main N/A job mains N/A N/A True N/A N/A _check_values N/A N/A lib url N/A lib N/A job libs N/A N/A True N/A N/A by_name by_uuid N/A N/A job_utils may_contain_data_source_refs N/A job_execution job_configs N/A by_name N/A N/A names N/A tuple N/A N/A job_utils find_possible_data_source_refs_by_name N/A job_execution job_configs N/A N/A names N/A N/A N/A conductor data_source_count N/A N/A context ctx name names url N/A N/A su SWIFT_INTERNAL_PREFIX % 0 N/A N/A True N/A by_uuid N/A N/A uuids N/A tuple N/A N/A job_utils find_possible_data_source_refs_by_uuid N/A job_execution job_configs N/A N/A uuids N/A N/A N/A conductor data_source_count N/A N/A context ctx id uuids url N/A N/A su SWIFT_INTERNAL_PREFIX % 0 N/A N/A True N/A False N/A proxy_domain_users_list N/A N/A N/A N/A N/A Return a list of all users in the proxy domain. N/A admin N/A N/A k client_for_admin N/A domain N/A domain_for_proxy N/A domain N/A N/A N/A N/A b execute_with_retries N/A N/A admin users list domain N/A domain id N/A N/A N/A proxy_user_create N/A N/A username N/A N/A N/A Create a new user in the proxy domain

    Creates the username specified with a random password.

    :param username: The name of the new user.
    :returns: The password created for the user.

     N/A admin N/A N/A k client_for_admin N/A domain N/A domain_for_proxy N/A password N/A N/A six text_type N/A N/A uuid uuid4 N/A N/A N/A b execute_with_retries N/A N/A admin users create name username password password domain N/A domain id N/A N/A N/A LOG debug N/A N/A Created proxy user {username} format username username N/A password N/A proxy_user_delete N/A N/A username user_id N/A None None N/A N/A Delete the user from the proxy domain.

    :param username: The name of the user to delete.
    :param user_id: The id of the user to delete, if provided this overrides
                    the username.
    :raises NotFoundException: If there is an error locating the user in the
                               proxy domain.

     N/A admin N/A N/A k client_for_admin N/A N/A user_id N/A N/A domain N/A domain_for_proxy N/A user_list N/A N/A b execute_with_retries N/A N/A admin users list domain N/A domain id name username N/A N/A N/A len user_list 0 N/A N/A N/A N/A ex NotFoundException value username message_template N/A _ Failed to find user %s N/A N/A N/A len user_list 1 N/A N/A N/A N/A ex NotFoundException value username message_template N/A _ Unexpected results found when searching for user %s N/A user_id N/A N/A user_list N/A 0 id N/A N/A N/A b execute_with_retries N/A N/A admin users delete user_id N/A N/A N/A LOG debug N/A N/A Deleted proxy user id {user_id} format user_id user_id N/A