debian/0000775000000000000000000000000012551206025007166 5ustar debian/ceilometer-alarm-evaluator.upstart0000664000000000000000000000072012542121447016037 0ustar description "ceilometer-alarm-evaluator" author "Chuck Short " start on runlevel [2345] stop on runlevel [016] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-alarm-evaluator -- --log-dir=/var/log/ceilometer debian/control0000664000000000000000000002046612542121447010605 0ustar Source: ceilometer Section: python Priority: optional Maintainer: Chuck Short Build-Depends: alembic (>= 0.6.0), debhelper (>= 8.0.0), python-all (>= 2.6), python-anyjson (>= 0.3.3), python-babel (>= 0.9.6), python-ceilometerclient (>= 1.0.6), python-croniter, python-coverage, python-docutils, python-eventlet (>= 0.13.0), python-fixtures (>= 0.3.14), python-flask (>= 0.10), python-glanceclient (>= 1:0.9.3), python-httplib2, python-happybase (>= 0.4), python-iso8601 (>=0.1.8), python-jsonpath-rw, python-keystoneclient (>= 1:0.4.1), python-kombu (>= 2.4.8), python-lxml (>= 2.3), python-lockfile (>= 0.8), python-migrate, python-mock, python-mox, python-msgpack, python-mysqldb, python-netaddr (>= 0.7.6), python-nova, python-novaclient (>= 1:2.15.0), python-oslo.config (>= 1:1.2.0), python-oslo.sphinx, python-pbr (>= 0.5.21), python-pecan (>= 0.2.0), python-pymongo (>= 2.6), python-requests (>= 1.1), python-simplejson, python-sphinx, python-sqlalchemy (>= 0.8.2), python-stevedore (>= 0.13), python-subunit, python-six (>= 1.5.2), python-swift, python-swiftclient (>= 1.5), python-testscenarios (>= 0.4), python-testtools (>= 0.9.32), python-webob (>= 1.2.3), python-wsme (>= 0.5b6), python-yaml (>= 3.1.0), testrepository (>= 0.0.17) Standards-Version: 3.9.4 Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/ceilometer/icehouse/files Vcs-Bzr: https://code.launchpad.net/~ubuntu-server-dev/ceilometer/icehouse Package: python-ceilometer Architecture: all Depends: alembic (>= 0.6.0), python-msgpack, python-anyjson (>= 0.3.3), python-ceilometerclient (>= 1.0.6), python-eventlet (>= 0.13.0), python-flask (>= 0.10), python-glanceclient (>= 1:0.9.3), python-happybase (>= 0.4), python-iso8601 (>= 0.1.8), python-keystoneclient (>= 1:0.4.1), python-kombu (>= 2.4.8), python-lxml (>= 2.3), python-lockfile (>= 0.8), python-migrate, python-netaddr, python-novaclient (>= 1:2.15.0), python-oslo.config (>= 1:1.2.0), python-pecan (>= 0.2.0), python-pymongo (>= 2.6), python-six (>= 1.5.2), python-yaml (>= 3.1.0), python-requests (>= 1.1), python-sqlalchemy (>= 0.8.2), python-stevedore (>= 0.12), python-swiftclient (>= 1.5), python-webob (>= 1.2.3), python-wsme (>= 0.5b6), ${misc:Depends}, ${python:Depends} Suggests: python-pysnmp4 Description: ceilometer python libraries Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the python libraries that are needed for all parts of ceilometer Package: ceilometer-common Architecture: all Depends: adduser, python-ceilometer (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} Description: ceilometer common files Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains files that are needed for all parts of ceilometer Package: ceilometer-collector Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Suggests: mongodb Description: ceilometer collector service Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the collector service Package: ceilometer-api Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Suggests: mongodb Description: ceilometer api service Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . This package contains the api service Package: ceilometer-agent-compute Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Description: ceilometer compute agent Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the compute agent Package: ceilometer-agent-central Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Description: ceilometer central agent Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the central agent. Package: ceilometer-agent-notification Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Description: ceilometer notification agent Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the notification agent. Package: ceilometer-alarm-evaluator Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Description: Ceilometer alarm evaluator Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the alarm evaluator daemon. Package: ceilometer-alarm-notifier Architecture: all Depends: ceilometer-common (= ${binary:Version}), ${misc:Depends}, ${python:Depends} Description: Ceilometer notification agent Ceilometer aims to deliver a unique point of contact for billing systems to aquire all counters they need to establish customer billing, accross all current and future OpenStack components. The delivery of counters must be tracable and auditable, the counters must be easily extensible to support new projects, and agents doing data collections should be independent of the overall system. . (A ceilometer is an instrument that measures cloud coverage.) . This package contains the alarm notifier daemon. debian/ceilometer-agent-central.upstart0000664000000000000000000000065512542121447015476 0ustar description "ceilometer-agent-compute" author "Chuck Short " start on runlevel [2345] stop on runlevel [!2345] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-agent-central debian/source/0000775000000000000000000000000012542121447010472 5ustar debian/source/format0000664000000000000000000000001412542121447011700 0ustar 3.0 (quilt) debian/ceilometer-agent-notification.upstart0000664000000000000000000000070312542121447016526 0ustar description "ceilometer-agent-notification" author "Yolanda Robla " start on runlevel [2345] stop on runlevel [!2345] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-agent-notification debian/ceilometer-api.postrm0000664000000000000000000000014212542121447013334 0ustar #!/bin/sh -e if [ "$1" = purge ]; then update-rc.d ceilometer-api remove fi #DEBHELPER# debian/ceilometer-api.upstart0000664000000000000000000000070212542121447013514 0ustar description "ceilometer-agent-compute" author "Chuck Short " start on runlevel [2345] stop on runlevel [016] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-api -- --log-dir=/var/log/ceilometer debian/rules0000775000000000000000000000134212542121447010252 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export HOME="$(CURDIR)/debian/test" %: dh $@ --with python2 get-orig-source: uscan --verbose --force-download --rename --destdir=../build-area ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: patch -p1 -R < debian/patches/default-dbconnection-sqlite.patch testr init && PYTHONPATH="$(CURDIR)" testr run || true patch -p1 < debian/patches/default-dbconnection-sqlite.patch endif override_dh_install: cp etc/ceilometer/ceilometer.conf.sample etc/ceilometer/ceilometer.conf dh_install --fail-missing override_dh_auto_clean: dh_auto_clean rm -f etc/ceilometer/ceilometer.conf rm -rf .testrepository rm -rf pbr*.egg debian/ceilometer-agent-compute.postrm0000664000000000000000000000015412542121447015336 0ustar #!/bin/sh -e if [ "$1" = purge ]; then update-rc.d ceilometer-agent-compute remove fi #DEBHELPER# debian/ceilometer-agent-compute.install0000664000000000000000000000004112542121447015453 0ustar usr/bin/ceilometer-agent-compute debian/ceilometer-agent-notification.install0000664000000000000000000000004612542121447016472 0ustar usr/bin/ceilometer-agent-notification debian/ceilometer-common.postinst0000664000000000000000000000154612542121447014423 0ustar #!/bin/sh -e if [ "$1" = "configure" ]; then if ! getent group ceilometer > /dev/null 2>&1; then addgroup --system ceilometer >/dev/null fi if ! getent passwd ceilometer > /dev/null 2>&1; then adduser --system --home /var/lib/ceilometer --ingroup ceilometer --no-create-home --shell /bin/false ceilometer fi chown -R ceilometer:adm /var/log/ceilometer chmod 0750 /var/log/ceilometer chown -R ceilometer:ceilometer /var/lib/ceilometer /etc/ceilometer if grep -qE "^(sql_)?connection.*sqlite.*" /etc/ceilometer/ceilometer.conf then su -s /bin/sh -c '/usr/bin/ceilometer-dbsync' ceilometer fi if [ -e /var/lib/ceilometer/ceilometer.sqlite ]; then chown ceilometer:ceilometer /var/lib/ceilometer/ceilometer.sqlite chmod 0600 /var/lib/ceilometer/ceilometer.sqlite fi fi #DEBHELPER# debian/watch0000775000000000000000000000036312542121447010230 0ustar version=3 opts="uversionmangle=s/\.([a-zA-Z])/~$1/;s/%7E/~/" \ http://tarballs.openstack.org/ceilometer/ ceilometer-(.*)\.tar\.gz # https://launchpad.net/ceilometer/+download https://launchpad.net/ceilometer/.*/.*/.*/ceilometer-(.*)\.tar\.gz debian/ceilometer-alarm-evaluator.install0000664000000000000000000000004312542121447016001 0ustar usr/bin/ceilometer-alarm-evaluator debian/pydist-overrides0000664000000000000000000000004112542121447012424 0ustar pymongo python-pymongo happybase debian/README.Debian0000664000000000000000000000023212542121447011230 0ustar In order to configure both the agents and collector you have to put notification_topics 'notifications,glance_notifications' in your /etc/nova/nova.conf. debian/ceilometer-agent-central.install0000664000000000000000000000004112542121447015427 0ustar usr/bin/ceilometer-agent-central debian/ceilometer-agent-compute.upstart0000664000000000000000000000065512542121447015522 0ustar description "ceilometer-agent-compute" author "Chuck Short " start on runlevel [2345] stop on runlevel [!2345] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-agent-compute debian/patches/0000775000000000000000000000000012551206023010613 5ustar debian/patches/0001-Optimize-resource-list-query.patch0000664000000000000000000001446712551206023017767 0ustar Description: Optimize resource list query Instead of 2 queries per resource to fetch min and max sample timestamp value, replaced with a single query of similar cost. Another query of lesser cost to retrieve the resource details. Origin: upstream, https://review.openstack.org/142951 Bug-Ubuntu: https://launchpad.net/bugs/1404076 --- ceilometer-2014.1.5.orig/ceilometer/storage/impl_sqlalchemy.py +++ ceilometer-2014.1.5/ceilometer/storage/impl_sqlalchemy.py @@ -447,64 +447,67 @@ class Connection(base.Connection): if pagination: raise NotImplementedError('Pagination not implemented') - def _apply_filters(query): - #TODO(gordc) this should be merged with make_query_from_filter - for column, value in [(models.Sample.resource_id, resource), - (models.Sample.user_id, user), - (models.Sample.project_id, project)]: - if value: - query = query.filter(column == value) - if source: - query = query.filter( - models.Sample.sources.any(id=source)) - if metaquery: - query = apply_metaquery_filter(session, query, metaquery) - if start_timestamp: - if start_timestamp_op == 'gt': - query = query.filter( - models.Sample.timestamp > start_timestamp) - else: - query = query.filter( - models.Sample.timestamp >= start_timestamp) - if end_timestamp: - if end_timestamp_op == 'le': - query = query.filter( - models.Sample.timestamp <= end_timestamp) - else: - query = query.filter( - models.Sample.timestamp < end_timestamp) - return query + s_filter = storage.SampleFilter(user=user, + project=project, + source=source, + start_timestamp=start_timestamp, + start_timestamp_op=start_timestamp_op, + end_timestamp=end_timestamp, + end_timestamp_op=end_timestamp_op, + metaquery=metaquery, + resource=resource) session = self._get_db_session() # get list of resource_ids - res_q = session.query(distinct(models.Sample.resource_id)) - res_q = _apply_filters(res_q) + res_q = session.query(distinct(models.Resource.resource_id)).join( + models.Sample, + models.Sample.resource_id == models.Resource.internal_id) + res_q = make_query_from_filter(session, res_q, s_filter, + require_meter=False) for res_id in res_q.all(): - # get latest Sample - max_q = session.query(models.Sample)\ - .filter(models.Sample.resource_id == res_id[0]) - max_q = _apply_filters(max_q) - max_q = max_q.order_by(models.Sample.timestamp.desc(), - models.Sample.id.desc()).limit(1) - - # get the min timestamp value. - min_q = session.query(models.Sample.timestamp)\ - .filter(models.Sample.resource_id == res_id[0]) - min_q = _apply_filters(min_q) - min_q = min_q.order_by(models.Sample.timestamp.asc()).limit(1) - - sample = max_q.first() - if sample: - yield api_models.Resource( - resource_id=sample.resource_id, - project_id=sample.project_id, - first_sample_timestamp=min_q.first().timestamp, - last_sample_timestamp=sample.timestamp, - source=sample.sources[0].id, - user_id=sample.user_id, - metadata=sample.resource_metadata - ) + # get max and min sample timestamp value + min_max_q = (session.query(func.max(models.Sample.timestamp) + .label('max_timestamp'), + func.min(models.Sample.timestamp) + .label('min_timestamp')) + .join(models.Resource, + models.Resource.internal_id == + models.Sample.resource_id) + .filter(models.Resource.resource_id == + res_id[0])) + + min_max_q = make_query_from_filter(session, min_max_q, s_filter, + require_meter=False) + + min_max = min_max_q.first() + + # get resource details for latest sample + res_q = (session.query(models.Resource.resource_id, + models.Resource.user_id, + models.Resource.project_id, + models.Resource.source_id, + models.Resource.resource_metadata) + .join(models.Sample, + models.Sample.resource_id == + models.Resource.internal_id) + .filter(models.Sample.timestamp == + min_max.max_timestamp) + .filter(models.Resource.resource_id == + res_id[0]) + .order_by(models.Sample.id.desc()).limit(1)) + + res = res_q.first() + + yield api_models.Resource( + resource_id=res.resource_id, + project_id=res.project_id, + first_sample_timestamp=min_max.min_timestamp, + last_sample_timestamp=min_max.max_timestamp, + source=res.source_id, + user_id=res.user_id, + metadata=res.resource_metadata + ) def get_meters(self, user=None, project=None, resource=None, source=None, metaquery={}, pagination=None): debian/patches/default-dbconnection-sqlite.patch0000664000000000000000000000224112542121447017227 0ustar diff --git a/etc/ceilometer/ceilometer.conf.sample b/etc/ceilometer/ceilometer.conf.sample index 80964a7..7668dea 100644 --- a/etc/ceilometer/ceilometer.conf.sample +++ b/etc/ceilometer/ceilometer.conf.sample @@ -126,7 +126,7 @@ # # The file name to use with SQLite (string value) -#sqlite_db=ceilometer.sqlite +sqlite_db=ceilometer.sqlite # If True, SQLite uses synchronous mode (boolean value) #sqlite_synchronous=true @@ -148,7 +148,7 @@ # -# Options defined in ceilometer.openstack.common.lockutils +#Options defined in ceilometer.openstack.common.lockutils # # Whether to disable inter-process locks. (boolean value) @@ -598,7 +598,7 @@ # The backend to use for db (string value) # Deprecated group/name - [DEFAULT]/db_backend -#backend=sqlalchemy +backend=sqlalchemy # @@ -610,7 +610,8 @@ # Deprecated group/name - [DEFAULT]/sql_connection # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection -#connection=sqlite:////ceilometer/openstack/common/db/$sqlite_db +connection=sqlite:////var/lib/ceilometer/$sqlite_db + # The SQLAlchemy connection string used to connect to the # slave database (string value) debian/patches/fix-requirements.patch0000664000000000000000000000124412542121447015152 0ustar Description: Disable pynsmp and set min version of pecan/six. Author: Corey Bryant Forwarded: Not needed. --- a/requirements.txt +++ b/requirements.txt @@ -18,8 +18,7 @@ netaddr>=0.7.6,<=0.7.14 oslo.config>=1.2.0,<1.5 pbr>=0.6,<1.0 -pecan>=0.4.5,<=0.8.3 -pysnmp>=4.2.1,<5.0.0 +pecan>=0.3.0,<=0.8.3 python-ceilometerclient>=1.0.6,<=1.0.12 python-glanceclient>=0.9.0,!=0.14.0,<=0.14.2 python-keystoneclient>=0.7.0,<0.12.0 @@ -28,7 +27,7 @@ pytz>=2010h,<=2015.2 PyYAML>=3.1.0,<=3.11 requests>=1.1,<=2.6.0 -six>=1.6.0,<=1.9.0 +six>=1.5.2,<=1.9.0 SQLAlchemy>=0.7.8,!=0.9.5,<=0.9.99 sqlalchemy-migrate>=0.8.2,!=0.8.4,<=0.9.1 stevedore>=0.14 debian/patches/series0000664000000000000000000000014112551206023012024 0ustar fix-requirements.patch default-dbconnection-sqlite.patch 0001-Optimize-resource-list-query.patch debian/tests/0000775000000000000000000000000012542121447010334 5ustar debian/tests/control0000664000000000000000000000032212542121447011734 0ustar Tests: test_daemons test_python_ceilometer Depends: python-ceilometer, ceilometer-common, ceilometer-collector, ceilometer-api, ceilometer-agent-compute, ceilometer-agent-central, ceilometer-agent-notification debian/tests/test_python_ceilometer0000664000000000000000000000023312542121447015045 0ustar #!/usr/bin/python #------------------------- # Testing client utilities #------------------------- import ceilometer print "Imported ceilometer module OK" debian/tests/test_daemons0000664000000000000000000000064512542121447012751 0ustar #!/bin/bash #--------------------------- # Testing ceilometer-daemons #--------------------------- set -e DAEMONS=('ceilometer-collector' 'ceilometer-api' 'ceilometer-agent-compute' 'ceilometer-agent-central', 'ceilometer-agent-notification') for daemon in "${DAEMONS[@]}"; do if pidof -x $daemon > /dev/null; then echo "OK" else echo "ERROR: ${daemon} IS NOT RUNNING" exit 1 fi done debian/ceilometer-common.dirs0000664000000000000000000000006512542121447013474 0ustar etc/ceilometer var/lib/ceilometer var/log/ceilometer debian/ceilometer-collector.upstart0000664000000000000000000000065112542121447014734 0ustar description "ceilometer-agent-compute" author "Chuck Short " start on runlevel [2345] stop on runlevel [!2345] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-collector debian/docs0000664000000000000000000000001312542121447010037 0ustar README.rst debian/ceilometer-collector.install0000664000000000000000000000003512542121447014674 0ustar usr/bin/ceilometer-collector debian/python-ceilometer.install0000664000000000000000000000004012542121447014223 0ustar usr/lib/python*/dist-packages/* debian/ceilometer-alarm-notifier.upstart0000664000000000000000000000071612542121447015661 0ustar description "ceilometer-alarm-notifier" author "Chuck Short " start on runlevel [2345] stop on runlevel [016] chdir /var/run pre-start script mkdir -p /var/run/ceilometer chown ceilometer:ceilometer /var/run/ceilometer mkdir -p /var/lock/ceilometer chown ceilometer:ceilometer /var/lock/ceilometer end script exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-alarm-notifier -- --log-dir=/var/log/ceilometer debian/ceilometer-collector.postrm0000664000000000000000000000015012542121447014550 0ustar #!/bin/sh -e if [ "$1" = purge ]; then update-rc.d ceilometer-collector remove fi #DEBHELPER# debian/copyright0000664000000000000000000000346412542121447011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ceilometer Source: https://github.com/stackforge/ceilometer Files: * Copyright: 2012 New Dream Network, LLC (DreamHost) 2012 eNovance 2012 Red Hat Inc. 2010 United States Government 2011 Cloudscaling Group, Inc 2011 OpenStack LLC. 2012 Nicolas Barcet for Canonical License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian-based systems the full text of the Apache version 2.0 license can be found in `/usr/share/common-licenses/Apache-2.0'. Files: debian/* Copyright: 2012 Canonical Ltd License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian-based systems the full text of the Apache version 2.0 license can be found in `/usr/share/common-licenses/Apache-2.0'. debian/ceilometer-common.install0000664000000000000000000000045712542121447014206 0ustar etc/ceilometer/ceilometer.conf etc/ceilometer etc/ceilometer/pipeline.yaml etc/ceilometer etc/ceilometer/policy.json etc/ceilometer etc/ceilometer/sources.json etc/ceilometer tools/show_data.py usr/share/doc/ceilometer usr/bin/ceilometer-dbsync usr/bin/ceilometer-expirer usr/bin/ceilometer-send-sample debian/ceilometer-api.install0000664000000000000000000000002712542121447013460 0ustar usr/bin/ceilometer-api debian/changelog0000664000000000000000000003756212551206025011055 0ustar ceilometer (2014.1.5-0ubuntu2) trusty; urgency=medium * 0001-Optimize-resource-list-query.patch: Optimize resource list query. (LP: #1404076). -- Jorge Niedbalski Tue, 14 Jul 2015 08:18:13 -0500 ceilometer (2014.1.5-0ubuntu1) trusty; urgency=medium * Resynchronize with stable/icehouse (04b66db) (LP: #1467533): - [737e899] Fixes ceilometer-compute service start failure - [04b66db] fix the value of query_spec.maxSample to advoid to be zero * d/p/fix-requirements.patch: Rebased. -- Corey Bryant Mon, 22 Jun 2015 10:11:03 -0400 ceilometer (2014.1.4-0ubuntu2) trusty; urgency=medium * d/control: Set minimum python-six dependency to 1.5.2 (LP: #1403114). -- Corey Bryant Mon, 30 Mar 2015 08:39:45 -0400 ceilometer (2014.1.4-0ubuntu1) trusty; urgency=medium * Resynchronize with stable/icehouse (c837d83) (LP: #1432608): - [bc9013b] Transform sample_cnt type to int - [449f9d5] Move oslo.vmware higher in requirements.txt - [28f5027] Fix listener for update.start notifications - [63d934b] ensure dispatcher service is configured before rpc - [2a546ac] Fix a response header bug in the error middleware - [c837d83] Iterates swift response earlier to get the correct status * d/p/fix-requirements.patch: Rebased. -- Corey Bryant Thu, 19 Mar 2015 08:53:13 +0000 ceilometer (2014.1.3-0ubuntu1) trusty; urgency=medium [ Corey Bryant ] * Resynchronize with stable/icehouse (4e2c1cd) (LP: #1377136): - [ccd6b98] VMware: Support secret host_password option - [7ff220f] Fix tests with testtools>=0.9.39 - [014c41e] update default_log_levels set by ceilometer - [0ba75c8] fix statistics query in postgres - [4e2c1cd] fix StringIO errors in unit test * d/p/fix-requirements.patch: Rebased. -- Chuck Short Fri, 03 Oct 2014 15:21:02 -0400 ceilometer (2014.1.2-0ubuntu1) trusty; urgency=medium [ Corey Bryant ] * Resynchronize with stable/icehouse (2b6454f) (LP: #1354159): - [e491837] Set python hash seed to 0 in tox.ini - [99b7ef8] Update ensure()/reconnect() to catch MessagingError - [af1eb64] Sync RPC module from oslo, fixing reconnect failures - [47770db] Adds Content-Type to alarm REST notifier - [4be8616] Remove low-value logging from publication codepath - [096106f] Ensure routing key is specified in the address for a direct producer - [2b6454f] remove token from notifier middleware * d/p/fix-requirements.patch: Refresh. [ James Page ] * d/watch: Point to tarballs.openstack.org for release artifacts. -- Corey Bryant Thu, 07 Aug 2014 21:57:17 -0400 ceilometer (2014.1.1-0ubuntu1) trusty; urgency=medium * Resynchronize with stable/icehouse (a1ec218) (LP: #1328134): - [84635e6] Fix testing gate due to new keystoneclient release - [c52904d] Fix network notifications of neutron bulk creation - [06eb8bc] Sync kombu_reconnect_delay from Oslo - [d247af3] Updated from global requirements - [82eed26] Disable specifying alarm itself in combination rule - [94c12fd] Adapt failing tests for latest wsme version - [a1ec218] Use known protocol scheme in keystone tests -- Corey Bryant Mon, 09 Jun 2014 14:49:20 -0400 ceilometer (2014.1-0ubuntu1.1) trusty; urgency=medium * d/p/fix-requirements.patch: Drop required version of pecan to 0.3.0 inline with the version that is provided in 14.04 (LP: #1317147). -- James Page Fri, 16 May 2014 12:11:00 -0400 ceilometer (2014.1-0ubuntu1) trusty; urgency=medium * New upstream release (LP: #1299055). -- Corey Bryant Wed, 16 Apr 2014 13:04:53 -0400 ceilometer (2014.1~rc3-0ubuntu1) trusty; urgency=medium * New upstream release candidate (LP: #1299055). -- Chuck Short Tue, 15 Apr 2014 20:29:38 -0400 ceilometer (2014.1~rc2-0ubuntu1) trusty; urgency=medium [ James Page ] * d/ceilometer-common.postinst: Only run db sync process if default sqlite connection is configured in /etc/ceilometer/ceilometer.conf (LP: #1182964). [ Chuck Short ] * New upstream release (LP: #1299055). -- Chuck Short Tue, 08 Apr 2014 15:41:50 -0400 ceilometer (2014.1~rc1-0ubuntu1) trusty; urgency=medium * New upstream release. -- Corey Bryant Mon, 31 Mar 2014 11:50:09 -0400 ceilometer (2014.1~b3-0ubuntu3) trusty; urgency=medium * debian/patches/fix-requirements.patch: Explicity disable snmp. -- Chuck Short Thu, 20 Mar 2014 13:12:54 -0400 ceilometer (2014.1~b3-0ubuntu2) trusty; urgency=medium * d/p/default-dbconnection-sqlite.patch: Fix default sqlite connection URL. * d/control: Fixup typo in notification agent description (LP: #1267127). -- James Page Thu, 13 Mar 2014 16:51:52 +0000 ceilometer (2014.1~b3-0ubuntu1) trusty; urgency=medium * New upstream release. * debian/patches/debian/patches/default-dbconnection-sqlite.patch: Refreshed. * debian/patches/fix-setup-requirements.patch: Dropped no longer needed. * debian/patches/skip-database-tests.patch: Dropped no longer needed. * debian/patches/revert-keystone-compat.patch: Dropped no longer needed. * debian/control: - Bump python-stevedore to 0.13. - Add python-croniter as a build dependency. - Suggest python-pysnmp4. * debian/cielometer-common.install: Add ceilometer-sample -- Chuck Short Thu, 06 Mar 2014 14:44:28 -0500 ceilometer (2014.1~b2-0ubuntu1) trusty; urgency=medium [ James Page ] * d/control: Add python-jsonpath-rw to BD's. * d/p/fix-setup-requirements.patch: Bump WebOb to support < 1.4. (LP: #1261101) [ Chuck Short ] * New upstream version. * debian/control, debian/ceilometer-common.install: Split out ceilometer-alarm-evaluator and ceilometer-alarm-notifier into their own packages. (LP: #1250002) * debian/ceilometer-agent-central.logrotate, debian/ceilometer-agent-compute.logrotate, debian/ceilometer-api.logrotate, debian/ceilometer-collector.logrotate: Add logrotate files, thanks to Ahmed Rahal. (LP: #1224223) * Fix typos in upstart files. -- Chuck Short Thu, 23 Jan 2014 15:08:11 -0500 ceilometer (2014.1~b1-0ubuntu1) trusty; urgency=low [ Chuck Short ] * New upstream release. * debian/control: - Open icehouse release. - Renamed msgpack-python to python-msgpack. - Bump build dependency version for python-ceilometerclient, python-novaclient, python-keystoneclient, python-six, python-wsme. * debian/patches/fix-setup-requirements.patch: Refreshed. * debian/patches/skip-database-tests.patch: Refreshed. * debian/rules: Temporarily disable testsuite. [ Yolanda Robla ] * debian/patches/fix-setup-requirements.patch: Refreshed. * debian/patches/default-dbconnection-sqlite.patch: Refreshed * debian/ceilometer-collector.install: Removed usr/bin/ceilometer-collector-udp * Added ceilometer-agent-notification package: - debian/control: added ceilometer-agent-notification package - debian/ceilometer-agent-notification.*: added install, upstart - debian/tests: added ceilometer-agent-notification to tests * debian/control: updated build-depends and depends versions [ James Page ] * debian/control: Add missing BD on python-mysqldb. -- Chuck Short Thu, 05 Dec 2013 11:59:04 -0500 ceilometer (2013.2-0ubuntu1) saucy; urgency=low * New upstream release (LP: #1236462). -- Chuck Short Thu, 17 Oct 2013 09:38:31 -0400 ceilometer (2013.2~rc2-0ubuntu1) saucy; urgency=low * New upstream release candidate (LP: #1239156): - d/p/revert-keystone-compat.patch: Revert keystoneclient 0.4.0 compat fix as this causes test failures against 0.3.4. * d/control: Drop a3 from versioned dependency on python-oslo.config. -- James Page Mon, 14 Oct 2013 10:30:03 +0100 ceilometer (2013.2~rc1-0ubuntu1) saucy; urgency=low * debian/patches/fix-setup-requirements.patch: Dropped no longer needed. * debian/patches/skip-database.patch: Refreshed * debian/control: - Add versioned dependency for python-pbr. - Bump version dependency for python-webob. - Add versioned dependency for alembic. - Bump versioned dependency for python-sqlalchemy. - Add versioned dependency for python-pymongo. - Add versioned dependency for python-eventlet. - Dropped python-extras dependency. - Bump versioned dependency for python-flask. - Bump versioned dependency for python-stevedore. - Add versioned dependency for python-glanceclient. - Bump versioned dependency for python-novaclient. - Bump versioned dependency for python-keystoneclient. - Bump versioned dependency for python-ceilometerclient. - Add versioned dependency for python-lxml. - Bump versioned dependency for python-wsme. - Dropped python-netifaces dependency. - Added python-httplib2 build dependency. - Bump versioned dependency for python-fixtures. - Bump versioned dependency for testrepository. - Added versioned dependency for python-testtools. - Added versioned dependency for python-swiftclient. - Dropped python-cinderclient dependency. - Dropped python-lockfile dependency. - Dropped python-setuptoools-git dependency. - Dropped python-unittest2 dependency. - Dropped python-d2to1 dependency. - Added versioned dependency for python-testtools. - Added binary dependency for python-netaddr. - Add python-six as a dependency. * debian/patches/fix-setup-requirements.patch: Bump sqlachemy version. * debian/ceilometer-common.install: - Dropped ceilometer-alarm-singleton, no longer exists. - Added usr/bin/ceilometer-alarm-evaluator. -- Chuck Short Thu, 03 Oct 2013 08:40:40 -0400 ceilometer (2013.2~b3-0ubuntu1) saucy; urgency=low [ Chuck Short ] * New upstream release. * debian/patches/fix-setup-requirements.patch: Refreshed * debian/patches/skip-database.patch: Refreshed [ Yolanda Robla ] * debian/control,debian/tests: Add basic autopkgtests. [ Adam Gandelman ] * debian/patches/default-dbconnection-sqlite.patch: Set 'connection' flag in [database] section, referencing 'sqlite_db' (LP: #1221956). * debian/patches/skip-database-tests.patch: Also patch out db2 and hbase scenarios in v2 test_statistics_scenarios.py. * debian/rules: Clean python-pbr egg if it exists, set PYTHONPATH to build dir when running tests. -- Chuck Short Sat, 07 Sep 2013 15:58:58 -0400 ceilometer (2013.2~b2-0ubuntu4) saucy; urgency=low * debian/patches/skip-database-tests.patch: Refreshed due to precise failures. -- Chuck Short Sun, 28 Jul 2013 21:58:31 -0400 ceilometer (2013.2~b2-0ubuntu3) saucy; urgency=low * debian/rules: Enable testsuite. * debian/control: Fix up run time dependencies. * debian/patches/fix-setup-requirements.patch: Refreshed * debian/patches/skip-database-tests.patch: Refreshed -- Chuck Short Mon, 22 Jul 2013 15:17:35 -0400 ceilometer (2013.2~b2-0ubuntu2) saucy; urgency=low * debian/control: Fix sqlalchemy dependency. -- Chuck Short Fri, 19 Jul 2013 14:51:18 -0400 ceilometer (2013.2~b2-0ubuntu1) saucy; urgency=low [ Yolanda Robla ] * debian/patches/default-dbconnection-sqlite.patch: updated db section [ Chuck Short ] * New upstream version. * debian/patches/default-dbconnection-sqlite.patch: Refreshed. * debian/control: Bump requirements for stevedore to 0.9. * debian/control: Add python-simplejson * debian/control: Drop python-keystoneclient hardcoded version. * debian/control: Add python-testscenarios as a build depends. * debian/control: Add python-cinderclient as a build depends. * debian/control: Add python-ceilometerclient as a build depends. * debian/control: Add python-alembic as build depends. * debian/control: Add python-oslo.sphinx as build-depends. * debian/control: Update runtime depends. * debian/control: Add python-happybase. * debian/ceilometer-common.install: Add ceilometer-alarm-singleton, ceilometer-alarm-notifier, and ceilometer-expirer. * debian/patches/skip-database-tests.patch: Skip database tests if the database is not installed. [ James Page ] * d/control: Update VCS fields for new branch locations. -- Chuck Short Fri, 19 Jul 2013 10:04:36 -0400 ceilometer (2013.2~b1-0ubuntu1) saucy; urgency=low * New upstream release. * debian/rules: Add fail-missing if binaries are missing from the packages. * debian/control: Add python-happybase as build-dependencies. * debian/control: Add python-pbr and python-d2to1 as build-dependencies * debian/control: Add python-fixtures as build-dependencies. * debian/control: Add python-nova as build-dependencies. * debian/control: Add python-testtools * debian/control: Add msgpack-python. * debian/patches/requests-dep.patch: Dropped no longer needed. * debian/patches/remove-hbase-support.patch: Dropped no longer neded. * debian/patches/default-dbconnection-sqlite.patch: Refreshed. * debian/rules: Use testr instead of nosetests to run tests. * debian/ceilometer-collector.install: Added usr/bin/ceilometer-collector-udp. -- Chuck Short Fri, 31 May 2013 10:29:16 -0500 ceilometer (2013.1-0ubuntu1) raring; urgency=low * New upstream release. -- Chuck Short Fri, 05 Apr 2013 14:34:37 -0500 ceilometer (2013.1~rc1-0ubuntu1) raring; urgency=low [ Chuck Short ] * New upstream release. * debian/watch: point to the right releases. * debian/rules: Enable testsuite. * debian/ceilometer-agent-compute.postinst: Add smarts to configure users after install. * debian/ceilometer-common.postinst: Configure ceilometer db. * debian/ceilometer-common.install: Install configuration files. * debian/*.upstart: Update and use start-stop-daemon. [ James Page ] * Added watch file. * d/rules: Fixup test suite execution as much as possible: - Set PYTHONPATH to CURDIR during execution. - Provide HOME directory for keystone tests. - Override clean to tidy up after execution. * d/control: Tidied BD's: - Drop python-ming (not the right ming). - python-oslo-config -> python-oslo.config. - Dropped misc other surplus/duplicate dependencies. - Wrapped and sorted. * d/p/request-dep.patch: Remove upper bound on python-requests inline with the rest of OpenStack. * d/p/remove-hbase-support.patch: Remove happybase dependency. * d/control: Bumped Standards-Version, no changes. [ Yolanda Robla ] * d/rules: Copy ceilometer.conf.sample to ceilometer.conf. * d/ceilometer-common.install: Install ceilometer.conf and ceilometer-dbsync. * d/ceilometer-common.postinst: fixing user/group creation. * d/*.upstart: Fix upstart jobs. * d/pydist-overrides: Correct pymongo and wsme package names. * d/control: modified mongodb recommends to suggests (LP: #1131627). * d/files: copying pipeline.yaml. * d/control: fixed typo (LP: #1140309). * d/patches/default-dbconnection-sqlite.patch: default db to sqlite -- Chuck Short Tue, 26 Mar 2013 11:23:03 -0500 ceilometer (0.1-0ubuntu2) raring; urgency=low * Fix typo in debian/control (ceioleter -> ceilometer) (LP: #1140309) -- Hans Joachim Desserud Sun, 03 Mar 2013 20:08:39 +0100 ceilometer (0.1-0ubuntu1) quantal; urgency=low * New upstream release. -- Chuck Short Fri, 12 Oct 2012 09:34:05 -0500 ceilometer (0~20121002-0ubuntu2) quantal; urgency=low * Fix two typos in dependencies in debian/control (LP: #1063244) -- Adam Conrad Sun, 07 Oct 2012 07:49:55 -0600 ceilometer (0~20121002-0ubuntu1) quantal; urgency=low * Initial release. -- Chuck Short Wed, 03 Oct 2012 13:00:29 -0500 debian/ceilometer-agent-central.postrm0000664000000000000000000000015412542121447015312 0ustar #!/bin/sh -e if [ "$1" = purge ]; then update-rc.d ceilometer-agent-central remove fi #DEBHELPER# debian/ceilometer-alarm-notifier.install0000664000000000000000000000004212542121447015615 0ustar usr/bin/ceilometer-alarm-notifier debian/compat0000664000000000000000000000000212542121447010370 0ustar 8