If devstack is not in the $DEST directory,
The elasticsearch package will fail when downloading
and installing in freezer-api.
Change-Id: Iec29c2885b53756564a0bf23c7518f6cf848851a
In devstack/pkg, there is an elasticsearch.sh for downloading,
installing, starting and uninstalling of elasticsearch server,
but it is not flexible. In the future, freezer-api needs to support
ubuntu-xenial and ubuntu-bonic, which requires different elasticsearch
server versions. In addition, the programming interface of elastic
search server varies greatly before and after 5.0.0, which requires
different code of freezer-api to support. Pre-5.0.0 version
of elasticsearch server cannot be installed on ubuntu-bonic.
For the convenience of modification, freezer-api maintains
the elastic search.sh script by itself.
Change-Id: Ie069e2fd1e29daf53d8b1490f152cd820df036fe
Currently , devstack makes use of elasticsearch as db backend
by default for freezer-api project. The patch add sqlachemy
support.
Change-Id: I2f6e08183c58772142d7d053c7f1887a2274e4bd
Add support to oslo.db to be used as a DB driver. The DB driver will be
used with API v2. When it's completely implemented, API V1 will be
deprecated and removed by the end of the cycle. Freezer-api will keep
supporting V2 with Elasticsearch, Sqlalchemy drivers.
This patch implements the follow:
* Abstract Base DB driver to be implemented by each driver
* Base driver; will return only access to the db engine, session
* SqlAlchemy driver;
* ElasticSearch driver;
* Implement both drivers in freezer-manage
Partially-Implements: blueprint oslo-db
Depends-On: I81e417155da48f46dd2113e5745fb3c21c96499f
Depends-On: I2e5724b1f1a75121952e2beb3844d2c489e4df68
Depends-On: Idb4ac050652d1d0107bf3fcd447d7cbedd811809
Depends-On: I81d46c89859752c0cbc21ef02de90db7f19f942c
Change-Id: I93ed1b909f538728a1a9bd5c8b07baf7aeddb705
TEMPEST_SERVICES global variable is not supported
by devstack since long back.
- I380dd20e5ed716a0bdf92aa02c3730359b8136e4
- I9c24705e494689f09a885eb0a640efd50db33fcf
Service availability of tempest known services will be
set by devstack with local check.
- I02be777bf93143d946ccbb8e9eff637bfd1928d4
This commit removes the unused TEMPEST_SERVICES setting
Related-Bug: #1743688
Change-Id: Iacc3d0abc383f2ce76d9be68aecf29b300a2434f
* https://review.openstack.org/#/c/526905/ moves the intree bundled
freezer_api tempest plugin to its new home freezer-tempest-plugin.
Depends-On: I66cc2507b0bbd9dda9d6279f9b8d74c546d1b0a6
Change-Id: I9703758c7bdb9250686dabb376f82174abf74b63
This commit migrate all client policies into code [1] and
also remove policy.json usage file completely.
Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.
[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Dai Dang-Van <daidv@vn.fujitsu.com>
Change-Id: I7c7fd83aa2516c053e38d7598cf79e63401f7519
In freezer, some of the openstack.org use https and some of them are http.
Use https instead of http to ensure the safety without containing our
account/password information.
Change-Id: Ib4fac120e2a66b2f0a2939b01e63d9fb8356db78
* Enable debugging while running dsvm
* Use KEYSTONE_AUTH_URI/KEYSTONE_AUTH_URI_V3 as keystone moved
to new endpoints style
Change-Id: I45c419852b177e1d1b067bb5b7f25a60c6c88f7f
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
Due to ErrorLogFormat option is supported only from version 2.4
let's define it directly.
Change-Id: I28ce1354b4bc053924f911f4461fb31defca27af
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Moving freezer-api to oslo.policy and modified freezer context
to be injected through paste configuration
Change-Id: I20b9ac48cf3419015ff54f6c57de5f00c8e6d5f2
Implements: blueprint switch-freezer-api-oslo-policy
To allow monitoring checks to work, the API should additionally listen
on 127.0.0.1. This changes the devstack plugin so the generated apache
configuration will allow monasca to work without additional tweaking
in a dev environment.
Change-Id: Iaca8eac43d66de5a08e85cf58d7af42c29618bca
This adds 'display-name=%{GROUP}' to the freezer-api Apache template.
Currently, freezer-api's processes are all named 'httpd' making it
impossible for monitoring tools like monasca to find the correct
processes to watch. By setting 'display-name', the process will be
renamed to the process group ('freezer-api') making it possible to
monitor.
Change-Id: Ia247843d77f9b9148907e1cec80f47fdd394532b
Use freezer-manage instead of freezer-db-init to create/update/delete
elasticsearch mappings. freezer-manage will add couple of more
functionalities. freezer-manage reads from the same configuration
file like freezer-api and uses the same db info.
How to use:
To create the mappings::
freezer-manage db sync
To update the mappings::
freezer-manage db update
To remove the mappings::
freezer-manage db remove
To print the mappings::
freezer-manage db show
To update settings:
freezer-manage db update-settings
Change-Id: Ib1f8265b780c1e2300bcba45183309ea06c673d3
Implements: blueprint move-to-freezer-manage
Closes-Bug: #1587408
Start using Paste and Paste deploy for providing some flexability
to system administrator while deploying freezer-api.
Implements blueprint move-to-paste
Change-Id: I3f68a98ae7822495627791edb5be125556ff0b98
Currently, it remove the keystone.conf file but not freezer-api.conf
in the apache config. Remove the right one.
Change-Id: I22d03d6e242283b9c7fb5597e26933036c8205db
Closes-Bug: #1567868
Added storage section for elk config and keystone_authtoken section
for keystone related configurations
Change-Id: Iba3e1c97bfd58fb39c6f9208e31014dde8658f2f
Closes-Bug: #1565737
Switching freezer-api to oslo config opts and oslo logging opts to
follow Openstack standards and benfit from oslo libraries
Change-Id: I1b97db2e02087dccca3be25246c275d4e778094f
Implements: blueprint switch-api-to-oslo-config