Commit Graph

507 Commits

Author SHA1 Message Date
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
Manuel Torrinha 9188783b25 Fixes wrong service type reference for wsgi banner
Change-Id: I0b3f40c3e87f4b79edf907216d5d81bb43f5fb27
Signed-off-by: Manuel Torrinha <manuel.torrinha@tecnico.ulisboa.pt>
2019-08-02 21:42:23 +00:00
Jens Harbott 48a4e2336a Fix Berksfile to request stable/queens branch
We are in the stable/queens branch and need to use the matching
dependencies, otherwise things will fail.

Change-Id: Ie5aa261bec06f1207f2f56784b402e3905cb815c
2019-08-02 20:29:34 +00:00
OpenDev Sysadmins b5ddd31df8 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
Christoph Albers 962f6e6141 added ubuntu bionic cinder_iscsitarget_package exception
- ubuntu platform_version bionic and higher target package name
  changed. done the exception
- version bumped

Change-Id: If02db452f0c258b9a5266c4ba1a67a2577064352
2019-04-01 12:29:37 +02:00
Christoph Albers fbbb9ad5cf 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
- minor version bumped since this patch could break things

Change-Id: I9485cc65231b1da8b24efdb7e25551e4d4688d6a
2019-04-01 10:08:47 +02:00
Samuel Cassiba 9d0886dda1 Migrate Zuul jobs to openstack/openstack-chef
Change-Id: I9965b3d96fe3c74df19c63ae2ca2fc264d8a9668
2018-08-31 23:24:05 -07:00
Samuel Cassiba 362f3c044b stable/queens release patch
Change-Id: I9c3be34ead8bcf380ca7b9ae9feca6e607d83d18
2018-07-26 20:52:06 -07:00
Samuel Cassiba b27c620954 Use internal identity endpoint for services
Depends-On: Id74966d9f1279f725bc41c08e434230a7845bbc1
Change-Id: I4d2cbcc860060ed6dfdc9f134c43c6c77bf9e9f7
2018-07-16 12:35:38 -07:00
Samuel Cassiba 93882de603 Simplify identity endpoint
Per the Keystone Install Guide[1] the admin endpoint is superseded in
favor of a single public endpoint. As a result, the admin endpoint is no
longer deployed by default.

[1] https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html#install-and-configure-components

Change-Id: I188edfcfbd6f8261a648c03b6e46532b960d3ac6
Implements: blueprint simplify-identity-endpoint
2018-06-14 21:28:42 -07:00
Samuel Cassiba c26101bfba Add delivery config
Change-Id: Ia6cdd3dfb6ca7db2622caaf89821a1ed4c3e76f1
Implements: blueprint deprecate-rakefiles
2018-04-11 21:42:06 -07:00
Jan Klare 607fd77784
remove all ceph related attributes and specs
Change-Id: I24b1a8f8e735e50de535e191cb6cfca489923c25
2018-04-05 16:30:31 +02:00
Samuel Cassiba 6a083d4ab0 starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549345
Depends-On: https://review.openstack.org/549346
Change-Id: Ibd7dd33b687715c286fb0fd18362facfcb09c401
2018-03-06 12:12: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