446 Commits

Author SHA1 Message Date
Andrew Smith
bd50e452c1 Introduce support for oslo.messaging amqp driver configuration
This commit adds support for the oslo.messaging amqp rpc_backend which enables
the AMQP 1.0 driver. A proposed feature for the Newton oslo.messaging release is an
update to the AMQP 1.0 driver to support a stateless messaging interconnect for
RPC traffic[1].

This patch:
* use oslo::messaging::amqp resource
* add new parameters for the oslo_messaging_amqp driver
* update spec tests for amqp as alternate rpc_backend
* add feature release note

[1] https://blueprints.launchpad.net/oslo.messaging/+spec/amqp-dispatch-router

Change-Id: I2095cee083c9ca2390df703ad6e3216e428989f9
2016-05-16 12:31:54 -04:00
Carlos Camacho
35ca4c173b Add support for db_max_retries param
The db_max_retries parameter regulates the number of reconnection
attempts performed after an error raised rather than at startup.

Change-Id: Iaf0d5ada30e0ea57d454ab1850cc61ee658cef64
Closes-Bug: 1579718
Co-Authored-By: Giulio Fidende <gfidente@redhat.com>
2016-05-15 08:39:17 +00:00
Emilien Macchi
7df4b36d30 acceptance: remove scenario without apache
The scenario without apache was a transition to test upgrade between non
wsgi with apache to wsgi with apache and was introduced during Liberty
cycle.
The scenario is not useful anymore, as we have a wsgi with apache
scenario working well.
Moreover, we were trying to stop Keystone service, which does not exist
anymore in Mitaka, and removed from distros in Newton. It causes beaker
jobs errors.
Let's remove this test.

Change-Id: I0fc1e758ab41ac47667703b0a305c0871e43f929
2016-05-15 10:34:13 +02:00
ZhongShengping
ba21901512 Test multiple operating systems for db
This change updates the tests for ceilometer::db::postgresql and
ceilometer::db::sync to test multiple operating systems.

Change-Id: Ia3776f80bbd37981725668a55a76ecd4f20389c0
2016-04-30 09:55:32 +08:00
Denis Egorenko
e3c649f087 Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: I1c2682c1650fac8fab492be496ea242f0ed53597
2016-04-18 13:51:40 +03:00
iberezovskiy
01668bfd32 Configure oslo related parameters using puppet-oslo
Additonal changes:

  * switch oslo related parameters to $::os_service_default
    as they are used in oslo defines
  * update unit tests
  * update docs for oslo parameters

Change-Id: I4f813444fbf141abe7f10b3aef7d1aa314ac0ac4
2016-04-11 18:11:08 +03:00
Emilien Macchi
fe020912a2 Gemfile: rely on puppet-openstack_spec_helper for dependencies
Rely on puppet-openstack_spec_helper gemspec file for managing Gems
dependencies.

Depends-On: Iaf01f0aed5a34fb83a27678e7e8bb4d2a84d6428
Change-Id: I2f1b7bdd638e2f4742c9e486fec135947c929e6f
2016-03-30 11:44:00 -04:00
Giulio Fidente
497aad5423 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
2016-03-29 15:11:20 +02:00
Emilien Macchi
8142a6a019 Import release notes from stable/mitaka
stable/mitaka branch does exist now, let's import the notes from it.

Change-Id: I2fc84d705f85c0d967346bc435a7f9139df77759
2016-03-24 19:02:49 -04:00
Emilien Macchi
c7a16c237f 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
2016-03-23 16:06:56 -04:00
Emilien Macchi
3bd3f99e64 releasenotes: add notes for Mitaka cycle
Change-Id: Ia94646a859482a27519f2da39871ce010df75e55
2016-03-14 20:16:56 -04:00
Emilien Macchi
5d9da8bd9a 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
2016-03-14 08:24:10 -04:00
Pradeep Kilambi
9ac7d218d5 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
2016-03-09 00:06:54 +00:00
Jenkins
5886f0ad44 Merge "Add api_paste type/provider for Ceilometer" 2016-03-09 00:03:37 +00:00
ZhongShengping
2e0affcd93 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
2016-03-08 22:25:49 +08:00
iberezovskiy
f897c0c6c6 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
2016-03-04 19:28:29 +03:00
Jenkins
f681f80aa5 Merge "Consistent with other core module, auth_uri,identity_uri" 8.0.0b1 2016-01-28 20:13:38 +00:00
nanhai.liao
e7ed2b8f9c 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
2016-01-28 09:05:55 +08:00
Emilien Macchi
0659e509fd collector: fix dispatcher config
It's not *_dispatcher but *_dispatchers. It's a typo from a previous
commit.

Change-Id: I63709c05597e7b5e1410c2815f43cece90127975
2016-01-27 16:24:40 -05:00
Jenkins
4f3365c75c Merge "Add rabbit_ha_queues option" 2016-01-25 22:46:34 +00:00
luyuan
60301b4972 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
2016-01-24 15:05:04 +08:00
Emilien Macchi
aeb040c935 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
2016-01-22 09:31:14 -05:00
Jenkins
48d299bea8 Merge "Set auth_region to $::os_service_default" 2016-01-20 06:27:26 +00:00
Jenkins
6efe275561 Merge "Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance" 2016-01-19 22:44:54 +00:00
Emilien Macchi
b787d19d9e 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
2016-01-18 12:31:34 -05:00
Emilien Macchi
ae2c5f7939 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
2016-01-18 09:11:13 -05:00
Jenkins
2bf8cc7f27 Merge "Add rspec-puppet-facts to the spec_helper" 2016-01-16 18:09:10 +00:00
Xingchao Yu
83e6993ab3 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
2016-01-16 21:05:31 +08:00
Liao Penghui
6941231059 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
2016-01-15 10:00:56 +08:00
Alex Schultz
4e5dc348b4 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
2016-01-14 20:32:37 +03:00
luyuan
540b456c86 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
2016-01-13 07:04:20 +08:00
Jenkins
f6e0e94acf Merge "Improve format of the documentations." 2016-01-12 11:31:21 +00:00
Xingchao Yu
27654f3e17 Improve format of the documentations.
This patch is aim to unify format of the documentations in all
ceilometer classes.

Change-Id: I8b617a14146a90758fa6b8898637206bff6d2f29
2016-01-11 22:33:42 +08:00
Ben Kero
ab503a9e91 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
2016-01-07 18:47:52 -08:00
Jenkins
a38d8b4088 Merge "deprecate mongodb_replica_set parameter" 2016-01-05 23:08:49 +00:00
nanhai.liao
dd09f26048 Use identity_uri and auth_uri by default
Change-Id: If7cf7412df7666e0787dfc01abe48fddabdcb5ef
Closes-bug: #1528963
2015-12-30 16:46:41 +08:00
Emilien Macchi
782eeda90b 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
2015-12-23 23:38:23 +01:00
Emilien Macchi
51fdead1dc 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] a6d608a332

Closes-Bug: #1528612
Change-Id: I49123b0f1353e24b217ea6f16f556ab25a6c86b0
2015-12-23 11:54:41 +01:00
Emilien Macchi
ee93d53421 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
2015-12-22 18:05:32 +01:00
Jenkins
6e453d9873 Merge "Ability to configure api, collector and notification workers" 2015-12-16 21:53:38 +00:00
Jenkins
be054317ef Merge "Update example to deploy Ceilometer with Gnocchi dispatcher" 2015-12-15 13:54:17 +00:00
Radoslaw Smigielski
89e31e9ad8 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
2015-12-14 14:19:25 +03:00
Jenkins
3abf7d16d2 Merge "Support of PyMySQL driver for MySQL backend" 2015-12-10 17:14:49 +00:00
Jenkins
dea7649e0c Merge "Configure disable_non_metric_meters for notification agent" 2015-12-10 17:13:52 +00:00
Emilien Macchi
dcfdc05946 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
2015-12-08 14:45:24 -05:00
Jenkins
85c31543b8 Merge "Remove qpid messaging support" 2015-12-08 02:58:55 +00:00
Denis Egorenko
8c5cfdd2ea Remove qpid messaging support
Qpid messaging driver is removed from Oslo.messaging [1]
Therefore, we cannot support it anymore.

[1] I4a9cba314c4a2f24307504fa7b5427424268b114

Change-Id: I46f3681963b4a365f2c5cdd7f5f6168adb751551
2015-12-07 20:26:02 +03:00
iberezovskiy
2659b510a4 Configure disable_non_metric_meters for notification agent
Change-Id: I17ca231e1f7760cdea347b5466a9fbbe84aa9585
2015-12-07 14:24:37 +00:00
Jenkins
e412a06980 Merge "Remove references to puppet-openstack from README" 2015-12-07 14:17:37 +00:00
iberezovskiy
ae60c149f2 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
2015-12-03 13:06:57 +03:00