From bacad8b0446f24c3158149545fd8689e1774abf6 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 17 Mar 2017 11:42:55 -0700 Subject: [PATCH] Add how to use local file default_data_uri option can handle local file already, so this patch adds how to use local file for the option. This comes from the commit I558238dbfc633793013451f836c7ce449e94c6c5 Change-Id: I1498f46731db0735685461faa4de940766354931 --- doc/source/tools/stackalytics-processor.txt | 4 +++- etc/stackalytics.conf | 3 ++- stackalytics/processor/config.py | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/source/tools/stackalytics-processor.txt b/doc/source/tools/stackalytics-processor.txt index a6a91f288..e1180acc0 100644 --- a/doc/source/tools/stackalytics-processor.txt +++ b/doc/source/tools/stackalytics-processor.txt @@ -39,7 +39,9 @@ optional arguments: --debug, -d If set to true, the logging level will be set to DEBUG instead of the default INFO level. --default-data-uri DEFAULT_DATA_URI - URI for default data + URI for default data. A local file can be used with + the prefix "file://". For example, default_data_uri = + file:///path/to/default_data.json --driverlog-data-uri DRIVERLOG_DATA_URI URI for default data --gerrit-retry GERRIT_RETRY diff --git a/etc/stackalytics.conf b/etc/stackalytics.conf index ce882aa24..321b5d2a5 100644 --- a/etc/stackalytics.conf +++ b/etc/stackalytics.conf @@ -116,7 +116,8 @@ # Storage URI (string value) #runtime_storage_uri = memcached://127.0.0.1:11211 -# URI for default data (string value) +# URI for default data. A local file can be used with the prefix "file://". For +# example, default_data_uri = file:///path/to/default_data.json (string value) #default_data_uri = https://git.openstack.org/cgit/openstack/stackalytics/plain/etc/default_data.json # The folder that holds all project sources to analyze (string value) diff --git a/stackalytics/processor/config.py b/stackalytics/processor/config.py index 4b720e392..5ce661374 100644 --- a/stackalytics/processor/config.py +++ b/stackalytics/processor/config.py @@ -27,7 +27,9 @@ PROCESSOR_OPTS = [ cfg.StrOpt('default-data-uri', default='https://git.openstack.org/cgit/' 'openstack/stackalytics/plain/etc/default_data.json', - help='URI for default data'), + help='URI for default data. A local file can be used with the ' + 'prefix "file://". For example, ' + 'default_data_uri = file:///path/to/default_data.json'), cfg.StrOpt('sources-root', default='/var/local/stackalytics', help='The folder that holds all project sources to analyze'), cfg.IntOpt('days_to_update_members', default=30,