409 Commits

Author SHA1 Message Date
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
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
Emilien Macchi
f47c52f26d 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
2015-12-01 11:45:04 -05:00
Jenkins
0c31e5e35a Merge "Ceilometer $::os_service_default for db and log" 2015-12-01 15:07:34 +00:00
Emilien Macchi
403316c2f4 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I38ca2182c0d2ca2fb7d06988911457b1374c9f62
2015-11-26 10:44:59 +01:00
Emilien Macchi
8bc29454c1 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
7.0.0
2015-11-25 10:43:51 +01:00
Iury Gregory Melo Ferreira
6156cb49f2 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
2015-11-24 18:49:06 +00:00
Gael Chamoulaud
6add4485c2 Fix unit tests against Puppet 4.3.0
Change-Id: I25973dc911747eb12e860a515459138d98a6e24c
Related-bug: #1517805
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-24 10:41:20 +01:00
Nate Potter
977c455340 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
2015-11-22 16:32:11 +00:00
Emilien Macchi
9869fbee66 beaker: some cleanup
Drop a old TODO which is not useful anymore.

Change-Id: I747592127035480fb4284088b268dbb4b1c701e6
2015-11-19 11:12:21 +01:00
Emilien Macchi
683260ce02 Acceptance: use common bits from puppet-openstack-integration
Change-Id: I6eb1198d7a375c1168f02c6257055c1db070dc12
2015-11-19 11:09:31 +01:00
Gael Chamoulaud
5fbf51147b Remove class_parameter_defaults puppet-lint check
Change-Id: Ib1a514aa20d6aadbb6c7f0456487d285f3d03abc
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:28:02 +01:00
Jenkins
49201f9427 Merge "Bump UCA and RDO to Liberty GA" 2015-11-06 21:35:20 +00:00
Jenkins
d6572a3c1e Merge "add mongodb_replica_set option to ceilometer module" 2015-11-06 08:14:52 +00:00
Emilien Macchi
0705e8ea1e Bump UCA and RDO to Liberty GA
Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1

Change-Id: I931319d4a3989860a7532b1132788522c26d4b29
2015-11-04 09:45:00 -05:00
Nate Potter
fa33bb0ad6 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
2015-11-03 16:50:23 +00:00
Mykyta Karpin
1c651fe987 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
2015-10-28 11:05:01 +02:00
Matt Fischer
fb936e5409 Remove deprcated mysql_module
This has been deprecated and non-functional for awhile, remove it.

Change-Id: Ibca25bf41e9bf7979f67829683f02611d537235d
2015-10-21 21:18:24 -06:00
Jenkins
53d5fbaa18 Merge "Change section name for AMQP qpid parameters" 2015-10-21 20:41:33 +00:00
Emilien Macchi
12a8eeabea 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
2015-10-21 09:45:01 -04:00
Denis Egorenko
677f0fbfc3 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
2015-10-21 14:48:10 +03:00
Jenkins
3c8e0c7294 Merge "db: Use postgresql lib class for psycopg package" 2015-10-21 11:17:43 +00:00
Emilien Macchi
52b83f90c9 Prepare 6.1.0 release
Prepare a new Kilo release.

Change-Id: Ie2beb53b8f88231babe82a1b9fb72c8faca50ed5
(cherry picked from commit ce826f3ad657028e7af8119c23cce2499b200259)
2015-10-21 01:58:18 +00:00
Sebastien Badia
0edd125704 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
2015-10-20 15:37:09 +02:00
Jenkins
1d771437ad Merge "Update ceilometer::db class to match other module pattern" 2015-10-19 23:40:20 +00:00
Sebastien Badia
60a2c46196 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
2015-10-12 21:03:58 +00:00
Jenkins
d0bc29d6b0 Merge "Put all the logging related parameters to the logging class" 2015-10-12 12:16:41 +00:00
Emilien Macchi
dfa1e8c0af 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
2015-10-08 14:46:03 -07:00
Emilien Macchi
183b62b35a 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
2015-10-02 16:17:25 -04:00
Jenkins
919020ed4c Merge "wsgi: make sure eventlet process is stopped before httpd" 2015-10-02 14:44:02 +00:00
Yanis Guenane
577593222a 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
2015-10-02 10:06:17 +02:00
Emilien Macchi
b0ee27206d 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
2015-09-30 13:30:42 -04:00
Derek Higgins
492544aa5a 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
2015-09-30 00:31:55 +01:00
Emilien Macchi
409e35a776 stop managing File resources
Drop any 'File' resource that is already managed by upstream packaging.

Partial-bug: #1458915

Change-Id: I47b12069362a9ec707df71d41f91dcccfa318c13
2015-09-28 15:35:21 -04:00
Jenkins
270e800e0d Merge "Implement auth_endpoint_type parameter" 2015-09-25 14:09:41 +00:00
Jenkins
8ae5373336 Merge "agent/auth: bring consistent how we manage empty parameters" 2015-09-25 14:09:38 +00:00
Jenkins
09b62c5f2a Merge "rspec: run tests for ::ceilometer::agent::auth" 2015-09-25 14:07:44 +00:00
Jenkins
ba9e8fe16e Merge "compute agent: do not try to configure nova.conf" 2015-09-25 14:07:37 +00:00
Emilien Macchi
22723cce88 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
2015-09-24 19:07:39 +00:00