Commit Graph

497 Commits

Author SHA1 Message Date
OpenDev Sysadmins 62076c1131 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:59 +00:00
Samuel Cassiba 1e9ca6d5b3 Migrate Zuul jobs to openstack/openstack-chef
Change-Id: I6117fadfabfefdb1dbd4542a1b0b0984fd921dad
2018-08-31 23:27:40 -07:00
Samuel Cassiba 7a70f023cd stable/pike release
Change-Id: I2f42235084d08232c35c0430f0f03c963eee3a8d
2018-02-26 07:32:14 -08:00
Samuel Cassiba 2e17c9a922 Use updated volume packages for Cinder
- scsi-target-utils comes from EPEL. Now that EPEL is disabled, this is removed
  in favor of targetcli from the base repo. This is also available for Ubuntu to
  provide a consistent outcome.

Change-Id: Ibc146350ef2ddd1d19e35402cbf69e036a759f1d
Implements: blueprint modern-chef
2018-02-08 22:14:55 -08:00
James E. Blair 7ff916564d Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: If928f010c6fd7edb00068a7fa594091dec5ecb0f
2018-01-31 15:10:47 -08: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
Roger Luethi 54f8d6d917 Remove domain role from cinder service user
This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
membership cannot be tacked on later. This resource gave the user the
role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).

We add the domain_name attribute that creates the cinder user in the
desired domain. Note that this change needs a sufficiently recent
openstackclient cookbook -- otherwise the domain_name attribute is
ignored (which does not matter as long as the cinder user is to be
created in the Default domain).

Change-Id: I3d3cad8f870f80b577ded04588c401c27c62fbc8
2017-11-13 15:09:07 +00:00
Roger Luethi e5e8bb9326 Remove superfluous role_name arguments
This patch removes the role_name when using openstack_user's :create
action (it gets ignored by the target method).

Note that the spec test would still pass if only the line in
identity_registration.rb (but not the test) were changed, because the
code that actually does grant the role to the resource is executed right
after user creation and before any tests check the resource for the
existence of the role_name attribute. In other words: if the argument
were required in a call but only supplied in another call, the spec
tests would not catch it. Something to watch out for.

Change-Id: I320d0e85287aa5d6368d5be323999f8d9e1c462f
2017-11-10 10:31:06 +01:00
Zuul db13c39007 Merge "Add native zuul v3 jobs defined in openstack-chef-repo" 2017-11-03 02:55:50 +00:00
Jens Harbott 847269121c Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: Ia0bbcbb784f6faa93331afc8674c03d43f7e5e2a
2017-11-02 10:23:05 +00:00
Sebastien Coavoux a0ad02e396 Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I2b908180fc42265146f8b50ecbdb1e002f6d218b
Partial-Bug: #1724987
2017-10-28 15:43:22 -04: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
Jan Klare a29984d301
starting pike development patch
Change-Id: I8763df1d627bf840035fcde552bac3e9820ca913
2017-08-17 14:18:49 +02:00
Samuel Cassiba d2ff4496bb Added systemd unit, style and lint fixes for chefdk
- cinder-group-active is still SysV, but can and will start via systemd if
  coaxed to do so.
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: I4c26aea78220eb20fc4e5e964af93414855df5f6
2017-08-02 02:15:54 -04:00
Jenkins ae28e74793 Merge "add new Chef OpenStack Team Logo to README" 2017-05-29 23:58:57 +00:00
Jan Klare 73dfb6249a add new Chef OpenStack Team Logo to README
Change-Id: Ia523cca94b93587942966070e0be9d7041a3a8e5
2017-05-29 10:53:07 +02:00
Samuel Cassiba e5c43eb60b Differentiate between Debian and RHEL for Apache
- Apache HTTPD Server is called httpd on RHEL, and apache2 on Debian.
  This adds that distinction for the cinder-api web service.

Change-Id: I457c239f0ff80eb78c49f7a1aae989a8368df80f
2017-04-07 15:10:50 -07:00
Jens Rosenboom a3ba8685a7 Make cinder work for Ocata
- cinder-api now runs under apache2 and no longer as systemd service
- cinder-volume needs explicit backend configuration
- don't install deprecated cinder v1 API endpoints
- clean up some config options

To be added in a follow-up:
- Make backend configuration more flexible
- Replace distro provided wsgi setup with our custom one

Change-Id: I77ac294fd8e1cd4e6bc39667ddfdea21c4daed8a
2017-03-30 14:34:15 +00:00
Andreas Jaeger 8421080468 Replace obsolete vanity openstack.org URLs
Project specific URLs are obsolete, use docs.openstack.org - and use
https for that site.

Change-Id: I68cd24aea00c1b64d5a55562db05fc2538d05efb
2017-03-08 19:37:29 +01:00
Jan Klare 517e021e9e starting ocata development patch
Change-Id: I3584b1187b629d2340f23f95ffe077779fa0633c
2017-02-23 17:05:49 +01:00
Jens Rosenboom 897f9a5218 Fix creating volumes from Glance images
We need to use Glance API v2 now.

Change-Id: I24a4289f24348511f3e5f39b7bac970faf1c729b
Partial-Bug: 1661708
2017-02-09 14:48:43 +01:00
Christoph Albers 68da464eae RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: I19ff8e4df8f559bf03ff746fcc49be9425edd84e
Depends-On: I0a6da37e3f2b839590b6349fd906d47c5206fbb3
2016-12-20 11:45:14 +00:00
Jenkins a52e0e8d78 Merge "Deprecated python-cinderclient" 2016-12-20 11:07:07 +00:00
Samuel Cassiba 13ae9c1784 Deprecated python-cinderclient
- deleted client.rb
- deprecated python-cinderclient references
- incremented apt to 5.0

Implements blueprint newton-xenial
Depends-On: I57c8729e8732161ac34caa85259de8264e99c56d

Change-Id: I1b8c34eea50ed10d6c040caa89802dd64124ec74
2016-12-14 19:15:39 -08:00
Flavio Percoco 07d9892d04 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/0d7d9793a11cf58c614c4898112465b4

Change-Id: I0abc021f86faa9ea2980ec3f69e5805fe7984c21
2016-12-08 08:21:03 +00:00
Jan Klare 88f40c442e update cookbook dependencies for next release
Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Depends-On: Ic6b00a08ec29a9a7c04a72c743af5f756db45edf
Change-Id: Ib11ceab6a4192057904c0111074d41176144e2a3
2016-12-05 12:33:20 +01:00
Christoph Albers 49d23da167 use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- added needed keystone_authtoken attributes
- updated README

Change-Id: I2f339055883354c6a8a77daa7967ff279c4d18d9
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
2016-09-30 10:58:23 +02:00
Samuel Cassiba ddad81bf9b Increment apt cookbook to 4.0
As a requirement for Ubuntu 16.04, the apt cookbook needs to be at least 4.0

Change-Id: I47416ef32af0e00acbcc366c9acdae306862a56a
Depends-On: I07ad79a93642d0f0c934a864fcb9bcd7b764e35f
Implements: blueprint newton-xenial
2016-08-03 16:35:02 -07:00
Samuel Cassiba 67149f00ff Style and lint fixes to support newer ChefDK
Change-Id: I39f35c718e706b8f29c2b4d6d6cbd270b510183e
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
Depends-On: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I34e4c7b29ff7c36c91245d90fb0b6897847cd22f
2016-07-06 09:20:23 -07:00
Jan Klare babac2c1f2 initial commit for the newton development cycle
Change-Id: I9b9b61179b7ef045d6bf6f2c134b26b4c27b4eeb
2016-05-31 10:13:37 +02:00
Jan Klare 79bef2f7ac update the README after refactoring and align it with other cookbooks
Change-Id: Id5f634b58aefc434ad1d2942695bf10b4a1f5be5
2016-04-26 15:39:01 -05:00
Mark Vanderwiel 37a4707015 Cleanup options deprecated for mitaka
Some options have been deprecated for Mitaka, replace them with the new
variants.

Change-Id: I7563c8cac90d9caa0095944d8c0835d73f1b8dde
2016-04-13 15:03:54 -05:00
Jens Rosenboom 6ce1eb3be6 Get rid of dependency on python cookbook
The python cookbook is deprecated, so we should get rid of it, in
particular as we do not seem to need it anymore.

Change-Id: I4320035a0fff6479d96215239eec9006b4e79754
2016-03-30 01:43:34 +02:00
Jan Klare 31f968ed25 Fix bootstrap.sh
On recent test machines, curl isn't available anymore, so use wget
instead. Piping directly into bash isn't that great anyway.

Change-Id: I462ed7bcf12f31b045d693e0bc7038da3c5cd1bd
2016-03-15 16:14:28 +01:00
Christoph Albers 502d7a0824 Use new bind_address method from Common to get address
* fixed my_ip attribute. now using the cinder_api_bind_address

Change-Id: Id85a23ae284157b6277a43b3ee3b10bc0e43655c
2016-02-18 14:18:25 +01:00
Christoph Albers 0d6cffad4e invert the order of endpoint and bind_service attributes
* endpoint type (admin, internal, public) and service (identitiy, network etc.)
  was switched during refactoring, this patch reverts this unintended switching
* edited bind_service service type from public,internal,admin to 'all'
  for default binding to just one service

Change-Id: I4d28b1b2489419c1f033dfcda0effa5a53c537c3
Depends-On: Iec485deaf415e4187a323435cce2b6bbadfc5d42
Depends-On: Ia5bddfc5e2fd77cd6e9e855c680b079f78fc1c3f
Depends-On: I4f97b659361dabd7fac216305d2aad2f1bb98f51
2016-02-15 19:05:20 +01: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
Mark Vanderwiel 8a2f26d6fe Add integration task
Add missing gate integration task, but use the one from
Common cookbook to make future updates easy.

Change-Id: I32611ef66a812bfba70f9f392d7955114018318f
2015-10-06 09:41:12 -05:00
Jan Klare 9edde995d9 update apt cookbook version
Change-Id: Ic58cbec9ba9ee7e5fb021b745a2dcd2d926332a0
Depends-On: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
Depends-On: Ia0815db80e23e865771bced695067a5a95aa376e
2015-09-17 09:54:20 +02:00
Jenkins d921c1fdd9 Merge "Add database slave connection configure" 2015-09-02 07:38:03 +00:00
Mark Vanderwiel b2b093cc3b Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop updates
remove db2 refs

Change-Id: I4be2304091443ee173ebb4605e24b54c699b929a
2015-08-31 12:05:03 -05: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
Lan Qi song 7f980745eb Create mount point directory when use multi backend configuration
Currently, when we use GPFSDriver as multi backend volume driver,
cookbook won't create gpfs mount point base directory automatically.

This patch fix this problem.

Closes-Bug: #1476960

Change-Id: I1faf33470747fac6df66854470cf45d35a38f3c1
2015-07-25 09:19:44 +08: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 7386afb7c0 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: If7b01ecaed9b51798acc53c9ea4833cb74250f62
Partial-Bug: #1467662
2015-06-22 15:50:38 -05:00
Jenkins 2ae583205f Merge "Allow rabbit mq kombu ssl configuration" 2015-06-17 08:19:47 +00: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
Jenkins 3b5d0de891 Merge "Allow oslo rabbit heartbeat configuration" 2015-06-15 17:31:25 +00:00
wenchma 46afa0ed92 Sync stackforge/cookbook* to openstack/cookbook* for cinder cookbook
Change-Id: Id9634912eca8611ce699d6ce73bc2e0b0a00ef9d
Partial-Bug: #1465116
2015-06-15 15:16:10 +08:00