Alejandro Cabrera f284850116 fix: fetching nonexistent message/claims raises 503s
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
2013-08-14 17:46:31 -04:00
2013-07-19 11:10:53 -04:00
2013-06-03 12:39:22 -04:00
2012-11-01 09:52:20 +01:00
2012-11-01 09:52:20 +01:00
2013-05-13 16:58:36 +02:00
2013-08-12 17:58:58 +02:00
2013-06-14 16:04:02 +02:00
2013-06-14 14:14:42 +02:00
2013-08-01 16:17:31 -04:00

Marconi

Message queuing service for OpenStack

Running a local Marconi server with MongoDB

  1. Install MongoDB

  2. Start a MongoDB instance:

    mongod
  3. Clone the Marconi repo:

    git clone https://github.com/stackforge/marconi.git
  4. cd to your local copy of the repo

  5. Copy the Marconi config files to the directory ~/.marconi:

    cp -r marconi/etc/*.conf-sample ~/.marconi/marconi.conf
  6. Find the [drivers:storage:mongodb] section in ~/.marconi/marconi.conf and modify the URI to point to your local mongod instance:

    uri = mongodb://localhost
  7. 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
  8. Start the marconi server:

    marconi-server
Description
OpenStack Messaging (Zaqar)
Readme 46 MiB
Languages
Python 96.2%
PHP 1.5%
Shell 1.2%
HTML 0.8%
Lua 0.2%