Commit Graph

146 Commits

Author SHA1 Message Date
Ghanshyam Mann a048e1094b 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: Id5659595c1a67540fff5434197a06d33cdb9d85e
2024-02-17 20:53:54 -08:00
Lance Albertson 873b58d13b Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Other changes:
- Remove selinux for depends as it's not being referenced anywhere in
  the cookbook
- Included more ChefSpec tests for api recipe
- Update WSGI template
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: I289091f54750dd5068e98fd4f4853880f4b72c6c
2020-01-30 09:29:10 -08:00
Manuel Torrinha 9c2757e528 Removes admin endpoint references
Also fixes wrong service type reference in for wsgi banner

Change-Id: I82c60b7c4efaa19459a3a0ab835eb4e48f8ee991
Signed-off-by: Manuel Torrinha <manuel.torrinha@tecnico.ulisboa.pt>
2019-06-05 08:12:06 +00:00
Christoph Albers 8efd295421 remove targets.conf
- since the target package ships the default conf we won't need this
  anymore
- the cinder target.conf is shipped by the cinder package to the right
  directory
- removed targets.conf.erb since this isn't used anymore
- removed obsolete specs

Change-Id: I9485cc65231b1da8b24efdb7e25551e4d4688d6a
2019-03-27 14:31:58 +00:00
Samuel Cassiba c18919e533 block-storage refactor for Pike and Chef 13
- deprecated postgresql support
- dropped apt cookbook dependency
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- implemented foodcritic and cookstyle corrections
- migrated cinder api to a Chef-managed config
- deprecated cinder-group-active service, as it is no longer needed and gets in
  the way of functionality
- added lvm cookbook dependency for better pv/vg handling

Implements blueprint modern-chef

Change-Id: Id248c9267af6750c871487bc8b577aa2011a782a
2017-12-12 17:34:08 -08:00
Samuel Cassiba 60a38b538d Initial block-storage Pike updates
- Changed the default linter to cookstyle
- cinder-group-active was missing a Provides header for the SysV init script
- Switched the qemu package to SCL for CentOS to get a newer release
- Normalized template banner comment

Change-Id: Iec59e0c8e3cb0b83db92a0a9f8db34a40953351f
2017-08-25 09:15:49 -04:00
Christoph Albers 4a7dc692b9 refactoring final step
* added endpoint attributes (moved from common)
* removed qpid as a messaging option (can be incuded in a wrapper)
* deleted default attributes from nova.conf.rb originated in
  openstack-common
* 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
* removed fedora, suse as supported platform
* adapted the specs (unit tests) to work again
* added new logic into templates/default/cinder.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the cinder.conf.erb template to adapt the new
  template attribute syntax
* moved all attributes from attributes/default.rb that were used in
  cinder_conf.erb to attributes/cinder_conf.rb
* refactored attributes to fit upcomming template logic
* refactored recipes to fit upcomming template logic
* removed all attributes from default.rb and cinder.conf.erb which are set
  as default in attributes, openstack doc and used to render the template

Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: Idadc97bd7380d6c4f9f6f33d9c6b1215a5f24772
2016-02-08 14:39:27 +01:00
Min Min Ren 528cb177f6 Add database slave connection configure
- According to the bool attribute
      node['openstack']['endpoints']['db']['enabled_slave'], enable/disable
      nova database slave_connection
    - Add the slave_connection generated from db_uri function

Implements: blueprint sql-slave-connection-support

Change-Id: I9520441952993e8c6b4205e6886778815b5a2e4b
2015-08-28 13:36:33 +08:00
Jens Rosenboom ea2fbba04a Do not put empty default_volume_type into config
Change I1bb94dc1283e50645e4aece600acc52ae17db56b added the config option
default_volume_type with a default value of nil. With this, cinder fails
to create volumes unless a type is explicitly specified. So better only
write this value into the config file if it is set to some non-nil
value.

Change-Id: I7de8c6cc5a424b5b5021675d89a5dba71d72dce0
2015-08-18 15:13:12 +02:00
XiaoPei Liu 5140ba531d Allow fixed_key to be configurable in cookbook
The fixed_key attribute should be added in cookbook for volume
encryption

Change-Id: I83f697fde32bf1ccaaa3187936c664c61b1e7af9
Closes-Bug: 1467797
2015-06-26 11:17:25 +08:00
Mark Vanderwiel ba480c6a99 Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I9dc682a2a8e4df289b9c0bbca11208183d1ff71b
Partial-Bug: 1464706
2015-06-16 10:08:29 -05:00
wenchma 3c0ceb9f4c Add rabbitmq max_retries and retry_interval in cinder conf
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Change-Id: I449f7be68dd9c9adbad587a47cf9d9dcc3462369
Closes-bug: #1439968
2015-06-12 15:06:43 +08:00
Jenkins 6a8e987f42 Merge "Add host id to cinder default section" 2015-05-08 15:52:54 +00:00
Lan Qi song 2ea252646d Make enable v1 and v2 api option configurable
Change-Id: I40efdc8c31dc38f214cc300cc68279af1b614089
Closes-Bug: #1452730
2015-05-08 11:15:03 +08:00
Mark Vanderwiel c9f1018d9b Add host id to cinder default section
Cinder volumes are associated with the cinder host that created them.
This unique host id can be changed in the conf file. This patch adds
support to allow that.

Change-Id: I9295ed1bfa24bfac8325bd347a92b5e334a31371
Closes-Bug: #1451967
2015-05-06 16:05:55 +00:00
Jenkins b4ae9f3dec Merge "use LVMVolumeDriver as default. LVMISCSIDriver is deprecated. See also: cinder/volume/drivers/lvm.py" 2015-05-06 15:26:08 +00:00
Masaki Matsushita 0fd962dae2 use LVMVolumeDriver as default.
LVMISCSIDriver is deprecated.
See also: cinder/volume/drivers/lvm.py

Change-Id: I08b157ee7fbb0d61c8c9ec406edf2240a9a40c1d
Closes-Bug: #1451363
2015-05-06 19:39:53 +09:00
Lan Qi song cba98483b2 Add support for cinder-backup service
Partially-implements: blueprint chef-cinder-backup
Change-Id: I961d8875e35c26efa2ff9e7be0bb576cb8e345fa
2015-05-06 13:55:56 +08:00
wenchma 226d27a12d Update the deprecated group/name to Kilo release
For Kilo release, there are many deprecated group/name in conf files of openstack,
so we need to change the deprecated group/name to new group/name.

blueprint conf-section-update-for-kilo
Closes-bug: #1436170

Change-Id: Iec23f1b98fbf0c0772df7aba6ece9e0b32a85dc1
2015-04-23 18:11:06 +08:00
Mark Vanderwiel ab8aa01421 Use identity_uri_transform
Remove deprecated keys and use identity_uri via the new transform
helper method.

Also, cleanup specs for endpoint testing to make sure Common is
fully tested.

Change-Id: I5a26d8cb83193e4bf66bb952f7973838d6acba40
Implements: blueprint identity-uri
2015-04-07 06:14:57 +00:00
Jenkins da35cf1404 Merge "Remove api-paste.ini as it provided by package" 2015-04-02 21:13:03 +00:00
TaoBai c836a99b04 Update cookbook for storwize new features
There are new configuration items added to cinder.conf
for new features "QoS" and "volume-replication" in Juno.

Change-Id: I6f69dbe6cc1e0a1dbb5da1417d44211463a7df36
2015-03-31 03:22:44 -07:00
wenchma c11812f7eb Enable kombu_ssl_version configuration for Rabbitmq SSL
This commit depends on https://review.openstack.org/#/c/165302/

Change-Id: Ibadf0770c0b340be60df12431baeb42a5a119c24
Closes-bug: #1433405
2015-03-23 16:43:10 +08:00
Mark Vanderwiel 33fd5eee2c Remove api-paste.ini as it provided by package
Since we have no attribute overrides for api-paste.ini, no
need to have a template resource for it.  Until we need to
have some attribute, removing this will take away burden of
keeping in sync with base openstack code.

Change-Id: Ic72c638ba61929bc06061b04d13ce986514b0460
Related-Bug: #1433152
2015-03-17 11:13:10 -05:00
Edwin Wang ab7c43d8ef Add config for IBM FlashSystem
Modify config in attributes/default.rb, recipes/cinder-common.rb,
spec/volume_spec.rb, spec/cinder_common_spec.rb and
templates/default/cinder.conf.erb with SAN login and password.
It has been merged in Kilo. iSCSI code is on the way.

Change-Id: I784f69424a5f1b20f99ba5faccc85b3066e23de3
2014-12-31 13:47:13 +08:00
Elliott Davis f75d819c2f Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: Ibba6c568d4e4d00153061458b71593cd28714e60
2015-02-05 09:11:12 -06:00
Mark Vanderwiel e6d89d0689 Allow storwize private key without san_login and san_password
Using The san_private_key by itself is a common use case. The
current code requires the san_login and password to be set.
This patch allows the key to be used without the login and password.
Also removed some clutter comments from the conf template.

Change-Id: Iea84c8310eec39481c115587219cdac35c9b3589
Closes-Bug: #1398469
2014-12-02 12:55:30 -06:00
Jenkins d6de81d786 Merge "The default has a capital s" 2014-11-21 09:51:54 +00:00
JJ Asghar e478e57036 The default has a capital s
This a superfluous change, but hell I keep seeing it in the diff
during the converge.

Change-Id: I6381494943b4faef0f375962181d70d52d3c8868
2014-11-20 11:34:03 -06:00
Sachi King e23f8bdc1f Add glance_api_version to cinder config
This allows the administrator of the cloud the ability to specify
the glance API version.  This is required for features such as
Copy on Write (CoW) as Glance's v1 API does not expose enough
information to allow Cinder to CoW the image.

Change-Id: I3ba80207c22916629d210a23aad94bd143d2b00e
Co-Authored-By: Craige McWhirter <craige.mcwhirter@anchor.com.au>
Closes-bug: #1390345
2014-11-20 09:25:36 +11:00
Mark Vanderwiel 6d909ff139 Allow san_password attribute for svc driver
* add san_password= for storwize
* remove unused san_password attributes, get_password method is used
* add tests for password both storewize and solidfire

Change-Id: I4afde431332ca914d078bc3e30362ef22961016f
Closes-Bug: #1384085
2014-11-14 09:06:16 -06:00
Sasikanth cf9ec63b94 Update gpfs volume driver path
* Change of driver path from "drivers.gpfs.GPFSDriver" to
  "drivers.ibm.gpfs.GPFSDriver"
* Fix issue of assigning "gpfs_images_share_mode=copy_on_write"
  even if the parent attribute "gpfs_images_dir" is not defined

Change-Id: Ica00f00901502857d5d21ef7ce7ae3b68e4ca9b7
Closes-Bug: #1389955
2014-11-07 15:04:50 +05:30
Sachi King 5b2b60b319 Add default_volume_type to cinder config
This allows the administrator of a cloud with multiple backends to
define which volume is the default when a user creats a volume without
specifying a volume type.

Change-Id: I1bb94dc1283e50645e4aece600acc52ae17db56b
Co-Authored-By: Craige McWhirter <craige.mcwhirter@anchor.com.au>
Closes-Bug: #1389292
2014-11-04 17:16:31 +01:00
jun xie f11cea4608 Add glance_ca_certificates_file
This commit adds glance_ca_certificates_file into cinder.conf.
It is used for glance client requests.

Change-Id: I4449ce8ec67af70463fd2107749a555c634767d8
Closes-Bug: #1389071
2014-11-04 11:53:29 +08:00
chenxiao 5ebe4b2756 Configure glance_api_insecure and glance_api_servers
This change adds some attributes into the cookbook so
that they are configurable. They are mainly to configure
for glance_api_insecure and make glance_api_servers to be
prefixed with scheme(http or https).

Change-Id: I79e04b47918fe1ec0b45472bd2cec9afa73d5897
Closes-Bug: #1383619
2014-10-22 15:55:21 +08:00
Jenkins 8c42b6bd4c Merge "Add attributes for cinder quotas" 2014-10-09 21:23:28 +00:00
Jenkins 85007635ab Merge "Fix WARNING keystoneclient.middleware.auth_token is deprecated" 2014-10-09 20:11:18 +00:00
Mark Vanderwiel 5d0aac6578 Add attributes for cinder quotas
Add a few more quota attributes
* quota_snapshots
* no_snapshot_gb_quota
* use_default_quota_class

Change-Id: Ib621218b5ac67dca536ce18d587fc70e3068faf3
Closes-Bug: #1367403
2014-09-29 10:27:15 -05:00
Mark Vanderwiel 6587198c3f Fix WARNING keystoneclient.middleware.auth_token is deprecated
* update api-paste.ini

Change-Id: I4c7ef9bc891ba7e36ceeb7590a825df7efed89f9
Closes-Bug: #1365694
2014-09-29 10:09:58 -05:00
chenxiao 5641af2512 Allow cinder authtoken settings to be configurable
This patch is for allowing cafile, insecure,
memcached_servers, memcache_security_strategy,
memcache_secret_key and hash_algorithms to be
configurable.

Change-Id: If4e75092f969bb6b5df29d715e1cff696e41a9a3
Closes-Bug: #1370906
2014-09-29 09:57:49 +08:00
Mark Vanderwiel 094e023ccc Add attribute for ibm nas stroage driver ibmnas_platform_type
* Add new ibmnas_platform_type attribute
* Fix minor bug with nas_ssh_port

Change-Id: I147fbb75cf75357f578e4f84a0d898149be9b1d0
Closes-Bug: #1370574
2014-09-23 10:12:23 -05:00
Mark Vanderwiel 5ef8617161 Add attribute for osapi_volume_workers
Change-Id: I99b7f5284a7f5eeb8cf5608937043b2b11217fec
Closes-Bug: #1368873
2014-09-12 12:19:08 -05:00
Mark Vanderwiel e84947717a Move keystone authtoken keys into cinder.conf
* Remove the keystone keys from api-paste.ini template
* Add the keystone keys to cinder.conf template
* update specs

Change-Id: I5cff962fe200cc1b63352b5e3491f7afed9897f7
Closes-Bug: #1359864
2014-08-25 09:54:35 -05:00
Mark Vanderwiel cfcfccc01e Update cinder conf files for Juno
* Update api-paste with request-id

Change-Id: Ic4f56f19e2d85cadaa4566323409ca093d435f6a
Closes-Bug: #1352974
2014-08-05 10:56:50 -05:00
Jan Klare f890e9eceb added rootwrap.conf template like in cookbook-openstack-compute
Change-Id: I86b9ddab78edf0eb31f2cd82d77d49aa930d7163
2014-07-10 08:51:14 +02:00
Yi Ming Yin a7bd7eb0ed Add multiple backends support for cinder conf
This implementation allows users to configure multiple backends for
cinder volume. By providing a hash map for different volume driver
sections, cinder.conf can be configured to support multiple backends.

Change-Id: Idec6691168c6a67f1a11f7174a8a97ffb950d7b8
Implements: blueprint cinder-multi-backend-conf
2014-06-12 13:56:18 +08:00
Matt Odden 93bc078893 Add missing AMQP options to cinder.conf
Add more AMQP and QPID configuration options
to the cinder configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I2293f1b718dda8f3be889b3a4d241fce7713ece2
2014-05-29 20:44:39 +00:00
shuozhang 8b2ee6face Add support for misc options in cinder.conf
Add misc_cinder in cinder.conf like misc_nova.
Add test
Closes-Bug: #1314105
Change-Id: Ia23809e33dd1b64e276d373ce87355dbecf857e9
2014-05-22 15:16:49 +08:00
Bill Owen 860a4ea53a Publish correct gpfs attributes to cinder.conf
Three extra attributes were being published to cinder.conf when volume_driver
was set to gpfs.  This patch corrects this problem.

Closes-Bug: #1320372
Change-Id: I4e1290aeac92c56beaad0ebd0941afaf249469e2
2014-05-19 09:31:44 -07:00
gengjh 409d883b0f Get the vCenter password from databag for cinder
1. Add new attribute openstack_vmware_secret_name to indicate the
databag secret key
2. Get the password from databag if dev mode is false
3. Update the test cases

Implements: blueprint vmware-password-databag

Change-Id: Id6872d38c255067a4991aceaa0bf6fb400cce1c8
2014-05-09 22:19:09 +08:00