Hello community,

here is the log from the commit of package openstack-ceilometer for 
openSUSE:Factory checked in at 2013-12-10 16:03:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openstack-ceilometer (Old)
 and      /work/SRC/openSUSE:Factory/.openstack-ceilometer.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openstack-ceilometer"

Changes:
--------
New Changes file:

--- /dev/null   2013-11-25 01:44:08.036031256 +0100
+++ 
/work/SRC/openSUSE:Factory/.openstack-ceilometer.new/openstack-ceilometer-doc.changes
       2013-12-10 16:03:19.000000000 +0100
@@ -0,0 +1,201 @@
+-------------------------------------------------------------------
+Mon Sep 16 15:09:41 UTC 2013 - speili...@suse.com
+
+- Refreshed (Build)Requires
+
+-------------------------------------------------------------------
+Mon Sep 16 12:42:21 UTC 2013 - speili...@suse.com
+
+- Relax version constraints on python-Flask
+
+-------------------------------------------------------------------
+Thu Jul 18 08:51:28 UTC 2013 - bere...@b1-systems.de
+
+- added missing build requirement python-logutils
+
+-------------------------------------------------------------------
+Mon May 13 07:55:45 UTC 2013 - dmuel...@suse.com
+
+- add python-PyYAML requires 
+
+-------------------------------------------------------------------
+Mon Mar 18 09:39:28 UTC 2013 - speili...@suse.com
+
+- Drop +git.$TIMESTAMP.$COMMITHASH version suffix 
+
+-------------------------------------------------------------------
+Tue Feb 26 10:27:21 UTC 2013 - dmuel...@suse.com
+
+- Add python-oslo-config buildrequires 
+
+-------------------------------------------------------------------
+Fri Feb 22 11:30:01 UTC 2013 - sasc...@suse.de
+
+- BuildRequire openstack-suse-macros instead of openstack-macros
+
+-------------------------------------------------------------------
+Thu Jan 17 11:04:45 UTC 2013 - sasc...@suse.de
+
+- Update requirements
+- Use correct HTML location
+
+--------------------------------------------------------------------
+Mon Jan 14 12:17:56 UTC 2013 - dmuel...@suse.com
+
+- Update to version 2013.1+git.1358162276.edd9332:
+  + Enhance policy test for init()
+  + Provide the meters unit's in /meters
+  + Fix keystoneclient auth_token middleware changes
+  + policy: fix policy_file finding
+  + Remove the _initialize_config_options
+  + Add pyflakes
+  + Make the v2 API date query parameters consistent
+  + Fix test blocking issue and pin docutils version.
+  + Apply the official OpenStack stylesheets and templates to the Doc build.
+  + Fixed erroneous source filter in SQLAlchemy.
+  + Fix warnings in the documentation build
+  + Handle finish and revert resize notifications.
+  + Add support for Folsom version of Swift
+  + Implement user-api
+  + Add support for Swift incoming/outgoing trafic metering
+  + Pass a dict configuration file to auth_keystone
+  + Import only once in nova_notifier
+  + Fix MySQL charset error.
+  + Use default configuration file to make test data.
+  + Fix Glance control exchange
+  + Move back api-v1 to the main api
+  + Fix WSME arguments handling change
+  + Remove useless gettext call in sql engine
+  + Ground work for transifex-ify ceilometer.
+  + Add instance_type information to NetPollster
+  + Fix dbsync API change
+  + Fix image_id in instance resource metadata
+  + Instantiate inspector in compute manager
+  + remove direct nova db access from ceilometer.
+  + Make debugging the wsme app a bit easier.
+  + Implements database upgrade as storage engine independent
+  + Fix the v1 api importing of acl
+  + Add the ability to filter on metadata.
+  + Virt inspector directly layered over hypervisor API
+  + Move meter.py into collector directory
+  + Change mysql schema from latin1 to utf8 .
+  + Change default os-username to 'ceilometer'
+  + Restore some metadata to the events and resources
+  + Update documentation URL
+  + Add sql db option to devstack for ceilometer
+  + Remove debug print in V2 API
+  + Start updating documentation for V2 API
+  + Implement V2 API with Pecan and WSME
+  + Move v1 API files into a subdirectory
+  + Add test storage driver
+  + Implement /meters to make discovery "nicer" from the client
+  + Fix sqlalchemy for show_data and v1 web api
+  + Implement object store metering
+  + Make Impl of mongodb and sqlalchemy consistent
+  + add migration migrate.cfg file to the python package
+  + Fixes to enable the jenkins doc job to work
+  + Lower the minimum required version of anyjson
+  + Fix blocking test for nova notifier
+  + network: remove left-over useless nova import
+  + tools: set novaclient minimum version
+  + libvirt: fix Folsom compatibility
+  + Lower pymongo dependency
+  + Remove rickshaw subproject
+  + Remove unused rpc import
+  + Adapted to nova's compute_driver moving.
+  + doc: fix cpu counter unit
+  + tools: use tarballs rather than git for Folsom tests
+  + Used auth_token middleware from keystoneclient.
+  + Remove cinderclient dependency
+  + Fix latest nova changes
+  + api: replace minified files by complete version
+  + Add Folsom tests to tox
+  + Handle nova.flags removal
+  + Provide default configuration file
+  + Fix mysql_engine option type
+  + Remove nova.flags usage
+  + api: add support for timestamp in _list_resources()
+  + api: add timestamp interval support in _list_events()
+  + tests: simplify api list_resources
+  + Update openstack.common(except policy).
+  + Adopted the oslo's rpc.Service change.
+  + Use libvirt num_cpu for CPU utilization calculation.
+  + Remove obsolete reference to instance.vcpus
+  + Change references of /etc/ceilometer-{agent,collector}.conf to 
/etc/ceilometer/ceilometer.conf
+  + Determine instance cores from public flavors API
+  + Determine flavor type from the public nova API.
+  + Add comment about folsom compatibility change
+  + Add keystone requirement for doc build
+  + Avoid TypeError when loading libvirt.LibvirtDriver
+  + Don't re-import flags and do parse_args instead of flags.FLAGS()
+  + doc: rename stackforge to openstack
+  + Fix pymongo requirements
+  + Update .gitreview for openstack.
+  + Update use of nova config to work with folsom
+  + compute: remove get_disks work-around
+  + Use openstack versioning
+  + Fix documentation build
+  + document utc naive timestamp
+  + Remove database access from agent pollsters
+  + Fix merge error in central/manager.py
+  + Fix nova config parsing
+  + pollster trap error due to zero floating ip
+  + Use the service.py in openstack-common
+  + Allow no configured sources, provide a default file
+  + Add service.py from openstack-common
+  + Update common (except policy)
+  + nova fake libvirt library breaking tests
+  + Move db access out into a seperate file.
+  + Remove invalid fixme comments
+  + Add new cpu_util meter recording CPU utilization %.
+  + Fix TypeError from old-style publish_counter calls
+  + Fix auth middleware configuration
+  + pin sqlalchemy to 0.7.x but not specifically 0.7.8
+  + add mongo index names
+  + set tox to ignore global packages
+  + Provide a way to disable some plugins
+  + Use stevedore to load all plugins
+  + implement get_volume_max for sqlalchemy
+  + Add basic text/html renderer
+  + network: floating IP account in Quantum
+  + add unit test for CPUPollster
+  + Clean up context usage
+  + Add dependencies on clients used by pollsters
+  + add ceilometer-send-counter
+  + Update openstack.common.cfg
+  + Fix tests broken by API change with Counter class
+  + api: add source detail retrieval
+  + Set source at publish time
+  + Instance pollster emits instance.<type> meter
+  + timestamp columns in sqlalchemy not timezone aware
+  + Remove obsolete/incorrect install instructions
+  + network: emit router meter
+  + Fix sqlalchemy performance problem
+  + Added a working release-bugs.py script to tools/.
+  + Change default API port
+  + sqlalchemy record_meter merge objs not string
+  + Use glance public API as opposed to registry API.
+  + Add OpenStack trove classifier for PyPI
+  + bump version number to 0.2
+
+-------------------------------------------------------------------
+Wed Dec 19 15:36:15 UTC 2012 - sasc...@suse.de
+
+- It's a noarch package
+
+-------------------------------------------------------------------
+Wed Dec 19 13:59:19 UTC 2012 - sasc...@suse.de
+
+- Move to obs-service-git_tarballs
+  + Drop BuildRequires: python-setuptools-git
+
+-------------------------------------------------------------------
+Wed Nov 21 15:02:31 UTC 2012 - sasc...@suse.de
+
+- Add more documentation build requirements
+
+-------------------------------------------------------------------
++++ 4 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Factory/.openstack-ceilometer.new/openstack-ceilometer-doc.changes
New Changes file:

--- /dev/null   2013-11-25 01:44:08.036031256 +0100
+++ 
/work/SRC/openSUSE:Factory/.openstack-ceilometer.new/openstack-ceilometer.changes
   2013-12-10 16:03:19.000000000 +0100
@@ -0,0 +1,1739 @@
+-------------------------------------------------------------------
+Thu Nov 28 13:58:42 UTC 2013 - dmuel...@suse.com
+
+- fix polkit rule description 
+
+-------------------------------------------------------------------
+Tue Nov 26 01:29:54 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.1.dev7.gd554fa8:
+  + Selectively import RPC backend retry config
+
+-------------------------------------------------------------------
+Sat Nov 23 01:39:15 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.1.dev5.gef6c659:
+  + Pin test-requirement for Nova to Havana
+  + mongodb, db2: do not print full URL in logs
+
+-------------------------------------------------------------------
+Wed Oct 30 13:31:57 UTC 2013 - dmuel...@suse.com
+
+- move rabbitmq-server to should-start 
+
+-------------------------------------------------------------------
+Mon Oct 28 21:55:04 UTC 2013 - dmuel...@suse.com
+
+- fix requires
+
+-------------------------------------------------------------------
+Fri Oct 25 11:41:35 UTC 2013 - dmuel...@suse.com
+
+- fix requires (bnc#846985)
+
+-------------------------------------------------------------------
+Thu Oct 17 15:24:47 UTC 2013 - dmuel...@suse.com
+
+- update to 2013.2:
+  + No changes
+
+-------------------------------------------------------------------
+Mon Oct 14 10:48:38 UTC 2013 - speili...@suse.com
+
+- Update to version 2013.2.rc2:
+  + No changes
+
+-------------------------------------------------------------------
+Mon Oct  7 10:07:14 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.rc1:
+  + Disable lazy translation
+  + Imported Translations from Transifex
+
+-------------------------------------------------------------------
+Wed Oct  2 00:45:25 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a717.g0186c0e:
+  + api: return 404 if a alarm is not found
+  + Imported Translations from Transifex
+  + assertEquals is deprecated, use assertEqual
+  + Add bug number of some wsme issue
+  + issue an error log when cannot import libvirt
+  + tests: fix rounding issue in timestamp comparison
+  + keystone client changes in AuthProtocol made our test cases failing
+  + api: allow alarm creation for others project by admins
+  + update alarm service setup in dev doc
+  + Updated from global requirements
+  + api: remove useless comments
+
+-------------------------------------------------------------------
+Tue Oct  1 00:48:07 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a696.gd57ab63:
+  + Allow to get a disabled alarm
+  + Don't load into alarms evaluators disabled alarms
+  + add more test cases to improve the test code coverage #3
+  + add coverage config file to control module coverage report
+  + remove locals() for stringformat
+  + api: return 404 if a resource is not found
+
+-------------------------------------------------------------------
+Sat Sep 28 00:40:16 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a685.gd280925:
+  + Don't publish samples if resource_id in missing
+  + Avoid imposing alembic 6.0 requirement on all distros
+
+-------------------------------------------------------------------
+Fri Sep 27 19:38:37 UTC 2013 - dmuel...@suse.com
+
+- add 0001-Skip-tests-against-real-DB.patch
+
+-------------------------------------------------------------------
+Fri Sep 27 16:16:46 UTC 2013 - dmuel...@suse.com
+
+- replace openstack-utils with crudini 
+
+-------------------------------------------------------------------
+Fri Sep 27 00:35:47 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a681.g12eab1c:
+  + Add example with return values in API v2 docs
+  + Remove MANIFEST.in
+
+-------------------------------------------------------------------
+Thu Sep 26 12:50:16 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a678.ga162cef:
+  + add more test cases to improve the test code coverage #2
+
+-------------------------------------------------------------------
+Thu Sep 26 10:08:43 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a676.gc88d7eb:
+  + add more test cases to improve the test code coverage #1
+  + Don't send unuseful rpc alarm notification
+  + Require oslo.config 1.2.0 final
+  + Add source field to Meter model
+  + Adding region name to service credentials
+  + Fix failed downgrade in migrations
+  + tests: fix places check for timestamp equality
+  + tests: import pipeline config
+
+-------------------------------------------------------------------
+Tue Sep 24 23:55:17 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a660.g18c3a0d:
+  + Test the response body when deleting a alarm
+  + service: check that timestamps are almost equals
+
+-------------------------------------------------------------------
+Tue Sep 24 18:33:39 UTC 2013 - dmuel...@suse.com
+
+- Update to version 2013.2.a656.gd95846c:
+  + Simple alarm partitioning protocol based on AMQP fanout RPC
+  + Fix for timestamp precision in SQLAlchemy
+  + Imported Translations from Transifex
+  + Use built-in print() instead of print statement
+  + Replace OpenStack LLC with OpenStack Foundation
+  + Fail tests early if mongod is not found
+  + collector-udp: use dispatcher rather than storage
+
+-------------------------------------------------------------------
+Sat Sep 21 00:11:46 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a642.gd1cb53d:
+  + Convert BoundedInt value from json into int
+  + Notify with string representation of alarm reason
+  + Add alarm combination API
+  + Implement the combination evaluator
+  + Provide new API endpoint for alarm state
+  + Handle manually mandatory field
+
+-------------------------------------------------------------------
+Fri Sep 20 06:59:09 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a636.g42f02ab:
+  + WSME 0.5b5 breaking unit tests
+  + refactor db2 get_meter_statistics method to support mongodb and db2
+  + Update requirements
+  + Alarm API update
+  + Refactor threshold evaluator
+
+-------------------------------------------------------------------
+Fri Sep 20 06:58:41 UTC 2013 - dmuel...@suse.com
+
+- remove six-14.diff 
+
+-------------------------------------------------------------------
+Wed Sep 18 23:45:59 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a629.g5bf2072:
+  + Fix a tiny mistake in api doc
+
+-------------------------------------------------------------------
+Wed Sep 18 08:49:24 UTC 2013 - dmuel...@suse.com
+
+- fix requires 
+
+-------------------------------------------------------------------
+Tue Sep 17 19:45:44 UTC 2013 - dmuel...@suse.com
+
+- add six-14.diff 
+
+-------------------------------------------------------------------
+Tue Sep 17 12:43:52 UTC 2013 - opensuse-cl...@opensuse.org
+
+- Update to version 2013.2.a627.ge4edd23:
+  + Correctly output the sample content in the file publisher
+  + Update sphinxcontrib-pecanwsme to 0.3
+  + Update alembic requirement to 0.6.0 version
+  + Force MySQL to use InnoDB/utf8
+  + Architecture enhancements
+  + Drop sitepackages=False from tox.ini
+  + Imported Translations from Transifex
+
+-------------------------------------------------------------------
+Tue Sep 17 12:43:13 UTC 2013 - dmuel...@suse.com
++++ 1542 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Factory/.openstack-ceilometer.new/openstack-ceilometer.changes

New:
----
  0001-Skip-tests-against-real-DB.patch
  _service
  ceilometer-stable-havana.tar.gz
  openstack-ceilometer-doc.changes
  openstack-ceilometer-doc.spec
  openstack-ceilometer-polkit.rules
  openstack-ceilometer.changes
  openstack-ceilometer.init
  openstack-ceilometer.logrotate
  openstack-ceilometer.spec
  org.openstack.ceilometer.pkla
  rpmlintrc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openstack-ceilometer-doc.spec ++++++
#
# spec file for package openstack-ceilometer-doc
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define component ceilometer

Name:           openstack-%{component}-doc
Version:        2013.2.1.dev7.gd554fa8
Release:        0
Summary:        OpenStack Metering (Ceilometer) - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
Url:            http://openstack.org/projects/compute/
Source:         ceilometer-stable-havana.tar.gz
BuildRequires:  openstack-suse-macros
BuildRequires:  python-Babel
BuildRequires:  python-Flask
BuildRequires:  python-PyYAML
BuildRequires:  python-SQLAlchemy >= 0.7.3
BuildRequires:  python-Sphinx
BuildRequires:  python-WSME
BuildRequires:  python-WebOb
BuildRequires:  python-anyjson >= 0.3.1
BuildRequires:  python-argparse
BuildRequires:  python-d2to1
BuildRequires:  python-eventlet
BuildRequires:  python-glance
BuildRequires:  python-iso8601
BuildRequires:  python-keystoneclient
BuildRequires:  python-kombu
BuildRequires:  python-logutils
BuildRequires:  python-lxml
BuildRequires:  python-mock
BuildRequires:  python-mox
BuildRequires:  python-nova
BuildRequires:  python-novaclient
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.sphinx
BuildRequires:  python-pbr
BuildRequires:  python-pecan
BuildRequires:  python-sphinxcontrib-httpdomain
BuildRequires:  python-sphinxcontrib-pecanwsme
BuildRequires:  python-stevedore >= 0.6
BuildRequires:  python-swift
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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 documentation files for openstack-ceilometer.

%prep
%setup -q -n ceilometer-2013.2.1.dev7.gd554fa8
%openstack_cleanup_prep
sed -i "s|'sphinxcontrib.autohttp.flask',||" doc/source/conf.py

%build
python setup.py build_sphinx -s doc/source
rm doc/build/html/.buildinfo # Remove unneeded files

%install

%files
%defattr(-,root,root,-)
%doc doc/build/html

%changelog
++++++ openstack-ceilometer.spec ++++++
#
# spec file for package openstack-ceilometer
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define component ceilometer
%define groupname openstack-%{component}
%define username openstack-%{component}

Name:           openstack-%{component}
Version:        2013.2.1.dev7.gd554fa8
Release:        0
Summary:        OpenStack Metering (Ceilometer)
License:        Apache-2.0
Group:          System/Management
Url:            https://launchpad.net/ceilometer
Source:         ceilometer-stable-havana.tar.gz
Source1:        %{name}.init
Source2:        %{name}.logrotate
Source9:        org.openstack.ceilometer.pkla
Source13:       openstack-ceilometer-polkit.rules
# PATCH-FIX-SUSE: Skip testing against DB2 and Mongodb
Patch0:         0001-Skip-tests-against-real-DB.patch
BuildRequires:  crudini
BuildRequires:  fdupes
BuildRequires:  openstack-suse-macros
BuildRequires:  python-base
BuildRequires:  python-d2to1
BuildRequires:  python-distribute
BuildRequires:  python-happybase >= 0.4
BuildRequires:  python-pbr
%if 0%{?suse_version} > 1110
# to make orphaned-file-tests happy
BuildRequires:  polkit-default-privs
Requires:       polkit-default-privs
%endif
# Documentation build requirements:
#BuildRequires:  python-Sphinx
Requires:       logrotate
Requires:       python >= 2.6.8
Requires:       python-ceilometer = %{version}
Requires:       python-pbr >= 0.5.21
%if 0%{?suse_version} > 1110
Requires(pre):  pwdutils
%else
Requires(pre):  shadow-utils
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
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.

%package -n python-ceilometer
Summary:        OpenStack Metering (Ceilometer) - Python module
Group:          Development/Languages/Python
Requires:       python >= 2.6.8
Requires:       python-Babel >= 0.9.6
Requires:       python-Flask >= 0.10
Requires:       python-PyYAML >= 3.1.0
Requires:       python-SQLAlchemy >= 0.7.8
Requires:       python-WSME >= 0.5b5
Requires:       python-WebOb >= 1.2.3
Requires:       python-alembic >= 0.4.1
Requires:       python-anyjson >= 0.3.3
Requires:       python-argparse
Requires:       python-ceilometerclient >= 1.0.5
Requires:       python-eventlet >= 0.13.0
Requires:       python-glanceclient >= 0.9.0
Requires:       python-happybase >= 0.4
Requires:       python-iso8601 >= 0.1.4
Requires:       python-keystoneclient >= 0.3.2
Requires:       python-kombu >= 2.4.8
Requires:       python-lxml >= 2.3
Requires:       python-msgpack-python
Requires:       python-netaddr
Requires:       python-novaclient >= 2.15.0
Requires:       python-oslo.config >= 1.2.0
Requires:       python-pecan >= 0.2.0
Requires:       python-pymongo >= 2.4
Requires:       python-requests >= 1.1
Requires:       python-six
Requires:       python-sqlalchemy-migrate >= 0.7.2
Requires:       python-stevedore >= 0.10
Requires:       python-swiftclient >= 1.5

%description -n python-ceilometer
This package contains the core Python module of %{name}.

%package api
Summary:        OpenStack Metering (Ceilometer) - API
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description api
This package contains the %{name} API server.

%package collector
Summary:        OpenStack Metering (Ceilometer) - Collector
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description collector
This package contains the %{name} collector.

%package agent-central
Summary:        OpenStack Metering (Ceilometer) - Agent Central
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description agent-central
This package contains the %{name} agent central.

%package agent-compute
Summary:        OpenStack Metering (Ceilometer) - Agent Compute
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description agent-compute
This package contains the %{name} agent compute.

%package test
Summary:        OpenStack Metering (Ceilometer) - Testsuite
Group:          Development/Languages/Python
Requires:       %{name} = %{version}
Requires:       openstack-nova-test
Requires:       python-coverage >= 3.6
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires:       python-discover
%endif
Requires:       python-fixtures >= 0.3.14
Requires:       python-flake8 >= 2.0
Requires:       python-glance
Requires:       python-hacking >= 0.5.6
Requires:       python-httplib2
Requires:       python-mock >= 1.0
Requires:       python-mox >= 0.5.3
Requires:       python-nova
Requires:       python-pep8 >= 1.4.5
Requires:       python-pyflakes >= 0.7.2
Requires:       python-python-subunit
Requires:       python-sphinxcontrib-pecanwsme >= 0.3
Requires:       python-swift
Requires:       python-testrepository >= 0.0.17
Requires:       python-testscenarios >= 0.4
Requires:       python-testtools >= 0.9.32

%description test
This package contains testsuite files for %{name}.

%prep
%setup -q -n ceilometer-2013.2.1.dev7.gd554fa8
%patch0 -p1
%openstack_cleanup_prep

%build
python setup.py build
# Currently there exists only a general man-page with the same content as the
# HTML documenation. Thus we shouldn't build it:
#python setup.py build_sphinx -b man -s doc/source

%install
python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}

### directories
#TODO: Check what we need:
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{component}
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{component}
install -d -m 755 %{buildroot}%{_localstatedir}/run/%{component}

### configuration files
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{component}
install -p -D -m 644 etc/ceilometer/ceilometer.conf.sample 
%{buildroot}%{_sysconfdir}/%{component}/%{component}.conf
install -p -D -m 644 etc/ceilometer/{pipeline.yaml,sources.json,policy.json} 
%{buildroot}%{_sysconfdir}/%{component}/

# bash-completion/logrotate/etc.
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

### init scripts
mkdir -p %{buildroot}%{_initddir}
mkdir -p %{buildroot}%{_sbindir}
for i in api collector collector-udp agent-central agent-compute ; do
    tmp=$(mktemp)
    cat %{SOURCE1} | sed "s/__NAME__/$i/g" > $tmp
    install -m 755 $tmp %{buildroot}%{_initddir}/%{name}-$i
    ln -s ../..%{_initddir}/%{name}-$i %{buildroot}%{_sbindir}/rc%{name}-$i
done

%if 0%{?suse_version} > 1110 && 0%{?suse_version} < 1230
  mkdir -p 
%{buildroot}%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/
  cp -a %{SOURCE9} 
%{buildroot}%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/
%endif

%if 0%{?suse_version} >= 1230
  install -D -m 644 %{SOURCE13} 
%{buildroot}%{_datadir}/polkit-1/rules.d/11-openstack-ceilometer.rules
%endif

### documentation
#install -d %%{buildroot}%%{_mandir}/man1
#install -m 644 doc/build/man/*.1 %%{buildroot}%%{_mandir}/man1

### test subpackage
%openstack_test_package_install
# Skip functional tests that require mongodb
rm 
%{buildroot}/var/lib/openstack-%{component}-test/tests/storage/test_impl_mongodb.py
 \
   
%{buildroot}/var/lib/openstack-%{component}-test/tests/api/v2/test_statistics_scenarios.py

### set default configuration (mostly applies to package-only setups and 
quickstart, i.e. not generally crowbar)
%define ceilometer_conf 
%{buildroot}%{_sysconfdir}/%{component}/%{component}.conf
crudini --set %{ceilometer_conf} DEFAULT verbose True
#NOTE(saschpe): Don't set 'log_file', each ceilometer deamon will create it's 
own if only 'log_dir' is set:
crudini --set %{ceilometer_conf} DEFAULT log_dir 
%{_localstatedir}/log/%{component}
crudini --set %{ceilometer_conf} DEFAULT policy_file 
%{_sysconfdir}/%{component}/policy.json

### authentication cache dir
mkdir -p %{buildroot}%{_localstatedir}/cache/ceilometer

%pre
getent group %{groupname} >/dev/null || groupadd -r %{groupname}
getent passwd %{username} >/dev/null || useradd -r -g %{groupname} -d 
%{_localstatedir}/lib/%{component} -s /sbin/nologin -c "OpenStack Ceilometer 
Daemons" %{username}
exit 0

%post api
%{fillup_and_insserv -f openstack-ceilometer-api}

%preun api
%stop_on_removal openstack-ceilometer-api

%postun api
%restart_on_update openstack-ceilometer-api
%insserv_cleanup

%post collector
%{fillup_and_insserv -f openstack-ceilometer-collector}

%preun collector
%stop_on_removal openstack-ceilometer-collector

%postun collector
%restart_on_update openstack-ceilometer-collector
%insserv_cleanup

%post agent-central
%{fillup_and_insserv -f openstack-ceilometer-agent-central}

%preun agent-central
%stop_on_removal openstack-ceilometer-agent-central

%postun agent-central
%restart_on_update openstack-ceilometer-agent-central
%insserv_cleanup

%post agent-compute
polkit-auth --grant org.libvirt.unix.monitor --user %{username} 2>/dev/null || 
true
%{fillup_and_insserv -f openstack-ceilometer-agent-compute}

%preun agent-compute
%stop_on_removal openstack-ceilometer-agent-compute

%postun agent-compute
%restart_on_update openstack-ceilometer-agent-compute
%insserv_cleanup

%files
%defattr(-,root,root)
%doc README.rst
%{_bindir}/ceilometer-dbsync
%dir %{_sysconfdir}/%{component}
%config(noreplace) %attr(0640, root, %{groupname}) 
%{_sysconfdir}/%{component}/%{component}.conf
%config %{_sysconfdir}/%{component}/pipeline.yaml
%config %{_sysconfdir}/%{component}/sources.json
%config %{_sysconfdir}/%{component}/policy.json
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %attr(0755, %{username}, %{username}) %{_localstatedir}/lib/%{component}
%dir %attr(0750, %{username}, %{username}) %{_localstatedir}/log/%{component}
%dir %attr(0755, %{username}, %{username}) %{_localstatedir}/cache/ceilometer
%ghost %dir %attr(0755, %{username}, root) %{_localstatedir}/run/%{component}

%files -n python-ceilometer
%defattr(-,root,root,-)
%{python_sitelib}/%{component}/
%{python_sitelib}/%{component}-*.egg-info
# Part of test subpackage
%exclude %{python_sitelib}/%{component}/tests/

%files api
%defattr(-,root,root,-)
%{_initddir}/%{name}-api
%{_sbindir}/rc%{name}-api
%{_bindir}/%{component}-api

%files collector
%defattr(-,root,root,-)
%{_initddir}/%{name}-collector
%{_initddir}/%{name}-collector-udp
%{_sbindir}/rc%{name}-collector
%{_sbindir}/rc%{name}-collector-udp
%{_bindir}/%{component}-collector
%{_bindir}/%{component}-collector-udp
%{_bindir}/%{component}-alarm-notifier
%{_bindir}/%{component}-alarm-evaluator
%{_bindir}/%{component}-expirer

%files agent-central
%defattr(-,root,root,-)
%{_initddir}/%{name}-agent-central
%{_sbindir}/rc%{name}-agent-central
%{_bindir}/%{component}-agent-central

%files agent-compute
%defattr(-,root,root,-)
%{_initddir}/%{name}-agent-compute
%{_sbindir}/rc%{name}-agent-compute
%{_bindir}/%{component}-agent-compute
%if 0%{?suse_version} > 1110 && 0%{?suse_version} < 1230
%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/org.openstack.ceilometer.pkla
%endif
%if 0%{?suse_version} >= 1230
%{_datadir}/polkit-1/rules.d/11-openstack-ceilometer.rules
%endif

%files test
%defattr(-,root,root)
%{python_sitelib}/%{component}/tests/
%{_localstatedir}/lib/%{name}-test/

%changelog
++++++ 0001-Skip-tests-against-real-DB.patch ++++++
>From af83706391477fc8bd16e592a7fc1b0132dbe3bb Mon Sep 17 00:00:00 2001
From: Dirk Mueller <d...@dmllr.de>
Date: Fri, 27 Sep 2013 22:59:17 +0200
Subject: [PATCH] Skip tests against real DB

Change-Id: I0f00d423205f251e9d670eca93708929caa06cdf
---
 ceilometer/tests/db.py                    |  3 ---
 tests/api/v2/test_app.py                  | 11 +----------
 tests/api/v2/test_statistics_scenarios.py |  5 +----
 3 files changed, 2 insertions(+), 17 deletions(-)

Index: ceilometer-2014.1.a67.g125411e/ceilometer/tests/db.py
===================================================================
--- ceilometer-2014.1.a67.g125411e.orig/ceilometer/tests/db.py
+++ ceilometer-2014.1.a67.g125411e/ceilometer/tests/db.py
@@ -84,7 +84,4 @@ class MixinTestsWithBackendScenarios(obj
 
     scenarios = [
         ('sqlalchemy', dict(database_connection='sqlite://')),
-        ('mongodb', dict(database_connection=MongoDBFakeConnectionUrl())),
-        ('hbase', dict(database_connection='hbase://__test__')),
-        ('db2', dict(database_connection=DB2FakeConnectionUrl())),
     ]
Index: ceilometer-2014.1.a67.g125411e/tests/api/v2/test_app.py
===================================================================
--- ceilometer-2014.1.a67.g125411e.orig/tests/api/v2/test_app.py
+++ ceilometer-2014.1.a67.g125411e/tests/api/v2/test_app.py
@@ -66,19 +66,10 @@ class TestApp(base.TestCase):
         os.unlink(tmpfile)
 
 
-class TestPecanApp(FunctionalTest):
-    database_connection = tests_db.MongoDBFakeConnectionUrl()
-
-    def test_pecan_extension_guessing_unset(self):
-        # check Pecan does not assume .jpg is an extension
-        response = self.app.get(self.PATH_PREFIX + '/meters/meter.jpg')
-        self.assertEqual(response.content_type, 'application/json')
-
-
 class TestApiMiddleware(FunctionalTest):
 
     # This doesn't really matter
-    database_connection = tests_db.MongoDBFakeConnectionUrl()
+    database_connection = 'sqlite://'
 
     no_lang_translated_error = 'No lang translated error'
     en_US_translated_error = 'en-US translated error'
Index: ceilometer-2014.1.a67.g125411e/tests/api/v2/test_statistics_scenarios.py
===================================================================
--- 
ceilometer-2014.1.a67.g125411e.orig/tests/api/v2/test_statistics_scenarios.py
+++ ceilometer-2014.1.a67.g125411e/tests/api/v2/test_statistics_scenarios.py
@@ -1234,10 +1234,7 @@ class TestGroupBySource(base.FunctionalT
     # tests.
 
     scenarios = [
-        ('mongodb',
-         dict(database_connection=tests_db.MongoDBFakeConnectionUrl())),
-        ('hbase', dict(database_connection='hbase://__test__')),
-        ('db2', dict(database_connection=tests_db.DB2FakeConnectionUrl())),
+        ('sqlalchemy', dict(database_connection='sqlite://'))
     ]
 
     PATH = '/meters/instance/statistics'
++++++ _service ++++++
<services>
  <service name="git_tarballs" mode="disabled">
    <param 
name="url">http://tarballs.openstack.org/ceilometer/ceilometer-stable-havana.tar.gz</param>
    <param name="email">opensuse-cl...@opensuse.org</param>
    <param name="plain-version">True</param>
  </service>
</services>
++++++ openstack-ceilometer-polkit.rules ++++++
// grant nova-compute libvirt management permissions

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.monitor" &&
        subject.user == "openstack-ceilometer") {
        return polkit.Result.YES;
    }
});
++++++ openstack-ceilometer.init ++++++
#!/bin/sh

### BEGIN INIT INFO
# Provides:          openstack-ceilometer-__NAME__
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      mysql postgresql mongodb openstack-nova-compute 
rabbitmq-server
# Should-Stop:       mysql postgresql mongodb openstack-nova-compute 
rabbitmq-server
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: OpenStack Metering (Ceilometer) - __NAME__
# Description:       OpenStack Metering (Ceilometer) - __NAME__
### END INIT INFO

DAEMON="__NAME__"
USER="openstack-ceilometer"
CONFFILE="/etc/ceilometer/ceilometer.conf"
RUNDIR="/var/run/ceilometer"
LOGFILE="/var/log/ceilometer/$DAEMON.log"

# $RUNDIR can be tmpfs, thus we have to create/own it here:
mkdir -p $RUNDIR && chown $USER. $RUNDIR
[ -e $LOGFILE ] || touch $LOGFILE && chown $USER. $LOGFILE

. /etc/rc.status

case "$1" in
    start)
        echo -n "Starting ceilometer-$DAEMON"
        /sbin/startproc -s -u $USER -t ${STARTUP_TIMEOUT:-5} -q 
/usr/bin/ceilometer-$DAEMON --config-file=$CONFFILE --logfile=$LOGFILE
        rc_status -v
        ;;
    stop)
        echo -n "Shutting down ceilometer-$DAEMON"
        /sbin/killproc /usr/bin/ceilometer-$DAEMON
        rc_status -v
        ;;
    restart)
        $0 stop
        $0 start
        rc_status
        ;;
    reload)
        ;;
    status)
        echo -n "Checking ceilometer-$DAEMON"
        /sbin/checkproc /usr/bin/ceilometer-$DAEMON
        rc_status -v
        ;;
    condrestart|try-restart)
        if test "$1" = "condrestart"; then
                echo "${attn} Use try-restart ${done}(LSB)${attn} rather than 
condrestart ${warn}(RH)${norm}"
        fi
        $0 status
        if test $? = 0; then
                $0 restart
        else
                rc_reset        # Not running is not a failure.
        fi
        rc_status
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}"
        exit 2
esac
exit $?
++++++ openstack-ceilometer.logrotate ++++++
compress

/var/log/ceilometer/*.log {
    rotate 15
    size 1M
    weekly
    dateext
    missingok
    notifyempty
    su openstack-ceilometer openstack-ceilometer
    copytruncate
    sharedscripts
}
++++++ org.openstack.ceilometer.pkla ++++++
[Grant openstack-ceilometer libvirt monitor permissions]
Identity=unix-user:openstack-ceilometer
Action=org.libvirt.unix.monitor
ResultAny=yes
ResultInactive=yes
ResultActive=yes
++++++ rpmlintrc ++++++
# This symling is for the -test package and can be ignored:
addFilter("dangling-symlink /var/lib/openstack-ceilometer-test/ceilometer")
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to