From patchwork Wed Nov 11 11:24:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 59311 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nABBOLr9005883 for ; Wed, 11 Nov 2009 11:24:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757159AbZKKLYB (ORCPT ); Wed, 11 Nov 2009 06:24:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756862AbZKKLYB (ORCPT ); Wed, 11 Nov 2009 06:24:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:15584 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756616AbZKKLYA (ORCPT ); Wed, 11 Nov 2009 06:24:00 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nABBO4Im008649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Nov 2009 06:24:05 -0500 Received: from localhost.localdomain (vpn-8-235.rdu.redhat.com [10.11.8.235]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nABBO3U9010279; Wed, 11 Nov 2009 06:24:03 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] Move global configuration files to client dir Date: Wed, 11 Nov 2009 09:24:02 -0200 Message-Id: <1257938642-6613-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/common_lib/global_config.py b/client/common_lib/global_config.py index 2bbeca0..1ced7db 100644 --- a/client/common_lib/global_config.py +++ b/client/common_lib/global_config.py @@ -10,9 +10,9 @@ from autotest_lib.client.common_lib import error dirname = os.path.dirname(sys.modules[__name__].__file__) DEFAULT_CONFIG_FILE = os.path.abspath(os.path.join(dirname, - "../../global_config.ini")) + "../global_config.ini")) DEFAULT_SHADOW_FILE = os.path.abspath(os.path.join(dirname, - "../../shadow_config.ini")) + "../shadow_config.ini")) class ConfigError(error.AutotestError): diff --git a/client/global_config.ini b/client/global_config.ini new file mode 100644 index 0000000..149c4c4 --- /dev/null +++ b/client/global_config.ini @@ -0,0 +1,90 @@ +[TKO] +host: localhost +database: tko +db_type: mysql +user: autotest +password: please_set_this_password +readonly_host: localhost +readonly_user: nobody +readonly_password: +query_timeout: 3600 +min_retry_delay: 20 +max_retry_delay: 60 +graph_cache_creation_timeout_minutes: 10 + +[AUTOTEST_WEB] +host: localhost +database: autotest_web +db_type: mysql +user: autotest +password: please_set_this_password +job_timeout_default: 72 +job_max_runtime_hrs_default: 72 +parse_failed_repair_default: 0 +# Only set this if your server is not 'http://[SERVER] hostname/afe/' +#base_url: http://your_autotest_server/afe/ + +[AUTOSERV] +# Autotest potential install paths +client_autodir_paths: /usr/local/autotest,/home/autotest + +[SERVER] +hostname: autotest +# Turn on RPC Logging +rpc_logging: False +# Note the user that is running the webserver has to be able to write +# to the below directory/file otherwise the frontend will not work with logging +rpc_log_path: /usr/local/autotest/logs/rpcserver.log +# Number of old logs to keep around +rpc_num_old_logs: 5 +rpc_max_log_size_mb: 20 +# If for some reason you don't want to rely on the Mail Transport Agent +# installed on this machine, you can provide an SMTP server directly here. +# If none provided, defaults to 'localhost', which tries to use the MTA +# configured on the machine to send the messages. +smtp_server: +smtp_port: +smtp_user: +smtp_password: + +[CLIENT] +# Drop test client caches between every test execution +drop_caches: True +# Drop test client caches between every test iteration execution +drop_caches_between_iterations: True + +[SCHEDULER] +die_on_orphans: False +enable_scheduler: True +notify_email: +notify_email_from: +notify_email_statuses: Completed,Failed,Aborted +max_processes_per_drone: 1000 +max_jobs_started_per_cycle: 100 +max_parse_processes: 5 +max_transfer_processes: 50 +tick_pause_sec: 5 +clean_interval_minutes: 60 +drones: localhost +drone_installation_directory: /usr/local/autotest +results_host: localhost +results_host_installation_directory: +secs_to_wait_for_atomic_group_hosts: 600 +pidfile_timeout_mins: 300 +max_pidfile_refreshes: 2000 + +[HOSTS] +wait_up_processes: +default_protection: NO_PROTECTION + +[AUTOSERV] +# Autotest has 2 implementations of SSH based hosts, the default (raw_ssh), and +# another one based on the python SSH library paramiko (paramiko). +# You can change the default 'raw_ssh' to 'paramiko' if you want to. +ssh_engine: raw_ssh +# Autotest server operators *really should* set this to True, specially if +# using ssh_engine 'paramiko'. +require_atfork_module: False + +[PACKAGES] +serve_packages_from_autoserv: True diff --git a/client/shadow_config.ini b/client/shadow_config.ini new file mode 100644 index 0000000..12b00a5 --- /dev/null +++ b/client/shadow_config.ini @@ -0,0 +1,3 @@ +#[TKO] +#user: autotest +#password: mypassword diff --git a/global_config.ini b/global_config.ini deleted file mode 100644 index 149c4c4..0000000 --- a/global_config.ini +++ /dev/null @@ -1,90 +0,0 @@ -[TKO] -host: localhost -database: tko -db_type: mysql -user: autotest -password: please_set_this_password -readonly_host: localhost -readonly_user: nobody -readonly_password: -query_timeout: 3600 -min_retry_delay: 20 -max_retry_delay: 60 -graph_cache_creation_timeout_minutes: 10 - -[AUTOTEST_WEB] -host: localhost -database: autotest_web -db_type: mysql -user: autotest -password: please_set_this_password -job_timeout_default: 72 -job_max_runtime_hrs_default: 72 -parse_failed_repair_default: 0 -# Only set this if your server is not 'http://[SERVER] hostname/afe/' -#base_url: http://your_autotest_server/afe/ - -[AUTOSERV] -# Autotest potential install paths -client_autodir_paths: /usr/local/autotest,/home/autotest - -[SERVER] -hostname: autotest -# Turn on RPC Logging -rpc_logging: False -# Note the user that is running the webserver has to be able to write -# to the below directory/file otherwise the frontend will not work with logging -rpc_log_path: /usr/local/autotest/logs/rpcserver.log -# Number of old logs to keep around -rpc_num_old_logs: 5 -rpc_max_log_size_mb: 20 -# If for some reason you don't want to rely on the Mail Transport Agent -# installed on this machine, you can provide an SMTP server directly here. -# If none provided, defaults to 'localhost', which tries to use the MTA -# configured on the machine to send the messages. -smtp_server: -smtp_port: -smtp_user: -smtp_password: - -[CLIENT] -# Drop test client caches between every test execution -drop_caches: True -# Drop test client caches between every test iteration execution -drop_caches_between_iterations: True - -[SCHEDULER] -die_on_orphans: False -enable_scheduler: True -notify_email: -notify_email_from: -notify_email_statuses: Completed,Failed,Aborted -max_processes_per_drone: 1000 -max_jobs_started_per_cycle: 100 -max_parse_processes: 5 -max_transfer_processes: 50 -tick_pause_sec: 5 -clean_interval_minutes: 60 -drones: localhost -drone_installation_directory: /usr/local/autotest -results_host: localhost -results_host_installation_directory: -secs_to_wait_for_atomic_group_hosts: 600 -pidfile_timeout_mins: 300 -max_pidfile_refreshes: 2000 - -[HOSTS] -wait_up_processes: -default_protection: NO_PROTECTION - -[AUTOSERV] -# Autotest has 2 implementations of SSH based hosts, the default (raw_ssh), and -# another one based on the python SSH library paramiko (paramiko). -# You can change the default 'raw_ssh' to 'paramiko' if you want to. -ssh_engine: raw_ssh -# Autotest server operators *really should* set this to True, specially if -# using ssh_engine 'paramiko'. -require_atfork_module: False - -[PACKAGES] -serve_packages_from_autoserv: True diff --git a/shadow_config.ini b/shadow_config.ini deleted file mode 100644 index 12b00a5..0000000 --- a/shadow_config.ini +++ /dev/null @@ -1,3 +0,0 @@ -#[TKO] -#user: autotest -#password: mypassword