Commit Graph

62 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 f04c63bd47 CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Iecf9c2a68d3c246412d2a09a7ac0888dd406c268
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:54:24 -07:00
Lance Albertson 21424d8868 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: If07c6d8973bbba605756938f62d351cc323edd7b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:56:13 -07: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 dbb2758ddd Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/aodh/aodh.conf],
  template[/etc/gnocchi/gnocchi.conf] and
  template[/etc/ceilometer/ceilometer.conf] to resources improve
  security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Add missing ChefSpec tests
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/706151
Change-Id: I73e3c3dce64798a4d6ba5c94cc45dfabc4d2d0ff
2020-03-19 13:00:31 -07:00
Lance Albertson 111d3621a9 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.

Additional fixes:
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Remove hack for restarting apache.
- Convert web_app to template and subscribe to restarting apache.
- Remove resources to restore SELinux contexts since this taken care of
  by Chef now automatically.
- Don't set SELinux to permissive on RHEL (I tested this works properly
  with it set to enforcing).
- Remove collector recipe as this service has been deprecated upstream.
- Add openstack-ceilometer-notification package for RHEL in
  agent_notification_packages as it was missing.
- Fix gnocchi-api_wsgi_and aodh-api_wsgi_file file on RHEL
- Remove openstack-aodh package in aodh_packages for RHEL as it does not
  exist
- Clean up arrays in attributes using %w(foo) instead of ['foo']
- Set group for upgrade scripts so it can read files properly on RHEL
- Add missing ChefSpec tests for aodh
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ie7e6d792a764314775c40d4489cfba05d5c483ce
2020-01-30 09:31:59 -08:00
Lance Albertson 3923f6ff5c Use python3 packages on Ubuntu
Python2.7 is going EOL soon, let us deploy python3 for Rocky from the
start, so we avoid having to switch later.

Change-Id: I52b2431da20b4ac994d920c233e6473ce275b197
2019-11-27 08:26:59 -08:00
Lance Albertson 2e36b048fc Manage /etc/ceilometer/polling.yaml
This adds management of /etc/ceilometer/polling.yaml which defines which metrics
to poll and how often. This pulls in the default configuration which the same
for both RHEL and Ubuntu and adds two new attributes for configuring the file.

In addition, restart various services related to the configuration file.

Change-Id: I69ed0a8933a971d9cac20dbd4133197a7e4274af
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-19 09:47:54 +00: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 2fc511323f Create attribute for setting options passed to ceilometer-upgrade
I ran into a problem similar to this one [1] where testing gnocchi
commands did not work properly. The key problem is the fact that
`--skip-gnocchi-resource-types` was included in the ceilometer-upgrade
command.  To allow an easy work around, I figure we can just create an
attribute which can add any option to ceilometer-upgrade so you can set
it to '' if you don't want it.

It might be debatable on whether to just default to run it with out
ceilometer-upgrade instead.

Some additional fixes include:

- Move the ceilometer-upgrade command to a new setup recipe where it
  makes more sense since it needs to be run after Ceilometer and Gnocchi
  are setup.
- Fix name of gnocchi-metricd_service for RHEL
- Add same apache restart fixes that we implemented in other cookbooks.
  This is needed so that you can properly run ceilometer-upgrade with
  gnocchi enabled.

[1] https://bugs.launchpad.net/openstack-ansible/+bug/1737096

Change-Id: I619ef044b8cb254b23e0c7bc674c46d5dd7e0076
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-18 14:47:26 -08:00
Lance Albertson e416ba5d72 Allow ability to configure pipeline publishers
This adds a template for managing the pipeline.yaml file which allows one to
configure the pipeline publishers such as gnocchi or prometheus. The template
file was taken from the latest Rocky tarball for ceilometer.

Change-Id: I938219bfdcfa69a910cae4b72a40c19d5124d99e
2019-11-05 19:12:05 -08: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
Seb-Solon 94e56a4138 Add: Aodh support into telemetry
Closes-Bug: #1779940

Change-Id: I6deefd31562fba5da3987ab31534ebd6689d27e2
2018-07-05 13:06:26 -04: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
Seb-Solon 994abe4551 Replace platform_family method and use attribute instead
Change-Id: I1cc48f0cf67aee76372b69f86323210c933f67fd
Closes-Bug: #1724987
2017-10-25 22:01:55 -04: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
Jenkins 3d4ebe0106 Merge "Add an option variable to gnocchi-upgrade command" 2017-02-20 13:06:11 +00:00
Jens Rosenboom 3b8259871e Add an option variable to gnocchi-upgrade command
When running with Ceph as Gnocchi storage backend, the upgrade may fail
in certain situations, so we need to be able to insert some option into
the call.

Change-Id: I52be4a184be2b0cca2289acce86d8fdf3b807651
2017-02-17 15:29:04 +01:00
Jens Rosenboom 73fa9aa276 Fix gnocchi installation for Newton
- Remove hardcoded old package version, always upgrade to latest
  version instead
- Install python-gnocchiclient needed by ceilometer in order to access
  the gnocchi backend

Change-Id: I6f6af90d3107df86bd0abbaacfca0836f7771cfe
2017-02-15 17:42:45 +01:00
Christoph Albers e5a08068c8 platform fix for rhel (centOS)
- added attributes for both wsgi apps on rhel

Change-Id: I44daf77e2938894e13aae9e5ddeb0f13170f6bb6
2017-01-04 10:41:36 +01:00
Samuel Cassiba 5ffe62cb7d Deprecated python-ceilometerclient / python-gnocchiclient
- deleted client.rb
- deprecated python-ceilometerclient / python-gnocchiclient
  references

Implements blueprint newton-xenial

Change-Id: I94ce3d095349bcf59115c3655b13bccd2932130a
2016-12-20 08:40:14 +00:00
Christoph Albers 948cf7a4b3 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: Iafb0c0644d4e9462aca0ee140aa0d06fa18e5f3e
2016-12-16 17:48:37 +01:00
Christoph Albers b33c0ca574 Ceilometer-api / Gnocchi-api WSGI refactor
- now using wsgi apps for both apis
- bumped gnocchi package version due to python-openssl bugs

Change-Id: I63636ca8c08660f44433e701c55e1e0e7db5465f
2016-12-09 10:01:43 +00: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
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
lqslan 4e83133835 Enable store_events parameter in notification service
Change-Id: I0075ece1afba2bfdf5cb422249a6f0d9072393ab
2015-04-07 23:28:14 +08:00
Jenkins 1d80ef1862 Merge "Use new "service" role instead of "admin"" 2015-04-06 16:17:09 +00: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
root 5feb714c32 Introducing ttl to openstack-telemetry
ttl is the time_to_live value that will be configured against database. This value
indicates the expiry time for ceilometer samples

Implements: bluerprint ceilometer-db-cleanup-configuration

Change-Id: I1c207e15ec0ca23c2fbd0db10842e600e71d69df
2015-03-24 15:15:21 +00:00
lqslan 2d36ef461f Make ceilometer dbsync command timeout to be an optional parameter
The default dbsync command timeout value 3600 seconds may be too small
when there are large data in ceilometer database.
Make timeout to be optional to fix this problem.

Change-Id: Id4e703fab260f8e010ff089e4134e7aab8e21fd2
Closes-bug: #1389111
2014-11-05 17:46:48 +08:00
chenxiao 7a188bf3b1 Allow ceilometer auth settings to be configurable
This patch is for allowing cafile, os_cacert, insecure,
memcached_servers, memcache_security_strategy,
memcache_secret_key and hash_algorithms to be
configurable.

Change-Id: I4d8f94195a75f590849e5a1ea948a3837cdf38a0
Closes-Bug: #1372371
2014-09-23 10:21:34 +08:00
gengjh 4529146a83 Support VMware hypervisor inspector
1. If the compute driver is vmwareapi.VMwareESXDriver or
vmwareapi.VMwareVCDriver, set the hypervisor_inspector to vsphere and
add vmware section in conf file.
2. Reuse the vmware related attribute from compute cookbooks since
ceilometer need monitor the same vsphere.
3. Update the testcases

Closes-Bug: #1351619
Change-Id: Ie67e84e5695bd5f9ceaa6ed6682cfe33f7ed0b68
2014-08-04 09:28:36 +08:00
Ionuț Arțăriși 10ce42a987 use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: I03d0acf12d4c53952498beeaefad9f3b237ccb9d
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-07 17:31:21 +02:00
hill 869ca9824b Add attribute sample_source
The sample_source is used to specific the source name of emitted
samples.It required to use different name if you want to consolidate
the data from different openstack region.
Changed the version to 9.1.2 and modified the change log and readme.

Change-Id: I0c2e0b6d651ad6c4daf724041014582b31337073
2014-07-04 18:13:03 +08:00
Jenkins 00fa553e47 Merge "Fix service subscriptions and definitions, add package overrides" 2014-04-12 16:57:56 +00:00
Stephan Renatus 5c557b7153 Fix service subscriptions and definitions, add package overrides
Some things were a little off wrt. the way we usually do stuff.  This
change fixes the following:

- package resources take the override settings from node attributes
- all services subscribe to their config file
- the service definitions include restart and status actions, and
  enable services

Change-Id: I3d4a2f9247dda34a35897fdfe08d9e8cf27556b8
Closes-Bug: #1303777
2014-04-09 10:49:41 +02:00
Luis A. Garcia 5ab419e88a Use platform_family instead of platform
As agreed on the mailing list:
https://groups.google.com/forum/#!topic/opscode-chef-openstack/HEL3KqBQIUM

This will allow the ibm_powerkvm platform to be recognized.

Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737
Partially-Implements: blueprint add-ibm-powerkvm-enablement
Implements: blueprint platform-family
2014-04-08 12:27:03 -07:00
Jenkins 0bc923e107 Merge "Add DB2 support to ceilometer on redhat platform" 2014-04-04 16:02:01 +00:00
Luis A. Garcia fc302f9550 Add recipes for alarm services
The telemetry cookbook currently lacks recipes for the alarm and the
agent notification services. This patch adds them as well as their
corresponding specs and documentation.

Implements blueprint alarm-sevices

Change-Id: I2896db6e95f52f4488ec8bb9bcb88c697cb712b6
2014-04-03 12:34:53 -07:00
Chen Zhiwei 3d27fb8363 Add DB2 support to ceilometer on redhat platform
Add a new attribute
default['openstack']['telemetry']['platform']['db2_python_packages']

Change-Id: I51c6974956ea5247f31f1d060cc8404610fab1d1
Implements: blueprint db2-support
2014-04-02 20:38:00 -04:00
Quan Guo 8aded3d41a Add hypervisor_inspector in ceilometer.conf
Add hypervisor_inspector configuration in ceilometer.conf, it's necessary
in some cases, for example, if we want to use this cookbook's template to
support installation of ceilometer agent on windows platform.

Change-Id: Ie42eb3d055ff1dbc3944adb18777073044983ed4
Closes-Bug: #1300080
2014-04-02 10:14:05 +08:00
ericzhou eb15ff73a5 Use the library method auth_uri_transform.
Change-Id: Id4f1cf95aaa96164c7eeae40550dac8857b31800
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-17 14:17:05 +08: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
Brett Campbell b8e90a5c00 add 'debug' and 'verbose' attributes
for ceilometer.conf.erb.

Change-Id: I4458922684df67738fdbd895e73babdf2f7bfb62
2014-02-25 12:50:43 -08:00
Jenkins c6080e0104 Merge "Add client recipe for metering" 2014-02-25 02:09:03 +00: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
Mark Vanderwiel 1c25bafc37 Add client recipe for metering
Add an explicit recipe for installing client
only packages.
Tests are also included.
Bumped minor version for this new feature.
Added RHEL support and test

Change-Id: Ic4170f0df1a88839e97458ed5cb68237e61d0134
Addresses: blueprint add-client-recipes
2014-02-13 13:53:48 -06:00
Jenkins 065f14b41f Merge "add default 'service_user' attribute" 2014-02-13 14:10:33 +00:00