Add sample admin_{user,tenant_name,password}

Other OpenStack components have the same configs in api-paste.ini.
admin_token was removed by Bug #1299332, and admin_{user,password,
tenant_name} should be added instead of admin_token.

Change-Id: Icabb056c315556db8064ded882fba13c25ec2bca
Closes-Bug: #1325482
Added route for Admin API to support guest upgrade

Added optional metadata param to API

1. Changed route to {tenant_id}/mgmt/instances/{instance_id}/upgrade
2. Changed POST body to send properties inside an upgrade dict
3. Removed unimplemented method from guest agent manager
4. Swap out rpc call to use _cast
5. Removed instance_id from rpc call
6. Removed strategy from api calls
7. Switched out import of guestagent api in favor of common.remote
8. Rename UpgradeNotifier to UpgradeMessageSender

Change-Id: I12d09fd70ab028da1cd2818fe380310e99b66d2d
Implements: blueprint upgrade-guestagent
Closes-Bug: #1211924
Add guestagent API calls for replication

Adds API methods for the V1 implementation of replication.

Partially implements: blueprint replication-v1

Change-Id: I1814ce0b928e2b7a46c2f45aa4483aa04892bf13
Expose trove conductor manager class as conf property

The current implementation of trove conductor hard-codes the conductor
manager class name in the cmd entry point thus not allowing it to be set
by consumers. This change exposes that classname on the conductor conf
so that consumers could plug-in their own manager class. Additionally
unit tests are provided to ensure a user defined and conductor manager
can be used in addition to the default trove conductor manager.

Change-Id: I6bf88dd9cf119f0eb6a197f4bda48c309511297e
Implements: blueprint pluggable-conductor-manager
Sync jsonutils (and dependencies) from oslo-incubator

The sync includes change that drastically enhances performance on Python
2.6 with fresh simplejson library installed.

The sync adds a new 'strutils' module that is now used in jsonutils.

Changes:

jsonutils
---------
0d7296f Add kwargs to jsonutils.load(s) functions
18f2bc1 Enforce unicode json output for jsonutils.load[s]()
9e5a393 jsonutils.load() accepts file pointer, not string
a6b2aec On Python <= 2.6, use simplejson if available
e3a1d9c Use six.moves.xmlrpc_client instead of xmlrpclib
3a31bba Python3 support for xmlrpclib
e6494c2 Use six.iteritems to make dict work on Python2/3
12bcdb7 Remove vim header
3d7504b Ensure that Message objects will be sent via RPC in unicode format

gettextutils
------------
de4adbc pep8: fixed multiple violations
9912e5d Add API for creating translation functions
6cc96d0 Fix test_gettextutils on Python 3
fd33d1e Fix gettextutil.Message handling of deep copy failures
047b2e4 Change lazy translation to retain complete dict
6d55e26 Add support for translating log levels separately
afdbc0a Fix E501 in individual openstack projects
9d529dd Make Message keep string interpolation args
ec6d900 Add support for locales missing from babel
221c37d Allow the Message class to have non-English default locales
0e1af5b Implementation of translation log handler
8b2b0b7 Use hacking import_exceptions for gettextutils._
2cfc1a7 Translation Message improvements
45658e2 Fix violations of H302:import only modules
12bcdb7 Remove vim header
3970d46 Fix typos in oslo
88db9c8 When translating if no locale is given use default locale
04c1b5a Type check for Message param to avoid AttributeError
89369c3 gettextutils: port to Python 3
6d49bca Translate all substitution elements of a Message object

importutils
-----------
1173e46 Remove ValueError when accessing sys.modules
885828a Deleted duplicated method in cliutils.
12bcdb7 Remove vim header

strutils
--------
8a0f567 Remove str() from LOG.* and exceptions
fd18c28 Fix safe_encode(): return bytes on Python 3
302c7c8 strutils: Allow safe_{encode,decode} to take bytes as input
bec3a5e Implements SI/IEC unit system conversion to bytes
e53fe85 strutils bool_from_string, allow specified default
8b2b0b7 Use hacking import_exceptions for gettextutils._
84d461e Fix a bug in safe_encode where it returns a bytes object in py3
12bcdb7 Remove vim header
3970d46 Fix typos in oslo
1a2df89 Enable H302 hacking check
67bd769 python3: Fix traceback while running python3.
b0c51ec Refactors to_bytes
472d8ed Add slugify to strutils
7119e29 Enable hacking H404 test.
4246ce0 Added common code into fileutils and strutils.
536c39e Add 't', 'y', and `strict` to `bool_from_string`
d9b0719 Handle ints passed to `boolean_from_string`
8c964a2 Do not import openstack.common.log in strutils
e700d92 Replaces standard logging with common logging
547ab34 Fix Copyright Headers - Rename LLC to Foundation
bd5dad9 Decode / Encode string utils for openstack
7cf239c Rename utils.py to strutils.py

timeutils
---------
250cd88 Fixed a new pep8 error and a small typo
71208fe Fix spelling errors in comments
7013471 Fix typo in parameter documentation (timeutils)
ae931a9 Avoid TypeError in is_older_than, is_newer_than
12bcdb7 Remove vim header
f3b5f17 Add helper method total_seconds in timeutils.py
53ebd30 python3: use six.text_types for unicode()
3bc6f79 Fix timeutils.set_override_time not defaulting to current wall time
af76064 Optimize timeutils.utcnow_ts()

Change-Id: Ib3dc0b713ed90396919feba018772243b3b9c90f
Closes-Bug: 1314129
Sync processutils from oslo with deps

The main target for the sync is to pick up the get_worker_count()
method in commit 85f178489a128a04a7ee3ed44018403caa109ef0 so that we
can set trove api/conductor workers equal to the number of CPUs on the
host.

Changes:

local
-----
12bcdb7 Remove vim header

log
---
109e325 Use oslo.messaging to publish log errors
de4adbc pep8: fixed multiple violations
eac71f5 Fix common.log.ContextFormatter for Python 3
d78b633 Fixes a simple spelling mistake
621d831 always log a traceback in the sys.excepthook
90ae24b Remove redundant default=None for config options
af36c2a Fix logging setup for Python 3.4
cdcc19c Mask passwords that are included in commands
fe3389e Improve help strings
8a0f567 Remove str() from LOG.* and exceptions
f61a4e7 Fix python26 compatibility for RFCSysLogHandler
da6d713 Revert setting oslo-incubator logs to INFO
0d18381 Set default log levels for oslo.messaging and oslo-incubator
346884d Add default user_identity to logging record
86707cd Remove None for dict.get()
61ff7a6 Rename Openstack to OpenStack
dda47c9 Use ContextFormatter for imparting context info
52b6446 Fix deprecated messages sent multiple times
1978114 default connectionpool to WARN log level
79e8a9a Backport 'ident' from python 3.3 for Oslo's SysLogHandler
55cd46a remove extra newlines that eventlet seems to add
bcf6d5e Small edits on help strings
d292f7d Add error type to unhandled exception log message
0228b81 Logging excepthook: print exception info if debug=True
71208fe Fix spelling errors in comments
8b2b0b7 Use hacking import_exceptions for gettextutils._
6d0a6c3 Correct invalid docstrings
fe18bfa Remove keystone from default_log_levels default
13eb01c Adding domain to context and log
27b21bc Unify different names between Python2/3 with six.moves
12bcdb7 Remove vim header
a6f40ac Don't log to stdout when log_dir is set
25c5854 Adds admin_password as key to be sanitized when logging
2251cb5 Do not name variables as builtins
cbfded9 Default iso8601 logging to WARN
76b0cd1 Add mask password impl from other projects
5fef5a8 allow keeping of existing loggers with fileConfig
fb8075a Add amqp=WARN,qpid=WARN to default_log_levels
4654a5d Don't override default value for eventlet.wsgi.server logging
a817275 _get_log_file_path explictly return, when logfile/logdire unset
e12e6b4 Make openstack.common.log Python 3 compatible
572cfec Make Messages unicode before hitting logging
36859e5 Adding instance_uuid to context and log

processutils
------------
85f1784 Move nova.utils.cpu_count() to processutils module
cdcc19c Mask passwords that are included in commands
8a0f567 Remove str() from LOG.* and exceptions
51778f9 Allow passing environment variables to execute()
fcf517d Update oslo log messages with translation domains
af41592 Catch OSError in processutils
f773ea2 Fix i18n problem in processutils module
8b2b0b7 Use hacking import_exceptions for gettextutils._
3b71f46 Fixed misspellings of common words
12bcdb7 Remove vim header
a4dab73 Correct execute() to check 0 in check_exit_code
d6a963e Fix processutils.execute errors on windows
aa5b658 Allow passing a logging level to processutils.execute
1a2df89 Enable H302 hacking check
7119e29 Enable hacking H404 test.
2f01388 Use Python 3.x compatible except construct
a514693 Removes len() on empty sequence evaluation
3893ef8 Import trycmd and ssh_execute from nova.
584c176 Update processutils.
e700d92 Replaces standard logging with common logging

Partial-Bug: #1335284

Change-Id: Ib8897ab8d728e2af9942980f7d66e567fd157f85
Remove redundant heat templates from codebase

Reasons:
 - Heat templates are not unique anymore:
   - last thing was - dependency on tcp/udp ports from configuration.

Changes:
 - use default.heat.template for each datastore;
 - removed all {datastore}/heat.templates;

Behaviour:
 - deployer still can use custom templates for each of datastores;

Change-Id: Ifc8b23e4158fd20c7fc3ed8701660747962d5506
Closes-Bug: #1328464
Merge "Sync jsonutils (and dependencies) from oslo-incubator"
Merge "Sync processutils from oslo with deps"
Merge "Expose trove conductor manager class as conf property"
Logging audit for trove/db module

Adjust log messages to conform to logging standards.
Cleanup some messages that were unclear.

Change-Id: I0a67acd6aa7bef8cb9adb32cf0f821ba24a4cb92
Partial-Bug: #1324206
Merge "Add sample admin_{user,tenant_name,password}"
Updated from global requirements

Change-Id: I250ee1327ba856687bef7898cd03d67ddab9a993
Imported Translations from Transifex

Change-Id: I0a793e76191fb9e6a594e56711ed1e4110e99244
Add CONTRIBUTING.rst

There is no CONTRIBUTING.rst file, the patch will add it.

Change-Id: I279ef20612e695244456e36399d0d908642f85d8
Closes-Bug: #1337182
Merge "Remove redundant heat templates from codebase"
Merge "Updated from global requirements"
Imported Translations from Transifex

Change-Id: Iec80d580102d7b23044dc9958c28089d579d17b4
Logging audit for trove/common module

Adjust log messages to conform to logging standards.
Cleanup some messages that were unclear.

Change-Id: I0bed14a98477d7e2b83e43ce020b6b41e5ac8fa8
Partial-Bug: #1324206
Merge "Added route for Admin API to support guest upgrade"