コード例 #1
0
def execute():
    clear_result()
    MOUNT_ARRAY_BASIC_1.execute()
    cli.create_volume("vol1", str(SIZE_20GB), "", "", "")
    cli.create_volume("vol2", str(SIZE_20GB), "", "", "")
    cli.create_volume("vol3", str(SIZE_20GB), "", "", "")
    cli.create_volume("vol4", str(SIZE_20GB), "", "", "")
    cli.create_volume("vol5", str(SIZE_20GB), "", "", "")
    cli.mount_volume("vol1", "", "")
    cli.mount_volume("vol2", "", "")
    cli.mount_volume("vol3", "", "")
    cli.mount_volume("vol4", "", "")
    cli.mount_volume("vol5", "", "")
    print ("five volumes are mounted")
    
    time.sleep(1)
    fio_proc = fio.start_fio(0, 20)
    time.sleep(5)

    ibofos_util.pci_detach(DETACH_TARGET_DEV_1)
    print ("first device has been detached")
    time.sleep(1)

    ibofos_util.pci_detach(DETACH_TARGET_DEV_2)
    print ("second device has been detached")
    time.sleep(1)

    out = cli.get_ibofos_info()
    print ("info : " + out)
    fio.stop_fio(fio_proc)
    return out
コード例 #2
0
def mount_vol(vol_name):
    out = cli.mount_volume(vol_name, "", "")
    code = json_parser.get_response_code(out)
    if code == 0:
        write_log("volume: " + vol_name + " mounted successfully")
        return True
    else:
        write_log("volume: " + vol_name + " mounting failed, code: " +
                  str(code))
        return False
コード例 #3
0
ファイル: 72hour_test_pos.py プロジェクト: yyu-nim/poseidonos
def mount_vol(vol_name):
    out = cli.mount_volume(vol_name, ARRAYNAME, "")
    code = json_parser.get_response_code(out)
    if code == 0:
        global MOUNTED_VOL_CNT
        MOUNTED_VOL_CNT = MOUNTED_VOL_CNT + 1
        write_log("volume: " + vol_name + " mounted successfully")
        return True
    else:
        write_log("volume: " + vol_name + " mounting failed, code: " +
                  str(code))
        return False
コード例 #4
0
def mount_volume(volumeId):
    out = spdk_rpc.send_request("nvmf_subsystem_add_listener " + TEST.NQN + str(volumeId) \
        + " -t " + TEST.trtype + " -a " + str(TEST.traddr) + " -s " + str(TEST.port))
    if out != 0:
        TEST_LOG.print_err("Failed to create volume")
        sys.exit(1)
    
    out = cli.mount_volume("vol" + str(volumeId), "", TEST.NQN + str(volumeId))
    ret = json_parser.get_response_code(out)
    if ret != 0:
        TEST_LOG.print_err("Failed to mount volume")
        TEST_LOG.print_debug(out)
        sys.exit(1)

    TEST_LOG.print_info("* Volume {} mounted".format(volumeId))
コード例 #5
0
def execute():
    clear_result()
    CREATE_VOL_BASIC_1.execute()
    out = cli.mount_volume(CREATE_VOL_BASIC_1.VOL_NAME, "", "")
    return out
コード例 #6
0
def execute():
    clear_result()
    CREATE_VOL_BASIC_1.execute()
    cli.unmount_array(ARRAYNAME)
    out = cli.mount_volume(CREATE_VOL_BASIC_1.VOL_NAME, ARRAYNAME, "")
    return out
コード例 #7
0
def execute():
    clear_result()
    CREATE_VOL_NO_SPARE.execute()
    out = cli.mount_volume(CREATE_VOL_NO_SPARE.VOL_NAME, "", "")
    return out
コード例 #8
0
def execute():
    clear_result()
    CREATE_VOL_BASIC_1.execute()
    wrong_name = "wrong_vol"
    out = cli.mount_volume(wrong_name, ARRAYNAME, "")
    return out