
Foundation members report shows when new users are registered as OpenStack Foundation members. However the current approach gets data directly from HTML pages (slow!), does not update the data and does not take into account job changes. Thus produced report does not reflect reality and just show wrong data. This reverts commits 307b96efc1893d42901dde7c5a27e842b10e51c2 2d4d2fc6107f553bf6d1fac31f5d0f3f0e6a2459 5decf7a17079d3c653f4a60372f73fa41cb89d84 ea37576fbfa01866222d1c84560cc5830a0ef4af bfb56d28c24433e85af0cf0f65846863c753b897 1865fc804f6a4ff33908bd7b7191809ade1aa728 e40cb6857c5b47ba41111d6f2a395c7cd4a3f76c 1c4003c6fba50fc0b6eea78c279b4064ec71d78f 97a64afd68984840b1379732099dbc79cb7e1843 a18739e4158b6ba69046e9d0cf68c47c2b90faa6 ed515b4be9e31982ef9774a0f3688cf1e0c5ef42 Change-Id: I5e4886e7ff7f1da1527d82a1e55152af58f36afe
63 lines
2.7 KiB
Python
63 lines
2.7 KiB
Python
# Copyright (c) 2013 Mirantis Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import copy
|
|
|
|
from oslo_config import cfg
|
|
|
|
|
|
CONNECTION_OPTS = [
|
|
cfg.StrOpt('runtime-storage-uri', default='memcached://127.0.0.1:11211',
|
|
help='Storage URI'),
|
|
]
|
|
|
|
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. 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.StrOpt('corrections-uri',
|
|
default=('https://git.openstack.org/cgit/'
|
|
'openstack/stackalytics/plain/etc/corrections.json'),
|
|
help='The address of file with corrections data'),
|
|
cfg.StrOpt('review-uri', default='gerrit://review.openstack.org',
|
|
help='URI of review system'),
|
|
cfg.StrOpt('git-base-uri', default='git://git.openstack.org',
|
|
help='git base location'),
|
|
cfg.StrOpt('ssh-key-filename', default='/home/user/.ssh/id_rsa',
|
|
help='SSH key for gerrit review system access'),
|
|
cfg.StrOpt('ssh-username', default='user',
|
|
help='SSH username for gerrit review system access'),
|
|
cfg.StrOpt('translation-team-uri',
|
|
default='https://git.openstack.org/cgit/openstack/i18n/'
|
|
'plain/tools/zanata/translation_team.yaml',
|
|
help='URI of translation team data'),
|
|
cfg.StrOpt("fetching-user-source", default='launchpad',
|
|
choices=['launchpad', '<None>'],
|
|
help="Source for fetching user profiles"),
|
|
cfg.IntOpt('read-timeout', default=120,
|
|
help='Number of seconds to wait for remote response'),
|
|
cfg.IntOpt('gerrit-retry', default=10,
|
|
help='How many times to retry after Gerrit errors'),
|
|
]
|
|
|
|
|
|
def list_opts():
|
|
yield (None, copy.deepcopy(CONNECTION_OPTS + PROCESSOR_OPTS))
|