Commit Graph

52 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 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 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 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 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
Samuel Cassiba 13902fe451 starting rocky development patch
Change-Id: Ie7c681548a902ecc050e204e873188eb547a281e
2018-08-03 06:42:11 -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
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
Samuel Cassiba 76ee6952af Style and lint fixes for chefdk, deprecated Gemfile
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: Iba9ba7110dfde7635edc6706ecbbafbdbb161002
2017-08-10 17:50:31 -04: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 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
JJ Asghar 495ae4a088 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop updates. remove db2 reference

Change-Id: I116801590b438d49f042aa70d94a6fa84670afc5
2015-08-31 16:42:34 -07:00
Yi Ming Yin 76ba93e362 Change os_auth_url to use identity_endpoint in conf template
Current template ceilometer.conf.erb is using auth_uri for os_auth_url
which is not a correct approach. This auth_uri is dedicated to be used
by auth_uri under section [keystone_authtoken]. On the other hand, the
passed in identity_endpoint param is not used. Actually, by comparison
with other cookbooks, identity_endpoint should be used for keystone
identity service connection.

Change-Id: I50c631000efe9c82cd83723c1bf9a7c6ef54556c
Closes-bug: #1479399
2015-07-30 13:07:06 +08:00
Mark Vanderwiel df5bec0b0a Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I720aea02ea26d7a64aeb5c92575a7a6f77458918
Partial-Bug: 1464706
2015-06-16 10:55:41 -05:00
Mark Vanderwiel 430f5f7466 Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: I02faeba2c10d9c9b8035819156bfdc0759bafcc6
Partial-Bug: #1462438
2015-06-15 03:06:49 +00:00
wenchma ff2d6f597d Add rabbitmq max_retries and retry_interval attributes in ceilometer 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: I1fd9d4840a55453667eb2ed4c03e4c3cb72442b9
Closes-bug: #1439968
2015-06-12 15:14:47 +08:00
Jenkins a84faad2e3 Merge "Update the deprecated group/name to Kilo release" 2015-06-03 13:21:05 +00:00
wenchma ee190da9e9 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: Icf361d2132553bbc20b517c8b08f6df2d069e8bb
2015-06-03 10:16:39 +08:00
Mark Vanderwiel d2d9cd81ec Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: Ib326cac0e09df628189e290807513bad59df0b76
2015-05-29 12:18:53 -05:00
Mark Vanderwiel 4924c2e131 Add some missing template tests
Change-Id: Iaaacf5fb3426c3e135e56f2dbea43465b91fbc06
Implements: blueprint add-template-tests
2015-04-29 16:26:09 -05: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
Jenkins 2409c9b9d7 Merge "Use identity_uri_transform for identiry_uri support" 2015-04-16 21:29:24 +00:00
lqslan 4e83133835 Enable store_events parameter in notification service
Change-Id: I0075ece1afba2bfdf5cb422249a6f0d9072393ab
2015-04-07 23:28:14 +08:00
Mark Vanderwiel fe9acf1d3e Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Change-Id: Ibd21f81607f5ef1b02e07e4da3e5ea306f7d6f8b
Implements: blueprint identity-uri
2015-04-06 17:10:09 +00:00
wenchma a0f139ec26 Enable kombu_ssl_version configuration for Rabbitmq SSL
Change-Id: I33d85308ea27634d477058cb7548d15fa3d60697
Closes-bug: #1433405
2015-04-02 10:01:37 +00: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
ZHU ZHU 67e3279071 Add rabbit HA configurations
This commit will add the rabbit HA related two configurations:
 - rabbit_hosts
 - rabbit_ha_queues

Change-Id: I85c329778de7baf138ec860e09f7e1572ad4c19a
2014-10-25 08:15:53 -05: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
Mark Vanderwiel a689c6741c Set os_region_name with ceilometer region
Change-Id: Ia4b73df9380d4dbc5038428adf340ecdae601c69
Closes-Bug: #1357461
2014-08-15 11:56:56 -05: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
Jan Klare c309a0ae91 Changed the action of all package resources from default to :upgrade
Since no version is specified for any package and usually you do not
want to stick with one unspecific version you get during your first run
the action should be :upgrade.

Change-Id: Idc662737f1b03049de5555c6e1e54fc77532972f
Implements: blueprint allow-package-updates
2014-07-07 11:38:09 +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
Matt Odden d3d61e474f Add missing AMQP options to ceilometer.conf
Add more AMQP and QPID configuration options
to the ceilometer configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I7cf1230cadf41313cd505bf8d89509c9f064e0e3
2014-06-18 19:49:16 +00:00
Mark Vanderwiel e2d00ef7a7 Remove policy.json file
The policy file is just a dup of what's already in the distro
packages.  Until the cookbooks/chef support a policy type resource
duping them does not make sense and causes churn to keep in sync
with base openstack code.

Change-Id: Ib09d5efdf3927a381501eebd78d5c4db5133f057
Implements: blueprint remove-policy-templates
Closes-Bug: #1324187
2014-05-28 15:36:03 -05:00
Darren Birkett 0d04a07734 Add ability to specify api host/port in config file
Add the ability to override the default listen IP/port for the api
service in the config file.
Use the ['telemetry-api-bind'] namespace to derive these values

Implements blueprint increase-ip-binding-flexibility

Change-Id: Ia51bd1b760563f06ed36ec8190f36f4e03a79695
2014-04-25 16:07:21 +01: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 d1224c445b Add metering_secret configuration to ceilometer.conf.
Change-Id: I639ad3bebf489367ad8ed182c276fc32eec8d369
Closes-Bug: #1290721
2014-03-19 21:04:42 +08:00
galstrom21 5ae67ff44f Refactoring ChefSpec tests
Change-Id: I6c9148e0981f7c01eae4e09545ef011bf38bedfe
Addresses: blueprint refactor-spec-files
2014-03-18 15:47:44 -05: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
Matt Thompson 45fc85eef1 Use get_password method to obtain qpid password
Currently, qpid's password is stored in an attribute in the common
cookbook.  This change causes the password to be looked up via
get_password method, which is how we obtain the rabbitmq password.

Change-Id: I7afe9a0a069c6527ced4df7f094c31c1ca4acec4
Implements: blueprint use-data-bag-for-qpid-password
2014-03-06 11:11:13 +00:00
Matt Thompson 34e8b38de6 Clean up cookbook for bp/clean-up-attr-for-mq-and-db
This change removes the attributes we'll be moving to openstack-common
and changes reference of those attributes to reflect new (more
consistent) namespace.

Change-Id: I30e37b4ff6369c19978973a8890ef2122692db44
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-24 10:26:42 +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
salmanbaset 510d2ee279 Adding qpid support to ceilometer
Moving all qpid parameters under default["openstack"]["metering"]
["mq"]["qpid"] so that other qpid options can be added under it.
Rabbit parameters will be brought under "mq" eventually. MQ is
selected through default["openstack"]["metering"]["mq"]["service_type"].
Default is "rabbitmq".

Implements: blueprint qpid-activemq-support
Change-Id: I4dd153a631063ee7c518e2d49fe01aa39a6f261d
2013-11-30 00:35:58 +08:00