RETIRED, Chef Cookbook - OpenStack Block Storage
Go to file
Roger Luethi f662bc35fd api: prevent installation of invalid apache2 conf file
If apache is (re)starting while the chef-client installs the cinder-api
package, it may pick up the package-supplied cinder-wsgi apache2 conf
file before chef-client gets around to disabling it which may result in
apache2 failing due to a non-working configuration.

This changeset eliminates the race by creating an empty configuration
file before installing the software. The solution is based on the
assumption that no reasonably configured package manager will overwrite
an existing, user-created configuration file. The empty configuration
file is left in place to avoid its creation and removal during every
recipe run.

backport: queens

Change-Id: I225a30379820e6e033bcea987fbf1a4db33dbd3a
(cherry picked from commit 8c0d728d13)
2019-08-06 18:38:47 +02:00
.delivery Add delivery config 2018-04-11 21:42:06 -07:00
attributes added ubuntu bionic cinder_iscsitarget_package exception 2019-04-01 12:29:37 +02:00
files/default block-storage refactor for Pike and Chef 13 2017-12-12 17:34:08 -08:00
recipes api: prevent installation of invalid apache2 conf file 2019-08-06 18:38:47 +02:00
spec remove targets.conf 2019-04-01 10:08:47 +02:00
templates/default Fixes wrong service type reference for wsgi banner 2019-08-02 21:42:23 +00:00
.gitignore Initial kilo updates 2015-02-27 14:46:22 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:32:59 +00:00
.rubocop.yml Initial block-storage Pike updates 2017-08-25 09:15:49 -04:00
.zuul.yaml Migrate Zuul jobs to openstack/openstack-chef 2018-08-31 23:24:05 -07:00
Berksfile Fix Berksfile to request stable/queens branch 2019-08-02 20:29:34 +00:00
CONTRIBUTING.md Workflow documentation is now in infra-manual 2014-12-05 03:30:43 +00:00
LICENSE block-storage refactor for Pike and Chef 13 2017-12-12 17:34:08 -08:00
README.md Merge "add new Chef OpenStack Team Logo to README" 2017-05-29 23:58:57 +00:00
Rakefile block-storage refactor for Pike and Chef 13 2017-12-12 17:34:08 -08:00
TESTING.md Sync stackforge/cookbook* to openstack/cookbook* for cinder cookbook 2015-06-15 15:16:10 +08:00
bootstrap.sh stable/queens release patch 2018-07-26 20:52:06 -07:00
metadata.rb api: prevent installation of invalid apache2 conf file 2019-08-06 18:38:47 +02:00

README.md

Team and repository tags

Team and repository tags

Chef OpenStack Logo

Description

Installs the OpenStack Block Storage service Cinder as part of the OpenStack reference deployment Chef for OpenStack. The https://github.com/openstack/openstack-chef-repo contains documentation for using this cookbook in the context of a full OpenStack deployment. Cinder is currently installed from packages.

https://docs.openstack.org/developer/cinder

Requirements

  • Chef 12 or higher
  • chefdk 0.9.0 or higher for testing (also includes berkshelf for cookbook dependency resolution)

Platform

  • ubuntu
  • redhat
  • centos

Cookbooks

The following cookbooks are dependencies:

  • 'apt', '~> 4.0'
  • 'openstack-common', '>= 14.0.0'
  • 'openstack-identity', '>= 14.0.0'
  • 'openstack-image', '>= 14.0.0'
  • 'openstackclient', '>= 0.1.0'

Attributes

Please see the extensive inline documentation in attributes/*.rb for descriptions of all the settable attributes for this cookbook.

Note that all attributes are in the default['openstack'] "namespace"

The usage of attributes to generate the cinder.conf is decribed in the openstack-common cookbook.

Recipes

openstack-block-storage::api

  • Installs the cinder-api and sets up the cinder database

openstack-block-storage::backup

  • Installs the cinder-backup service

openstack-block-storage::cinder-common

  • Defines the common pieces of repeated code from the other recipes

openstack-block-storage::client

  • Install the cinder client packages

openstack-block-storage::identity_registration

  • Defines the cinder service/user/endpoints in keystone

openstack-block-storage::scheduler

  • Installs the cinder-scheduler service

openstack-block-storage::volume

  • Installs the cinder-volume service

openstack-block-storage::volume_driver_lvm

  • Configures lvm as the cinder storage backend

License and Author

Author Justin Shepherd (justin.shepherd@rackspace.com)
Author Jason Cannavale (jason.cannavale@rackspace.com)
Author Ron Pedde (ron.pedde@rackspace.com)
Author Joseph Breu (joseph.breu@rackspace.com)
Author William Kelly (william.kelly@rackspace.com)
Author Darren Birkett (darren.birkett@rackspace.co.uk)
Author Evan Callicoat (evan.callicoat@rackspace.com)
Author Matt Ray (matt@opscode.com)
Author Jay Pipes (jaypipes@att.com)
Author John Dewey (jdewey@att.com)
Author Abel Lopez (al592b@att.com)
Author Sean Gallagher (sean.gallagher@att.com)
Author Ionut Artarisi (iartarisi@suse.cz)
Author David Geng (gengjh@cn.ibm.com)
Author Salman Baset (sabaset@us.ibm.com)
Author Chen Zhiwei (zhiwchen@cn.ibm.com)
Author Mark Vanderwiel (vanderwl@us.ibm.com)
Author Eric Zhou (zyouzhou@cn.ibm.com)
Author Edwin Wang (edwin.wang@cn.ibm.com)
Author Jan Klare (j.klare@cloudbau.de)
Author Christoph Albers (c.albers@x-ion.de)
Copyright Copyright (c) 2012, Rackspace US, Inc.
Copyright Copyright (c) 2012-2013, AT&T Services, Inc.
Copyright Copyright (c) 2013, Opscode, Inc.
Copyright Copyright (c) 2013-2014, SUSE Linux GmbH
Copyright Copyright (c) 2013-2015, IBM, Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.