~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/cmd/polling.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# License for the specific language governing permissions and limitations
15
15
# under the License.
16
16
 
17
 
from oslo.config import cfg
 
17
from oslo_config import cfg
18
18
 
19
19
from ceilometer.agent import manager
20
20
from ceilometer.openstack.common import service as os_service
39
39
            kwargs['choices'] = choices
40
40
        return kwargs
41
41
 
42
 
# todo(dbelova): add ipmi agent here as well
43
42
CLI_OPTS = [
44
43
    MultiChoicesOpt('polling-namespaces',
45
44
                    default=['compute', 'central'],
46
 
                    choices=['compute', 'central'],
 
45
                    choices=['compute', 'central', 'ipmi'],
47
46
                    dest='polling_namespaces',
48
47
                    help='Polling namespace(s) to be used while '
49
48
                         'resource polling'),
73
72
def main_central():
74
73
    service.prepare_service()
75
74
    os_service.launch(manager.AgentManager(['central'])).wait()
 
75
 
 
76
 
 
77
def main_ipmi():
 
78
    service.prepare_service()
 
79
    os_service.launch(manager.AgentManager(['ipmi'])).wait()