示例#1
0
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    #linux.remove_vlan_eth("eth0", 10)
    #linux.remove_vlan_eth("eth0", 11)
    cmd = host_plugin.DeleteVlanDeviceCmd()
    cmd.vlan_ethname = 'eth0.10'

    hosts = test_lib.lib_get_all_hosts_from_plan()
    if type(hosts) != type([]):
        hosts = [hosts]
    for host in hosts:
        http.json_dump_post(
            testagent.build_http_path(host.managementIp_,
                                      host_plugin.DELETE_VLAN_DEVICE_PATH),
            cmd)

    cmd.vlan_ethname = 'eth0.11'
    for host in hosts:
        http.json_dump_post(
            testagent.build_http_path(host.managementIp_,
                                      host_plugin.DELETE_VLAN_DEVICE_PATH),
            cmd)

    test_lib.setup_plan.stop_node()
    test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('VirtualRouter Teardown Success')
def test():
    # Clear ECS instance remained in Aliyun
    hybrid.add_datacenter_iz()
    hybrid.tear_down()
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    #linux.remove_vlan_eth("eth0", 10)
    #linux.remove_vlan_eth("eth0", 11)
    cmd = host_plugin.DeleteVlanDeviceCmd()
    cmd.vlan_ethname = 'eth0.10'
    
    hosts = test_lib.lib_get_all_hosts_from_plan()
    if type(hosts) != type([]):
        hosts = [hosts]
    for host in hosts:
        http.json_dump_post(testagent.build_http_path(host.managementIp_, host_plugin.DELETE_VLAN_DEVICE_PATH), cmd)

    cmd.vlan_ethname = 'eth0.11'
    for host in hosts:
        http.json_dump_post(testagent.build_http_path(host.managementIp_, host_plugin.DELETE_VLAN_DEVICE_PATH), cmd)

    test_lib.setup_plan.stop_node()
    test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('Hybrid Teardown Success')
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    test_lib.setup_plan.stop_node()
    test_util.test_pass('Test Teardown Success')
示例#4
0
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    test_lib.setup_plan.stop_node()
    test_util.test_pass('VCenter Teardown Success')
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    test_lib.setup_plan.stop_node()

    test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('ZStack POC Test Teardown Success')
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    test_lib.setup_plan.stop_node()

    test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('ZStack POC Test Teardown Success')
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    clean_util.delete_pxe()
    shell.call('pkill vbmc')
    test_lib.setup_plan.stop_node()
    test_util.test_pass('Test Teardown Success')
def test():
    if os.environ.get('zstackManagementIp') == None:
        clean_util.cleanup_all_vms_violently()
        clean_util.cleanup_none_vm_volumes_violently()
        clean_util.umount_all_primary_storages_violently()
        clean_util.cleanup_backup_storage()
        test_lib.setup_plan.stop_node()
    
        test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('ZStack Installation Teardown Success')
示例#9
0
def test():
    if os.environ.get('zstackManagementIp') == None:
        clean_util.cleanup_all_vms_violently()
        clean_util.cleanup_none_vm_volumes_violently()
        clean_util.umount_all_primary_storages_violently()
        clean_util.cleanup_backup_storage()
        test_lib.setup_plan.stop_node()

        test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('ZStack Installation Teardown Success')
def test():
    clean_util.cleanup_all_vms_violently()
    clean_util.cleanup_none_vm_volumes_violently()
    clean_util.umount_all_primary_storages_violently()
    clean_util.cleanup_backup_storage()
    test_lib.setup_plan.stop_node()
    cmd = host_plugin.DeleteVlanDeviceCmd()
    
    hosts = test_lib.lib_get_all_hosts_from_plan()
    if type(hosts) != type([]):
        hosts = [hosts]

    for host in hosts:
        cmd.vlan_ethname = 'eth0.10'
        http.json_dump_post(testagent.build_http_path(host.managementIp_, host_plugin.DELETE_VLAN_DEVICE_PATH), cmd)
        cmd.vlan_ethname = 'eth0.11'
        http.json_dump_post(testagent.build_http_path(host.managementIp_, host_plugin.DELETE_VLAN_DEVICE_PATH), cmd)

    test_lib.lib_cleanup_host_ip_dict()
    test_util.test_pass('Multicluster Teardown Success')