319 Commits

Author SHA1 Message Date
Emilien Macchi
f03bc45b99 Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: I3b4d162e4ba79f1dcc9e98e7a600b3b3203018f3
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-11 15:55:12 +00:00
Alex Schultz
cec993b713 Remove ceilometer client class
The ceilometer client has been retired upstream and the class has been
previously deprecated. Since the package may be going away, we need to
remove the client class.

https://review.openstack.org/#/c/522183/

Change-Id: I3e10b80d5115b32bb4aa480276303ac6136f175f
2017-11-28 14:14:06 -07:00
Juan Antonio Osorio Robles
78b9e1d743 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: Ifc742e16748195c3cb699ac1e1dc6a36b3861d02
2017-11-27 14:57:17 +02:00
Pradeep Kilambi
e2928d2d4c Remove deprecated collector classes
Collector has been deprecated in the previous release and is
targeted to be remvoed in Queens release. The code for this
is already removed upstream[1]. Let drop this class now.

[1] https://review.openstack.org/#/c/504244/

Change-Id: I626d50677255b9668ddec30131f6214f18d42fd7
2017-11-06 13:50:18 +00:00
Pradeep Kilambi
4a249ae38c Add support to set host param
Lets expose this param so we can override the host param in
ceilometer config. Without this, some metrics from nova wont
make it as in some cases the fqdn might not match hostname.

Partial-bug: #1721054

Change-Id: I421a61dc31bd10fec0a10bf7e867001cf4dd3f02
2017-11-01 20:52:00 +00:00
Mohammed Naser
926c9039c5 Drop Ceilometer API & Collector from Beaker
Both of them have been removed from Ceilometer.

Change-Id: I0c5675e96234671becc09c2c90e62335a1851e9f
2017-10-30 17:57:27 -04:00
Jenkins
9d133f35ff Merge "Configure *_domain_name to Default by default" 2017-10-08 00:15:25 +00:00
Harry Rybacki
ead9b82454 Configure *_domain_name to Default by default
Keystone v2.0 API was removed so we have no choice but configuring
user_domain_name and project_domain_name otherwise it fallbacks to
Keystone v2.0 and it fails. This patch sets the default value so we make
sure Keystone v3 will be used out of the box for our users.

Change-Id: I6949b5e00ec26ddc66cbe08de7420468d6b34954
Co-Authored-By: Juan Antonio Osorio Robles <jaosorior@redhat.com>
2017-10-06 09:33:55 -04:00
Juan Antonio Osorio Robles
240169cd55 Allow setting log files for apache vhost
This allows the setting of the error and access file logs, as well as
the access log format. This was done in a similar fashion as one can
configure these ones in the keystone wsgi manifest.

Change-Id: I000ecd05a4ca3b21970b4fa9ca49362c90b072e1
2017-10-06 14:23:31 +03:00
Jenkins
ff5da92ef0 Merge "add parameter to overwrite/add wsgi process options" 2017-09-21 21:59:18 +00:00
Benedikt Trefzer
560b82e9ae add parameter to overwrite/add wsgi process options
Add parameter to apache_wsgi to allow overwrite
and/or add additional wsgi process options.

This possibility was added to openstacklib
with Change-Id: I41914ce3361988d5db1695f09d21209772fdf548

Change-Id: I1a2f1a28200d362b7918a458e8f885873062e98b
2017-09-18 10:51:30 +02:00
ZhongShengping
58e125774b Deprecate revocation_cache_time option
The revocation_cache_time is deprecated for removel because of PKI
token format is no longer supported.
Update warning message and add a release note.

Change-Id: I8fea10159dfd4a8c1cee2242a2dbf9abc86b4686
Closes-Bug: #1717144
2017-09-14 11:00:03 +08:00
Jenkins
c64b7a7e50 Merge "Revert "deprecate dispatcher::gnocchi::archive_policy"" 2017-08-23 19:42:28 +00:00
Pradeep Kilambi
c9174849f9 Revert "deprecate dispatcher::gnocchi::archive_policy"
The upstream change has been reverted so lets revert this as well. See I4ee646088f7bc370ed7ffd1eb3b98e66bae6782e 

This reverts commit 1a4bdd359d8b52989435440dd4629b598489bf59.

Change-Id: I017e8b4f7a064bc6cd3c283d1c115f3ecf1499fe
2017-08-23 14:51:17 +00:00
ZhongShengping
1015437b0c Fix unit test
The rpc_backend option has been removed in puppet-oslo[0], so we should
remove it.

[0]https://review.openstack.org/#/c/489264/

Change-Id: I681b4126d42385f92de55dfe270ff35541fb7626
Closes-Bug: #1708976
2017-08-07 11:57:03 +08:00
Andrew Smith
138c320c89 Deprecate oslo.messaging rpc_backend option parameter
Oslo.messaging uses the transport_url to represent the rpc and
notification messaging driver to use and its full configuration. The
rpc_backend configuration option is deprecated for removal and
should not gate oslo.messaging driver configuration options.

This patch:
* deprecate rpc_backend
* remove conditional check
* update spec tests
* add release note

Change-Id: Ib58f85348920459f6ae0445379ddcb50185b8518
2017-07-27 06:34:27 -04:00
Alex Schultz
bda7b8b76f Fix unit tests
The unit tests were broken by a change to openstacklib
Id09c3358c5843510e6a2a8c0e2d4aeb3607e098b which renamed some of the
resources in the openstacklib classes. The problem is that our tests in
this module should not have been testing what occurs within openstacklib
so this fix updates the tests to only check what we are doing within
this module.

Change-Id: I331e99e05357d21f78dd7ee0346598473e5b9791
Depends-On: I9d535ab38afea852559df2b3073bd4b74a2a3947
2017-07-13 15:25:29 -06:00
Jenkins
30e069012d Merge "Ensure pipeline yamls are created with correct permissions" 2017-07-06 18:54:03 +00:00
Jake Yip
d86e1f57fd Deprecate store_events config option
The store_events option has been removed since Newton

Depends-On: I5a906684f6371b0548ac08cacc13aa238f780f78
Change-Id: I0a997d0c7076d2133d20b268b47f0c867a15f106
2017-07-04 17:03:10 +10:00
Luis Pigueiras
abf547dca0 Ensure pipeline yamls are created with correct permissions
Right now when you try to manage the `pipeline.yaml` or
`event_pipeline.yaml` via Puppet, notification-agent can't start
because it can't read the file because it has by default root:root
permissions. This enforces to have root:ceilometer and mode rw-r-----
to allow the daemon read the pipeline files

Change-Id: Ia97821135a2d51377514f2bcf389126254209e76
2017-07-03 11:57:59 +02:00
Jake Yip
7da50571cf Add rabbit_qos_prefetch_count to oslo_messaging_rabbit options
Depends-On: Ib301df384d271da27094376389e981fe51e39e5f
Change-Id: I7dabc2379cbbdfd1fb2fb5d05a6f1f7c6df400e4
2017-06-27 16:21:08 +10:00
Jake Yip
cf96476c22 Add ensure value for user and group resources
'ensure' property for user and group type resource has no default value;
if we are managing ceilometer user and group we should set ensure to
'present' so that the resources get created.

Also make user depend on group resource being created first.

Change-Id: Ie5b2704b3ea9a7727c6ff4f06efcbea201e6314a
2017-06-22 17:18:30 +10:00
ZhongShengping
36bb23cb17 Missing some parameters to test in db.pp
Add max_pool_size and max_overflow options to test.

Change-Id: I475de3f60f297cde73c3c0d138f2e9dcf31626df
Closes-Bug: #1694871
2017-06-01 10:14:29 +08:00
ZhongShengping
af6c2a9e01 Fix unit test
The db_backend_package name has changed in puppet-oslo[0], so fix it.

[0]: https://review.openstack.org/#/c/467582/

Change-Id: I682ca1d1b5879ab201e591a0a82dcc2a9ecbdabe
Closes-Bug: #1693403
2017-05-25 11:05:06 +08:00
Jenkins
83de4b0a4a Merge "oslo policy: check puppet resource instead of actual config in spec" 2017-05-24 03:07:59 +00:00
Jenkins
1ddf8365f9 Merge "Deprecate memcached_servers parameter" 2017-05-23 18:32:18 +00:00
ZhongShengping
28645c0ab0 oslo policy: check puppet resource instead of actual config in spec
Change-Id: I94e1232dcc00c76a1fbd23fe8a8b5cdec90dba97
2017-05-23 13:52:16 +08:00
Emilien Macchi
1ef657da0e expirer: remove the crontab if enable_cron is False
Allow to let Puppet removing the crontab when
ceilometer::expirer::enable_cron is set to False.
It's useful when you want to upgrade from Ocata to Pike and you want the
crontab to be removed, since ceilometer-expirer is deprecated in Pike.

Change-Id: I1eb243be7bbc38ab5977bcf6a649e98eb6ff77f7
2017-05-18 16:16:40 -04:00
ZhongShengping
f7d5a712dc Deprecate memcached_servers parameter
It is 'memcache_servers' in group [cache], not 'memcached_servers'.
For better understanding, deprecate memcached_servers option and
use memcahce_servers instead.

Change-Id: I57d7b45438904387176200c0062b7f33f4268006
Closes-Bug: #1690981
2017-05-17 16:27:41 +00:00
Mehdi Abaakouk
36b2ecdd7c Allow to configure the polling interval
This change allows the management of polling.yaml. This allow
to configure the polling interval.

Change-Id: I4e63d48e57700146ccfb6685cc1e3ad1c9e6102f
2017-05-10 14:28:41 +02:00
ZhongShengping
6431cca541 Set debug to true
In order to better view log error messages, set log debug to true.

Change-Id: I8445cd211ded5b52d7dc065dc90c5849e4c46ce5
2017-05-05 15:02:00 +08:00
Pradeep Kilambi
e016a4bb23 Expose snmpd auth params
Change-Id: I55ac06e1a561d29d7e1c928a1684989c9654b95d
2017-05-03 12:30:19 -04:00
Pradeep Kilambi
347140eca0 Add support to configure publisher in pipeline.yaml
pipeline yaml defaults to gnocchi publisher. This wont work
if collector(which is deprecated) is still being used. This
should be set to notifier:// instead. So lets make this
configurable.

Change-Id: I242642035c3d3d6e814f54bcd2d1e15c3a53120b
2017-04-11 13:56:33 -04:00
Jenkins
bd1ebe015f Merge "Update default event publisher" 2017-04-10 15:58:46 +00:00
ZhongShengping
a14eab3714 oslo db: check puppet resource instead of actual config in spec
Change-Id: I28dc79777324ffec99f733eb09cd800ab543570d
2017-04-08 11:24:59 +08:00
Pradeep Kilambi
64903dc23d Update default event publisher
In pike, the default publisher is gnocchi. Lets use that
as the default. If you are using collector the override
this to notifier:// instead.

Change-Id: Ic6ba909c873bee801843718cc25974abeda9f857
2017-04-06 17:53:33 -04:00
Pradeep Kilambi
a791baa616 Fix dispatcher params
Currently we join the params and pass in a string to the dispatcher
settings. This wont work as ceilometer config expects separate
lines for each value.

Change-Id: I3813f0918c8394ef14959be7580bf026314ba82e
2017-04-04 17:26:49 -04:00
Jenkins
50dc1b74eb Merge "Password should be secured" 2017-03-29 21:17:14 +00:00
Mehdi Abaakouk
1a4bdd359d deprecate dispatcher::gnocchi::archive_policy
The archive_policy option of ceilometer::dispatcher::gnocchi is
deprecated and should be removed.

So this change deprecate it for removal.

Depends-On: Ide510f355361737230efcd89ff78ff974bc96134
Change-Id: Ic60b7189c3bfc01f59889ffbd35adaba9c00f559
2017-03-28 14:12:05 +02:00
ZhongShengping
015fd676e4 Password should be secured
As messaging_urls option contains rabbit_password value, it should
be secured.

Change-Id: I503180280a5558d27c00368e9949aaed52151e79
Closes-Bug: #1676708
2017-03-28 16:24:10 +08:00
Mehdi Abaakouk
1ef6b0b7f6 deprecate ceilometer::dispatcher::gnocchi::url
The url option of ceilometer::dispatcher::gnocchi doesn't exists anymore
since a while in Ceilometer.

So this change deprecate it for removal.

Change-Id: I2b87de910b73d65111d609b8722183c1852f9c35
2017-03-22 12:31:28 -04:00
Mykyta Karpin
e664330298 oslo log: check puppet resource instead of actual config in spec
Change-Id: I69498bf80b052b70ea73c0fafc4736678fc3417a
2017-03-16 18:40:43 +02:00
Jenkins
8e7e619401 Merge "Make skip gnocchi option overridable" 2017-03-15 23:50:32 +00:00
Pradeep Kilambi
96040df940 Make skip gnocchi option overridable
Since gnocchi is the default backend, We might want to be able to
override this option and let it skip by default for compatibility.
let user set it via extra_params.

Change-Id: I23e43552e14ced5a7da5e16ef323df3b1ec6722d
2017-03-15 17:51:06 +00:00
ZhongShengping
7952b1c137 Fix typo
Change-Id: I0694ee0f4f0b03d9d2b71b1585876e63bd188b53
2017-03-13 20:08:25 +08:00
Juan Antonio Osorio Robles
180bfecb39 rabbitmq SSL: check puppet resource instead of actual config
The configuration is done via the oslo::messaging::rabbit resource
from puppet-oslo. We should be checking for the resource that we're
using instead of the underlying configuration file.

Change-Id: I2f0a392e4b0a7a7ab61cc1e853fca44c3b9cbe97
2017-03-10 13:47:48 +02:00
ZhongShengping
8190fba40a Deprecate meter_dispatcher and event_dispatcher options
1) meter_dispatcher and event_dispatcher options are now deprecated,
please use meter_dispatchers and event_dispatchers options instead.
2) Switch meter_dispatchers and event_dispatchers parameters to
$::os_service_default fact.

Change-Id: I32dcbf34160906d15c871272e5ce0eba46c02b5e
Closes-Bug: #1668817
2017-03-03 15:22:19 +08:00
Alex Schultz
72b33608c7 Remove rpc_backend check for amqp
I7ccd995ef01c2d54427684718adba054260fdd52 removed the rpc_backend
declaration for amqp so we need to stop checking for it in the unit
tests.

Change-Id: I7ad627f2ec69ea2456830f2ca6e984af6d03ae6a
2017-02-28 10:11:50 -07:00
ZhongShengping
c3d330eeb5 Add notification_driver option
Add notification_driver to configure driver or drivers for handling
sending notifications.

Change-Id: Id6450967f8efd30597b0b3a23602fa8d673aec8a
2017-02-13 17:39:44 +08:00
ZhongShengping
895a8eaa87 Add control_exchange and rpc_response_timeout options
Add control_exchange to configure an exchange name for message.
Add rpc_response_timeout to configure seconds time for waiting
for a response from a call.

Change-Id: I0d54accfea048fa394dac18e141a620d127579cf
2017-01-28 12:59:08 +08:00