This patch removes the options_iter function and prepares marconi's code base to play nice with oslo's config.generator. The replacement of lists with tuples is necessary to avoid oslo's config.generator to parse the globally defined options. In Marconi's case, we want it to use the registered entry_points. (This is a workaround). Change-Id: I56995fe16cd0b6e092b522dac3c32e4ec75bb269
Marconi
Message queuing service for OpenStack
Running a local Marconi server with MongoDB
Note: These instructions are for running a local instance of Marconi and not all of these steps are required. It is assumed you have MongoDB installed and running.
From your home folder create the
~/.marconifolder and clone the repo:$ cd $ mkdir .marconi $ git clone https://github.com/openstack/marconi.gitCopy the Marconi config files to the directory
~/.marconi:$ cp marconi/etc/marconi.conf-sample ~/.marconi/marconi.conf $ cp marconi/etc/logging.conf-sample ~/.marconi/logging.confFind the
[drivers:storage:mongodb]section in~/.marconi/marconi.confand modify the URI to point to your local mongod instance:uri = mongodb://$MONGODB_HOST:$MONGODB_PORTFor logging, find the
[DEFAULT]section in~/.marconi/marconi.confand modify as desired:log_file = server.logChange directories back to your local copy of the repo:
$ cd marconiRun the following so you can see the results of any changes you make to the code without having to reinstall the package each time:
$ pip install -e .Start the Marconi server with logging level set to INFO so you can see the port on which the server is listening:
$ marconi-server -vTest out that Marconi is working by creating a queue:
$ curl -i -X PUT http://127.0.0.1:8888/v1/queues/samplequeue -H "Content-type: application/json" -d '{"metadata": "Sample Queue"}'
You should get an HTTP 201 along with some headers that will look similar to this:
HTTP/1.0 201 Created
Date: Fri, 25 Oct 2013 15:34:37 GMT
Server: WSGIServer/0.1 Python/2.7.3
Content-Length: 0
Location: /v1/queues/samplequeue