Added Freezer API V2 which supports mainly multitenancy
Added a new database driver to support project_id parameter.
API v2 will be in development status till the end of pike
API v1 will be deprecated by end of Pike
oslo.db patch will be based on API v2
Implements blueprint api-v2-multi-tenancy
Signed-off-by: Saad Zaher <eng.szaher@gmail.com>
Change-Id: I2791246b7d6dc6c91427af45c0930e5d334a4861
Abstract storage configuration section to load different database
backend drivers. so we can keep supporting elasticsearch for
a while after moving to oslo.db also this will help in adding
API v2 as the elasticsearch driver will be changed.
Each db driver will register it's configuration on the run time.
Change-Id: Ie861e569f4add783c6f580cd0c08ed0fb3440151
In the cfg module default=None is set as the
default value. It's not necessary to set it
again when defining config options.
Change-Id: Ib52c4e3c570b444cb79af65d1fa8025545578ab1
Closes-bug: #1323975
This patch adds full pep8 check support. All code style problems
is fixed.
Closes-Bug: #1646103
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I1fce70a1b4e4c70379fc3876f85170b06a044059
After executing "freezer-scheduler register" we face problem that
all shards failed in elasticsearch (ES).
If we use number of replicas "0" according to ES documentation
for one node installation then this issue disappeared.
After "first use" of freezer tool cloud engineer can add
additional ES nodes to cluster and fine tune this value
in configuration file.
Change-Id: I4f2a6562358aefb6244f8d0590a9f138db19a925
Elk loads the configuration from the right place now and won't use
the default configuration
Change-Id: Ia439f5c76037251a1b8e41030b1ef6c8fea9c485
Closes-Bug: #1569996
Added storage section for elk config and keystone_authtoken section
for keystone related configurations
Change-Id: Iba3e1c97bfd58fb39c6f9208e31014dde8658f2f
Closes-Bug: #1565737
Align to the other Openstack project and
use testr instead of pytest
Includes:
- pylint and pep8 fixes.
- py34 compliance
- requirements updated
- updated path to dsvm gate job
Change-Id: I10a5ea8d581029eba8f3ab5e016a1dd1919fa117
Depends-On: I4f9050cd551e87d2e398b6f94dc904154d0b1b13
Add support for options to be passed the the elasticsearch connection
The following options are supported in the freezer-api.conf file:
hosts='http://localhost:9200'
use_ssl=False
ca_certs=''
use_ssl=False
timeout=60
retries=20
The provided values are the respective defaults.
Implements blueprint: api-conf-db-options
Change-Id: I373503bf845d0ac8091c83280ac21611d30d1a07
Refactoring logging to use oslo.log to have standard OpenStack logging.
Refactoring log messages to enable i18n translations.
Refactoring Exception messages to enable i18n translations.
New requirement oslo.log.
Change-Id: I68850f9236f228c2ba99db2c3f3fb3a412f5ee4c
freezer_api/storage/driver.py has a stale import
the referenced file is simpledict.py which is not
needed anymore and has been removed
Change-Id: Iaa97f7a4efaa6bbc97ef8fa5566d5c5a55d2a11f
Closes-Bug: #1457158
Adds an endpoint to the api for the registration of freezer clients
Change-Id: I1ca2a5e0021d383df70dfd001ab12967714c35bc
Implements: blueprint freezerclient-registration
First implementation of the freezer API.
Slightly more than a skeleton with basic functionality
Change-Id: Iae04affea3aa0f4a943599b528df49d9d4a5b845
Implements: blueprint freezer-api-first-rel