Example #1
0
def reboot_agents(sleep_secs):
    stop_midolman_agents()
    await_ports(active=False)
    check_all_midolman_hosts(alive=False)

    time.sleep(sleep_secs)

    start_midolman_agents()
    await_ports(active=True)
    check_all_midolman_hosts(alive=True)
Example #2
0
def reboot_agents(sleep_secs):
    stop_midolman_agents()
    await_ports(active=False)
    check_all_midolman_hosts(alive=False)

    time.sleep(sleep_secs)

    start_midolman_agents()
    await_ports(active=True)
    check_all_midolman_hosts(alive=True)
Example #3
0
def reboot_agents(sleep_secs):
    midonet_api = get_midonet_api()
    stop_midolman_agents()
    time.sleep(5)
    check_all_midolman_hosts(midonet_api, alive=False)

    time.sleep(sleep_secs)

    start_midolman_agents()
    time.sleep(30)
    check_all_midolman_hosts(midonet_api, alive=True)
Example #4
0
def reboot_agents(sleep_secs):
    midonet_api = get_midonet_api()
    stop_midolman_agents()
    time.sleep(5)
    check_all_midolman_hosts(midonet_api, alive=False)

    time.sleep(sleep_secs)

    start_midolman_agents()
    time.sleep(30)
    check_all_midolman_hosts(midonet_api, alive=True)
Example #5
0
def test_host_status():
    """
    Title: Test host status update

    Scenario:
    When: The test starts up,
    Then: check if all Midolman agents are alive,
    Then: stops all Midolman agents,
    Then: check if all Midolman agents are now dead,
    Then: restarts all Midolman agetns,
    And: check again if all Midolman agents are alive,
    """
    check_all_midolman_hosts(alive=True)

    stop_midolman_agents()
    time.sleep(5)
    check_all_midolman_hosts(alive=False)

    start_midolman_agents()
    time.sleep(30)
    check_all_midolman_hosts(alive=True)
def test_host_status():
    """
    Title: Test host status update

    Scenario:
    When: The test starts up,
    Then: check if all Midolman agents are alive,
    Then: stops all Midolman agents,
    Then: check if all Midolman agents are now dead,
    Then: restarts all Midolman agetns,
    And: check again if all Midolman agents are alive,
    """
    check_all_midolman_hosts(alive=True)

    stop_midolman_agents()
    time.sleep(5)
    check_all_midolman_hosts(alive=False)

    start_midolman_agents()
    time.sleep(30)
    check_all_midolman_hosts(alive=True)