Commit Graph

56 Commits

Author SHA1 Message Date
caihui c87d9cb29d Fix devstack install error
With the removal of screen support,tail_log is deprecated and removed after Queens.

Change-Id: Ia0dadd6cb403e98c988c99935d32804df9b7ed59
2020-11-26 23:47:46 -08:00
Caihui 4bb4ec0383 Add Devstack installation guide in README.rst
Add  DevStak installation  guide for the freezer-api project.

Change-Id: I3187b652da0cf9e0b6211d8317d5cf3e50a4aba3
2020-07-08 00:19:03 -07:00
caihui 712e5fe347 Update devstack doc
Add a sample local.conf file for freezer developer.

Change-Id: If0f7d8322de39881963af760c0670d5225a1a47d
2019-11-14 03:30:04 -08:00
Trinh Nguyen c24f74ff59 Fix elasticsearch issue with jdk on bionic
Change-Id: I57e260fe8ce1db7e41100a7e151698b333d784d3
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-14 13:16:26 +09:00
gengchc2 1edfc4d44a Fix bug for Download, and install elasticsearch server
If devstack is not in the $DEST directory,
The elasticsearch package will fail when downloading
and installing in freezer-api.

Change-Id: Iec29c2885b53756564a0bf23c7518f6cf848851a
2018-12-28 21:12:57 -08:00
gengchc2 a160098ecd Download, and install elasticsearch server for freezer-api
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
2018-12-20 00:46:58 +00:00
gecong1973 bffde587b9 Add devstack sqlalchemy support for freezer
Currently , devstack makes use of elasticsearch as db backend
by default for freezer-api project. The patch add sqlachemy
support.

Change-Id: I2f6e08183c58772142d7d053c7f1887a2274e4bd
2018-10-30 02:07:20 -07:00
Sumit Jamgade 023616aca4 when installing from pip python plugin is embedded in the binary
so plugin config is not required.

Change-Id: I8d0be8221a649b49989cc68d89728c48fb52bdab
2018-09-28 16:17:24 +02:00
Zuul 0fd99d9fac Merge "Configure gate jobs to collect the correct logs" 2018-02-20 14:50:18 +00:00
Saad Zaher d8e0dc21e0 Part 1: Implement Sqlalchemy driver for freezer-api
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
2018-02-19 11:12:38 +00:00
Saad Zaher 1692587b8d Configure gate jobs to collect the correct logs
* collect the correct freezer-api logs
   * collect freezer-agent logs
   * Added Gate hook to collect the logs

Depends-On: I81e417155da48f46dd2113e5745fb3c21c96499f
Change-Id: Ic24cab11290b6f4a292ba4fc085fb749b26bb93a
2018-02-19 10:26:56 +00:00
ghanshyam 1810e26d08 Remove use of unsupported TEMPEST_SERVICES variable
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
2018-01-23 16:43:53 +03:00
Chandan Kumar f1812b89b1 Remove bundled intree freezer_api tempest plugin
* 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
2017-12-10 16:44:22 +05:30
Saad Zaher aa4164ab79 Move freezer-api legacy jobs to project
Change-Id: Id2a81947b44748c1931c4ec1be81f994b0643ba5
2017-12-04 21:58:42 +00:00
Hieu LE ae388911e0 Implement policy in code - client (end)
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
2017-10-30 07:29:43 +00:00
Jenkins 4557ea0723 Merge "Update URLs in documentation" 2017-07-22 10:36:24 +00:00
Saad Zaher a4bd108dd0 Prevent freezer from enabling devstack plugins more than once
This should fix the gate jobs!

Change-Id: Iadec242d08ba241d23453b87f45308d498bb64ba
2017-07-20 14:37:26 +01:00
Hangdong Zhang 7244fa3799 Update URLs in documentation
Update URLs according to OpenStack document migration

Change-Id: Ib442a2eea4d476ee92c8b40aed6b24b66572dd62
2017-07-20 14:27:55 +08:00
Saad Zaher 3a6ec7c213 Configure dsvm gate job to use uwsgi instead of apache2
Change-Id: I31c8f5e724367e863fd613fbad170e52f99f1a42
2017-06-06 16:24:05 +01:00
Vitaliy afdd23b950 Improve keystone_authtoken configuration
Use built-in devstack function for that.
Also create and configure api cache directory.

Change-Id: Ide22b6e72c3942e72bf22141b412ad94b14a7ffb
2017-05-16 14:05:10 +00:00
yfzhao 4c8da184fe Replace http with https in openstack.org
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
2017-05-04 15:02:46 +08:00
Saad Zaher fe7abe54bb Update freezer-api devstack plugin
* remove debian dependencies
   * fix the cleanup function
   * fix path to wsgi application in uwsgi mode

Implements blueprint update-freezer-gate-jobs

Change-Id: Ieb4c0f1fc8f016519f1774d76afdfda7d23ead1f
2017-04-21 16:07:45 +00:00
Saad Zaher fc402f9b7e Update freezer-api dsvm gate job
* Enable debugging while running dsvm
    * Use KEYSTONE_AUTH_URI/KEYSTONE_AUTH_URI_V3 as keystone moved
      to new endpoints style

Change-Id: I45c419852b177e1d1b067bb5b7f25a60c6c88f7f
2017-04-19 23:17:00 +00:00
Saad Zaher 528f3234e9 Allow using different database backends
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
2017-03-15 19:20:56 +00:00
Jenkins 7575366c77 Merge "Devstack take up screen of freezer" 2017-02-02 14:30:23 +00:00
Jenkins cc95b6d212 Merge "Define apache version for ErrorLogFormat" 2016-12-07 17:45:40 +00:00
Jenkins 0e0cbd6d3b Merge "Fix a bug of doing devstack installation on CentOS" 2016-12-07 17:45:20 +00:00
Ruslan Aliev f49798496c Define apache version for ErrorLogFormat
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>
2016-11-30 16:21:32 +03:00
Ruslan Aliev 102acddd14 Fix inconsistent freezer-api log output
freezer-api.log prints mod_wsgi format string before
printing actual log message. There is need to define
error log format directly to print messages without
mod_wsgi prefix. More about edited parameters you can
find here [1] and here [2].

[1] https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat
[2] https://httpd.apache.org/docs/2.4/mod/core.html#loglevel

Change-Id: Ic5c4861e52d86477bd0ccd71ca9f4a555e57a0ff
Closes-Bug: #1644603
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2016-11-24 20:07:17 +03:00
Pengju Jiao 10a3e5861c Fix a bug of doing devstack installation on CentOS
Closes-Bug: #1644443

Change-Id: I84f09c5584fb07738d94e103f9de98d6a32bdad5
2016-11-24 22:45:38 +08:00
Saad Zaher 164faf00cc Refactoring dsvm gate job
Remove un-wanted pre, post files
Install python-freezerclient

Depends-On: I4b5370c36ed238242e64b23ffcbf155f06b0d65d
Change-Id: I37478a21709496146718110c7f6702fe304a26f5
2016-10-21 10:55:54 +00:00
Saad Zaher 7a328324d8 Added OpenJDK 7 ppa for xenial
Change-Id: Iffd38a325204a3ec7380a7a56061866477d3d06e
2016-10-19 00:56:49 +01:00
Jenkins b7a8a26d9e Merge "Listen on 127.0.0.1 in devstack" 2016-08-26 10:10:46 +00:00
Jenkins cbe147c863 Merge "Add display-name to freezer-api Apache config" 2016-08-26 10:10:37 +00:00
Saad Zaher ce09bbfa28 Implemented oslo.policy
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
2016-08-11 11:10:57 +00:00
Tim Buckley 0fef37e57a Listen on 127.0.0.1 in devstack
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
2016-07-12 11:40:43 -06:00
Tim Buckley 6cbd0424f1 Add display-name to freezer-api Apache config
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
2016-07-11 10:48:35 -06:00
Saad Zaher 94200bc073 Moving to freezer-manage to create/update/delete mappings
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
2016-06-20 11:25:06 +00:00
Saad Zaher 525c7f12cb Move to Paste and Paste-deploy
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
2016-05-31 17:19:59 +00:00
yangyapeng 74d04216e4 Devstack take up screen of freezer
Change-Id: I68340130afc75470ca8808c484141a068e1621e1
Closes-Bug: #1578959
2016-05-06 10:14:51 +00:00
Einst Crazy 4ce9a6771c Remove apache config file after cleanup freezer api
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
2016-04-08 14:58:28 +00:00
Saad Zaher 153279105e Adding storage, keystone_authtoken sections to sample config
Added storage section for elk config and keystone_authtoken section
for keystone related configurations

Change-Id: Iba3e1c97bfd58fb39c6f9208e31014dde8658f2f
Closes-Bug: #1565737
2016-04-04 17:27:29 +01:00
Jenkins 04a3c8983a Merge "Switch Freezer-api to oslo.config and oslo.log" 2016-04-04 10:50:56 +00:00
Saad Zaher d4e727d033 Switch Freezer-api to oslo.config and oslo.log
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
2016-04-04 10:52:16 +01:00
Jenkins 72fe674b46 Merge "This is incorrect url in example doc and conf" 2016-03-24 16:07:40 +00:00
Jenkins 431b0c7a2f Merge "Fix url from stackforge to openstack" 2016-03-24 15:04:55 +00:00
Jin Nan Zhang ea70bbca83 This is incorrect url in example doc and conf
enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api.git master

change the url to: https://git.openstack.org/openstack/freezer-api

Change-Id: If328d7f471d8a7187f7abf793d0236d0fcb4aaa8
2016-03-24 15:04:04 +00:00
Deklan Dieterly 13f0b7b2d1 Add Freezer API Version Test
Add a simple Tempest test to see if tests will hit the freezer api.

Change-Id: I794599752e1fea3eb884e238805565cced368ff5
2016-03-22 08:14:44 -06:00
Einst Crazy e38f65054e Fix url from stackforge to openstack
The project has been move from stackforge to openstack, so modify
it.

Closes-Bug: #1547304
Change-Id: I4d0133e91071f42a01adcc4ac5cc7c76f810cf7d
2016-03-04 09:34:20 +00:00
Deklan Dieterly 541baee572 Introduce tempest tests
Start to introduce tempest tests.

See if gate job executes first test.

Change-Id: Id55daec07f6a99a08cb1433807b7b5c5ed2db3f8
2016-03-03 09:46:58 -07:00