From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: John Admanski <jadmanski@google.com>
Cc: autotest@test.kernel.org, kvm@vger.kernel.org
Subject: Re: [Autotest] [PATCH] Move global configuration files to client dir
Date: Wed, 11 Nov 2009 15:16:31 -0200 [thread overview]
Message-ID: <1257959791.2789.0.camel@localhost.localdomain> (raw)
In-Reply-To: <394b34480911110732o17ad5a1di6bc5fb2c20d79192@mail.gmail.com>
On Wed, 2009-11-11 at 07:32 -0800, John Admanski wrote:
> I don't think this is sufficient. It works in the simple cases, but
> what about when you're using packaging to install the clients and not
> rsync? I guess that still technically works...assuming that you
> rebuild the client package whenever you need to change the .ini.
>
> While not strictly wrong, this solution strikes me as really
> inelegant. Its interaction with client installs is messy, and it
> changes what is a very user-facing component (the ini file) in a very
> dramatic way. At the very least we'd need to update all the
> documentation on the website that refers to the global config.
Ok, then let's revert the original patches that turn drop_caches into a
global config option. Later I will think of a more elegant solution.
> -- John
>
> On Wed, Nov 11, 2009 at 3:24 AM, Lucas Meneghel Rodrigues
> <lmr@redhat.com> wrote:
> > So this way the client can also benefit from settings
> > defined on the configuration files.
> >
> > Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> > ---
> > client/common_lib/global_config.py | 4 +-
> > client/global_config.ini | 90 ++++++++++++++++++++++++++++++++++++
> > client/shadow_config.ini | 3 +
> > global_config.ini | 90 ------------------------------------
> > shadow_config.ini | 3 -
> > 5 files changed, 95 insertions(+), 95 deletions(-)
> > create mode 100644 client/global_config.ini
> > create mode 100644 client/shadow_config.ini
> > delete mode 100644 global_config.ini
> > delete mode 100644 shadow_config.ini
> >
> > 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
> > --
> > 1.6.2.5
> >
> > _______________________________________________
> > Autotest mailing list
> > Autotest@test.kernel.org
> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
next prev parent reply other threads:[~2009-11-11 17:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-11 11:24 [PATCH] Move global configuration files to client dir Lucas Meneghel Rodrigues
2009-11-11 15:32 ` [Autotest] " John Admanski
2009-11-11 17:16 ` Lucas Meneghel Rodrigues [this message]
2009-11-11 17:30 ` John Admanski
2009-11-11 17:35 ` Martin Bligh
2009-11-11 17:37 ` John Admanski
2009-11-11 17:45 ` Scott Zawalski
2009-11-11 23:41 ` John Admanski
2009-11-11 23:59 ` Steve Howard
2009-11-12 0:09 ` Lucas Meneghel Rodrigues
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257959791.2789.0.camel@localhost.localdomain \
--to=lmr@redhat.com \
--cc=autotest@test.kernel.org \
--cc=jadmanski@google.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox