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>
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
fix package names for SLES
Don't change standard qemu.conf on SLES
only restart libvirtd if needed (bnc#776938)
(cherry picked from commit bd6ad49f3ce8716eac39ae7b6ec78d534e9c03a5)

Signed-off-by: Ralf Haferkamp <rhafer@suse.de>
Add chef attribute for ram_allocation_ratio config option

The default value is "1.0", which essentially disables host RAM overcommit (bnc#784345)
See http://docs.openstack.org/essex/openstack-compute/admin/content/scheduler-filters.html#ramfilter
(cherry picked from commit 6cc2eeb78c62a091df9af46228649a56513e39c4)

Signed-off-by: Michal Jura <mjura@suse.com>
Add two options to barclamp UI and handle them in chef too

We add support for the cpu_allocation_ratio/ram_allocation_ratio options for
nova-scheduler (ram_allocation_ratio was already a chef attribute, but with a
value not changeable in the barclamp).

Signed-off-by: Vincent Untz <vuntz@suse.com>
(cherry picked from commit 03623e9fbbd656509480c1a36e322c5d8ffce595)

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

Conflicts:
	chef/cookbooks/nova/attributes/default.rb
	crowbar.yml
	crowbar_framework/app/views/barclamp/nova/_edit_attributes.html.haml
default cpu_allocation_ratio to 16

this provides continuity with previous versions of SUSE Cloud 1.0
(cherry picked from commit 5eece7aa1bc5a0b57fcce166bc22820f660e0727)

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

Conflicts:
	crowbar_framework/app/views/barclamp/nova/_edit_attributes.html.haml
Do not mark new options as required

This creates an issue for existing proposals, since the JSON data will
only have the new options if they get changed; most users trying to save
will face an error because of the schema.

Having them not required is okay since the cookbooks is using a sane
default for the values.
(cherry picked from commit e035f0bc1b5c74fc71ee88fd5635c935d5551c88)

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