Skip to content

Instantly share code, notes, and snippets.

@vkmc
Forked from anonymous/marconi-setup
Last active December 19, 2015 18:29
Show Gist options
  • Save vkmc/5999582 to your computer and use it in GitHub Desktop.
Save vkmc/5999582 to your computer and use it in GitHub Desktop.
## setting up
vkmc@havana:/opt/stack/marconi$ virtualenv marconi
New python executable in marconi/bin/python
Installing distribute..............................................................................................................................................................................................done.
Installing pip...............done.
vkmc@havana:/opt/stack/marconi$ source marconi/bin/activate
(marconi)vkmc@havana:/opt/stack/marconi$ python setup.py develop
running develop
running egg_info
writing requirements to marconi.egg-info/requires.txt
writing marconi.egg-info/PKG-INFO
writing top-level names to marconi.egg-info/top_level.txt
writing dependency_links to marconi.egg-info/dependency_links.txt
writing entry points to marconi.egg-info/entry_points.txt
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'marconi.egg-info/SOURCES.txt'
running build_ext
Creating /opt/stack/marconi/marconi/lib/python2.7/site-packages/marconi.egg-link (link to .)
marconi 8ec464a is already the active version in easy-install.pth
Installing marconi-gc script to /opt/stack/marconi/marconi/bin
Installing marconi-server script to /opt/stack/marconi/marconi/bin
Installed /opt/stack/marconi
Processing dependencies for marconi==8ec464a
Searching for stevedore==0.9.1
Best match: stevedore 0.9.1
Processing stevedore-0.9.1-py2.7.egg
stevedore 0.9.1 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/stevedore-0.9.1-py2.7.egg
Searching for WebOb==1.2.3
Best match: WebOb 1.2.3
Processing WebOb-1.2.3-py2.7.egg
WebOb 1.2.3 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/WebOb-1.2.3-py2.7.egg
Searching for simplejson==3.3.0
Best match: simplejson 3.3.0
Processing simplejson-3.3.0-py2.7-linux-x86_64.egg
simplejson 3.3.0 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/simplejson-3.3.0-py2.7-linux-x86_64.egg
Searching for python-keystoneclient==0.2.5
Best match: python-keystoneclient 0.2.5
Processing python_keystoneclient-0.2.5-py2.7.egg
python-keystoneclient 0.2.5 is already the active version in easy-install.pth
Installing keystone script to /opt/stack/marconi/marconi/bin
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/python_keystoneclient-0.2.5-py2.7.egg
Searching for pymongo==2.5.2
Best match: pymongo 2.5.2
Processing pymongo-2.5.2-py2.7-linux-x86_64.egg
pymongo 2.5.2 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/pymongo-2.5.2-py2.7-linux-x86_64.egg
Searching for oslo.config==1.1.1
Best match: oslo.config 1.1.1
Processing oslo.config-1.1.1-py2.7.egg
oslo.config 1.1.1 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/oslo.config-1.1.1-py2.7.egg
Searching for msgpack-python==0.3.0
Best match: msgpack-python 0.3.0
Processing msgpack_python-0.3.0-py2.7-linux-x86_64.egg
msgpack-python 0.3.0 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/msgpack_python-0.3.0-py2.7-linux-x86_64.egg
Searching for iso8601==0.1.4
Best match: iso8601 0.1.4
Processing iso8601-0.1.4-py2.7.egg
iso8601 0.1.4 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/iso8601-0.1.4-py2.7.egg
Searching for falcon==0.1.6.post1post1
Best match: falcon 0.1.6.post1post1
Processing falcon-0.1.6.post1post1-py2.7.egg
falcon 0.1.6.post1post1 is already the active version in easy-install.pth
Installing falcon-bench script to /opt/stack/marconi/marconi/bin
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/falcon-0.1.6.post1post1-py2.7.egg
Searching for eventlet==0.12.1
Best match: eventlet 0.12.1
Processing eventlet-0.12.1-py2.7.egg
eventlet 0.12.1 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/eventlet-0.12.1-py2.7.egg
Searching for pbr==0.5.16
Best match: pbr 0.5.16
Processing pbr-0.5.16-py2.7.egg
removing '/opt/stack/marconi/marconi/lib/python2.7/site-packages/pbr-0.5.16-py2.7.egg' (and everything under it)
Copying pbr-0.5.16-py2.7.egg to /opt/stack/marconi/marconi/lib/python2.7/site-packages
pbr 0.5.16 is already the active version in easy-install.pth
Installed /opt/stack/marconi/marconi/lib/python2.7/site-packages/pbr-0.5.16-py2.7.egg
Searching for d2to1==0.2.10
Best match: d2to1 0.2.10
Processing d2to1-0.2.10-py2.7.egg
d2to1 0.2.10 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/d2to1-0.2.10-py2.7.egg
Searching for six==1.3.0
Best match: six 1.3.0
Processing six-1.3.0-py2.7.egg
six 1.3.0 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/six-1.3.0-py2.7.egg
Searching for requests==1.2.3
Best match: requests 1.2.3
Processing requests-1.2.3-py2.7.egg
requests 1.2.3 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/requests-1.2.3-py2.7.egg
Searching for prettytable==0.7.2
Best match: prettytable 0.7.2
Processing prettytable-0.7.2-py2.7.egg
prettytable 0.7.2 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg
Searching for greenlet==0.4.1
Best match: greenlet 0.4.1
Processing greenlet-0.4.1-py2.7-linux-x86_64.egg
greenlet 0.4.1 is already the active version in easy-install.pth
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/greenlet-0.4.1-py2.7-linux-x86_64.egg
Searching for setuptools-git==1.0b1
Best match: setuptools-git 1.0b1
Processing setuptools_git-1.0b1-py2.7.egg
removing '/opt/stack/marconi/marconi/lib/python2.7/site-packages/setuptools_git-1.0b1-py2.7.egg' (and everything under it)
Copying setuptools_git-1.0b1-py2.7.egg to /opt/stack/marconi/marconi/lib/python2.7/site-packages
setuptools-git 1.0b1 is already the active version in easy-install.pth
Installed /opt/stack/marconi/marconi/lib/python2.7/site-packages/setuptools_git-1.0b1-py2.7.egg
Searching for distribute==0.6.24
Best match: distribute 0.6.24
Processing distribute-0.6.24-py2.7.egg
distribute 0.6.24 is already the active version in easy-install.pth
Installing easy_install script to /opt/stack/marconi/marconi/bin
Installing easy_install-2.7 script to /opt/stack/marconi/marconi/bin
Using /opt/stack/marconi/marconi/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg
Finished processing dependencies for marconi==8ec464a
(marconi)vkmc@havana:/opt/stack/marconi$ marconi-server
\o/
## Troubleshoot
# Make sure that MongoDB is running
(marconi)vkmc@havana:/opt/stack/marconi$ sudo service mongodb status
mongodb start/running, process 1061
# Make sure that your user has enough privileges
I was getting 'No handlers could be found for logger "marconi.common.cli"' when running marconi-server, and after some debugging with flaper87 he noticed that my user couldn't write in /var/log/marconi. Huh!
# marconi.conf - skipped lines are default
(...)
[drivers:storage:mongodb]
;uri = mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test&ssl=true&w=majority
uri = mongodb://localhost
database = marconi
(...)
# logging.conf
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment