OpenStack Messaging (Zaqar)
f284850116
The proposed fix moves away from throwing an exception everytime a malformed ID is encountered and instead returns None. This way, partial bulk get and bulk deletes are possible. Storage drivers affected: - mongo - sqlite Changes/expected behavior: - GET /v1/queues/exists/messages/malformed => 404 - GET /v1/queues/exists/messages?ids=malformed,malformed => 204 - DELETE /v1/queues/exists/messages?ids=malformed,malformed => 204 - GET /v1/queues/exists/claims/malformed => 404 - PATCH /v1/queues/exists/claims/malformed => 404 - DELETE /v1/queues/exists/claims/malformed => 204 In partcular, regarding bulk_get on messages, malformed IDs or messages that are not found by ID are now ignored. bulk_delete also works in this fashion now. Regression tests are added to the unit test suite to reflect these changes. Change-Id: I4f14cd8b4cfd1dd190dccd8724c20f5fac99c629 Closes-Bug: #1203842 |
||
---|---|---|
etc | ||
marconi | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
AUTHORS.rst | ||
HACKING.rst | ||
MANIFEST.in | ||
openstack-common.conf | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Marconi
Message queuing service for OpenStack
Running a local Marconi server with MongoDB
Install MongoDB
Start a MongoDB instance:
mongod
Clone the Marconi repo:
git clone https://github.com/stackforge/marconi.git
cd to your local copy of the repo
Copy the Marconi config files to the directory ~/.marconi:
cp -r marconi/etc/*.conf-sample ~/.marconi/marconi.conf
Find the
[drivers:storage:mongodb]
section in ~/.marconi/marconi.conf and modify the URI to point to your local mongod instance:uri = mongodb://localhost
Run the following so you can see the results of any changes you make to the code, without having to reinstall the package each time:
python setup.py develop
Start the marconi server:
marconi-server