Commit Graph

25 Commits

Author SHA1 Message Date
Ghanshyam Mann ea238dc447 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: Ie74b00de70c5ce8180b1d6b06394572ef8025f34
2024-02-19 16:52:22 +00:00
Lance Albertson c13ea35e3d Cookstyle 6.19.5 fixes
Update ChefSpec due to changes made in apache2 cookbook.

Depends-On: https://review.opendev.org/756168
Change-Id: Ia19ea6bebf787f1d8b1542bb6c895a294a5e72bc
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:30:51 -07:00
Lance Albertson e34f03b53e Improve ChefSpec test speed by enabling caching
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.

Speed was improved from 14 minutes 3 seconds to 3 minutes 41.8 seconds

Change-Id: I1233e25e69b956936fc19f5c57cedc529afbb730
2020-01-09 14:17:31 -08:00
Lance Albertson 0a6f1d840a Remove deprecated api service
The API service for Ceilometer was deprecated in Ocata [1] and apparently we
missed that. This removes all references to the API service which is no longer
needed.

[1] https://docs.openstack.org/releasenotes/ceilometer/ocata.html#deprecation-notes

Change-Id: I7a888a4aaadaa8213d6763854b39d78910fad0db
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-19 09:47:11 +00:00
Lance Albertson fd3d9ceb62 Fixes to support fog-openstack-1.x
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.

In addition, re-add openstack_endpoint_type which is now fixed now that this [1]
has been released upstream.

[1] https://github.com/fog/fog-openstack/pull/494

Change-Id: I06ee3681ff8bc90f15b2b0ecbdcaebe475709b31
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-14 06:27:17 -07:00
Lance Albertson e0a39ccaf1 Fix gnocchi endpoint issues
This fixes two primary issues:

- Removal of using node['openstack']['api']['auth']['version'] and converting to
  using ::URI.decode
- Renaming endpoint attributes from telemetry-metric to telemetry_metric to
  match what's used in openstack-common. Also rename all attributes to using the
  underscore to minimize confusion.

Change-Id: I59c960a18f9e88eea494ec3c7bdbf189309f23e7
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-15 22:56:30 -07:00
Samuel Cassiba a5d4ce3bd2 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: Ic2733d94e776eaa50ad8e4a39e6d2a8c18a45d89
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:15:45 -07:00
Samuel Cassiba b1c74d581e telemetry refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- moved package_overrides to common cookbook

Implements blueprint modern-chef

Change-Id: I7471f1ca3b2348d76e1fd502f335047053459ff4
2017-12-10 11:38:02 -08:00
Roger Luethi 88c718d574 Remove domain role from ceilometer, gnocchi service users
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 users 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 users 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 users are to be
created in the Default domain).

Change-Id: Ie793b3d2e0419da90888edbf33ff28d819892dcf
2017-11-13 15:08:49 +00:00
Roger Luethi 9ad24ffd47 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: I45754d269598b821f0b86b6257556ebfe74dcd6b
2017-11-13 15:53:27 +01:00
Samuel Cassiba d6736f20ac Initial telemetry Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized template banner

Change-Id: If802d82561619a0b7951422dc0e1e913f2c4c8b4
2017-08-25 10:14:01 -04:00
Christoph Albers 2e00d31d1f 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
- updated readme

Change-Id: I6c91c874013190522dd7f1fd6060dc3796dc80fd
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
Depends-On: I84f850f32f25a318c3ed3c7337a0dfa6f641a5fe
2016-09-30 12:00:22 +02:00
Jan Klare faceb7e6e0 initial refactoring step and addition of gnocchi
* applied new template logic and refactored all recipes accordingly
* removed vmware and suse support and specs
* removed alarm ceilometer-alarm notifier and evaluator (needs to be rewritten
  for aodh)
* added recipe for telemetry-metric/gnocchi deployment
* set gnocchi as default dispatcher for ceilometer
* added initial specs for gnocchi recipes

Depends-On: I22114b6d2d46cce561a2f292b92ff5f531cff533
Change-Id: If513cb2715d8266845bd6541d12005edef70f11c
2016-06-20 17:50:16 +02:00
Jan Klare dc78336dd9 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs

Change-Id: If523a416d87e2f6424923acd9942b44382c67065
2015-04-29 10:45:22 +02:00
Chen Zhiwei fca4820bff Revert "Use new "service" role instead of "admin""
This reverts commit 5388baa0a1.

Closes-Bug: #1447940
Change-Id: I333a731f6bc169b46b86fded1572baca1516ce8f
2015-04-24 15:57:28 +08:00
Mark Vanderwiel 5388baa0a1 Use new "service" role instead of "admin"
Change-Id: I1c9067884145da5f607085f9ffef754e4d342a35
Partial-Bug: #1436050
2015-03-25 08:12:27 -05:00
Ken Thomas dcaeffd75c Use new common specific_endpoint routines
Now that admin_endpoint, public_endpoint, and internal_endpoint
in the common library are working, these are the changes to use
them in the openstack-telemetry recipes.

Change-Id: Ibddb87c1ae2e92c43c0b88495d363b6d8179d300
Partial-Bug: 1412919
2015-01-30 22:20:27 +00:00
galstrom21 5ae67ff44f Refactoring ChefSpec tests
Change-Id: I6c9148e0981f7c01eae4e09545ef011bf38bedfe
Addresses: blueprint refactor-spec-files
2014-03-18 15:47:44 -05:00
Chen Zhiwei c74a5400b7 Rename openstack-metering to openstack-telemetry
update cookbook name, attribute name

Change-Id: Ibd17a61b06769ed03e87bdcf54f394e67fce5bcb
2014-03-12 23:47:26 -04:00
ericzhou e3db2693b5 Create tenant/user and grant admin role for metering.
Create tenant/user and grant admin role for metering.

Change-Id: Ia1803d7b7b34bf48fd1282785967ac82a571a8a9
Closes-Bug: #1288047
2014-03-06 16:29:04 +08:00
Andy McCrae ae11197fc5 Utilise ['openstack']['region'] from cookbook-openstack-common
- Set ['openstack']['metering']['region'] to equal ['openstack']['region']
- Add test to override the endpoint and confirm it is used.

Change-Id: Ie43ed28301ab40902f43b67831f5c5ff5300c65f
Addresses: blueprint uniform-region
2014-02-20 16:33:09 +00:00
Luis A. Garcia bc2ff068eb Fix metering service endpoint path spec
After installing ceilometer with the metering cookbook, invoking the
ceilometer CLI fails because the API base URL used is
http://127.0.0.1:8777/v1/v2 which means that the base endpoint path of
/v1 is incorrect and it should be simply /.

The openstack-common cookbook was updated to set the right path but we
need to update the test cases, and point to the new version of the
common cookbook.

Change-Id: I203a5a6346a3765bb249149a209122ec3d33601d
Partial-Bug: #1277742
2014-02-19 17:23:46 +00:00
Christopher H. Laco 9b60236ca1 Update specs to be rubocop compliant
- Add rubocop.yml in specs/
- Add spec rubocop test to Strainerfile
- Update specs to comply with rubocop

Change-Id: I7f2de5cd4bd9307485ec7db134f31f5415c84131
Addresses: blueprint rubocop-for-metering
2014-01-17 15:20:52 -06:00
Ionuț Arțăriși 9423f6110d upgrade to Havana release
also upgrade gems:
- berkshelf, ~> 2.0.10
- chefspec, ~> 3.0.2
- foodcritic, ~> 3.0.3

Change-Id: I732f73d02263e3257167898826dbb8d0f60a064d
2013-12-12 09:42:55 +01:00
John Dewey 2f736dd4d4 Added identity_registration recipe
Added recipe necessary for metering service & endpoints registration.

Change-Id: Iaa8c4f31dffcb85395bf2fedba8f294849fa0697
2013-08-08 12:05:00 -07:00