February 15th, 2012 • 2 Comments
This is the second post in this series. Part 1 can be found here.
After setting up nova on SmartOS you should be able to launch the nova-compute service – Andy actually managed to get the nova-compute instance up and running:
./bin/nova-compute --connection_type=fake --sql_connection=mysql://root:firstname.lastname@example.org/nova --fake_rabbit
2012-02-15 10:26:32,205 WARNING nova.virt.libvirt.firewall [-] Libvirt module could not be loaded. NWFilterFirewall will not work correctly.
2012-02-15 10:26:32,374 AUDIT nova.service [-] Starting compute node (version 2012.1-LOCALBRANCH:LOCALREVISION)
2012-02-15 10:26:33,099 INFO nova.rpc [-] Connected to AMQP server on localhost:5672
Note that for now we will use a fake RabbitMQ connection. The connection to the MySQL server however is mandatory.
This is the first step in plan to get OpenStack running on SmartOS. Next step will be to look into integration vmadm as a driver in OpenStack. The overall Ideas we have can be found in this slideset on google docs.
February 12th, 2012 • 4 Comments
[Update] – The first shot didn’t work – so I updated this post!
This is the first post of hopefully a series of post about getting OpenStack up and running on SmartOS. There is a blueprint for this effort. For this first post we will focus on setting up SmartOS and try to get some needed packages up and running.
I used the the following SmartOS iso image which will you – when booted – guide you through a small setup routine: smartos-20120210T043623Z.iso. After this you need to configure the pkg repositories as described in this tutorial. I encourage you all to have two discs attached – One for the zones – and one for the data. So since the setup routine created the zones pool I will first create a data pool on the second disc:
zpool create data c0t2d0
zfs create data/ec
zfs set mountpoint=/ec data/ec
zfs mount data/ec
cd / && wget -O- -q http://svn.everycity.co.uk/public/solaris/misc/ \
pkg5-smartos-bootstrap-20111221.tar.gz | gtar -zxf-
One major dependency is python, gcc and some tools and libs – and we will also need git so we can get the source code of nova later on:
/ec/bin/pkg install pkg:/email@example.com \
/ec/bin/pkg install python26 git setuptools-26 gcc-44 libxslt gnu-binutils
Next step will be to create a workspace file-system using ZFS (Optional) – this will allow me to do rollbacks later on during the porting of OpenStack:
zfs create data/workspace
Let’s clone nova and install pip:
git clone git://github.com/tmetsch/nova.git
export CFLAGS="-D_XPG6 -std=c99"
pip install -r pip-requires
Now let’s see if we can get the test up and running:
This will do for the first steps – I’ll be going to get the dependencies of nova up and running next – Will than post the next blog post.
Percent done: 1%