Exemple #1
0
def execute():
    clear_result()
    CREATE_ARRAY_BASIC_1.execute()
    list1 = cli.array_info("")
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.load_array("")
    list2 = cli.array_info("")
    return list1, list2
Exemple #2
0
def exit_ibofos():
    write_log("exiting ibofos...")
    if get_state() != "OFFLINE":
        ret = unmount_ibofos()
        if ret == False:
            write_log("ibofos unmounting failed")
            return False
    fio_util.dispose()
    ibofos.exit_ibofos()
    write_log("ibofos has been terminated")
    return True
Exemple #3
0
def execute():
    clear_result()
    CREATE_VOL_BASIC_1.execute()
    CREATE_VOL_BASIC_2.execute()
    CREATE_VOL_BASIC_3.execute()
    cli.unmount_ibofos()
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.load_array("")
    cli.mount_ibofos()
def execute():
    clear_result()
    CREATE_ARRAY_BASIC_2.execute()
    list1 = cli.array_info(ARRAY_NAME)
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    out = cli.load_array(ARRAY_NAME)
    print(out)
    list2 = cli.array_info(ARRAY_NAME)
    return list1, list2
Exemple #5
0
def execute():
    clear_result()
    ADD_DEV_BASIC_1.execute()
    cli.unmount_ibofos()
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.load_array("")
    cli.mount_ibofos()
    out = cli.array_info("")
    return out
Exemple #6
0
def execute():
    clear_result()
    CREATE_ARRAY_NO_SPARE.execute()
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.load_array("")
    ibofos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_1)
    time.sleep(0.1)
    out = cli.mount_ibofos()
    return out
Exemple #7
0
def execute():
    clear_result()
    CREATE_ARRAY_BASIC_1.execute()
    ibofos.exit_ibofos()

    ibofos_mbr_reset = IBOFOS_ROOT + "/test/script/mbr_reset.sh"
    subprocess.call([ibofos_mbr_reset])

    ibofos.start_ibofos()
    out = cli.load_array("")

    return out
def execute():
    clear_result()
    MOUNT_ARRAY_BASIC_1.execute()
    spare = MOUNT_ARRAY_BASIC_1.SPARE
    ibofos_util.pci_detach(spare)
    time.sleep(0.1)
    cli.unmount_ibofos()
    ibofos.exit_ibofos()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.load_array("")
    out = cli.mount_ibofos()
    return out
def execute():
    clear_result()
    ibofos_util.pci_rescan()
    MOUNT_VOL_NO_SPARE.execute()
    ibofos_util.pci_detach("unvme-ns-0")
    print ("unvme-ns-0 has been detached")
    time.sleep(3)
    ibofos_util.pci_detach("unvme-ns-1")
    print ("unvme-ns-1 has been detached")
    time.sleep(3)
    cli.unmount_ibofos()
    out = ibofos.exit_ibofos()
    return out
def execute():
    clear_result()
    MOUNT_VOL_BASIC_1.execute()
    cli.unmount_ibofos()
    out = ibofos.exit_ibofos()
    return out