Merge pull request #152 from vuntz/database-barclamp

Port to database barclamp
Permanently enable IP forwarding on SUSE

it's done via the IP_FORWARD setting in /etc/sysconfig/sysctl
(cherry picked from commit 13a3c54c2e9d79b95ec1462eb91273e05b137012)

Signed-off-by: Michal Jura <mjura@suse.com>
Set SUSE specific package- and service names where needed
(cherry picked from commit 40d84efb8f24f7cfc6a3cd022d0f6d0221e5ba56)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>

Conflicts:
	chef/cookbooks/nova/definitions/nova_package.rb
	chef/cookbooks/nova/recipes/config.rb
	chef/cookbooks/nova/recipes/vncproxy.rb
	chef/cookbooks/nova/recipes/volume.rb
Disable syslog on SUSE
(cherry picked from commit 0d7c47cb5a4aba43d97e36b321a2c04d36d7b29b)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>

Conflicts:
	chef/cookbooks/nova/templates/default/nova.conf.erb
install kvm/qemu before libvirt
(cherry picked from commit 7080ad6c1d62d737497f30dcf234fb83d7fe01ac)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>
Load the kvm kernel modules after installing kvm

Otherwise nova-compute/libvirtd refuse to start later on.
(cherry picked from commit 8c696d77ac97cb80d46b4aa617b560aa86270cb8)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>
Set libvirt_type in /etc/nova/nova.cfg

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit dc3928398dee54912175e0745754ff0f6b753678)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>

Conflicts:
	chef/cookbooks/nova/templates/default/nova.conf.erb
Use prefixed system user
(cherry picked from commit 170286dd7e2c362e2af4436646a8348f61f6aced)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>

Conflicts:
	chef/cookbooks/nova/recipes/config.rb
add xen deployment support
(cherry picked from commit 6fa5b5e6c1d222001b7e75fed4ad5d350dd3b900)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>

Conflicts:
	chef/cookbooks/nova/recipes/compute.rb
	chef/cookbooks/nova/templates/default/nova.conf.erb
disable rp_filter, which is enabled by default on SUSE
(cherry picked from commit 620307c68d6755e871e0d6c78efd1e878091f711)

Signed-off-by: Michal Jura <mjura@suse.com>
change libvirt to run qemu as user qemu
(cherry picked from commit 9085f9e0356254335eb1452abce9c21fe5de5a6e)

Signed-off-by: Michal Jura <mjura@suse.com>
default to using virtio nics for kvm deployments

http://www.sebastien-han.fr/blog/2012/07/19/make-the-network-of-your-vms-fly-with-virtio-driver/,
(cherry picked from commit 321c2763c0c4769a297a6b574b2bdb750219f548)

Signed-off-by: Michal Jura <mjura@suse.com>
fix qemu.conf user and group settings for non kvm deployments
(cherry picked from commit 52d074b98bdacc517569471250270712605d209f)

Signed-off-by: Michal Jura <mjura@suse.com>
use kvm in -no-kvm mode instead of qemu (bnc#772586)
(cherry picked from commit 99942d00cfd61617263a7ad728c8bd0af2e4bd42)

Signed-off-by: Michal Jura <mjura@suse.com>
Swap order of nova and nova_dashboard barclamps
(cherry picked from commit 1b1b7f0e1fcbb7dd3f4d34696d598ca5c9e84c95)

Signed-off-by: Michal Jura <mjura@suse.com>
disable file injection for libvirt

Instead of having nova inject files (ssh keys) into images, the metadata
api should be used by tools like cloudinit.
(cherry picked from commit fe5c1fc32e4c4c7ad19a2ea388ea3e69c5a4f02b)

Signed-off-by: Michal Jura <mjura@suse.com>
add lxc support for nova
(cherry picked from commit d57078ec25958eb240249657a877c3e6134341a3)

Signed-off-by: Michal Jura <mjura@suse.com>
Make nova_service more configurable, i.e. allow to _not_ enable it...

...right after package installation. This code really deserves more cleanup.
(cherry picked from commit 27c766b533a7484e57da208710abf169088b8072)

Signed-off-by: Michal Jura <mjura@suse.com>

Conflicts:
	chef/cookbooks/nova/definitions/nova_package.rb
Create a proposal when only when the dependendencies are satisfied (bnc#773803)
(cherry picked from commit 6baee3a71d314fc9007d6c52cc640976f6cbc180)

Signed-off-by: Michal Jura <mjura@suse.com>

Conflicts:
	crowbar_framework/app/models/nova_service.rb
fix package names for SLES