Search cleanups

check attributes before going to search

Closes-bug: 1208201
Change-Id: I44e966c64f7163f1b88991df61142cd4774c1817
Add DB2 support to nova on redhat platform

Add three new attributes
default["openstack"]["compute"]["platform"]["mysql_python_packages"]
default["openstack"]["compute"]["platform"]["db2_python_packages"]
default["openstack"]["compute"]["platform"]["postgresql_python_packages"]
and add install DB python packages block in nova-common recipe

Change-Id: Ia862c821102119a784c4d8869418253e4ccdb137
Implements: blueprint db2-support
Update spec_helper to include 'chefspec/berkshelf'

This minor change allows you to run rspec outside of strainer while
still having cookbook dependencies automatically handled by berkshelf
(which also means you can run individual chefspec tests).

Note that this change does marginally increase the time it takes to run
a strainer test.

If this change is accepted, then the remaining stackforge OpenStack
cookbooks will be updated also.

Change-Id: Ic50dcab83abd1937f9797444f36d477140abb183
fix NoMethodError in ShellOut run_command

Traceback:

================================================================================
Recipe Compile Error in /root/chef-solo/cookbooks-2/openstack-compute/recipes/compute.rb
================================================================================

NoMethodError
-------------
undefined method `error' for #<Mixlib::ShellOut:0x0000000340f878>

Cookbook Trace:
---------------
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:62:in `set_grub2_default_
kernel'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:75:in `set_boot_kernel_an
d_trigger_reboot'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:102:in `from_file'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/compute.rb:78:in `from_file'

Relevant File Content:
----------------------
/root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:

 55:      ::Chef::Log.info("Changed grub default to #{default_boot}")
 56:      Mixlib::ShellOut.new("sed -i -e \"s;^default.*;default #{default_boot};\" /boot/gr
ub/menu.lst").run_command
 57:    end
 58:  end
 59:
 60:  def set_grub2_default_kernel(flavor='default')
 61:    boot_entry = "'openSUSE GNU/Linux, with Xen hypervisor'"
 62>>   if Mixlib::ShellOut.new("grub2-set-default #{boot_entry}").error
 63:      ::Chef::Application.fatal!(
 64:        "Unable to change grub2 default to #{boot_entry}")
 65:    else
 66:      ::Chef::Log.info("Changed grub2 default to #{boot_entry}")
 67:    end
 68:  end
 69:
 70:  def set_boot_kernel_and_trigger_reboot(flavor='default')
 71:    # only default and xen flavor is supported by this helper right now

Change-Id: If4b3426bd1b989a94bcdf9d6b221fdb0c1b8da91
Merge "Update spec_helper to include 'chefspec/berkshelf'"
Merge "Add DB2 support to nova on redhat platform"
Merge "fix NoMethodError in ShellOut run_command"
Adds misc options

This change adds support for miscellaneous options to be set.
Things that haven't been added as attributes, or specifically,
third party additions that don't belong in stackforge (e.g. cobalt)

Change-Id: Ibea4076b4e715cec6d2eaf5ac71c36aebf2957d7
Filling out initial rubocop support.

https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md

Change-Id: Ia84f3de61ff07b32d0cba15146a971fdf9e7d099
Delete the rootwrap.d filters

Delete the rootwrap.d filters templates and use the config provided by
openstack upstream packages.

Change-Id: I41edf128b5905bb74571eec106fe34f046af628f
Changed nova-network install condition

openstack-network::server does not modify a node if
node['openstack']['compute']['network']['service_type'] is 'nova'.

Change check to use service_type attribute instead of server recipe so
that nova-network can be installed when using allinone-compute.

Change-Id: Iab969b30767d1d47fd5b55e805593a8d8548f0e9
Closes-Bug: #1267411
Merge "Delete the rootwrap.d filters"
Update the Gemfile to sync with latest Chef and ChefSpec.

Trying to keep all of the Gemfiles in sync so every cookbook has the same Gem
dependencies.

Change-Id: I34244b3098f2a55b9df841950e576ad6d02c89ad
Merge "Changed nova-network install condition"
Merge "Update the Gemfile to sync with latest Chef and ChefSpec."
Merge "Adds misc options"
edit contents of cookbook_file nova-compute.conf to be more explanatory
as to why it's there

Fixes: bug #1268974

This edits the cookbook_file so that it's more obvious why it's being
dropped in there

Change-Id: Ic34151878ceedc1bc25337a9faa4350df0bd3823
explicitly set rpc_backend in nova.conf

Implements: blueprint centos-rhel-for-compute
Fixes: bug #1269077

The following is a default value in openstack:

rpc_backend=nova.openstack.common.rpc.impl_kombu

Using RDO (rhel/centos) packages, this gets overridden in
/usr/share/nova/nova-dist.conf to 'impl_qpid'.

In order to cleanly set this back to the default value (which is what we
want as a default in the cookbooks), we need to explicitly set this in
nova.conf.

Change-Id: Idd025034c07ce12810a38eff87975b1c8caf1985
Merge "explicitly set rpc_backend in nova.conf"
remove references and uses of fixed_range wrt nova.conf

Fixes: bug #1269876

As per commit https://github.com/openstack/nova/commit/1f6c4f5,
fixed_range in nova.conf is deprecated.  We don't need to be setting it
any more.

Change-Id: Ie9371a54c3bcbad3c45b851b67f78c38c43940bf