add repose.tm2 dep
This commit is contained in:
41
README.rst
41
README.rst
@@ -6,3 +6,44 @@ Current Build Status
|
||||
====================
|
||||
.. image:: https://api.travis-ci.org/jkoelker/quark.png
|
||||
:target: https://travis-ci.org/jkoelker/quark
|
||||
|
||||
|
||||
Why is nothing being commited to the database?
|
||||
==============================================
|
||||
|
||||
Quark uses and relies upon the `transaction` module, something at the
|
||||
end of the wsgi request needs to commit the transaction, or transaction
|
||||
aware databases (MySQL InnoDB, Postgres, et. al) will never commit.
|
||||
|
||||
|
||||
The following quantum api-paste.ini enables `repoze.tm2` to in the
|
||||
pipeline after authentication so transactions are started coming
|
||||
up the pipeline and commited coming down
|
||||
|
||||
|
||||
.. code:: ini
|
||||
|
||||
[composite:quantum]
|
||||
use = egg:Paste#urlmap
|
||||
/: quantumversions
|
||||
/v2.0: quantumapi_v2_0
|
||||
|
||||
[composite:quantumapi_v2_0]
|
||||
use = call:quantum.auth:pipeline_factory
|
||||
noauth = egg:repoze.tm2#tm extensions quantumapiapp_v2_0
|
||||
keystone = authtoken keystonecontext egg:repoze.tm2#tm extensions quantumapiapp_v2_0
|
||||
|
||||
[filter:keystonecontext]
|
||||
paste.filter_factory = quantum.auth:QuantumKeystoneContext.factory
|
||||
|
||||
[filter:authtoken]
|
||||
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
|
||||
|
||||
[filter:extensions]
|
||||
paste.filter_factory = quantum.api.extensions:plugin_aware_extension_middleware_factory
|
||||
|
||||
[app:quantumversions]
|
||||
paste.app_factory = quantum.api.versions:Versions.factory
|
||||
|
||||
[app:quantumapiapp_v2_0]
|
||||
paste.app_factory = quantum.api.v2.router:APIRouter.factory
|
||||
|
||||
@@ -5,3 +5,8 @@ zope.sqlalchemy
|
||||
mysql-python
|
||||
http://tarballs.openstack.org/quantum/quantum-master.tar.gz#egg=quantum
|
||||
aiclib
|
||||
|
||||
# NOTE(jkoelker) not technically required, but something has to commit
|
||||
# the transactions. in the future this should be the
|
||||
# quantum wsgi service
|
||||
repoze.tm2
|
||||
|
||||
Reference in New Issue
Block a user