OpenStack Database As A Service (Trove)
Go to file
Zhao Chao 2fd8c66f64 Remove log translations
According to discussions on the ML, log messages should not be
translated any more. This patch also:
* removes all usage of _LI, _LW, _LE, _LC;
* updates log translation hacking rule.

ML discussions:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

The original commit messages are kept as following to make a historic
note:

remove unwanted log translations

recent discussions on the ML have led to the decision to eliminate all
translations for messages that are destined for log files but retain
them for messages that are going to be returned as exceptions and
potentially shown to end users via an API. see [1], [2].

This change does that as follows.

1. If a string is being used to generate an exception, it will still
be translated. Still Trove used both _LE and _ for these translations,
there are some cases where _LE has been simply changed to _, and not
removed.

2. If a string is used for a logging message, remove the use of _,
_LE, _LW, _LI.

Also, I have long felt that we have had a creep of checks in the pep8
tests that apparently make the code easier to read. I strongly believe
that these kinds of "easier to read" things make sense if they are
followed across all projects and not just gratuitously added one
project at a time.

I've taken this opportunity to reduce the merge mess caused by this
change, to sync up our ignore flags with a long list of ignores from
Nova. When they made the change for removing log translation, they
could do it in an automated-way like I have because they didn't have
to deal with under and overindented lines for visual edit (E127). Same
for Cinder.

Changes 448443 [3] and 447839 [4] were inadequate because they only
addressed a little part of the problem, namely removing the use of
_LE, _LI, and _LW, and I think this is a change we don't need to
dribble in a few files at a time. The changes are straightforward and
should be taken in a single lump to make it easy to deal with the
merges coming.

[1] http://lists.openstack.org/pipermail/openstack-operators/2017-March/012887.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
[3] https://review.openstack.org/448443
[4] https://review.openstack.org/447839

Co-Authored-By: Amrith Kumar <amrith@amrith.org>
Co-Authored-By: Valencia Serrao <vserrao@us.ibm.com>
Change-Id: I5f86c982469e625997fc8bd15c6fae0fc77a8c64
2018-01-24 17:21:26 +00:00
api-ref/source Add support for MySQL 5.7 on Ubuntu Xenial 2018-01-08 14:57:56 -06:00
apidocs/src/samples Fix backup of mysql variants on Centos 2016-12-13 16:29:41 +00:00
contrib Fixes hacking rules 2015-05-29 07:27:59 +00:00
devstack Remove use of unsupported TEMPEST_SERVICES variable 2018-01-23 16:27:42 +03:00
doc Merge "Add Database service user guide" 2018-01-14 02:45:42 +00:00
etc Remove the heat related documents 2018-01-17 16:17:25 +08:00
integration Adding missing dependencay 2018-01-23 20:08:50 +00:00
playbooks/legacy Import experimental Zuul jobs 2018-01-13 07:28:27 +01:00
releasenotes Implementation of root-enable, root-disable in redis. 2017-12-08 13:23:36 +08:00
tools Merge "Fix to use "." to source script files" 2017-11-03 19:01:57 +00:00
trove Remove log translations 2018-01-24 17:21:26 +00:00
.coveragerc Update some information 2016-10-24 04:12:55 +00:00
.gitignore Improve .gitignore file in the project 2017-11-30 08:30:21 +07:00
.gitreview Renamed repos to trove. 2013-06-14 18:25:42 -04:00
.stestr.conf Fix gate issues 2017-10-13 09:37:48 -05:00
.testr.conf Rename from reddwarf to trove. 2013-06-24 14:11:15 -07:00
.zuul.yaml Import experimental Zuul jobs 2018-01-13 07:28:27 +01:00
CONTRIBUTING.rst Update URLs in documents according to document migration 2017-11-03 17:17:01 +08:00
HACKING.rst Remove log translations 2018-01-24 17:21:26 +00:00
LICENSE Add Apache 2.0 LICENSE file. 2013-04-29 18:01:12 -04:00
README.rst Update URLs in documents according to document migration 2017-11-03 17:17:01 +08:00
babel.cfg Setup trove for translation 2014-03-19 15:06:23 +01:00
blacklist-py3.txt Remove blacklist test volume 2016-10-26 05:27:09 +00:00
generate_examples.py Fixes hacking rules 2015-05-29 07:27:59 +00:00
pylintrc initial chkin of pylint 2016-09-14 13:56:24 -04:00
requirements.txt Updated from global requirements 2018-01-16 12:56:32 +00:00
run_tests.py secure oslo_messaging.rpc 2017-01-11 07:56:35 -05:00
run_tests.sh Remove extraneous vim configuration comments 2014-02-27 15:05:21 +08:00
setup.cfg Remove bundled intree trove tempest plugin 2017-12-25 16:34:51 +05:30
setup.py Updated from global requirements 2017-03-02 11:57:16 +00:00
test-requirements.txt Updated from global requirements 2018-01-18 03:38:33 +00:00
tox.ini Merge "Add doc8 to pep8 check for trove project" 2017-12-02 08:32:59 +00:00

README.rst

Trove

image

Trove is Database as a Service for OpenStack.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://github.com/openstack/trove

You can raise bugs here: https://bugs.launchpad.net/trove

Python client

https://git.openstack.org/cgit/openstack/python-troveclient

References