Commit Graph

24 Commits

Author SHA1 Message Date
Martin Chacon Piza 91022f3e80 Remove project content on master branch
This is step 2b of repository deprecation process as described in [1].

[1] https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Change-Id: Ie446c1cd447789d189a9e723fff9ee783dd3cf4f
2021-02-22 14:57:15 +01:00
Andreas Jaeger d2f2144ebb Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Use sphinx-build everywhere
- Remove py27 testing, use victoria jobs template
- Set ignore_basepython_conflict in tox.ini

Change-Id: I8067cc94f5a8d29c836771173399f3ce71897ad8
2020-05-27 09:06:04 +02:00
Ghanshyam Mann 98f8469157 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-log-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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I3909027440b3af91d5c4fb964e862dedceaa6bed
2019-11-16 14:23:06 +00:00
Corey Bryant 4de81f8eff Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Id18ba326da128998d7deb25e305fe2a2150a9f6f
Story: #2005924
Task: #34223
2019-07-05 13:09:04 -04:00
Ghanshyam Mann a8402b4ef5 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: I036824344601821624f674f05edb6842b1b1baf3
2019-04-15 18:14:14 +00:00
melissaml bec512b59e Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I37729b5a9f44302cc149340b3c174e98a04062ac
2018-12-05 01:56:13 +08:00
Amir Mofakhar 5729d7e7c8 Using oslo.policy for monasca-log-api
Added policies and used policy enforcement engine
from monasca-common.

- Updated role_middleware to remove authorization into the routes.
- Updated unit tests and implemented some new tests.
- Added a new entry point for generating sample policy file by tox.

story: 2001233
task: 22086

Change-Id: I3d199fac244eca94fc434d19c78bc5a17e804c37
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
2018-07-19 09:55:54 +02:00
Chandan Kumar 76f85d4ca1 Remove bundled intree tempest plugin
* https://review.openstack.org/#/c/530454/ moves the
  monasca_log_api tempest plugin to monasca tempest plugin
  Let's consume it.

* Moved contrib to root folder and removed dummy pre_test_hook.sh

Change-Id: I1a73fdf0d10045326dc9ca09fd1c9b485a420089
2018-04-10 16:39:05 +02:00
Thierry Carrez 022147484e Fix tarball building error missing log-api.conf
Commit d243ed35 removed etc/monasca/log-api.conf, but it
was still included in the setup.cfg data_files to copy,
triggering a tarball-build job error.

Change-Id: I698b91bb36e4e9af4710584e7a887b34b35e3b5b
2017-07-07 11:19:55 +02:00
Tomasz Trębski 94885f91a9 Provide references to new docs
Story: 2001058
Task: 4779

Change-Id: I95bab9bc3262fb32e648e9fcce37bf87bdcbd918
2017-07-06 12:24:02 +02:00
Jenkins 6b0dbac6d8 Merge "Use oslo-config-generator" 2017-07-05 12:13:52 +00:00
Thomas Bechtold d243ed35d0 Use oslo-config-generator
It is common for OpenStack projects to use oslo-config-generator to generate
a sample config file which contains all available configuration options.

Work items:

* removed etc/monasca/log-api.conf (it is autogenerated)
* keep all config in one place to mimic the configuration file
* added configuration files to documentation

Story: 2000970
Task: 4121

Change-Id: I8777ed6cd38739e87b19be248b9c120e84626ad1
2017-07-05 09:44:35 +00:00
Jenkins 41a02fd88e Merge "Enable codebase documenation" 2017-07-04 08:01:59 +00:00
Tomasz Trębski 0acaeba534 Enable codebase documenation
Change adds building the codebase documentation
that will be part of contributors user guide.

Change-Id: I24df404289c8d843d413e094af56b933eb2e22e7
2017-07-03 13:54:01 +02:00
Tomasz Trębski 9689aa51f4 Add Py35 to setup.cfg
monasca-log-api is Py35 compatible. Add that information
to the setup.cfg to let pypi know about it.

It also finalizes completing the goal for Pike release
about Py35 support [1].

Refs:
[1]: https://governance.openstack.org/tc/goals/pike/python35.html

Change-Id: I7f46ad9a100161c482507689917644d9348d2f7a
2017-07-03 12:54:29 +02:00
Tomasz Trębski 29126ba9f8 Migrate documentation to Sphinx
Migration of Openstack Project is held in
*.rst files and build with Sphinx.

Following change provides:
* technical documention
* api guide
* api ref
* releasenotes

Note:
    For now, generating codebase documentation is disabled.
    It caused gate failures because of, yet unnown, reasons.
    In order to pull this foundation, this part is skipped.

Extra:
* provided venvs descriptions to let user know what is the scope

Story: 2001058
Task: 4665

Change-Id: Ieb2b58e165de1617748d97d997af368bd91d5c0e
2017-07-03 07:38:53 +00:00
Tomasz Trębski a3f9ef8ae5 Fix wrong configuration file paths
Configuration files mentioned in setup.cfg
were pointing (in 2 cases) at files that were
removed in previous commits.

This commits sets correct paths.

Change-Id: Icb353b95ce52c972c305f0692be79071f7bede5b
2017-06-05 10:43:23 +02:00
Tomasz Trębski 5e7ebdd9c5 Composite paste for monasca-log-api
Following commit introduces using composite
paste file to describe application pipelines.
With the help of composite feature it was possible to
define 4 distinct supapplications, each having different
pipeline setup:

* version_app => no keystoneauth, simple data return with error trap
* healthcheck_app => no keystoneauth, simple data return with error trap
* api_v2 => as it was, added error_trap though
* api_v3 => as it was, added error_trap though

Following approach opens up the possibilities of modelling an API
in far more flexible way and removes the need of any hacking inside
the codebase.

Note:
Keeps backward compatibility with older codebase.

Extra:
* removed dirty hack around skipping certain request.path
in keystonemiddleware (now described in paste file)
* removed 404 when issuing ```curl api_host:api_port/```. Request
is redirected down to VersionApp

Depends-On: I0323eacb5cbba8418550e3322189104c35cf4c36
Change-Id: I873e1376665c8cf66c8ee503975324f9b93ddb45
2017-06-02 14:20:43 +00:00
Tomasz Trębski 04030115db Migrate testing to ostestr and adding docs
Following commits not only enables running
unit tests with ostestr, like other
OS projects, but also:
* enables covarage with testr
* enables building documentation with build_sphinx commands

Additionally:
* tox.ini was organized a bit

Change-Id: I2a21f9cee0e00f7148142465a8fc131ef4ff6f44
2017-01-17 12:53:54 +01:00
Deepak b53b54d159 Changed home page link
Now home page link redirected to github repo

Change-Id: I573ae80ae835eb3fd89ef8edf06b090b903446b4
2016-11-14 12:41:29 +05:30
wachowskij feb6897cbe Enable size-based log rotation for monasca-log-api
By default log file is rotated after reaching size of 100MB and 5 files
are archived.

Closes-Bug: 1621329
Related Change-Id: Iac7f29b3909354f75e5d3264ef2c987c9f3e2aec
Change-Id: I8d7e071e899eca1247b2db56ea348bb8775d68c3
2016-09-14 08:59:07 +02:00
Tomasz Trębski d2d50f42d4 Migrating tempest to project
- moving tempest test from old location
to the project

Change-Id: I018a898a621163d3d058e1c3950ae00b53944f84
2015-12-09 12:13:53 +01:00
Witold Bedyk 28c806ca8d Update information for PyPI registration
Change-Id: I03d521d3be4de7e942fc6582d6c59a601a5c8c79
2015-11-23 11:00:23 +01:00
Tomasz Trębski e921fd506c monasca-log-api python
- single log message with rest api
- parsing / validation for data
- configuration
- bootstrapping
- tox
- unit tests

Change-Id: I7386b3500ee9097383a573bf915da55ce2ff881f
2015-10-08 10:38:12 +02:00