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

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

10 years agospec: pin rspec-puppet to 1.0.1
Sebastien Badia [Tue, 3 Feb 2015 14:32:20 +0000 (15:32 +0100)]
spec: pin rspec-puppet to 1.0.1

rspec-puppet (2.0.0) was released yesterday[1], this new version broke
puppet-openstack unit tests (undefined method `resource')[2] as talked on
and in a second time to update your specs to 2.0.0 and rspec 3.x`)

[1] https://github.com/rodjek/rspec-puppet/commit/8459e14807977244c00bdbcf190062c529b63474
[2] http://logs.openstack.org/45/105245/6/check/gate-puppet-nova-puppet-unit-3.3/3682541/console.html

Change-Id: Ia41394433be65435fc7de6327a5659b26e1a85a5
Partial-bug: #1417604

10 years agoMerge "Deprecate support for Fedora 18"
Jenkins [Wed, 14 Jan 2015 14:41:24 +0000 (14:41 +0000)]
Merge "Deprecate support for Fedora 18"

10 years agoMerge "Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default"
Jenkins [Mon, 12 Jan 2015 23:41:30 +0000 (23:41 +0000)]
Merge "Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default"

10 years agoDeprecate support for Fedora 18
Lukas Bezdicka [Fri, 19 Dec 2014 12:04:04 +0000 (13:04 +0100)]
Deprecate support for Fedora 18

Also fixes error on Rawhide: Error: comparison of String with 18.
Package python-sqlite2 is deprecated since F18. F19 is also EOL.
https://fedoraproject.org/wiki/End_of_life

Change-Id: Id59fd02af92c6d77d49195001fc4f983d66d29dd

10 years agoSwitch to TLSv1 as SSLv3 is considered insecure and is disabled by default
Lukas Bezdicka [Fri, 2 Jan 2015 19:04:10 +0000 (20:04 +0100)]
Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default

Rabbitmq won't talk to us anymore if we try to use SSLv3 as it disabled
support for SSLv3. Openstack components use python's openssl
implementation which does not support TLSv1.1 and TLSv1.2 yet so we
just switch to TLSv1. Support for newer TLS should come with python
2.7.9+

Closes-Bug: #1409667
Change-Id: I00cfa06030b84ae23cb8548b74cf5684562377aa

10 years agoMerge "Implement Ceilometer-API as a WSGI process support"
Jenkins [Mon, 12 Jan 2015 00:14:55 +0000 (00:14 +0000)]
Merge "Implement Ceilometer-API as a WSGI process support"

10 years agoMerge "fixtures: Unpin puppetlabs-mysql module"
Jenkins [Sun, 11 Jan 2015 23:59:00 +0000 (23:59 +0000)]
Merge "fixtures: Unpin puppetlabs-mysql module"

10 years agoMerge "db: Added postgresql backend using openstacklib helper"
Jenkins [Sun, 11 Jan 2015 23:54:37 +0000 (23:54 +0000)]
Merge "db: Added postgresql backend using openstacklib helper"

10 years agoImplement Ceilometer-API as a WSGI process support
Emilien Macchi [Wed, 7 Jan 2015 23:40:33 +0000 (18:40 -0500)]
Implement Ceilometer-API as a WSGI process support

Ceilometer API can be run as a WSGI process.
Let's use openstacklib to run this service under WSGI process by using
Apache2.

Change-Id: I004d7e7a9bfccc4677d5d629503a92a15b6263c6

10 years agoFix syntax error with postgresql database string
Paul Belanger [Tue, 6 Jan 2015 04:52:14 +0000 (23:52 -0500)]
Fix syntax error with postgresql database string

Change-Id: Icc93b18218de57403c1f5d9793dfdd74dcb623d9
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
10 years agodb: Added postgresql backend using openstacklib helper
Sebastien Badia [Tue, 30 Dec 2014 17:55:06 +0000 (18:55 +0100)]
db: Added postgresql backend using openstacklib helper

Standardize ceilometer module, and add postgresql backend.

Change-Id: I6603304cab680185d289e6b284e55deaef437b61
Implements: blueprint commmon-openstack-database-resource

10 years agofixtures: Unpin puppetlabs-mysql module
Sebastien Badia [Tue, 30 Dec 2014 17:39:40 +0000 (18:39 +0100)]
fixtures: Unpin puppetlabs-mysql module

Since commit dd25406 of puppet-openstacklib we don't need to pin a
specific release of puppetlabs-mysql.

Change-Id: Ib7c3b4b1ff012307e8a80ae75de9f7ac3ce18e91

10 years agocrontab: ensure the script is run with shell
Emilien Macchi [Tue, 9 Dec 2014 15:53:50 +0000 (10:53 -0500)]
crontab: ensure the script is run with shell

Some distros does not provide a default shell for Ceilometer user.
We can run the crontab by force shell usage and avoid running
issues.

Closes-bug: #1400523
Change-Id: I3a4d5c958a4620335d062baecfc362fd758768b6

10 years agoMerge "Refactorise Keystone resources management"
Jenkins [Wed, 3 Dec 2014 22:22:16 +0000 (22:22 +0000)]
Merge "Refactorise Keystone resources management"

10 years agoMerge "Add support for configuring coordination/backend_url"
Jenkins [Wed, 26 Nov 2014 13:23:52 +0000 (13:23 +0000)]
Merge "Add support for configuring coordination/backend_url"

10 years agoClean up stray copy-paste error
Colleen Murphy [Tue, 25 Nov 2014 01:51:50 +0000 (17:51 -0800)]
Clean up stray copy-paste error

Change-Id: Ie45c8220d3a7b49b85d3090443eb675a2a3fbd0e

10 years agoRelease 5.0.0 - Juno 5.0.0
Colleen Murphy [Fri, 21 Nov 2014 00:59:10 +0000 (16:59 -0800)]
Release 5.0.0 - Juno

Changes in this release:
* Added package_ensure parameters to various classes to control package installation
* Added ceilometer::policy to control policy.json
* Updated validate_re expressions for Puppet 3.7
* Bumped stdlib dependency to >=4.0.0
* Added manage_service parameters to various classes to control whether the service was managed, as well as added enabled parameters where not already present
* Added parameters to control whether to configure users
* Added the ability to override the keystone service name in keystone::auth
* Migrated the ceilometer::db::mysql class to use openstacklib::db::mysql and deprecated the mysql_module parameter
* Fixed ceilometer-notification package name for RHEL
* Removed deprecation notices for sectionless ceilometer_config types for Juno release
* Added ability to hide secrets from puppet logs

Change-Id: Ifda9dba6ef8a9eb99d1a5d2bf45aa74b210675dc

10 years agoRefactorise Keystone resources management
Emilien Macchi [Fri, 21 Nov 2014 15:06:47 +0000 (10:06 -0500)]
Refactorise Keystone resources management

Refactorise the code of Keystone resources management with backward
compatibility since we don't modify the unit tests.

Change-Id: Iafbe248ef0314b8abc31d22a7631df51e23f2c48
Implements: blueprint common-openstack-identity-resource

10 years agoAdd support for configuring coordination/backend_url
Chris Dent [Thu, 13 Nov 2014 20:24:33 +0000 (20:24 +0000)]
Add support for configuring coordination/backend_url

If 'coordination_url' argument and value is provided to the central agent
or alarm evaluator classes, they will try to set 'backend_url' in the
'[coordination]' section of the ceilometer_config. This allows group
membership handling coordinated by tooz.

ensure_resource is used to avoid duplicate resources while still allowing
the central agent and alarm evaluator to be configured separately if
on different machines.

Note that this change does not include support for enabling coordination
of the compute agent.

Change-Id: I707a8b70ad742cc9f8fdc62c196d0e75574a50b2

10 years agopolicy.pp : Fix duplicate ressource issue openstacklib::policy
Yanis Guenane [Mon, 10 Nov 2014 19:45:07 +0000 (14:45 -0500)]
policy.pp : Fix duplicate ressource issue openstacklib::policy

Currently, in the policy.pp file the class openstacklib::policy
is called. The same apply for all components resulting in a
Duplicate Ressource issue. Using directly the underlying ressource
openstacklib::policy::base we prevent this issue.

Change-Id: Ia384a42365056317ca14031081f8c6e134f266aa

10 years agoMerge "Added metadata lint and puppet-syntax gems"
Jenkins [Sun, 9 Nov 2014 11:25:25 +0000 (11:25 +0000)]
Merge "Added metadata lint and puppet-syntax gems"

10 years agoMerge "policy.json: Allow one to manage them from the puppet module"
Jenkins [Sun, 9 Nov 2014 11:23:58 +0000 (11:23 +0000)]
Merge "policy.json: Allow one to manage them from the puppet module"

10 years agoAdded metadata lint and puppet-syntax gems
Sebastien Badia [Thu, 9 Oct 2014 14:50:53 +0000 (16:50 +0200)]
Added metadata lint and puppet-syntax gems

metadata-json-lint is a little tool to check the validity of
Puppet metatdata.json files.

puppet-syntax tool check the validity of templates,manifests and hiera
files (the goal here is to replace manual checks in the gate by a
standard? check `rake syntax`).

Change-Id: I60b9cdfe27eeb8a8f5ad3a238dd847ed3096cb6b

10 years agoAdd package_ensure where missing
Xav Paice [Tue, 2 Sep 2014 08:59:29 +0000 (20:59 +1200)]
Add package_ensure where missing

This adds package_ensure parameter to:
* ceilometer::agent::central
* ceilometer::agent::compute
* ceilometer::agent::notification
* ceilometer::api
* ceilometer::collector

Change-Id: I3a982882c37a24737d71f9af93d7aa0d7200bdf4

10 years agopolicy.json: Allow one to manage them from the puppet module
Yanis Guenane [Fri, 26 Sep 2014 23:07:49 +0000 (19:07 -0400)]
policy.json: Allow one to manage them from the puppet module

This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.

Change-Id: I413702d5baa0e96c43f9a599e1e06ed23ab23993

10 years agoSwitch to metadata.json for Puppet forge releases
Sebastien Badia [Sat, 27 Sep 2014 09:14:56 +0000 (11:14 +0200)]
Switch to metadata.json for Puppet forge releases

Since puppet 3.x, Puppet Labs Forge accept only the metadata.json file
for module description (Modulefile is now deprecated).

This patch :
 - convert the Modulefile to metadata.json.
 - bump major version to 5 (for juno), and deps.
 - switch to stackforge namespace.
 - relax pe version_requirement to 3.x.

Change-Id: Iff1f059764547634570b763f04833ddbc01f4758

10 years agoMerge "Stringify $evaluation_interval for validate_re call"
Jenkins [Fri, 3 Oct 2014 20:18:33 +0000 (20:18 +0000)]
Merge "Stringify $evaluation_interval for validate_re call"

10 years agoEnsure nova-common is installed before ceilometer
Chris Hoge [Thu, 2 Oct 2014 01:10:50 +0000 (20:10 -0500)]
Ensure nova-common is installed before ceilometer

Ceilometer depends on the nova user and group being
present. This change adds a dependency to nova-common
to ensure that packging will handle the user before
the ceilometer compute agent tries to add user ceilometer
to the nova group.

Fixes bug 1350980

Change-Id: Iaf950c4a487b4b25c9053d59cab4fa45a1f7390b

10 years agoMerge "Make user creation optional when creating service."
Jenkins [Mon, 29 Sep 2014 19:39:13 +0000 (19:39 +0000)]
Merge "Make user creation optional when creating service."

10 years agoMerge "Add manage_service feature"
Jenkins [Mon, 29 Sep 2014 04:13:53 +0000 (04:13 +0000)]
Merge "Add manage_service feature"

10 years agoStringify $evaluation_interval for validate_re call
Mike Dorman [Thu, 18 Sep 2014 18:18:30 +0000 (12:18 -0600)]
Stringify $evaluation_interval for validate_re call

Under Puppet 3.7.x, calls to validate_re fail if the parameter is not
strictly a string.  This change creates a string from
$evaluation_interval when passing to validate_re, so the call will
pass regardless of if the parameter to the class is specified as
string or an integer.

Change-Id: I17b82977f21483acf134837a66c5ecebe346cfdf
Closes-Bug: 1371235

10 years agoUpdate stdlib dependency to 4.x
Colleen Murphy [Mon, 22 Sep 2014 21:53:47 +0000 (14:53 -0700)]
Update stdlib dependency to 4.x

puppetlabs/stdlib 4.x is backwards compatible with 3.x and still tested
on Puppet 2.7. Updating stdlib to 4.x allows modules to use newer
functions without breaking older functionality.

Change-Id: I710daa21f3c1cf5640903243904655817e2a69f2

10 years agoAdd manage_service feature
Martin Magr [Wed, 20 Aug 2014 13:57:55 +0000 (15:57 +0200)]
Add manage_service feature

puppet-ceilometer lacks of disabling service managing. This patch adds
$manage_service parameter to all relevant classes.

Closes-bug: #1359823
Change-Id: Iee545b46ef5d7cf92859356ae84b8103564bf047

10 years agoMake user creation optional when creating service.
Mike Dorman [Wed, 10 Sep 2014 16:39:04 +0000 (11:39 -0500)]
Make user creation optional when creating service.

In some cases it is useful to be able to just configure
the service in Keystone and not the service user. This
is the case when e.g. a read only LDAP backend is used.
Added a parameter configure_user (defaults to true).
Closes-Bug: 1360232

Change-Id: I541224b9bf431da957b9de31909e0aad5c9be187

10 years agoMakes kombu_ssl_* parameters optional when rabbit_use_ssl => true
Mike Dorman [Thu, 4 Sep 2014 19:49:30 +0000 (13:49 -0600)]
Makes kombu_ssl_* parameters optional when rabbit_use_ssl => true

The kombu_ssl_* parameters should not be required when rabbit_use_ssl => true
Rather, rabbit_use_ssl must be set to true if the kombu_ssl_* parameters are
used.

Change-Id: I7664dda2c66ffb34ceb56ada722574ae0e490f8f
Closes-Bug: 1356083

10 years agoMerge "Adds ability to override service name for service catalog"
Jenkins [Wed, 3 Sep 2014 15:15:10 +0000 (15:15 +0000)]
Merge "Adds ability to override service name for service catalog"

10 years agoMerge "Migrate mysql backend to use openstacklib::db::mysql"
Jenkins [Wed, 3 Sep 2014 03:32:40 +0000 (03:32 +0000)]
Merge "Migrate mysql backend to use openstacklib::db::mysql"

10 years agoAdds ability to override service name for service catalog
Mike Dorman [Wed, 13 Aug 2014 15:19:26 +0000 (09:19 -0600)]
Adds ability to override service name for service catalog

Instead of forcing the name of the service in the service catalog to
match auth_name, this allows the ability to explicitly set the service
name, spearately from auth_name.
If service_name is not specified, it's value defaults to the value
of auth_name (which maintains the current behavior.)

Closes-bug: #1359755
Change-Id: I66dadaebb526cfae2b6c250b2bef97e1e6d6aafe

10 years agoAdd extended logging options.
Johannes Grassler [Tue, 12 Aug 2014 12:17:33 +0000 (14:17 +0200)]
Add extended logging options.

There is a range of extended logging options in Openstack services that use
openstack.common.logger (Ceilometer, Cinder, Heat, Keystone, Nova). Adding
ceilometer::logging to support them.

No blueprint/spec, as discussed in the IRC meeting on 08-11-2014.

Change-Id: I910e2f9e4f3ad1991d58ba6df16adfbc85e20131

10 years agoMigrate mysql backend to use openstacklib::db::mysql
Colleen Murphy [Thu, 31 Jul 2014 18:11:26 +0000 (11:11 -0700)]
Migrate mysql backend to use openstacklib::db::mysql

Implements: blueprint commmon-openstack-database-resource
Change-Id: Iaa4f1cfb6a26795112117e2d3230b4a11250e2df

10 years agoFix ceilometer agent notification package error
Xingchao Yu [Thu, 7 Aug 2014 07:05:23 +0000 (15:05 +0800)]
Fix ceilometer agent notification package error

ceilometer-notification package name should be
openstack-ceilometer-notification in RHEL.
See more info in related bug tracker record.

Change-Id: If64f1ea641c5d99c0adf2104a308c2d5442c3324
Closes-Bug: #1353844

10 years agoAdd ability to disable ceilometer-collector without db
Mathieu Gagné [Tue, 5 Aug 2014 15:58:27 +0000 (11:58 -0400)]
Add ability to disable ceilometer-collector without db

You are no longer required to include ceilometer::db when
disabling ceilometer-collector using the enabled parameter.

The relationships with any database resources are now only enforced
when the service is enabled.

Closes-bug: #1352958
Change-Id: I00a5e651184788acdd30de1908e2bf38566f78e1

10 years agoMerge "Use 2.2 as the default mysql_module"
Jenkins [Tue, 29 Jul 2014 23:01:01 +0000 (23:01 +0000)]
Merge "Use 2.2 as the default mysql_module"