Commit Graph

14 Commits

Author SHA1 Message Date
Frédéric Guillot ef8897f58b Add API versioning
- All OpenStack projects have API versioning
- Existing endpoints are now prefixed with /v1
- Still fully backward compatible with old endpoints
- No HTTP redirects is used to avoid unexpected behaviors with
existing clients

Change-Id: If51f3291c44615991b3378b711dffacc1bd2591f
2017-05-12 14:53:12 -04:00
Paul Millette 3392b59188 Fix two typos in docs
Change-Id: I2368b2c6e88f977577c317951948d67eea3ead24
2017-04-18 10:51:51 -04:00
Frédéric Guillot c22dc7babe Write doc without flask autodoc
- remove inline docs from routes.py
- correct certain response payloads
- add all api docs to index.rst

Change-Id: I58bb24f1a8ce173264ab9c1607cbe3af8d936fdb
2017-04-18 09:31:50 -04:00
Frédéric Guillot 3cc039afba Make Keystone token validation works in devstack
Change-Id: Ie8a748bd06b2b76df577297ce27aa10a79c47232
2016-12-09 13:35:18 -05:00
Frédéric Guillot 38d243f445 Add tempest scenario for volume types
- This scenario test the creation of a new volume type.
- Cinder was not sending notifications because the config
file have to be changed.
- Keystone authentication was broken, we are
now using the v3 API.
- Kombu released a breaking change, the global constraints have
been updated: https://review.openstack.org/#/c/408643/

Change-Id: Ie6a50ff427b6402f0d023fe3468f3efac77a8fce
2016-12-08 13:07:27 -05:00
Frédéric Guillot 23d672ed12 Configure Cinder and Nova automatically in devstack
Change-Id: Icdc5b30911d2fcb39716aaa871cbbc0eef84641b
2016-12-06 13:25:32 -05:00
Paul Millette 5ff08a68c9 Add json outputs to documentation
- use literal includes to show input and output
- add input payloads folder to docs
- add output payloads folder to docs

Change-Id: Ifaa782422edc2d0fee70fcc2f8909fd928e363cc
2016-11-28 11:12:46 -05:00
Frédéric Guillot 7c14e2e868 Migrate to oslo_messaging and oslo_service
This modification introduce a breaking change about AMQP
queue handling.

Now, Almanach use the same terminology as other OpenStack
projects.

- By default, Almanach listen on the "almanach" topic
- The "info" priority is used to receive notifications
- The "error" level is used as retry queue
- The "critical" level for the dead queue

To be compatible with olso_messaging drivers, transport_url
must start by "rabbit://" to use the driver kombu.

Change-Id: Ia331d68e94c8ce4196b2d5f3b974a8dbdd6016ef
2016-11-17 10:13:56 -05:00
Frédéric Guillot 743eaf78cc Add support for multiple storage backends
* New storage drivers can be implemented in addition
  to MongoDB, for example: MySQL or Postgres, etc.
* The default database driver still MongoDB
* New storage drivers must implement the interface
  defined by the class BaseDriver
* Flexmock and hamcrest are deprected for new unit tests

Change-Id: I1cf73f28d469d2f22ecbaf345e53b9596cc0c2f6
2016-10-13 13:30:27 -04:00
Frédéric Guillot e0561271cf Migrate code base to oslo.config and oslo.log
In order to migrate the code base to the "OpenStack way":

* Replace ConfigParser by oslo.config
* Replace logging by oslo.log
* Use testtools as base class for unit tests
* Add tox -e genconfig to generate config file
* Start to organize the file structure like other projects
* Define 2 cli entry points almanach-collector and almanach-api
* The docker-compose.yml is now used to run integration-tests
* Integration tests will be moved to tempest in the future
* Docker configs should be deprecated and moved to Kolla

Change-Id: I89a89a92c7bdb3125cc568323db0f9488e1380db
2016-10-13 11:28:09 -04:00
Paul Millette 3262ba7b82 Generate api documentation using sphinx and autoflask
- add autoflask to index.rst
- add pydocs for all methods
- move app out of AlmanachApi so autoflask can see it

Change-Id: I83e1af74507091774d1eff86fa1d07a237d69729
2016-10-07 14:25:43 -04:00
Marc Aubry 51d6364b07 Add devstack plugin
Change-Id: I47be86218a744f3b7937380b7adbe5268c04abf0
2016-09-09 16:48:08 -04:00
Frédéric Guillot 4f9fe41f51 Convert Markdown to reStructuredText format
Change-Id: I8094a23cc6d32c6fc280b89a2633dd80b001398a
2016-08-17 17:11:52 -04:00
Frédéric Guillot caa78a0cd1 Make project compatible with OpenStack CI
* Add gitreview
* Update tox configuration
* Add skeleton for documentation
* Change requirements to be compatible with OpenStack global requirements

Change-Id: Ic137410083bebfe58a653d6ffc0565d6a61f393d
2016-08-15 10:17:51 -04:00