def test_ceilometer_release_services(self):
     """Ensure that icehouse specific services are identified"""
     self.get_os_codename_install_source.return_value = 'icehouse'
     self.assertEqual(['ceilometer-alarm-notifier',
                       'ceilometer-alarm-evaluator',
                       'ceilometer-agent-notification'],
                      utils.ceilometer_release_services())
 def test_ceilometer_release_services(self):
     """Ensure that icehouse specific services are identified"""
     self.get_os_codename_install_source.return_value = 'icehouse'
     self.assertEqual(['ceilometer-alarm-notifier',
                       'ceilometer-alarm-evaluator',
                       'ceilometer-agent-notification'],
                      utils.ceilometer_release_services())
Example #3
0
def resume(args):
    """Resume the Ceilometer services.

    @raises Exception should the service fail to start."""
    services = CEILOMETER_BASE_SERVICES + ceilometer_release_services()
    for service in services:
        if not service_resume(service):
            raise Exception("Failed to resume %s." % service)

    db = kv()
    db.set('unit-paused', False)
    db.flush()

    assess_status(CONFIGS)
Example #4
0
def pause(args):
    """Pause the Ceilometer services.

    @raises Exception should the service fail to stop.
    """
    services = CEILOMETER_BASE_SERVICES + ceilometer_release_services()
    for service in services:
        if not service_pause(service):
            raise Exception("Failed to %s." % service)

    db = kv()
    db.set('unit-paused', True)
    db.flush()

    status_set(
        "maintenance",
        "Unit paused - use 'resume' action to resume normal service")
 def test_ceilometer_release_services_queens(self):
     """Ensure that queens specific services are identified"""
     self.get_os_codename_install_source.return_value = 'queens'
     self.assertEqual([],
                      utils.ceilometer_release_services())
 def test_ceilometer_release_services_mitaka(self):
     """Ensure that mitaka specific services are identified"""
     self.get_os_codename_install_source.return_value = 'mitaka'
     self.assertEqual(['ceilometer-agent-notification'],
                      utils.ceilometer_release_services())
 def test_ceilometer_release_services_queens(self):
     """Ensure that queens specific services are identified"""
     self.get_os_codename_install_source.return_value = 'queens'
     self.assertEqual([],
                      utils.ceilometer_release_services())
 def test_ceilometer_release_services_mitaka(self):
     """Ensure that mitaka specific services are identified"""
     self.get_os_codename_install_source.return_value = 'mitaka'
     self.assertEqual(['ceilometer-agent-notification'],
                      utils.ceilometer_release_services())