In order to make OpenStack configuration files written by Chef more
readable, this patch introduces a blank line before every section
heading.
Change-Id: Ib44e17cbba512c51c0098177d2dab1a91802b4d3
- Have Ocata as default release for master now
- switch default auth strategy to Fernet as PKI tokens have been removed
- Update OpenStackClient version
- Provide a default WSGI template that can be used from other cookbooks
- Add a fake compute_cell0 service in order to create another DB for nova
Change-Id: I8bc2eb5622b14457ef80cb70bf7a1d60c9fe9793
* version bump to 13.0.0 for mitaka release
* removed suse support
* removed general endpoint method, since we should be able to always specify
which endpoint we need
* removed fallbacks in specific_endpoint method, since this behaviour is not a
very obvious one to the user and it should rather return an error than an
unexpected result
* dry public, internal and admin endpoint methods
* removed obsolete private methods
* adapted method calls for admin_endpoint in libraries/cli.rb
* refactored set_endpoints_by_interface recipe to directly call address_for
instead of address, since the recipe already checks for an existing attribute
..['bind_interface'] and therefore address would redirect to address_for
anyways
* moved the nested hash order for the public, internal and admin attributes to
to be more clear and to break all existing calls to fix them during the
refactoring process of all cookbooks
e.g: node['openstack']['endpoints']['internal']['identity'] is now
node['openstack']['endpoints']['identity']['internal'] and can be moved into
the identity cookbook. This also streamlines these endpoint attributes with
the bind_interface and host attributes
* removed dependency on openstack-identity cookbooks by moving openrc recipe to
opentack-identity (same for corrensponding specs and template)
* removed address method and use the address (or hostname) defined in the
endpoints hash directly (logic to set this attribute should rather be
done in a wrapper (with a fitting method) instead of a static and predefined
one)
* removed set_endpoints_by_interface recipe since logic for defining the
endpoints will be moved to wrapper cookbooks
* added helper method merge_config_options for generation of config hashes used
in service config templates
* added template for openstack-service.conf.erb which can be used by all service
cookbooks
* deleted all endpoints attibutes, since these are moved to the service
cookbooks for easier dependency handling
Implements: blueprint cookbook-refactoring
Change-Id: I0547182085eed91d05384fdd7734408a839a9a2c
MetaData changes
- bump metadata versions to 11
Gemfile changes
- bump robocop to 0.29.1
- bump chef to 11.18.6 close to 12 but not quite (need infra changes for 12)
- bump berks to 3.2.1 to get fix for running twice (destination already exists)
Rubocop changes
- add .robucop_todo.yml for future cleanup
- rubocop --auto-gen-config and add an inherit_from: .rubocop_todo.yml in your .rubocop.yml
- add .bundle/**/* to .rubocop.yml
- add .cookbooks/**/* to robocop.yml
- fixup berks-cookbooks/** with /**/*
Changelog changes
- delete Changelog.rb
Other codes changes
- change juno to kilo where appropriate
- cleanup any obvious old deprecated code
Change-Id: I146aa7f7ba4024115c1297103e176a72336fbe5d
Partial-Bug: #1426424
The assumptions made in this cookbook for ceph were incorrect.
This commit removes all ceph logic from common and shifts the
burden of ceph management to the upstream ceph cookbook.
Partial-Bug: #1409943
Change-Id: Id9af0f484675992a47401d00afb81886fc4074dc
As recently Nova merged commit https://review.openstack.org/#/c/124468/
which have switched to use Cinder v2 api, and cookbook will register
Cinder v2 endpoint. So openrc file also need to be updated
for cinder v2 support.
Change-Id: I3bcd3ca95d5f65c33eb5ddfda611280785412549
Since there are user cases for having an openrc created for
other uses besides Compute, it makes sense to move the openrc
recipe logic into Common to allow it to be used as needed with
any project.
- Added new recipe/template for openrc
- Added tests
- Will create patches to remove openrc from Compute and to add it
to the all in one environment.
Change-Id: I2ca2280ef92d78bcf3e8a7d85eb91c9565413e17
Implements: blueprint moveopenrc
Some of the tests have been modified to set the implied
attributes to known values before verifying the
expectations. The ceph.client.keyring.erb template has
been deleted, any recipe was using it.
Change-Id: Ic1e5c67015290f677628d2705474d192d1d2c6dc
Closes-Bug: #1300774
To use RBD as a block-storage backend, both the compute workers and the
cinder-api service need to be able to talk to the Ceph cluster.
Nova-compute makes use of the `rbd` CLI tool, cinder-api and libvirt use
librbd's Python binding. Therefore, it might make sense to have this
"common" recipe provide the necessary infrastructure to a) reach the
ceph cluster and b) install ceph packages if need be.
Besides block storage, RBD can also be used for storing images, so
that's another reason to put this into openstack-common.
This commit also introduces a template, "ceph.client.keyring.erb", to
allow the creation of client keys from other recipes in a DRY way:
template '/etc/ceph/client.cinder.keyring' do
template 'ceph.client.keyring.erb'
cookbook 'openstack-common'
owner node['openstack']['block-storage']['user']
group node['openstack']['block-storage']['group']
mode '600'
variables(
name: rbd_user,
key: rbd_key
)
end
A LWRP for this would be an improvement, but this should do for now.
Implements: blueprint rbd-for-block-storage
Change-Id: Icd046830c9542bd71fa3a1857c1f4d1bb3c41cec
After we have havana branch, I search and replace all the quantum with
neturon to support neutron configuraton.
The related patch on cookbook-openstack-network is:
https://review.openstack.org/#/c/58217/
Implemented: blueprint neutron-support
Change-Id: I0aa81b661eaa7d305d7a2645e349c893b3c849f4
There are a number of sysctl settings in the OpenStack documentation that are
not managed by the cookbooks. This approach will iterate over any attributes
added to the node['openstack']['sysctl'] hash and write them out to
/etc/sysctl.d/60-openstack.conf.
The README.md had the recipe description within the Libraries section, separated
into new Recipes section.
Change-Id: Ic32184b78a0bcf4c3e704c7dcd1e9d009b1d95c6