Commit Graph

43 Commits

Author SHA1 Message Date
Cai Hui 3667fb2d6a Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Ic8cf4bf0ba12043d15e1ff31832f42cc14b3e021
2022-05-15 09:09:05 +08:00
Zuul 6b364fd025 Merge "Updating python testing classifier as per Yoga testing runtime" 2022-05-08 08:53:49 +00:00
Ghanshyam Mann 231c53d9a6 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I59a40580f93bf8c133e0492659f2e3364aa71a4d
2021-12-14 02:45:35 +00:00
Zuul 8a477ffd8b Merge "Install paste file with PIP package" 2021-12-06 23:32:26 +00:00
Cai Hui 92844f55e6 Add python3.9 CI
Add python3.9 CI in tox.ini.

Change-Id: Ida07a13f5dcc152817bf2dd9353ad40f3dc61cbf
2021-11-06 10:01:07 +08:00
Dmitriy Rabotyagov 4918534ff7 Install paste file with PIP package
For people using freezer it might be useful to retrieve api-paste
file with package rather then looking for it in the repo.

Change-Id: Ib18f00cd9c6aee4ab49f55a1f48f2388574b8fa4
2021-08-24 13:32:50 +03:00
yangyawei e2c135078e setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I684486e308850c3cefef64314bea01f813d196f6
2021-05-13 18:13:22 +08:00
Ghanshyam Mann e02a492817 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I066488c47e1bb6502b27b8677988113f66b9b09b
2021-03-08 19:52:30 -06:00
caihui f1012d7d61 Update package metadata
Change-Id: I92e67d7ef9366137a4107d0e6de7299478b784c8
2020-11-09 22:59:22 -08:00
Andreas Jaeger f5332fd0d1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build. Remove extra build step
  from docs build - api-ref is build separate.
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine

Change-Id: I7bb95a8ebd7023046baae30595159254bac25690
2020-04-13 16:41:33 +02:00
Ghanshyam Mann 542dd206ac [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-api is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I52a67f838e2e92540a9bf409199daa971018d911
2019-11-22 01:53:16 +00:00
Cai Hui ba67938413 Add python3.7 unit test job in tox.ini
Add a unit test job running under Python 3.7.

Change-Id: I741c27cf83ca41e27c5c59f2e7ce57bf8a21f1e2
2019-06-05 03:49:03 -04:00
Ghanshyam Mann 133d5540a8 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I52a390177356da2e79aac8789a9ef96d57043149
2019-04-14 21:15:46 +00:00
LeopardMa c480fa5d02 Change openstack-dev to openstack-discuss
Change-Id: Id40480c96b4bf534b80c683de7d23434c9c14be7
2018-12-03 22:24:42 -05:00
whoami-rajat 4cf9e1c151 Upgrade Checkers : spelling correction
There was a spelling mistake due to which the module couldn't be
located in the upgrade checkers command.

Change-Id: I215b0fd6afdf77727d3e84ff33008168250da8b1
2018-10-31 23:10:12 +05:30
whoami-rajat 88ce38ca10 Add freezer-manager-status upgrade check command framework
This adds basic framework for freezer-manager-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: I21d4c7ff5e659b332d6692352d996b3216b56bc9
Story: 2003657
Task: 26129
2018-10-29 01:33:41 +00:00
Cai Hui fc088216b2 Remove ababdoned code.
The entry_point "service_v1" has changed to appv1 & appv2.
The extra code in files is cleaned up.

Change-Id: I1b907e3115c15f0fe82ecb2d54457209cfcf21e6
Id: I0d3d3982ea29bfb6a9af1c85dbd244025104c152
2018-09-26 03:36:04 -04: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
caoyuan 6739c9f0d7 Update homepage url for freezer
Change-Id: I73570747bc8defac0f070c6078cfc3275b3176e4
2018-01-23 11:32:28 +08: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
Dai Dang Van 8f3039508a Implement policy in code (1)
This commit will prepare for implementing policies in code[1].

Once we completed moving all of policies into code base,
we can also change default policy rules via policy.yaml
instead of policy.json and generate policy.yaml by command:
$ tox -e genpolicy

[1]https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: I587ee663eff9632ec355cef8152c13e1ebfffeb5
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
2017-10-05 14:33:27 +00:00
Luong Anh Tuan ef9c914dd5 Change author in setup.cfg
Changed author to OpenStack in setup.cfg

Change-Id: I47dbe1f717ee8f21e76681905d191a94fa912922
2017-06-12 20:40:00 +07:00
Saad Zaher 59733c15e0 Update freezer-api for pike goal python 3.5
Change-Id: I65c8ac4711256cbf1d1c361509e3d8aee46040f9
2017-05-22 16:47:15 +00:00
Andreas Jaeger 15233f9bf3 Docs: Various fixes
Treat warnings as errors when building documents to early spot problems.

Fix api-ref set up:
* Add openstackdocstheme for api-ref building instead of oslosphinx and
  configure it properly.
* Setup api-ref log-a-bug correctly for this project.
* Remove unneeded extra install command

Fix install-guide set up:
* Add tox environment

Fix releasenotes set up:
* Fix conf.py settings to build without errors, remove index, we don't
  need it.

fix docs set up:
* Use Sphinx 1.5 warning-is-error option for normal build_sphinx.
* use oslo sphinx
* Remove wrong static path setting

Change-Id: I07ce9db9fdb526ab4b083c65afa99c38bb508146
2017-03-08 21:02:46 +01:00
vnogin d963673bdc Change default value of elasticsearch replicas
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
2016-09-28 14:18:49 +01: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
Pierre-Arthur MATHIEU 0657535ad4 Remove version from setup.cfg
Change-Id: I9be5df0a85d48fcbd6e60bbf324573fa4c1b137e
2016-06-03 15:28:48 +01: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
Pierre-Arthur MATHIEU 131c4aedbc Bumping version to 2.1.0 for Newton
Change-Id: Id3648a67298a680162e1311c1f7953b25e60af77
2016-04-08 13:13:50 +01: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
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
Fausto Marzi e89b5fc80e Add Sphinx doc build
Change-Id: I06391e714c94b2308b2ce20ba503cb5773bf829e
Closes-Bug: #1542061
2016-02-06 21:13:11 +00:00
Fausto Marzi cdbf024c56 Align requirements and version to Mitaka
Change-Id: I1a16317fba9cc190c91bc05bcce6b5a4a390e918
2016-01-18 18:35:20 +00:00
Fausto Marzi 07dc3d014e Align requirements to liberty global-requirements
Now requirements.txt and test-requirements.txt are
aligned to global-requirements.txt of stable/Liberty.

Testing requirements are now move to test-requirements.txt
from tox.ini

Also the author, author-email and home-page are now update to
reflect Freezer Team and openstack-dev ml.

Change-Id: I27f2ea875778f19d2ffb542b9b8fbf29d1a740fe
2015-11-24 11:42:34 +00:00
Erno Kuvaja f86560268e Fix versions for Liberty
Change-Id: I6bcd9b1d3462ccf9b35119c571ec57d9aa548578
2015-11-17 15:24:34 +00:00
Fausto Marzi 7ca26cbd3a Bumping version for release kilo and pypi release
Change-Id: I0d25a8caa875fccd5efd608a862c91f14fbbafa1
2015-11-13 13:56:24 +00:00
venkatamahesh 53399ef1d8 Change the repository from stackforge to openstack
Change-Id: Ice1877c1253c0d592cb17cb9d1db85ccd43af00a
2015-10-18 15:04:13 +05:30
memo a903741ff9 Fix for configuration deployment.
freezer-api.conf now is deployed manually in case /etc
is not reachable by the user

Change-Id: I2a63222d9b6eae143c60a5e777f750721887db1c
2015-08-05 05:35:05 +00:00
Fausto Marzi 1531ac7cab Fixed package name to consistent with repo name
Now the package name is freezer-api instead of freezer_api.
This is consistent with the repo name and package name.
Also the README insttructions are updated
2015-08-04 11:25:43 +01:00
Fabrizio Vanni 9a94147115 freezer-scheduler without api service
Add the ability to start the freezer-scheduler without any
OS identity variable when used with the parameter

  --no-api

In that case the scheduler loads the configuration files for
the jobs from local files with the extension .conf located
in the directory

  /etc/freezer/scheduler/conf.d

The default path can be changed using the parameter

  --conf

Change-Id: I7787fa1af24a71600b3f483a770053226fec2191
2015-07-31 18:45:47 +01:00
Fabrizio Vanni 5573da32c0 elasticsearch init script
Adds a script to initialize the mappings of the elasticsearch db
used by the api.

The location of the elasticsearch db server can be provided using
command-line arguments or guessed by the script looking at the
freezer-api configuration file.

The script asks confirmation prior to deleting each of the
elasticsearch types whose mapping needs to be updated,
but it can be instructed to always assume a confirmation to ease
the invocation by scripts or deployment tools.

Change-Id: I0938c7cfde9bae440bf85f536a56079429d772a9
Implements: blueprint freezer-api-db-init
2015-07-15 12:25:34 +01:00
Fabrizio Vanni a389bf79fb freezer scheduler
The freezer scheduler is to be executed
as daemon process on the client machines

It has the following responsibilities:

  * when using the api:
    - register -if necessary- as a client in the api
    - download the list of jobs from the api
    - schedule the jobs for execution
    - launch the freezer client at the scheduled time
    - collect metadata and exit codes and upload them to the api
    - periodically poll the api for new/updated jobs
    - if a job is part of a session (a coordinated group of jobs)
      it updates the session status when job starts/stops

  * when not using the api
    - load jobs configurations from files
    - schedule the jobs for execution
    - launch the freezer client at the scheduled time

The freezer scheduler can also be used to manage jobs
and sessions using the following positional parameters:

  job-list
  job-get
  job-create
  job-delete
  job-start
  job-stop
  session-list
  session-get
  session-create
  session-delete
  session-list-job
  session-add-job
  session-remove-job

or to register the client in the api using the positional parameter:

  register

Implements blueprint: freezer-scheduler-start

Change-Id: I06ae202a0f464f7240c137744a5b54d1177cabd9
2015-07-10 18:51:17 +01:00
Fabrizio Vanni acbc7aefae Freezer API
First implementation of the freezer API.
Slightly more than a skeleton with basic functionality

Change-Id: Iae04affea3aa0f4a943599b528df49d9d4a5b845
Implements: blueprint freezer-api-first-rel
2015-04-08 18:25:45 +01:00