Commit Graph

56 Commits

Author SHA1 Message Date
Ghanshyam Mann 7372103182 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I4561c6eefef05c672a4f6cb9d15b1a5a29e81110
2024-02-18 05:01:47 +00:00
Lance Albertson 3e101784a9 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/814052
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-network/+/814057
Change-Id: I84867a131b54d63f3d057c40a1e8ac4b4697c368
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:45:38 -07:00
Lance Albertson af47ea6ef5 Cookstyle 6.19.5 fixes
Update ChefSpec due to changes made in apache2 cookbook.

Depends-On: https://review.opendev.org/756168
Change-Id: I3ec792c519650b2d95a976ad50419a9b417a3514
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:26:51 -07:00
Lance Albertson 2961ebabee Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/nova/nova.conf] to
  resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []
- Add metadata to enabled_apis as that is the default upstream
- Switch to user resource for managing shell for nova user
- Switch to libvirtd instead of libvirt-bin for Ubuntu service name

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706151
Depends-On: https://review.opendev.org/708059
Depends-On: https://review.opendev.org/706157
Change-Id: I7e03fb9dace6e288a3b21f33106245b30b52ce9d
2020-03-19 12:36:40 -07:00
Samuel Cassiba cbe2ef6647 Initial compute Pike updates
- Switched the default linter to cookstyle
- Deprecated config settings for Pike
- Normalized template comment

Depends-On: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
Change-Id: I7abd4194bb7f322764309cad514040c1f5feca00
2017-09-25 16:57:08 +00:00
Samuel Cassiba 012902ad92 Added cellv2 support
- Added basic cellv2 recipe, as it is required from Ocata on
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability
- Removed ancient Gemfile

Change-Id: I97b453fc419bfbf01679dadf39a256b1f0f99859
2017-08-10 17:35:07 -04:00
Jens Rosenboom ced5be5512 Remove docker-setup receipe
The docker-setup receive has been unmaintained and untested for some
time now. The nova-docker project is also being removed from
OpenStack [1] and people are advised to look at deploying Zun as
a replacement.

This also avoids having to rewrite this receipe in order to remove the
use of the deprecated python cookbook.

[1] https://review.openstack.org/430232

Change-Id: Ia8c9db272c6a0353130fc93d446b385fd72ac250
Partial-Bug: 1558538
2017-02-09 15:06:49 +01:00
Christoph Albers 799029519b refactoring final step
* added endpoint attributes (moved from common)
* removed qpid as a messaging option (can be incuded in a wrapper)
* removed os-bare-metal dependencies
* deleted default attributes from nova.conf.rb originated in
  openstack-common
* removed fedora and suse as supported platform
* adapted optimized endpoint logic
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* added versionbumb for refactored os-identity and common
* moved version up to 13.0.0 for mitaka release
* adapted the specs (unit tests) to work again
* refactored spec_helper.rb method "expect_creates_api_paste"
* added new logic into templates/default/nova.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the nova.conf.erb template to adapt the new
  template attribute syntax
* moved all attributes from attributes/default.rb that were used in
  nova_conf.erb to attributes/nova_conf.rb
* refactored attributes to fit upcomming template logic
* refactored recipes/nova_common.rb to fit upcomming template logic
* removed all attributes from default.rb and nova.conf.erb which are set
  as default in attributes, openstack doc and used to render the template
* removed nova-network as a supported config option

Depends-On: I9cc1b5cc069987ac83e064322c2291772505ff5f
Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: I9ac9eeb29ab27f31394830e4b6f999d5870cc0e4
2016-02-08 12:05:12 +01:00
Jenkins ef40354293 Merge "Cleanup minor rubocop offenses" 2015-06-01 23:18:25 +00:00
Mark Vanderwiel 27207cd30b Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: Ic874a3e0a8d005e410baa40584f0f00dfc805a56
2015-05-28 16:09:12 -05:00
Mark Vanderwiel a01d815521 Only have one path of support for api-metadata
The current cookbook allows the enabled_apis nova.conf key
to include the metadata value.  This causes the nove compute
service to try to auto start the api-metadata service.  But we
also have the api-metadata recipe in the run list by default which
also tries to start the api-metadata service. This can cause timing
issues with the starting service.

This patch will remove the metadata value from the enabled_apis
attribute, and put out a warning if it's included.  The api-metadata
receipe should be used to control this service.  By default the
api-metadata recipe is included in the os-compute-api role which
is included in the os-compute-single-controller role. So, in most cases
it's already included in the run list.

Change-Id: Ief1a98cf2ab072a8aa892c65c5fc07d12a02722c
Closes-Bug: #1415220
2015-05-28 10:30:42 -05:00
root ea55695436 Introducing docker changes to openstack-compute
This includes cookbook-openstack-compute changes required to enable
nova-docker driver as a compute driver and allow user to configure a
compute as docker compute

Implements: blueprint docker-driver-configuration

Change-Id: I6fa7e93a4050419fb0531e17b56da4c32205bce3
2015-04-02 13:45:01 +00:00
Mark Vanderwiel 41ff3cd711 Add missing nova volume attach packages
In some cases like FiberChannel storage, nova volume-attach will
fail because some utility packages are missing. Adding those
into the compute node set of installed packages.

Change-Id: I974bdd00c9f3d046baae8b6c4b531d54f3d7f45c
Closes-Bug: #1412388
2015-02-26 17:18:07 -06:00
ZHU ZHU d85a24cba5 Fix compute service log error
Compute service need to get start after libvirtd process get start.
If not, compute process will raise Hypervisor connection error within
initial attempts of compute resource updates due to lack of libvirt-sock
file.

Change-Id: I4ee0832e97ea93e60ba7978db54e439ace4631df
Closes-Bug: #1412293
2015-01-19 09:11:35 -06:00
Mark Vanderwiel 542ed2c2ea Create state and lock paths
The instances path was bring created, but not the state or lock paths.
If these are overridden to different places, nova will fail to start.
Removed the unused hardcoded lock path in api and scheduler recipes.
Moved the path creation to nova-common recipe.

Change-Id: I7538edff91233761a1c6336ca4cfe080eeee093d
Closes-Bug: #1328956
2014-06-11 15:04:27 -05:00
Bill Owen a5f3264fa7 Add disk_cachemodes and instances_path support
Add support for setting disk_cachemodes and instances_path configuration
flags.  Add initialization of instances_path directory with proper owner
and permission settings.

Partially implements: blueprint gpfs-storage-support
Change-Id: I07e0d648530461bd8e0e47f6427b10106bae3f1d
2014-03-26 14:46:17 -07:00
Mark Vanderwiel 92c94cbe02 only include metadata recipe if asked for
Attribute 'enabled_apis' allows for metadata to be selected or not.
Only include the api-metadata recipe if it's been asked for.

Closes-Bug: 1286300

Change-Id: Ib0f89c9ccf05892840c39af0223985e0553593e6
2014-03-17 16:40:23 -05:00
alop 602192549e Always include network
There is a check in compute.rb for network_type, if 'nova' we
include openstack-compute::network, however, network.rb is also
where we load neutron plugins, and it also has a check for 'nova'
or 'neutron', so it doesn't make sense to not include this with
compute. Otherwise, if you assign this recipe to your compute node
and have 'openstack.compute.network.service_type=neutron' you
won't get your plugins (like openvswitch or nicira or whatnot)

Change-Id: I587ca1db3c7c0635121096dc0bb54f7caa30c784
2014-02-17 11:26:33 +00:00
Stephan Renatus e9be12597d Make nova-compute-{kvm,qemu} packages overridable
To keep the "we define platform choices in the attributes" spirit, the
nova-compute "support packages" for ubuntu should be overridable, too.

This change makes them behave just like  to the
"#{db_type}_python_packages" in openstack-compute::nova-common.

Change-Id: Id38169121e52e0dc8be808c8822db55069e65e48
2014-02-06 18:00:57 +01:00
Christopher H. Laco 3cc89cabf9 Upgrade/Update rubocop
Now that almost all of the rubocop blueprints have been completed, make
one final pass through all of the cookbooks ensuring they're all in
sync with each other.

- Upgrade rubocop to 0.18.1
- Fix violations caused by 0.18.1 upgrade
- Move Excludes for non-existent folders to Includes so they
  automatically cover future additions

Change-Id: I00254b346718c1c70e8ad6f8b97e4dbf3f56396f
Implements: blueprint lint-and-unit-testing-for-havana
2014-02-04 15:37:38 -05:00
Andy McCrae be675315ec Update recipes to be rubocop compliant
- Adjust .rubocop.yml to include recipes/**
- Ensure all recipes are rubocop compliant

Change-Id: I7ecb3896b5a2b2d93304014a4ab19cb0e3c2e31c
Addresses: blueprint rubocop-for-compute
2014-01-29 12:51:12 +00:00
git-harry 5ec1ae592b 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
2014-01-09 10:43:25 +00:00
Matt Ray 06f715badd Check the run_context.loaded_recipes rather than the run_list, removed sysctl
* The 'openstack-network::server' recipe is most likely contained in a role and
  not explicitly in the run_list.
* The sysctl cookbook is unused and was removed as a dependency.
* The test was removed because I could not figure out how to stub the
  run_context of the chef_run and we are using ChefSpec 1.2 and all the
  documentation is for ChefSpec 3.0. I've commented it out to revisit when we
  upgrade to 3.0.

Change-Id: I4f4c60eaec9391c2871942dc95b557468f3bf85a
2013-10-30 12:50:11 -05:00
alop af3ac2724e Added nfs client packages
Since grizzly introduced cinder nfs support, compute nodes will need
nfs client packages to mount nfs shares for cinder.

Change-Id: Id469c3dc480b81438cef8c23b5344fd5a7dd7f7b
2013-07-11 14:20:02 -07:00
Ionuț Arțăriși 79c2503ccc fix nova-network vs. openstack-network conflict
Having both nova-network and openstack-network::server in the run_list
caused conflicts when installing packages.

Change-Id: I105eab62d49c1e6d36e2416ae44c73f551d062e5
2013-07-03 16:04:27 +02:00
John Dewey 68f4f9bc18 Corrected to support Chef 11
Need to Array.new vs simply casting to Array.  Also, tests would
not pass with the recent grub/lxc work.  Was hoping to stub
`#set_boot_kernel_and_trigger_reboot` but found that to be
difficult.  Ended up stubbing the result of File.open.  This
section needs better testing.
  Failure/Error: @chef_run.converge "openstack-compute::libvirt"
  Errno::ENOENT:
   No such file or directory - /boot/grub/menu.lst
  # ./.cookbooks/openstack-compute/recipes/libvirt.rb:34:in `initialize'
  # ./.cookbooks/openstack-compute/recipes/libvirt.rb:34:in `open'
  # ./.cookbooks/openstack-compute/recipes/libvirt.rb:34:in `set_boot_kernel_and_trigger_reboot'
  # ./.cookbooks/openstack-compute/recipes/libvirt.rb:79:in `from_file'
  # ./.cookbooks/openstack-compute/spec/libvirt-opensuse_spec.rb:10:in `block (3 levels) in <top (required)>'

Change-Id: Ie97309ff5e1bf30a02714597fe29c1d0df1b1c23
2013-06-06 11:31:09 -07:00
Matt Ray 80f36cf59c Move attributes to [openstack][compute] namespace.
As we have decided to move all cookbooks to use the
[openstack][<service>] attribute namespace convention, move compute
to fit this model.

Change-Id: Ibc19fd5326af0340ea1e3788aa7d2701e187f3a0
2013-05-23 00:22:14 -04:00
tpaszkowski 748154a16f Fix for nova-compute service not beeing started.
nova-compute service should be started after nova::compute recipe will
finish its work.

Change-Id: I9dac760c901d04e465a20ced363242fab0b93a03
2013-05-20 12:18:37 +02:00
Craig Tracey ab49072ea9 More changes to rename this to openstack-compute
In the previous commit, the vast majority of the work to move this
repo to openstack-compute was completed. Functionally it works. This
change is intended to address some cosmetic issues and make it
consistent with work done in other cookbook repos.

All tests pass.

Change-Id: I58216cd87b9ff0a77c599c7b5aab132ab2a9304d
2013-05-18 09:36:02 -04:00
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00
Yun Mao c67cb7fb5e Chef 11 compatibility change
Make sure nova_compute_packages is not a node object, so that
this is compatible with chef 11 when being changed later.
2013-05-05 22:38:41 -04:00
John Dewey 96e0d0109b Re-Revert "Revert "Foodcritic cleanups""
This reverts commit 681aa57270.

Corrected the notification syntax
2013-01-07 17:40:53 -08:00
Jay Pipes 681aa57270 Revert "Foodcritic cleanups"
This reverts commit e59e131ad8.
2013-01-07 11:19:53 -05:00
John Dewey e59e131ad8 Foodcritic cleanups
Think I got em all right, esp the subscribes...

FC033: Missing template: cookbook-nova/recipes/nova-common.rb:124
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:132
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:140
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:148
FC034: Unused template variables: cookbook-nova/templates/default/nova.conf.erb:1
FC034: Unused template variables: cookbook-nova/templates/default/openrc.erb:1
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-ec2.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-ec2.rb:138
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-metadata.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-metadata.rb:65
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-os-compute.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-os-compute.rb:137
FC043: Prefer new notification syntax: cookbook-nova/recipes/compute.rb:54
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:72
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:84
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:95
FC043: Prefer new notification syntax: cookbook-nova/recipes/network.rb:32
FC043: Prefer new notification syntax: cookbook-nova/recipes/nova-cert.rb:31
FC043: Prefer new notification syntax: cookbook-nova/recipes/scheduler.rb:40
FC043: Prefer new notification syntax: cookbook-nova/recipes/vncproxy.rb:39
FC043: Prefer new notification syntax: cookbook-nova/recipes/vncproxy.rb:47
2013-01-03 22:55:45 -08:00
John Dewey 4f35444f8c formatting changes to conform to a common standard 2012-11-21 22:22:34 -08:00
John Dewey 4a4afc5b27 Removed RCB sysctl dep
Will use the upstream sysctl cookbook, which sets via attributes.
These attributes will be applied at the role level.
2012-11-19 19:00:28 -08:00
Jay Pipes eed2512322 Remove ::Openstack:: and include ::Openstack in Chef::Recipe. ugh. 2012-11-14 17:29:38 -05:00
mattray 5e127eecec sync with rcbops 9/17 c3aa4f1feffc6794302cae54cef4c9aaa5b5e1b3 2012-09-19 11:00:29 -05:00
mattray 584262e87a remove monitoring 2012-07-27 15:49:34 -05:00
galstrom21 c7d76e9a2b Ensuring copyright banner exists 2012-07-23 21:34:14 -05:00
Joseph W. Breu 8777521d82 fix a mispellde varaible 2012-06-25 17:03:35 -05:00
rpedde 5e84af845d port to monitoring cookbook 2012-06-25 15:24:03 -05:00
Justin Shepherd 51b0da8624 Merge pull request #83 from Apsu/master
Add tuning recipe with boilerplate for adding more tunables later
2012-06-20 15:18:56 -07:00
Evan Callicoat f45fcb073f Moved tunables to compute.rb 2012-06-20 17:14:41 -05:00
galstrom21 e673981496 had incorrect permissions 2012-06-18 15:32:36 -05:00
galstrom21 dd97b95b1d Adding blank /etc/nova/nova-compute.conf 2012-06-18 13:46:00 -05:00
galstrom21 126acb7e96 Removing TODO 2012-06-14 12:08:42 -05:00
galstrom21 c6c4cec624 adding libvirt plugin to nova-compute recipe 2012-06-08 11:01:32 -05:00
rpedde f7b8668f49 fix typos and thinkos 2012-05-29 09:57:03 -05:00
rpedde 26937e535a convert nova-compute for osops-utils 2012-05-23 15:51:50 -05:00