~ubuntu-branches/ubuntu/saucy/ceilometer/saucy

« back to all changes in this revision

Viewing changes to ceilometer/storage/migration.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, James Page, Yolanda Robla
  • Date: 2013-03-26 11:23:03 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130326112303-wft86epop2g2hvrb
Tags: 2013.1~rc1-0ubuntu1
[ 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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
 
#
3
 
# Author: John Tran <jhtran@att.com>
4
 
#
5
 
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6
 
# not use this file except in compliance with the License. You may obtain
7
 
# a copy of the License at
8
 
#
9
 
#      http://www.apache.org/licenses/LICENSE-2.0
10
 
#
11
 
# Unless required by applicable law or agreed to in writing, software
12
 
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
 
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
 
# License for the specific language governing permissions and limitations
15
 
# under the License.
16
 
 
17
 
"""Database setup and migration commands."""
18
 
 
19
 
import ceilometer.storage.sqlalchemy.migration as IMPL
20
 
 
21
 
 
22
 
def db_sync(version=None):
23
 
    """Migrate the database to `version` or the most recent version."""
24
 
    return IMPL.db_sync(version=version)
25
 
 
26
 
 
27
 
def db_version():
28
 
    """Display the current database version."""
29
 
    return IMPL.db_version()