コード例 #1
0
ファイル: actions.py プロジェクト: akanda/astara-juju
def resume(args):
    """Resume all the Glance services.

    @raises Exception if any services fail to start
    """
    for service in services():
        started = service_resume(service)
        if not started:
            raise Exception("{} didn't start cleanly.".format(service))
    status_set("active", "")
コード例 #2
0
ファイル: actions.py プロジェクト: akanda/astara-juju
def pause(args):
    """Pause all the Glance services.

    @raises Exception if any services fail to stop
    """
    for service in services():
        stopped = service_pause(service)
        if not stopped:
            raise Exception("{} didn't stop cleanly.".format(service))
    status_set("maintenance", "Paused. Use 'resume' action to resume normal service.")
コード例 #3
0
ファイル: actions.py プロジェクト: scottwedge/astara-juju
def resume(args):
    """Resume all the Glance services.

    @raises Exception if any services fail to start
    """
    for service in services():
        started = service_resume(service)
        if not started:
            raise Exception("{} didn't start cleanly.".format(service))
    status_set("active", "")
コード例 #4
0
ファイル: actions.py プロジェクト: scottwedge/astara-juju
def pause(args):
    """Pause all the Glance services.

    @raises Exception if any services fail to stop
    """
    for service in services():
        stopped = service_pause(service)
        if not stopped:
            raise Exception("{} didn't stop cleanly.".format(service))
    status_set("maintenance",
               "Paused. Use 'resume' action to resume normal service.")
コード例 #5
0
ファイル: actions.py プロジェクト: javacruft/charm-glance
def resume(args):
    """Resume all the Glance services.

    @raises Exception if any services fail to start
    """
    for service in services():
        started = service_resume(service)
        if not started:
            raise Exception("{} didn't start cleanly.".format(service))
    with HookData()():
        kv().set('unit-paused', False)
    assess_status(CONFIGS)
コード例 #6
0
ファイル: actions.py プロジェクト: javacruft/charm-glance
def pause(args):
    """Pause all the Glance services.

    @raises Exception if any services fail to stop
    """
    for service in services():
        stopped = service_pause(service)
        if not stopped:
            raise Exception("{} didn't stop cleanly.".format(service))
    with HookData()():
        kv().set('unit-paused', True)
    assess_status(CONFIGS)