]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/log
puppet-modules/puppet-ceilometer.git
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 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"

9 years agoacceptance: bump to Liberty
Emilien Macchi [Thu, 10 Sep 2015 16:13:15 +0000 (12:13 -0400)]
acceptance: bump to Liberty

RDO:
This patch changes the repositories used to install OpenStack Liberty on
RDO by using CBS repositories and RDO trunk.

Here is the RDO roadmap that is suggested if we want to run Liberty:
From now until GA:
http://trunk.rdoproject.org/centos7-liberty/current/
http://cbs.centos.org/repos/cloud7-openstack-liberty-testing/x86_64/os/
http://cbs.centos.org/repos/cloud7-openstack-common-testing/x86_64/os/

After GA:
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty

Note about EPEL: deps from EPEL are rebuilt in CBS, so EPEL could be
disabled in the future.

UCA:
Since our recent discussion about Ubuntu packaging, we decided to bump
Ubuntu packaging to trusty-proposed/liberty so we can install Liberty in
a better shape than current situation (Staging repo). This patch
installs UCA liberty repository.

Change-Id: Idd0beeec65b15798a015fa1c71486c75795d14ee

9 years agoDisable lint warning check
Hunter Haugen [Fri, 4 Sep 2015 18:28:00 +0000 (11:28 -0700)]
Disable lint warning check

This variable is cast to a string to avoid validate_re() breaking, but
puppet-lint gives a warning for a string containing only a variable.
This disables the warning for this line only.

Change-Id: I8faadf0194b61fd9fc709c7287f46b003b92e7e4

9 years agoacceptance/eventlet: make sure apache is stopped
Emilien Macchi [Sun, 23 Aug 2015 14:36:58 +0000 (10:36 -0400)]
acceptance/eventlet: make sure apache is stopped

When testing upgrades, we have some cases where we apply the wsgi
manifest first and then eventlet. The problem is apache which is
started so ceilo-api cannot be started because ports are already in use.

So this patch installs Apache on eventlet manifest and makes sure
the service is stopped before trying to start ceilo-api with eventlet.

Change-Id: I4aae37fcbf60e61c0eb8385dedc950674661b592

9 years agoMerge "Reflect provider change in puppet-openstacklib"
Jenkins [Thu, 20 Aug 2015 16:35:58 +0000 (16:35 +0000)]
Merge "Reflect provider change in puppet-openstacklib"

9 years agoMerge "Initial msync run for all Puppet OpenStack modules"
Jenkins [Thu, 20 Aug 2015 01:29:41 +0000 (01:29 +0000)]
Merge "Initial msync run for all Puppet OpenStack modules"

9 years agoReflect provider change in puppet-openstacklib
Yanis Guenane [Thu, 6 Aug 2015 11:05:21 +0000 (13:05 +0200)]
Reflect provider change in puppet-openstacklib

With the creation of the new openstack_config provider, some processing
that was done in ceilometer_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

ceilometer_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

ceilometer_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  ceilometer_config { 'DEFAULT/foo' : value => $myvar }
} else {
  ceilometer_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

ceilometer_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

ceilometer_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: Ia46f8ea1228caca85d6fe431922fa8229f4c4ade
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218

9 years agoacceptance: enable debug & verbosity for OpenStack logs
Emilien Macchi [Sun, 16 Aug 2015 13:50:01 +0000 (09:50 -0400)]
acceptance: enable debug & verbosity for OpenStack logs

Enable debug & verbose when possible for OpenStack services logs, so we can read a maximum
of informations in Jenkins jobs logs and easily debug our eventual failures.

Change-Id: Ib4a4bd790ce2b2c6d21171e472b1191f11498f31

9 years agoMerge "wsgi: fix typos in comments"
Jenkins [Tue, 18 Aug 2015 13:26:15 +0000 (13:26 +0000)]
Merge "wsgi: fix typos in comments"

9 years agoCreation of ceilometer::db::sync
Yanis Guenane [Wed, 22 Jul 2015 12:53:29 +0000 (14:53 +0200)]
Creation of ceilometer::db::sync

In order to standardize the way dbsync are run across our modules,
we create a new class ceilometer::db::sync.
This class will be included if sync_db is enabled.

By making this transition the ceilometer::db::sync can be returned
by the ENC.

A use case would be in an highly available environment, with 3 galera
nodes, include ceilometer::db on every node with sync_db set to false
and have the ENC return ceilometer::db::sync just for one node.

Change-Id: I410f41fb4e61be848372820cdeb2110efc327161

9 years agoMerge "acceptance: bump to Liberty release"
Jenkins [Fri, 14 Aug 2015 21:03:16 +0000 (21:03 +0000)]
Merge "acceptance: bump to Liberty release"

9 years agowsgi: fix typos in comments
Emilien Macchi [Fri, 14 Aug 2015 15:39:22 +0000 (11:39 -0400)]
wsgi: fix typos in comments

Fix minor typos in comments & messages.

Change-Id: I5cf1fa9b24fa764ae27ac19a32fc14571b141741

9 years agoWSGI: make it work, and test it with acceptance
Emilien Macchi [Wed, 5 Aug 2015 02:36:47 +0000 (22:36 -0400)]
WSGI: make it work, and test it with acceptance

* Finalize httpd service name support in API class following
  puppet-keystone model.
* Implement unit tests.
* Implement separated acceptance tests that deploy Ceilometer API in
  WSGI.

This patch aims to finalize and validate we can deploy Ceilometer API in
WSGI with puppet-ceilometer.
Also that we can update from eventlet to WSGI (it's tested in our beaker jobs).

Closes-bug: #1481532
Change-Id: I3695acf5522457837e079c36d68a0e35dbf6b72c

9 years agoMerge "Rely on autorequire for config resource ordering"
Jenkins [Thu, 13 Aug 2015 09:18:41 +0000 (09:18 +0000)]
Merge "Rely on autorequire for config resource ordering"

9 years agoMerge "acceptance: clean an old FIXME in manifest"
Jenkins [Thu, 13 Aug 2015 08:32:10 +0000 (08:32 +0000)]
Merge "acceptance: clean an old FIXME in manifest"

9 years agoRely on autorequire for config resource ordering
Yanis Guenane [Wed, 12 Aug 2015 07:45:38 +0000 (09:45 +0200)]
Rely on autorequire for config resource ordering

Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Ie99aec47f9bf334336e9cd87106c9f47d6e5abfa

9 years agoMerge "Add an ability to manage use_stderr parameter"
Jenkins [Wed, 12 Aug 2015 07:17:54 +0000 (07:17 +0000)]
Merge "Add an ability to manage use_stderr parameter"

9 years agoUse openstack/ namespace for fixtures modules
Yanis Guenane [Tue, 11 Aug 2015 12:44:09 +0000 (14:44 +0200)]
Use openstack/ namespace for fixtures modules

When running the tests, rspec will download the modules speficied in
.fixtures.yml and put them in spec/fixtures/modules.

Some of those modules still point to stackforge/ namespace when they
should be pointing to openstack/ namespace.

Change-Id: I2ca55663ac4b57c6e12001edcd4d989421ad27a7

9 years agoAdd an ability to manage use_stderr parameter
Sergey Kolekonov [Fri, 7 Aug 2015 12:44:01 +0000 (15:44 +0300)]
Add an ability to manage use_stderr parameter

When logging is already set up, it can be useful to disable this option
to avoid logs duplication (collected by Upstart, for example)

Change-Id: I6c3e33e8ac3b018941eb0a1c584701c4483a3a11
Closes-bug: #1482564

9 years agoacceptance: bump to Liberty release
Emilien Macchi [Wed, 5 Aug 2015 00:23:59 +0000 (20:23 -0400)]
acceptance: bump to Liberty release

Upgrade acceptance manifest from Kilo (stable) to Liberty (dev)
on both Ubuntu Trusty & Centos7.

Change-Id: I5131e4876189c5fbe31d52fc4ed24bedfac7dfb5
Co-Authored-By: Lukas Bezdicka <lbezdick@redhat.com>
Depends-On: I7c1f31b3cc4c6ea1f894a263a8cff60e357accb8

9 years agoMerge "Add ability to specify ttl and timeout parameters"
Jenkins [Fri, 7 Aug 2015 15:12:09 +0000 (15:12 +0000)]
Merge "Add ability to specify ttl and timeout parameters"

9 years agoInitial msync run for all Puppet OpenStack modules
Sebastien Badia [Tue, 4 Aug 2015 13:37:05 +0000 (15:37 +0200)]
Initial msync run for all Puppet OpenStack modules

This patch is the initial modulesync run, it impact:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
* spec: added rspec coverage report

Change-Id: I34e999a752667d5f85266bc64059d9740ccbc367

9 years agoacceptance: clean an old FIXME in manifest
Emilien Macchi [Wed, 5 Aug 2015 02:37:52 +0000 (22:37 -0400)]
acceptance: clean an old FIXME in manifest

We were configuring a dependency because https://review.openstack.org/177593 was not merged.
It's merged now, let's clean the manifest.

Change-Id: I33a80857f3f5fda09153940215d92420c5b20eb8

9 years agoAdd ability to specify ttl and timeout parameters
iberezovskiy [Fri, 31 Jul 2015 13:18:36 +0000 (16:18 +0300)]
Add ability to specify ttl and timeout parameters

Allow to override following ceilometer parameters:
 * time to live for events
 * time to live for meters
 * timeout for HTTP requests

Change-Id: I083ac1ed90db96e69e2287acc9ec62956be0ae58

9 years agoUpdate Setup in Ceilometer README
Iury Gregory Melo Ferreira [Tue, 21 Jul 2015 20:26:21 +0000 (17:26 -0300)]
Update Setup in Ceilometer README

The actual Setup contains the example outside the box.
Add Ceilometer url
Add Beginning with Ceilometer section

Change-Id: If8e1fa9cd826d8a7a9c8a95d14854f33c76ea432

9 years agoEnable support for memcached_servers
Matt Fischer [Thu, 9 Jul 2015 02:43:56 +0000 (20:43 -0600)]
Enable support for memcached_servers

Closes-Bug #1469652

Change-Id: I955899f37d5337634d1a33712850f7c16b77113b

9 years agoMerge "Add tag to package and service resources"
Jenkins [Thu, 23 Jul 2015 16:09:48 +0000 (16:09 +0000)]
Merge "Add tag to package and service resources"

9 years agoMerge "fix module install reference"
Jenkins [Thu, 23 Jul 2015 14:34:02 +0000 (14:34 +0000)]
Merge "fix module install reference"

9 years agoAdd tag to package and service resources
Yanis Guenane [Wed, 22 Jul 2015 12:53:29 +0000 (14:53 +0200)]
Add tag to package and service resources

In order to be able to take an action after all the packages of the
module have been installed/updated or all the services have been
started/restarted, we set a 'ceilometer-package' and 'ceilometer-service'
tag for each package and service of this module.

At the moment, there is a generic openstack tag that is not specific
enough if one wants to take action upon a single module change.

Use case :

If an action needs to be taken after all the packages have been
installed or updated : Package <| tag == 'ceilometer-package' |> -> X

Change-Id: I5e96d99e4ee10bbac73678c85eb1e8db390774b8

9 years agoMerge "Fix rspec 3.x syntax"
Jenkins [Tue, 21 Jul 2015 15:42:01 +0000 (15:42 +0000)]
Merge "Fix rspec 3.x syntax"

9 years agoFix rspec 3.x syntax
Gael Chamoulaud [Mon, 20 Jul 2015 13:51:26 +0000 (15:51 +0200)]
Fix rspec 3.x syntax

- Convert 'should' keyword to 'is_expected.to'

Change-Id: I0e39abc38847e39f924e4f76c01e9c2fd6f37b10
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
9 years agoMerge "keystone/auth: make service description configurable"
Jenkins [Mon, 20 Jul 2015 10:21:56 +0000 (10:21 +0000)]
Merge "keystone/auth: make service description configurable"

9 years agofix module install reference
Matt Fischer [Thu, 9 Jul 2015 01:12:31 +0000 (19:12 -0600)]
fix module install reference

Change-Id: If81d565f6b6b99d129c9416f5362ce0258d79e09
Closes-Bug: #1468950

9 years agoSimplify parameters for rpc_backend
Javier Pena [Fri, 26 Jun 2015 12:40:33 +0000 (14:40 +0200)]
Simplify parameters for rpc_backend

It is not needed anymore to specify the whole python namespace
for the backends, and in Liberty this option is completely removed
(see https://review.openstack.org/189201).

This patch keeps backwards compatibility with the previous default
parameters.

Change-Id: I5c84def51bcda593c89c3897c52fb4e8e663e121

9 years agoMerge "Add support for RabbitMQ connection heartbeat"
Jenkins [Fri, 10 Jul 2015 15:40:37 +0000 (15:40 +0000)]
Merge "Add support for RabbitMQ connection heartbeat"

9 years agoMerge "Prepare 6.0.0 release" 6.0.0
Jenkins [Thu, 9 Jul 2015 19:00:44 +0000 (19:00 +0000)]
Merge "Prepare 6.0.0 release"

9 years agoPrepare 6.0.0 release
Emilien Macchi [Wed, 8 Jul 2015 21:36:09 +0000 (17:36 -0400)]
Prepare 6.0.0 release

Update CHANGELOG, README and metadata.json to bump the module to the
first Kilo release (6.0.0).

Change-Id: I079e29c92349631b96a4ee10edf546dafe419700

9 years agoFix git clone for locally running tests
Colleen Murphy [Wed, 8 Jul 2015 18:40:45 +0000 (11:40 -0700)]
Fix git clone for locally running tests

Zuul-cloner's behavior is to clone the repository into a subdirectory
under a directory named for the repo namespace. Git's default behavior
is to just clone it directly into the present working directory. This
patch adds an argument to the git clone command to clone it into the
<namespace>/<repo name> directory, so that whether zuul-cloner or git
is used the repo ends up in the same directory relative to the PWD.

Change-Id: I8fd7ab1637fdc77cad69b37e9c063997a2a3287d

9 years agoCorrect `puppet module list` check in beaker
Colleen Murphy [Tue, 7 Jul 2015 20:38:27 +0000 (13:38 -0700)]
Correct `puppet module list` check in beaker

The final check during the prep stage, where `puppet module list` is
run so that its output can be used for debugging, should run on the
current host in the loop, not the first host in the array.

Change-Id: I0d8615caf5a652f654ea01020667ef57ab5a90ba

9 years agoUse module install script for acceptance tests
Colleen Murphy [Tue, 7 Jul 2015 20:07:52 +0000 (13:07 -0700)]
Use module install script for acceptance tests

This patch updates the spec_helper_acceptance.rb file to use the common
module install script and Puppetfile from the new
openstack/puppet-openstack-integration repo. This will allow us to take
advantage of Zuul's Depends-On feature so that we can test changes
across multiple related modules. This is based on idea 1 from this
brainstorming session[1].

This will probably be abstracted out into a separate function or
eventually a separate gem so that it can be more easily shared across
the OpenStack modules and the Infra modules.

[1] https://etherpad.openstack.org/p/puppet-git-dependencies

Change-Id: Ia47b609f1d05f5f9000dd977b9ded35afbe7e3f4
Co-Authored-By: James E. Blair <jeblair@hp.com>
Co-Authored-By: Spencer Krum <spencer.krum@hp.com>
9 years agoAdd support for RabbitMQ connection heartbeat
Mike Dorman [Mon, 22 Jun 2015 20:03:24 +0000 (14:03 -0600)]
Add support for RabbitMQ connection heartbeat

Kilo oslo.messaging added heartbeating support for RabbitMQ
connections.  This patch adds support for this in Puppet modules
by managing the oslo_messaging_rabbit/heartbeat_timeout_threshold
and oslo_messaging_rabbit/heartbeat_rate settings.

Closes-bug: 1467667
Change-Id: I985d081c86975c5b216f6346cbd9a368dd0d33d3

9 years agoUse beaker-puppet_install_helper to install puppet
Emilien Macchi [Tue, 30 Jun 2015 20:48:22 +0000 (16:48 -0400)]
Use beaker-puppet_install_helper to install puppet

When running with BEAKER_provision=no, the following happens:

In Trusty: beaker is running dpkg with '--force' option so even
if Puppet is already installed, the return code will be 0.
In CentOS: beaker is running 'rpm -ivh' the second time and since
the package is already here, the return code will be 1.

Using the new puppet install helper will abort installing puppet
if BEAKER_provision is no, so tests will continue as normal.

Change-Id: Ifeada55370bbd5b30418447c8fc1da101de2b774
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
9 years agoacceptance: install latest openstack-selinux
Emilien Macchi [Mon, 29 Jun 2015 19:22:28 +0000 (15:22 -0400)]
acceptance: install latest openstack-selinux

Since SELinux is enforced by default, we need to make sure
openstack-selinux is installed from the latest version to have OpenStack
correctly working.

Change-Id: I77086257703552c520bf00ae318936f82f6dffdf

9 years agoMerge "make crontab for expirer optional"
Jenkins [Mon, 29 Jun 2015 16:58:01 +0000 (16:58 +0000)]
Merge "make crontab for expirer optional"

9 years agomake crontab for expirer optional
Xav Paice [Thu, 25 Jun 2015 03:28:12 +0000 (15:28 +1200)]
make crontab for expirer optional

This adds an 'enable_cron' switch to ceilometer::expirer, defaults to
true, so that if we want to configure the TTL but don't want to run the
expiry job via cron we don't have to.

Closes-Bug: 1468937

Change-Id: I7fd89e58f70ae41628e769ed24f1ef5c15af51f9

9 years agoRemove Contact info from README
Colleen Murphy [Fri, 26 Jun 2015 18:43:41 +0000 (11:43 -0700)]
Remove Contact info from README

As this is a community supported module, the contact info listed in the
README was inaccurate. To improve consistency with other modules and
reduce cruft, this patch removes the contact section of the README.
Contact information can be found on the wiki linked in the developer
documentation section.

Change-Id: I5dbbce799dc708877a8a056f11adf37d9a5c6404

9 years agoMerge "Remove license from README"
Jenkins [Sun, 28 Jun 2015 16:22:49 +0000 (16:22 +0000)]
Merge "Remove license from README"

9 years agoMerge "Split release notes into a CHANGELOG.md file"
Jenkins [Sun, 28 Jun 2015 07:15:27 +0000 (07:15 +0000)]
Merge "Split release notes into a CHANGELOG.md file"

9 years agoMerge "Update README.md for project namespace change"
Jenkins [Sat, 27 Jun 2015 15:46:22 +0000 (15:46 +0000)]
Merge "Update README.md for project namespace change"

9 years agoMerge "Correct the name of the auth param deprecation msg"
Jenkins [Sat, 27 Jun 2015 15:41:16 +0000 (15:41 +0000)]
Merge "Correct the name of the auth param deprecation msg"

9 years agoRemove license from README
Colleen Murphy [Fri, 26 Jun 2015 18:38:59 +0000 (11:38 -0700)]
Remove license from README

In fae87c07a6bc0b8b66651147405c4310ab528a74 the License file was
updated, and now the copy embedded in the README is inconsistent. This
patch removes the copy from the README since having it in its own file
is sufficient, and reducing duplication will prevent inconsistencies.

Change-Id: I6681ece09afef55379c93404c92a38fc01c8e731

9 years agoSplit release notes into a CHANGELOG.md file
Colleen Murphy [Fri, 26 Jun 2015 18:29:22 +0000 (11:29 -0700)]
Split release notes into a CHANGELOG.md file

This patch splits out release notes into a separate dedicated file for
consistency with the puppetlabs puppet modules. Additionally, this
patch improves the release notes by:

- Fixing the tense to be consistent with commit message standards ("Add
  new feature" instead of "Added new feature" or "Adds new feature")
- Breaking up changes into categories to make it easier for operators
  to know what happened in the change: backwards-incompatible changes,
  features, bugfixes, and maintenance commits
- Linewrapping to 80 chars
- Adding release dates, formatted according to ISO-8601

Change-Id: Ic8be387f8b3d7dac0dd57b2b36b4a0d07696f55b

9 years agoacceptance: install RDO repo the right way
Emilien Macchi [Fri, 26 Jun 2015 19:40:31 +0000 (15:40 -0400)]
acceptance: install RDO repo the right way

Install packages from RDO properly, by using regular packages and not
ones from testing repo that are too unstable.

Change-Id: I8cff9607677b94f1f39551cb1d086b362ff2a185

9 years agoFix Beaker CI according recent puppetlabs-rabbitmq change.
Sebastien Badia [Wed, 24 Jun 2015 17:11:00 +0000 (19:11 +0200)]
Fix Beaker CI according recent puppetlabs-rabbitmq change.

The puppetlabs-rabbitmq module introduce a new feature related to the
erlang_cookie parameter change (the database must be wiped if the cookie is
changed), the parameter wipe_db_on_cookie_change is configured to false by
default.

But we're not setting up a rabbitmq cluster and we're not using pacemaker in
beaker CI tests, so we just remove the erlang cookie parameter change.

Change-Id: If2b6ba5e9e51b17fae81fa98574ba931b365c391
Closes-Bug: #1468444

9 years agokeystone/auth: make service description configurable
Sebastien Badia [Wed, 24 Jun 2015 15:51:15 +0000 (17:51 +0200)]
keystone/auth: make service description configurable

This commit adds the service description as a class parameter in order to allow
users to update from a previous version if the service description is changed
(incorrectly spelled or wrong description)

Change-Id: Ia0ddf657991db1dd82ca063a944132643054d514
Closes-Bug: #1468407

10 years agoUpdate README.md for project namespace change
Xingchao Yu [Mon, 22 Jun 2015 07:02:02 +0000 (15:02 +0800)]
Update README.md for project namespace change

Change-Id: Icbcc3e098c989b55207991b907a83439d49cd2c4

10 years agoCorrect the name of the auth param deprecation msg
Dan Prince [Thu, 18 Jun 2015 01:36:15 +0000 (21:36 -0400)]
Correct the name of the auth param deprecation msg

This corrects the name of the parameters in the auth parameters
deprecation message.

Change-Id: Ie0f500c9623fb0709852f74c245ce551a0153bbd

10 years agoRelease 5.1.0 - Juno
Emilien Macchi [Wed, 17 Jun 2015 17:45:54 +0000 (13:45 -0400)]
Release 5.1.0 - Juno

Prepare 5.1.0 release.

Change-Id: Idd85e908cbedcbc6b6a2453c3b8012bcaa12e70a

10 years agoMerge "Deprecate old public, internal and admin parameters"
Jenkins [Wed, 17 Jun 2015 00:02:27 +0000 (00:02 +0000)]
Merge "Deprecate old public, internal and admin parameters"

10 years agoMerge "Update spec_helper_acceptance for project renames"
Jenkins [Tue, 16 Jun 2015 15:54:46 +0000 (15:54 +0000)]
Merge "Update spec_helper_acceptance for project renames"

10 years agoUpdate spec_helper_acceptance for project renames
Colleen Murphy [Sat, 13 Jun 2015 00:33:15 +0000 (17:33 -0700)]
Update spec_helper_acceptance for project renames

Change-Id: I9f63d9bd8373102a4a8cfe8320a41d824501b8f0

10 years agoUpdate .gitreview file for project rename
Jeremy Stanley [Fri, 12 Jun 2015 22:41:19 +0000 (22:41 +0000)]
Update .gitreview file for project rename

Change-Id: I2d86f89f1984d128edad5497466e3c7606e225f2

10 years agoDeprecate old public, internal and admin parameters
Mathieu Gagné [Thu, 11 Jun 2015 18:04:12 +0000 (14:04 -0400)]
Deprecate old public, internal and admin parameters

This change deprecates the following parameters:
- port (replaced by public/internal/admin_url)
- public_protocol (replaced by public_url)
- public_address (replaced by public_url)
- internal_protocol (replaced by internal_url)
- internal_address (replaced by internal_url)
- admin_protocol (replaced by admin_url)
- admin_address (replaced by admin_url)

Add deprecation warnings if any of those values are provided
while maintaining full backward compatibility.

Closes-bug: #1274979
Change-Id: Ia20f9d032fada10979383446f78ff57035b9c763

10 years agoMerge "Unpin beaker-rspec"
Jenkins [Tue, 9 Jun 2015 17:18:09 +0000 (17:18 +0000)]
Merge "Unpin beaker-rspec"

10 years agoUnpin beaker-rspec
Colleen Murphy [Mon, 8 Jun 2015 19:55:06 +0000 (12:55 -0700)]
Unpin beaker-rspec

The latest version of beaker tries to manage sshd_config[1] in order to
pass through environment variables. JJB also tries to manage
sshd_config by adding Match blocks to securely allow root SSH[2]. When
beaker tries to append the PermitUserEnvironment line after the Match
blocks, SSH fails to open port 22 and beaker can't SSH in to the
node[3]. This patch unpins beaker-rspec and adds set_env: false to the
nodepool nodesets so that the set_env method is never called and does
not try to mess with the sshd_config.

[1] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L528
[2] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n42
[3] http://logs.openstack.org/61/185161/1/check/gate-puppet-nova-puppet-beaker-rspec-dsvm-centos7/cd81608/console.html.gz#_2015-05-22_22_05_46_933
[4] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L502

Change-Id: Ia96c315a44d7ae90511d515b03166cbe5a060f31

10 years agoMove rabbit/kombu settings to oslo_messaging_rabbit section
Gael Chamoulaud [Tue, 14 Apr 2015 19:35:39 +0000 (21:35 +0200)]
Move rabbit/kombu settings to oslo_messaging_rabbit section

Kilo oslo-messaging deprecates rabbit/kombu settings in the
DEFAULT section.

Move these settings to proper oslo_messaging_rabbit section.

Change-Id: I0b822c37b81e9bcbb7f51959300167ff7ff3eb68
Closes-bug: 1444161
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoFix dependency on nova-common package
iberezovskiy [Fri, 22 May 2015 09:39:48 +0000 (12:39 +0300)]
Fix dependency on nova-common package

  Nova module could be not included or imported directly
  and this can lead to failure with missing dependency
  on 'nova-common' package. More safe is to use
  Package <| title == nova-common |>

Change-Id: Idac8d52955ff6f3f1c62a538b197eeac6f281a1f

10 years agoMerge "acceptance: don't install erlang on RHEL"
Jenkins [Sun, 17 May 2015 01:29:10 +0000 (01:29 +0000)]
Merge "acceptance: don't install erlang on RHEL"

10 years agoMerge "Fix spec tests for RSpec 3.x and Puppet 4.x"
Jenkins [Thu, 14 May 2015 18:35:32 +0000 (18:35 +0000)]
Merge "Fix spec tests for RSpec 3.x and Puppet 4.x"

10 years agoacceptance: don't install erlang on RHEL
Emilien Macchi [Wed, 13 May 2015 21:08:35 +0000 (17:08 -0400)]
acceptance: don't install erlang on RHEL

Puppet erlang module does not pin puppetlabs-apt so it will have
conflicts in other modules if we want to use it (since we try to not use
2.0.0 release).

Let's simplify acceptance tests in not using erlang module and be
consistent with all Puppet OpenStack modules tests.

Change-Id: I6c79968becc11a19bddd2cba5aedb663f4c80c61

10 years agoFix spec tests for RSpec 3.x and Puppet 4.x
Sebastien Badia [Wed, 13 May 2015 15:36:59 +0000 (17:36 +0200)]
Fix spec tests for RSpec 3.x and Puppet 4.x

Fix resource array, according[1].
[1]https://github.com/puppetlabs/puppet/blob/3.7.5/lib/puppet/resource.rb#L446-L453

Closes-bug: #1447620
Change-Id: I246a53b90a74aed4b114ffad5ce1995bb9e334dc

10 years agoBring Redhat support to acceptance tests
Emilien Macchi [Mon, 11 May 2015 19:38:43 +0000 (15:38 -0400)]
Bring Redhat support to acceptance tests

OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7.

* Add minitest to Gemfile (dependency to run beaker on centos - see
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* basic_keystone_spec: add case for repo configuration and support
  RH systems.
* rabbitmq: install module from source and on RH, install erlang before rabbitmq-server.

Change-Id: Ie6c823c7906afb37dd9e49fa434fefc3e26b5569
Closes-bug: #1444736

10 years agoBeaker: install APT repo with openstack_extras
Emilien Macchi [Mon, 11 May 2015 19:22:36 +0000 (15:22 -0400)]
Beaker: install APT repo with openstack_extras

Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I5bf3bd0e2e1b8db49752abca823203ff225713c4

10 years agoMerge "Ensure python-mysqldb is installed before MySQL db_sync"
Jenkins [Wed, 6 May 2015 14:20:26 +0000 (14:20 +0000)]
Merge "Ensure python-mysqldb is installed  before MySQL db_sync"

10 years agoMerge "Beaker tests"
Jenkins [Tue, 5 May 2015 08:45:03 +0000 (08:45 +0000)]
Merge "Beaker tests"

10 years agoBeaker tests
Emilien Macchi [Sat, 25 Apr 2015 19:19:58 +0000 (15:19 -0400)]
Beaker tests

Implement basic structure for beaker tests.

Change-Id: I6ca638994e9d2ecc8977a186525c9c41d2be563b
Closes-bug: #1444736

10 years agoEnsure python-mysqldb is installed before MySQL db_sync
Emilien Macchi [Sun, 26 Apr 2015 10:48:24 +0000 (06:48 -0400)]
Ensure python-mysqldb is installed  before MySQL db_sync

When running MySQL for storage backend, we need to make sure
python-mysqldb is installed *before* the db_sync command, otherwise it
will fail:
"ImportError: No module named MySQLdb".

This patch ensure the ordering to ensure puppetlabs-mysql installed the
package before puppet-ceilometer tries to synchronize the MySQLdatabase.

Change-Id: Iae7c8f24fda32357a61ffa3b8597dd3413c303cb

10 years agoBump rspec-puppet to 2.1.0
Emilien Macchi [Wed, 22 Apr 2015 21:12:26 +0000 (17:12 -0400)]
Bump rspec-puppet to 2.1.0

rspec-puppet 2.1.0 includes Puppet 4.0 support [1].

[1] https://github.com/rodjek/rspec-puppet/commits/v2.1.0

Change-Id: I765b70a4eef15eb9df14ea14dd6a65715d0ae637

10 years agoMySQL: change default MySQL collate to utf8_general_ci
Emilien Macchi [Tue, 21 Apr 2015 17:05:47 +0000 (13:05 -0400)]
MySQL: change default MySQL collate to utf8_general_ci

Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: I9fb58a749436873b60b51bb67127ae9524f944db
Closes-bug: #1446375

10 years agoMerge "Synchronize LICENSE file with OpenStack projects"
Jenkins [Mon, 20 Apr 2015 14:26:59 +0000 (14:26 +0000)]
Merge "Synchronize LICENSE file with OpenStack projects"

10 years agoSynchronize LICENSE file with OpenStack projects
Emilien Macchi [Tue, 14 Apr 2015 21:02:51 +0000 (17:02 -0400)]
Synchronize LICENSE file with OpenStack projects

Update LICENSE file to be the same as other OpenStack projects.

Change-Id: Iae45127b6a758f655a8ba82e1c24749793072589
Closes-bug: #1241725

10 years agospec: Add Unit Tests for Ceilometer_config type/provider
Gael Chamoulaud [Fri, 3 Apr 2015 13:15:02 +0000 (15:15 +0200)]
spec: Add Unit Tests for Ceilometer_config type/provider

Change-Id: I0527683055829d3a3b6ff465c48a0caf44c41595
Partial-bug: #1440401
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoPin puppetlabs-concat to 1.2.1 in fixtures
Colleen Murphy [Wed, 15 Apr 2015 22:14:14 +0000 (15:14 -0700)]
Pin puppetlabs-concat to 1.2.1 in fixtures

Puppet Labs is in the process of releasing a 2.0.0 version of
puppetlabs-concat, which will have many breaking changes that affect
many dependent modules. Changes have been merged to master, but not yet
released. While we figure out what changes we need to make in our own
modules and wait for updates in dependent modules, we should just pin
to a stable version.

This module declared concat twice in the fixtures, so we also remove
the second one so that pinning is effective.

Change-Id: I53f6bd56099287bfc075bffb24a9ab4be8133cab

10 years agoMerge "Add udp_address/udp_port parameters for collector."
Jenkins [Fri, 10 Apr 2015 07:45:36 +0000 (07:45 +0000)]
Merge "Add udp_address/udp_port parameters for collector."

10 years agoAdd udp_address/udp_port parameters for collector.
Sofer Athlan-Guyot [Mon, 23 Mar 2015 18:42:41 +0000 (14:42 -0400)]
Add udp_address/udp_port parameters for collector.

Change-Id: Ib776ecda9185caca9ea5c95525f0ffe4487b6a56
Closes-Bug: rhbz/1185652

10 years agoFix some missing rspec3 keywords
Gael Chamoulaud [Fri, 3 Apr 2015 13:10:59 +0000 (15:10 +0200)]
Fix some missing rspec3 keywords

- 'should' keyword should be changed in 'is_expected.to'

Change-Id: I4ac85551285058fb50ba66e12c6b0d0982ff8485
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoTag all Ceilometer packages
Gael Chamoulaud [Sat, 28 Mar 2015 13:05:31 +0000 (14:05 +0100)]
Tag all Ceilometer packages

Some users wish to override the default package provider by their own.

Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.

Closes-bug: #1391209

Change-Id: If43101b9974d26c88f8612da64c5356a644f892e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoMerge "Add Puppet 4.x lint checks"
Jenkins [Mon, 16 Mar 2015 06:16:56 +0000 (06:16 +0000)]
Merge "Add Puppet 4.x lint checks"

10 years agoMerge "spec: updates for rspec-puppet 2.x and rspec 3.x"
Jenkins [Fri, 13 Mar 2015 15:31:04 +0000 (15:31 +0000)]
Merge "spec: updates for rspec-puppet 2.x and rspec 3.x"

10 years agoAdd support for identity_uri.
Dan Prince [Thu, 12 Mar 2015 13:45:46 +0000 (09:45 -0400)]
Add support for identity_uri.

This patch adds the ability to set a new keystone_identity_uri
parameter.  It also deprecates the old keystone_host, keystone_port,
keystone_protocol, and keystone_auth_admin_prefix parameters. Logic
is in place so that users of the deprecated settings should have a
smooth upgrade process and get deprecation warnings until they adopt
the new settings.

Change-Id: Ideefb4d824cbd5b4b83f9eb773a75e536e3458fb

10 years agoAdd Puppet 4.x lint checks
Sebastien Badia [Sun, 22 Feb 2015 21:14:37 +0000 (22:14 +0100)]
Add Puppet 4.x lint checks

This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

This commit also remove custom metadata rake task (this task is now
provided by puppetlabs_spec_helper).

Conflicts:
Gemfile

Change-Id: I22369948db6a2f8ddab9b8c93c3a047ff2e229ca

10 years agospec: updates for rspec-puppet 2.x and rspec 3.x
Sebastien Badia [Sun, 22 Feb 2015 21:02:45 +0000 (22:02 +0100)]
spec: updates for rspec-puppet 2.x and rspec 3.x

This patch aim to update our specs test in order to work with the new
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Ieaff6bc8bdd8548648ff5e76b212d4df382fa8a3
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant

10 years agoAdd support for ceilometer-polling agent
iberezovskiy [Mon, 26 Jan 2015 11:25:43 +0000 (14:25 +0300)]
Add support for ceilometer-polling agent

Add ability to use new ceilometer-polling agent
instead of ceilometer-central, ceilometer-compute or
ceilometer-ipmi. Specify central_namespace, compute_namespace
and ipmi_namespace parameters to set namespaces

Change-Id: I066f601a5234cb689c98e8eea2b5790bdaa5b8b5

10 years agoFix lint issues (doc, metadata, manifests)
Sebastien Badia [Sun, 22 Feb 2015 20:53:35 +0000 (21:53 +0100)]
Fix lint issues (doc, metadata, manifests)

Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix manifest lint issues (due
to puppet-lint upgrade) and metadata.json file (SPDX license, and open
dependencies).

Change-Id: If0cfefec6b2c6865a3078d91a40326082825f8ec