]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/log
puppet-modules/puppet-ceilometer.git
8 years agoDon't print sensitive information to stdout during run.
Fabian Zimmermann [Tue, 28 Jun 2016 08:11:31 +0000 (10:11 +0200)]
Don't print sensitive information to stdout during run.

Closes-Bug: #1596840

Change-Id: I864d25f60fdf03f1683f6bcda6e1886baa01eb6c
(cherry picked from commit 585d236e26fcc5a5010417343c33ab6d0ca76c05)

8 years agoPrepare 8.2.0 (mitaka) 8.2.0
Emilien Macchi [Fri, 22 Jul 2016 19:09:52 +0000 (15:09 -0400)]
Prepare 8.2.0 (mitaka)

New Mitaka release.

Change-Id: I0684a7e647fc9e671fc2d9a3d57a5754fb546d51

9 years agoCleanup README
Denis Egorenko [Fri, 3 Jun 2016 09:29:54 +0000 (12:29 +0300)]
Cleanup README

Change-Id: I567697dea07ad5afb50b94a8f63d431de488e38c
(cherry picked from commit 3622ee8228d418f7166e125eb6fe8d171298c8da)

9 years agoUse 'password' auth_type by default
iberezovskiy [Tue, 24 May 2016 13:29:46 +0000 (16:29 +0300)]
Use 'password' auth_type by default

It's better to use 'password' keystone auth plugin by default
for the supporting v2 and v3 keystone API instead of ceilometer
legacy keystone loader which supports only v2.
Remove hard-coded API version from auth_url as well.

Actually this legacy loader has been deprecated in Mitaka and
has been already removed in Newton:
https://review.openstack.org/#/c/307053/

Change-Id: Iad68b6c1c29f9d9cd1b41ecc2898732fa030d401
(cherry picked from commit d82c232b5e7c782803844826fde9f4242dd6437f)

9 years agoRelease 8.1.0 (mitaka) 8.1.0
Emilien Macchi [Wed, 25 May 2016 23:15:08 +0000 (19:15 -0400)]
Release 8.1.0 (mitaka)

Release a new version of Mitaka: 8.1.0.

Change-Id: Id4c6057f22b6b4bdc14e03c94fe37a194b83cd20

9 years agoFix syntax error
Dmitry Ilyin [Mon, 23 May 2016 17:32:14 +0000 (20:32 +0300)]
Fix syntax error

'True' becomes a string in puppet3
and is a syntax error in puppet4.

Change-Id: I9b0be57f0889f22ccc5baf214eca3affc71ecb9e
(cherry picked from commit 79aef841af8ea502031d105ce7cf04818ed54a61)

9 years agoAdded support for messaging urls
Matthew J Black [Fri, 29 Apr 2016 03:36:30 +0000 (23:36 -0400)]
Added support for messaging urls

Ceilometer supports multiple notifications. The config
entry in ceilometer.conf allows for a multi-value for
notification/messaging_urls.

Change-Id: Ic1791c7021bf2dbb06269317b8495eebc8d6e7ed
Closes-Bug: 1564061
(cherry picked from commit fd4485d64ea9a0648620756bf871e1ceee79ede0)

9 years agoCorrect service_credentials section
Matt Fischer [Sat, 14 May 2016 02:22:16 +0000 (20:22 -0600)]
Correct service_credentials section

The service_credential section variables were renamed at some point
before Mitaka. They are broken in Mitaka and Newton, and possibly
earlier. Additionally some critical variables for dealing with domains
and keystone v3 are missing. This corrects those issues.

A later commit should deprecate some of the naming for things
that have totally different names, like the endpoint_type and
tenant_name, but we need to cleanly (and minimally) backport this to
Mitaka.

Change-Id: I8de5e42102fed2de6bea7bbdd788e86a88f0354c
Closes-Bug: #1581691
(cherry picked from commit c853fc65013ee8ce78c42e822df98b423d25bd48)

9 years agoPrepare module for publication to the forge
Cody Herriges [Tue, 3 May 2016 20:23:11 +0000 (13:23 -0700)]
Prepare module for publication to the forge

  This commit validates the module's metadata.json by comparing
  dependent module versions with those in the Puppetfile[1] found in
  puppet-openstack-integration, updates required open source puppet and
  PE versions, cleans up the supported operating system list so that we
  only declare support for the OSes we know kilo runs on.

  Obligatorily bumps the z version number.

  [1] https://github.com/openstack/puppet-openstack-integration/blob/stable/mitaka/Puppetfile

Change-Id: I7f8ae588f2f16c8cbdf50feec8c662e34dd5efee

9 years agoGemfile: rely on puppet-openstack_spec_helper for dependencies
Emilien Macchi [Thu, 31 Mar 2016 14:15:05 +0000 (10:15 -0400)]
Gemfile: rely on puppet-openstack_spec_helper for dependencies

Rely on puppet-openstack_spec_helper gemspec file for managing Gems
dependencies.

Change-Id: I1f2920b935ca8e6ee294a16d53b55182b1864ee9

9 years agoAdd 'ceilometer-service' tag to collector and agent/notification
Giulio Fidente [Tue, 29 Mar 2016 13:05:59 +0000 (15:05 +0200)]
Add 'ceilometer-service' tag to collector and agent/notification

Set the 'ceilometer-service' tag for the collector and the
notification services as it happens already for the others.

Change-Id: I4c6fe871a1d55ea4dfdfc33edafdcf57bbd91e5e
(cherry picked from commit 497aad5423733aabff6d588b1817ffe42dfc175e)

9 years agoUpdates for stable/mitaka 8.0.0
Emilien Macchi [Thu, 24 Mar 2016 22:44:01 +0000 (18:44 -0400)]
Updates for stable/mitaka

* Update reno to find notes on stable/mitaka.
* Update Gemfile to checkout puppet-openstack_spec_helper
  from stable/mitaka.
* Update .gitreview to use stable/mitaka by default.

Change-Id: I7b75b032107785d82acc510dac2b74686e8e7d79

9 years agoRelease 8.0.0
Emilien Macchi [Wed, 23 Mar 2016 18:43:54 +0000 (14:43 -0400)]
Release 8.0.0

* Update CHANGELOG with release notes URL.
* Update README with new release number & name.
* Update metadata.json with new tag & dependencies.
* Add release note prelude for Mitaka.
* Update Reno release note to drop prelude.
* Improve release note landing page.

Change-Id: I698d6e4df7b22fce0b157e894050ed80f5a346f9

9 years agoreleasenotes: add notes for Mitaka cycle
Emilien Macchi [Tue, 15 Mar 2016 00:16:56 +0000 (20:16 -0400)]
releasenotes: add notes for Mitaka cycle

Change-Id: Ia94646a859482a27519f2da39871ce010df75e55

9 years agoAdd basic structure for ReNo
Emilien Macchi [Sun, 13 Mar 2016 22:58:36 +0000 (18:58 -0400)]
Add basic structure for ReNo

ReNo [1] is the release management tool in OpenStack.
This patch adds the basic structure to start using it.

* Update .gitignore
* Add a basic note "use-reno"
* Add releasenotes/ dir and basic files
* Add python files: setup.cfg, setup.py, test-requirements.txt and
  tox.ini.

[1] http://docs.openstack.org/developer/reno

Change-Id: Ide7c53a7b25a1c0ef4966f60f6fc6bf07f636c83

9 years agofix filter_project param values
Pradeep Kilambi [Wed, 17 Feb 2016 19:48:40 +0000 (14:48 -0500)]
fix filter_project param values

Current examples and tests make it look like
filter_project param is a boolean, which its not,
Its a string instead.

Change-Id: If5dbb0b1edd122a76dcc10d75f67d8f3a3fd0a7b

9 years agoMerge "Add api_paste type/provider for Ceilometer"
Jenkins [Wed, 9 Mar 2016 00:03:37 +0000 (00:03 +0000)]
Merge "Add api_paste type/provider for Ceilometer"

9 years agoAdd api_paste type/provider for Ceilometer
ZhongShengping [Fri, 26 Feb 2016 23:25:53 +0000 (07:25 +0800)]
Add api_paste type/provider for Ceilometer

Add ceilometer_api_paste_ini type/provider for Ceilometer.
Also add the capability to configure api-paste.ini with config.pp.
Closes-bug: #1483371

Change-Id: I7a5ce9629b9069495e233a4576742aeb171a09c1

9 years agoDeprecate ceilometer alarm classes
iberezovskiy [Fri, 19 Feb 2016 10:07:15 +0000 (13:07 +0300)]
Deprecate ceilometer alarm classes

Alarming services (evaluator and notifier) in Mitaka
were moved to Aodh OpenStack project. Now Ceilometer
doesn't contain any code related to alarms,
so we need to stop usage of Ceilometer alarm classes.

Change-Id: I087545f0e97050521275c8eb096c8e33b71d1a69

9 years agoMerge "Consistent with other core module, auth_uri,identity_uri" 8.0.0b1
Jenkins [Thu, 28 Jan 2016 20:13:38 +0000 (20:13 +0000)]
Merge "Consistent with other core module, auth_uri,identity_uri"

9 years agoConsistent with other core module, auth_uri,identity_uri
nanhai.liao [Tue, 19 Jan 2016 09:32:49 +0000 (17:32 +0800)]
Consistent with other core module, auth_uri,identity_uri

  keystone_auth_ui and keystone_identity_uri parameters are inconsistent
  with other modules, change keystone_auth_ui,keystone_identity_uri to
  auth_uri,identity_uri

Change-Id: I0c606b62678c3c293dc0e15c47825909f0c64ee0
Closes-Bug: #1532920

9 years agocollector: fix dispatcher config
Emilien Macchi [Wed, 27 Jan 2016 21:24:40 +0000 (16:24 -0500)]
collector: fix dispatcher config

It's not *_dispatcher but *_dispatchers. It's a typo from a previous
commit.

Change-Id: I63709c05597e7b5e1410c2815f43cece90127975

9 years agoMerge "Add rabbit_ha_queues option"
Jenkins [Mon, 25 Jan 2016 22:46:34 +0000 (22:46 +0000)]
Merge "Add rabbit_ha_queues option"

9 years agoAdding amqp_durable_queues parameter to ceilometer
luyuan [Sat, 23 Jan 2016 10:39:49 +0000 (18:39 +0800)]
Adding amqp_durable_queues parameter to ceilometer

amqp_durable_queues is an important param for configuring
Rabbitmq HA, When rabbitmq service quits or crashes,it
will forget the queues and messages. To make sure those
messages aren't lost, amqp_durable_quesesneed to added in
ceilometer.

Change-Id: I35b3897bb56ebcc955bb15d19465493549dec69b
Closes-Bug: #1537354

9 years agodrop mock dependency
Emilien Macchi [Fri, 22 Jan 2016 14:31:14 +0000 (09:31 -0500)]
drop mock dependency

mock is not used anywhere in the module, let's drop it.
This patch will help to hit this bug:
https://launchpad.net/bugs/1492636

Change-Id: I000953c7b215454baf9838813c04e94b7ebeca00

9 years agoMerge "Set auth_region to $::os_service_default"
Jenkins [Wed, 20 Jan 2016 06:27:26 +0000 (06:27 +0000)]
Merge "Set auth_region to $::os_service_default"

9 years agoMerge "Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance"
Jenkins [Tue, 19 Jan 2016 22:44:54 +0000 (22:44 +0000)]
Merge "Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance"

9 years agobeaker: stop testing ceilometer-alarm
Emilien Macchi [Mon, 18 Jan 2016 17:30:34 +0000 (12:30 -0500)]
beaker: stop testing ceilometer-alarm

Ceilometer Alarm has been replaced by Aodh, and does not exist anymore
in Mitaka.
This change just stop testing the Puppet classes, but still allow to use
the classes.

Partial-Bug: #1535382

Change-Id: I387273a60e29c4be40a5c9937c077ffdb40b4816

9 years agoUse puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Emilien Macchi [Mon, 18 Jan 2016 14:11:13 +0000 (09:11 -0500)]
Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance

Use common code in puppet-openstack_spec_helper in Rakefile and
spec_helper_acceptance.

Change-Id: I4107e22dfaa023ec3a062f276bc846567eb3acf8

9 years agoMerge "Add rspec-puppet-facts to the spec_helper"
Jenkins [Sat, 16 Jan 2016 18:09:10 +0000 (18:09 +0000)]
Merge "Add rspec-puppet-facts to the spec_helper"

9 years agoAdd rabbit_ha_queues option
Xingchao Yu [Sat, 16 Jan 2016 07:35:12 +0000 (15:35 +0800)]
Add rabbit_ha_queues option

There are two ways for setting up RabbitMQ HA:

 1. Configure rabbit_hosts to multi rabbit hosts.
 2. Set up a loadbalancer in front of RabbitMQ cluster,
    provide a unique address in rabbit_host

But rabbit_ha_queues option is controled by rabbit_hosts if conditional
statement. When users try the second method: changing rabbit_ha_queues to true.
If they don't set rabbit_hosts, then current logic will not work.

This patch aims to add an rabbit_ha_queues option, set to undef by
default for backward compatbility.

Change-Id: Id1245002dfbb6f314c6082f554221ee247be630c

9 years agoMove workers options into specific sections.
Liao Penghui [Tue, 12 Jan 2016 16:34:27 +0000 (00:34 +0800)]
Move workers options into specific sections.

The notification_workers/api_workers/collector_workers options are
deprecated and should be set in [notification]/[api]/[collector]
sections separately.

Closes-Bug: #1533276

Change-Id: If1816830affd9de71ae5ee7bc2869eee7eaf8473

9 years agoAdd rspec-puppet-facts to the spec_helper
Alex Schultz [Thu, 7 Jan 2016 04:28:00 +0000 (21:28 -0700)]
Add rspec-puppet-facts to the spec_helper

This change adds the rspec-puppet-facts gem to the spec helper so that
we can centralize the management of the base operating systems that we
support. rspec-puppet-facts allows us to simplify our unit tests and
provides a more complete list of Operating Systems and their associated
facts for the unit tests.  With this change we can now loop over and
test CentOS, Debian, Fedora, RedHat, and Ubuntu by simply providing a
list of supported os to rspec-puppet-facts.

Additionally this change includes a central object for managing our
supported os list for rspec-puppet-facts and providing our default facts
like os_service_default. This central object should replace the usage of
@default_facts within the unit tests for each module.

Change-Id: Ie420cd2599fa3e88e6471bf3e9fce20d48f19805

9 years agoSet auth_region to $::os_service_default
luyuan [Tue, 12 Jan 2016 17:06:21 +0000 (01:06 +0800)]
Set auth_region to $::os_service_default

This patch:
    * sets auth_region to the default value in OpenStack using
      $::os_service_default

Change-Id: I347ecf1f4c7a09c4e59927086a4808463c05f5c7

9 years agoMerge "Improve format of the documentations."
Jenkins [Tue, 12 Jan 2016 11:31:21 +0000 (11:31 +0000)]
Merge "Improve format of the documentations."

9 years agoImprove format of the documentations.
Xingchao Yu [Sun, 10 Jan 2016 12:26:28 +0000 (20:26 +0800)]
Improve format of the documentations.

This patch is aim to unify format of the documentations in all
ceilometer classes.

Change-Id: I8b617a14146a90758fa6b8898637206bff6d2f29

9 years agoAdd required db subclass to README.md
Ben Kero [Fri, 8 Jan 2016 02:41:57 +0000 (18:41 -0800)]
Add required db subclass to README.md

This commit adds the ::ceilometer::db subclass to the example in README.md.
The README.md should contain a working pseudo-minimal example for basic
ceilometer installation. At some point the 'db' subclass was required
for basic usage.

Without this class applying the example in README.md is unusable,
erroring out with this:

> Error: Could not find dependency Class[Ceilometer::Db] for
> Service[ceilometer-api] at
> /etc/puppet/modules/ceilometer/manifests/api.pp:112

Change-Id: Ifd0577e23661bc00b98621a622c44c0a9af70a5d

9 years agoMerge "deprecate mongodb_replica_set parameter"
Jenkins [Tue, 5 Jan 2016 23:08:49 +0000 (23:08 +0000)]
Merge "deprecate mongodb_replica_set parameter"

9 years agoUse identity_uri and auth_uri by default
nanhai.liao [Tue, 29 Dec 2015 06:53:32 +0000 (14:53 +0800)]
Use identity_uri and auth_uri by default

Change-Id: If7cf7412df7666e0787dfc01abe48fddabdcb5ef
Closes-bug: #1528963

9 years agoDrop time_to_live parameter
Emilien Macchi [Wed, 23 Dec 2015 22:38:23 +0000 (23:38 +0100)]
Drop time_to_live parameter

time_to_live was deprecated in liberty, let's drop it so we don't have
the warning anymore.

Change-Id: If36dc4ec2435aa8229b4efa6123fff9bdf668b37

9 years agodeprecate mongodb_replica_set parameter
Emilien Macchi [Tue, 22 Dec 2015 15:41:03 +0000 (16:41 +0100)]
deprecate mongodb_replica_set parameter

mongodb_replica_set parameter has been dropped in Mitaka [1] and has no
effect anymore.
This patch deprecated our interface by sending a warning if the param is
set. If set, it has no effect though, since the param does not exist
anymore upstream.

[1] https://github.com/openstack/ceilometer/commit/a6d608a33235dfa0d4ef91e3a3d69359ceb0263f

Closes-Bug: #1528612
Change-Id: I49123b0f1353e24b217ea6f16f556ab25a6c86b0

9 years agounit tests: make Keystone_endpoint match service by name/type
Emilien Macchi [Mon, 21 Dec 2015 18:29:58 +0000 (19:29 +0100)]
unit tests: make Keystone_endpoint match service by name/type

Since a chance in puppet-keystone (1], we now match an endpoint with a
service name/type.
)
[1] http://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=0a4e06abb0f5b3f324464ff5219d2885816311ce

Closes-Bug: #1528308

Change-Id: I7d4a41b8ac0e9992694ae5508b19187e07d752e4

9 years agoMerge "Ability to configure api, collector and notification workers"
Jenkins [Wed, 16 Dec 2015 21:53:38 +0000 (21:53 +0000)]
Merge "Ability to configure api, collector and notification workers"

9 years agoMerge "Update example to deploy Ceilometer with Gnocchi dispatcher"
Jenkins [Tue, 15 Dec 2015 13:54:17 +0000 (13:54 +0000)]
Merge "Update example to deploy Ceilometer with Gnocchi dispatcher"

9 years agoAbility to configure api, collector and notification workers
Radoslaw Smigielski [Mon, 21 Sep 2015 19:40:55 +0000 (21:40 +0200)]
Ability to configure api, collector and notification workers

We've been missing ability to configure two options:
 - collector_workers, number of workers for collector service.
 - notification_workers, number of workers for notification service.
 - api_workers, number of workers for api service.

Co-Authored-By: Ivan Berezovskiy <iberezovskiy@mirantis.com>
Change-Id: Ifc1f1623289560f873442a702a23a5cc1c831c72

9 years agoMerge "Support of PyMySQL driver for MySQL backend"
Jenkins [Thu, 10 Dec 2015 17:14:49 +0000 (17:14 +0000)]
Merge "Support of PyMySQL driver for MySQL backend"

9 years agoMerge "Configure disable_non_metric_meters for notification agent"
Jenkins [Thu, 10 Dec 2015 17:13:52 +0000 (17:13 +0000)]
Merge "Configure disable_non_metric_meters for notification agent"

9 years agoUpdate example to deploy Ceilometer with Gnocchi dispatcher
Emilien Macchi [Tue, 8 Dec 2015 19:44:52 +0000 (14:44 -0500)]
Update example to deploy Ceilometer with Gnocchi dispatcher

Give a real example of data that you can use to deploy Ceilometer with
Gnocchi dispatcher.

Change-Id: I6fa215e00d59df909e1069132423e30e4d948797

9 years agoMerge "Remove qpid messaging support"
Jenkins [Tue, 8 Dec 2015 02:58:55 +0000 (02:58 +0000)]
Merge "Remove qpid messaging support"

9 years agoRemove qpid messaging support
Denis Egorenko [Thu, 3 Dec 2015 16:17:35 +0000 (19:17 +0300)]
Remove qpid messaging support

Qpid messaging driver is removed from Oslo.messaging [1]
Therefore, we cannot support it anymore.

[1] I4a9cba314c4a2f24307504fa7b5427424268b114

Change-Id: I46f3681963b4a365f2c5cdd7f5f6168adb751551

9 years agoConfigure disable_non_metric_meters for notification agent
iberezovskiy [Fri, 4 Dec 2015 11:14:31 +0000 (14:14 +0300)]
Configure disable_non_metric_meters for notification agent

Change-Id: I17ca231e1f7760cdea347b5466a9fbbe84aa9585

9 years agoMerge "Remove references to puppet-openstack from README"
Jenkins [Mon, 7 Dec 2015 14:17:37 +0000 (14:17 +0000)]
Merge "Remove references to puppet-openstack from README"

9 years agoSupport of PyMySQL driver for MySQL backend
iberezovskiy [Thu, 19 Nov 2015 12:17:03 +0000 (15:17 +0300)]
Support of PyMySQL driver for MySQL backend

Add ability to use python-pymysql library
as backend for MySQL connections.
Update acceptance tests to use pyMySQL.
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
The same implementation as it's done for keystone:
https://review.openstack.org/#/c/242134/

Change-Id: If41a86abc3090dfb439d09cd63ae2ecb9a0b9598

9 years agoImplement Gnocchi dispatcher
Emilien Macchi [Fri, 27 Nov 2015 11:11:01 +0000 (12:11 +0100)]
Implement Gnocchi dispatcher

* Add dispatcher options to ceilometer::collector.
* Create ceilometer::dispatcher::gnocchi class, with current upstream options.
* Add an example of manifest.
* Unit & functional tests.

Note:
This patch implement os_service_defaults only for the new class.
For collector, it will be updated in one patch in another patchset.

Change-Id: Id9364e1e1337708b1e0254b4c6268f1a0b1a42ad

9 years agoMerge "Ceilometer $::os_service_default for db and log"
Jenkins [Tue, 1 Dec 2015 15:07:34 +0000 (15:07 +0000)]
Merge "Ceilometer $::os_service_default for db and log"

9 years agoCheckout openstack-integration from master
Emilien Macchi [Thu, 26 Nov 2015 09:44:59 +0000 (10:44 +0100)]
Checkout openstack-integration from master

Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I38ca2182c0d2ca2fb7d06988911457b1374c9f62

9 years agorelease: prepare 7.0.0 (liberty) 7.0.0
Emilien Macchi [Wed, 25 Nov 2015 09:43:51 +0000 (10:43 +0100)]
release: prepare 7.0.0 (liberty)

This patch prepares this Puppet module to be released in 7.x series (Liberty)
with 7.0.0.

Change-Id: I4d892d41a8d7c8ed1f1a00712afced944c821f92

9 years agoCeilometer $::os_service_default for db and log
Iury Gregory Melo Ferreira [Tue, 24 Nov 2015 11:20:09 +0000 (11:20 +0000)]
Ceilometer $::os_service_default for db and log

Switch to $::os_service_default all params in logging and db.
Changes: logging.pp, db.pp and tests.

Related-bug: #1515273

Change-Id: I412104bf46c4b40fdbd366e3a8a9dc9de5abb5fd

9 years agoFix unit tests against Puppet 4.3.0
Gael Chamoulaud [Tue, 24 Nov 2015 09:41:20 +0000 (10:41 +0100)]
Fix unit tests against Puppet 4.3.0

Change-Id: I25973dc911747eb12e860a515459138d98a6e24c
Related-bug: #1517805
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
9 years agoRemove references to puppet-openstack from README
Nate Potter [Sat, 21 Nov 2015 18:37:05 +0000 (18:37 +0000)]
Remove references to puppet-openstack from README

The README references to the retired puppet-openstack module
should be removed, as they link to the empty github page.

Change-Id: I1e4f5fd79c285b6d7e11eed9619ea26c495798c5
Closes-bug: #1518589

9 years agobeaker: some cleanup
Emilien Macchi [Thu, 19 Nov 2015 10:12:21 +0000 (11:12 +0100)]
beaker: some cleanup

Drop a old TODO which is not useful anymore.

Change-Id: I747592127035480fb4284088b268dbb4b1c701e6

9 years agoAcceptance: use common bits from puppet-openstack-integration
Emilien Macchi [Wed, 18 Nov 2015 16:47:31 +0000 (17:47 +0100)]
Acceptance: use common bits from puppet-openstack-integration

Change-Id: I6eb1198d7a375c1168f02c6257055c1db070dc12

9 years agoRemove class_parameter_defaults puppet-lint check
Gael Chamoulaud [Thu, 12 Nov 2015 11:28:02 +0000 (12:28 +0100)]
Remove class_parameter_defaults puppet-lint check

Change-Id: Ib1a514aa20d6aadbb6c7f0456487d285f3d03abc
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
9 years agoMerge "Bump UCA and RDO to Liberty GA"
Jenkins [Fri, 6 Nov 2015 21:35:20 +0000 (21:35 +0000)]
Merge "Bump UCA and RDO to Liberty GA"

9 years agoMerge "add mongodb_replica_set option to ceilometer module"
Jenkins [Fri, 6 Nov 2015 08:14:52 +0000 (08:14 +0000)]
Merge "add mongodb_replica_set option to ceilometer module"

9 years agoBump UCA and RDO to Liberty GA
Emilien Macchi [Wed, 4 Nov 2015 14:43:42 +0000 (09:43 -0500)]
Bump UCA and RDO to Liberty GA

Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1

Change-Id: I931319d4a3989860a7532b1132788522c26d4b29

9 years agoAllow customization of db sync command line
Nate Potter [Tue, 3 Nov 2015 16:22:01 +0000 (16:22 +0000)]
Allow customization of db sync command line

Add parameter to ceilometer::db::sync class to allow end
users to add command line parameters to the db sync command.

Change-Id: I664a822ef2962d5cb32bef7573e13f0b57ee6057
Partial-bug: #1472740

9 years agoadd mongodb_replica_set option to ceilometer module
Mykyta Karpin [Thu, 22 Oct 2015 13:38:25 +0000 (16:38 +0300)]
add mongodb_replica_set option to ceilometer module

   This option sets name of the replica set
   which is used to connect to MongoDB database.

Change-Id: I6e5149d4f830677fc4bf3e363f7b999c0b06e399

9 years agoRemove deprcated mysql_module
Matt Fischer [Thu, 22 Oct 2015 03:18:24 +0000 (21:18 -0600)]
Remove deprcated mysql_module

This has been deprecated and non-functional for awhile, remove it.

Change-Id: Ibca25bf41e9bf7979f67829683f02611d537235d

9 years agoMerge "Change section name for AMQP qpid parameters"
Jenkins [Wed, 21 Oct 2015 20:41:33 +0000 (20:41 +0000)]
Merge "Change section name for AMQP qpid parameters"

9 years agoUpdate rspec tests for keystone
Emilien Macchi [Wed, 21 Oct 2015 13:45:01 +0000 (09:45 -0400)]
Update rspec tests for keystone

https://review.openstack.org/#/c/228744/ has been merged, we need to
drop the 'tenant' parameter to Keystone_user resource.

Change-Id: I515769d73b26b21b2a18914411a9d9aee27f95c9

9 years agoChange section name for AMQP qpid parameters
Denis Egorenko [Wed, 21 Oct 2015 11:47:38 +0000 (14:47 +0300)]
Change section name for AMQP qpid parameters

According to docs for liberty and kilo [1,2] should be
section 'oslo_messaging_qpid' instead of 'DEFAULT'.

[1] http://docs.openstack.org/liberty/config-reference/content/configuring-rpc.html
[2] http://docs.openstack.org/kilo/config-reference/content/configuring-rpc.html

Change-Id: I9207f2edc91cfd3e3553971e00e1510c83d0f7b9

9 years agoMerge "db: Use postgresql lib class for psycopg package"
Jenkins [Wed, 21 Oct 2015 11:17:43 +0000 (11:17 +0000)]
Merge "db: Use postgresql lib class for psycopg package"

9 years agoPrepare 6.1.0 release
Emilien Macchi [Sat, 10 Oct 2015 15:37:34 +0000 (11:37 -0400)]
Prepare 6.1.0 release

Prepare a new Kilo release.

Change-Id: Ie2beb53b8f88231babe82a1b9fb72c8faca50ed5
(cherry picked from commit ce826f3ad657028e7af8119c23cce2499b200259)

9 years agodb: Use postgresql lib class for psycopg package
Sebastien Badia [Tue, 20 Oct 2015 13:37:09 +0000 (15:37 +0200)]
db: Use postgresql lib class for psycopg package

This patch introduce the same design than mysql for postgresql
by requiring dedicated lib::python class instead of declaring
a new resource package within ceilometer module.

Change-Id: Id01849badb4ed5aeae541d0ae7e0d47af5d1f245

9 years agoMerge "Update ceilometer::db class to match other module pattern"
Jenkins [Mon, 19 Oct 2015 23:40:20 +0000 (23:40 +0000)]
Merge "Update ceilometer::db class to match other module pattern"

9 years agospec: Enable webmock connect to IPv4 link-local
Sebastien Badia [Sat, 5 Sep 2015 23:37:30 +0000 (01:37 +0200)]
spec: Enable webmock connect to IPv4 link-local

compile and compile.with_all_deps rpsec matchers make
a call to all facts, and especially the ec2 one (this fact, try
to make a connection on the IPv4 link-local for ec2 metadata which
is incompatible with webmock restrictions), this seems to produce
random errors with puppet 3.{3,4}.x and facter 1.7.6.

Closes-bug: #1492636
Change-Id: If27fa1adca40bab7fdfcb0687b68d1524c961325

9 years agoMerge "Put all the logging related parameters to the logging class"
Jenkins [Mon, 12 Oct 2015 12:16:41 +0000 (12:16 +0000)]
Merge "Put all the logging related parameters to the logging class"

9 years agoTry to use zuul-cloner to prepare fixtures
Emilien Macchi [Thu, 8 Oct 2015 21:37:08 +0000 (14:37 -0700)]
Try to use zuul-cloner to prepare fixtures

In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/install_modules_unit.sh script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: I8b884ef477bbc031da6bd3955ed308679e0380f6

9 years agoauth: drop service dependency for Keystone_user_role
Emilien Macchi [Fri, 2 Oct 2015 20:17:25 +0000 (16:17 -0400)]
auth: drop service dependency for Keystone_user_role

Drop service dependency for Keystone_user_role.

Without that patch, Ceilometer & Keystone running in WSGI will fail to compile
the catalog because a dependency cycle:
Anchor[keystone_started] => Keystone_user_role[ceilometer@services] =>
Service[ceilometer-api] => Service[httpd] => Anchor[keystone_started]

The dependency is not really useful because it does not prevent the
service to start.

Change-Id: Id8366cd5d2ddf6da468ecc7adb7d55eb8be4c8d8

9 years agoMerge "wsgi: make sure eventlet process is stopped before httpd"
Jenkins [Fri, 2 Oct 2015 14:44:02 +0000 (14:44 +0000)]
Merge "wsgi: make sure eventlet process is stopped before httpd"

9 years agoPut all the logging related parameters to the logging class
Yanis Guenane [Fri, 25 Sep 2015 07:39:58 +0000 (09:39 +0200)]
Put all the logging related parameters to the logging class

Currently logging configuration is splitted in two distinct classes, the init.pp and the
logging.pp classes.

This review aims to centralize all logging related parameters in a
single class, the logging.pp one.

The impacted parameters are :

  * use_syslog
  * use_stderr
  * log_facility
  * verbose
  * debug
  * log_dir

This change remains backward compatible with what is currently in place

Change-Id: I1132395295f542f4ba5459769a5b4b829a9cd7a7

9 years agowsgi: make sure eventlet process is stopped before httpd
Emilien Macchi [Mon, 28 Sep 2015 19:45:53 +0000 (15:45 -0400)]
wsgi: make sure eventlet process is stopped before httpd

When stopping Ceilometer API running eventlet (ceilometer-api service),
we need to make sure it's done *before* starting Apache.

Otherwise, there is a race condition where Apache could be started before
stopping the service, and what would lead to:

AH00072: make_sock: could not bind to address [::]:8777
AH00072: make_sock: could not bind to address 0.0.0.0:8777
no listening sockets available, shutting down

Apache fails to start.

This patch make sure we have the right orchestration in place.

Change-Id: Ieec365b9eed2a13d132005118f93089ac9885e58

9 years agoRemove the api service subscription on db sync
Derek Higgins [Tue, 29 Sep 2015 23:09:20 +0000 (00:09 +0100)]
Remove the api service subscription on db sync

This already exists in the db::sync class for all services tagged
with ceilometer-service. Removing it from here will allow the api
service on a HA controller where the dbsync isn't run.

Change-Id: I722bd4b1d4f8536c97afac14b916e9253458bb3b

9 years agostop managing File resources
Emilien Macchi [Mon, 28 Sep 2015 19:34:35 +0000 (15:34 -0400)]
stop managing File resources

Drop any 'File' resource that is already managed by upstream packaging.

Partial-bug: #1458915

Change-Id: I47b12069362a9ec707df71d41f91dcccfa318c13

9 years agoMerge "Implement auth_endpoint_type parameter"
Jenkins [Fri, 25 Sep 2015 14:09:41 +0000 (14:09 +0000)]
Merge "Implement auth_endpoint_type parameter"

9 years agoMerge "agent/auth: bring consistent how we manage empty parameters"
Jenkins [Fri, 25 Sep 2015 14:09:38 +0000 (14:09 +0000)]
Merge "agent/auth: bring consistent how we manage empty parameters"

9 years agoMerge "rspec: run tests for ::ceilometer::agent::auth"
Jenkins [Fri, 25 Sep 2015 14:07:44 +0000 (14:07 +0000)]
Merge "rspec: run tests for ::ceilometer::agent::auth"

9 years agoMerge "compute agent: do not try to configure nova.conf"
Jenkins [Fri, 25 Sep 2015 14:07:37 +0000 (14:07 +0000)]
Merge "compute agent: do not try to configure nova.conf"

9 years agoImplement auth_endpoint_type parameter
Emilien Macchi [Thu, 24 Sep 2015 13:35:59 +0000 (09:35 -0400)]
Implement auth_endpoint_type parameter

Add auth_endpoint_type which is the type of endpoint in Identity service
catalog to use for communication with OpenStack services. Default to
undef.

Change-Id: Ia62186b3a4520e1f323a4fa96d8a925874b3604a

9 years agoagent/auth: bring consistent how we manage empty parameters
Emilien Macchi [Thu, 24 Sep 2015 13:31:28 +0000 (09:31 -0400)]
agent/auth: bring consistent how we manage empty parameters

Replace '' by undef for auth_tenant_id paramater.
Using undef follow Puppet best practice.

Change-Id: I2b10cbec7d469aed4da95f7a51a67ec63bf96d71

9 years agorspec: run tests for ::ceilometer::agent::auth
Emilien Macchi [Thu, 24 Sep 2015 13:26:33 +0000 (09:26 -0400)]
rspec: run tests for ::ceilometer::agent::auth

This patch actually run rpsec test for ::ceilometer::agent::auth
class, and also drop an invalid parameter to make test working.

The class was introduced by [1] but test never ran before.
[1] I167c6c570bdebb4be2ef99cd0b9cf81f37856d9f

Change-Id: Ifcdd2d149e8b15446087ddc258d54d87dea1e8c0

9 years agocompute agent: do not try to configure nova.conf
Emilien Macchi [Tue, 22 Sep 2015 19:23:43 +0000 (15:23 -0400)]
compute agent: do not try to configure nova.conf

Back in history, we tried to configure something in nova.conf which is
now managed by puppet-nova. It causes the module conflicting with
puppet-nova and makes Puppet runs not idempotent and nova.conf with
wrong parameters.

nova_notifier plugin was removed in Kilo (ceilometer commit eed463659f2e6f7018b5db1fcae9931ae1d60a00).

Change-Id: I2b8d55613f0a962662d67b9fd82db17b758af80f

9 years agoUpdate ceilometer::db class to match other module pattern
Yanis Guenane [Thu, 24 Sep 2015 08:35:23 +0000 (10:35 +0200)]
Update ceilometer::db class to match other module pattern

This review aims to update the ceilometer::db class to standardize it with the
other modules db classes[1][2]. It now offers the same parameters to customize database
connection behavior.

[1] https://github.com/openstack/puppet-neutron/blob/master/manifests/db.pp
[2]
https://github.com/openstack/puppet-sahara/blob/master/manifests/db.pp

Change-Id: Ic5ca33f862da300f4f429524ba488568d0608cf3

9 years agoBump RDO packages to tested repos
Emilien Macchi [Tue, 22 Sep 2015 17:47:07 +0000 (13:47 -0400)]
Bump RDO packages to tested repos

RDO has now [1] a repo that is tested against real CI.
Using this repository will avoid more failures in our CI.

[1] http://trunk.rdoproject.org/centos7-liberty/current-passed-ci/

Change-Id: I8b32752cedeb684c3c2599005f3bef3dacdd4ca5

9 years agoMerge "Make 'alarm_history_time_to_live' parameter configurable"
Jenkins [Mon, 21 Sep 2015 14:06:20 +0000 (14:06 +0000)]
Merge "Make 'alarm_history_time_to_live' parameter configurable"

9 years agoMerge "Creation of ceilometer::db::sync"
Jenkins [Fri, 18 Sep 2015 15:15:46 +0000 (15:15 +0000)]
Merge "Creation of ceilometer::db::sync"

9 years agoMake 'alarm_history_time_to_live' parameter configurable
iberezovskiy [Mon, 14 Sep 2015 15:00:22 +0000 (18:00 +0300)]
Make 'alarm_history_time_to_live' parameter configurable

alarm_history_time_to_live is new ceilometer parameter:
http://specs.openstack.org/openstack/ceilometer-specs/specs/liberty/delete-alarmhistory.html

Make time_to_live parameter deprecated in favor of metering_time_to_live

Change-Id: Ifd16853779101202c4d6ea5a7237aeceeb0ade7c

9 years agoMerge "acceptance/eventlet: make sure apache is stopped"
Jenkins [Fri, 11 Sep 2015 13:55:46 +0000 (13:55 +0000)]
Merge "acceptance/eventlet: make sure apache is stopped"

9 years agoMerge "Disable lint warning check"
Jenkins [Fri, 11 Sep 2015 13:48:24 +0000 (13:48 +0000)]
Merge "Disable lint warning check"