
In the current implementation, Bootstrap creates the config option inside its initializer. That means that common options such as those registered by openstack.common.log, are not registered. This patch modifies the Bootstrap initializer to take a config instance from the caller, rather than trying to build one itself. This does two things for us: 1. Avoids "magic" marconi configuration; the caller has full control and visibility into how marconi is configured. 2. Allows for passing in the global CONF object from the marconi-server command and the reference WSGI app module so that common options registered by oslo modules on the global CONF instance are picked up. Hopefully openstack.common.log will be modified at some point so that it isn't tightly coupled with cfg.CONF. Implements: blueprint remove-global-config Change-Id: Ibb6638f99ca2ce4a2a6025f6cd41939bb30fa85a
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/openstack/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-queues.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
Description
Languages
Python
96.2%
PHP
1.5%
Shell
1.2%
HTML
0.8%
Lua
0.2%