コード例 #1
0
def execute():
    clear_result()
    MOUNT_VOL_BASIC_1.execute()
    cli.unmount_ibofos()
    cli.delete_array("")
    cli.create_array("uram0", DATA, SPARE, "", "")
    cli.mount_ibofos()
    out = cli.get_ibofos_info()

    return out
コード例 #2
0
def execute():
    clear_result()
    out = CREATE_ARRAY_BASIC_1.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.delete_array("wrong_array_name")
    return out
コード例 #3
0
def execute():
    clear_result()
    ibofos_util.pci_rescan()
    out = CREATE_ARRAY_NO_SPARE.execute()
    print(out)
    out = cli.mount_ibofos()
    print(out)
    ibofos_util.pci_detach_and_attach(CREATE_ARRAY_NO_SPARE.DATA_DEV_1)
    time.sleep(2)
    ibofos_util.pci_detach_and_attach(CREATE_ARRAY_NO_SPARE.DATA_DEV_2)
    time.sleep(2)
    out = cli.unmount_ibofos()
    print(out)
    out = cli.delete_array("")
    print(out)
    ibofos_util.pci_rescan()
    ibofos.start_ibofos()
    cli.scan_device()
    cli.list_device()
    out = cli.create_array("uram0", DATA, SPARE, ARRAY_NAME, "")
    print(out)
    out = cli.mount_ibofos()
    print(out)

    return out
コード例 #4
0
def execute():
    out = UNMOUNT_ARRAY_WITH_VOL_MOUNTED.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.delete_array(UNMOUNT_ARRAY_WITH_VOL_MOUNTED.ARRAYNAME)
    print(out)
    return out
コード例 #5
0
def execute():
    pos_util.pci_rescan()
    out = CREATE_ARRAY_NO_SPARE.execute()
    print (out)
    out = cli.mount_array(ARRAYNAME)
    print (out)
    pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_1)
    time.sleep(2)
    pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_2)
    time.sleep(2)
    out = cli.unmount_array(ARRAYNAME)
    print (out)
    out = cli.delete_array(ARRAYNAME)
    print (out)
    pos.exit_pos()
    pos_util.pci_rescan()
    pos.start_pos()
    cli.scan_device()
    cli.list_device()
    out = cli.create_array("uram0", DATA, SPARE, ARRAYNAME, "RAID5")
    print (out)
    out = cli.mount_array(ARRAYNAME)
    print (out)

    return out
コード例 #6
0
ファイル: TEST_SETUP_POS.py プロジェクト: yyu-nim/poseidonos
def delete_array(arrayId):
    out = cli.delete_array(get_arrayname(arrayId))
    ret = json_parser.get_response_code(out)
    if ret != 0:
        TEST_LOG.print_err("Failed to delete array{}".format(arrayId))
        TEST_LOG.print_debug(out)
        sys.exit(1)
    TEST_LOG.print_info("* {} delete".format(get_arrayname(arrayId)))
コード例 #7
0
def execute():
    clear_result()
    out = CREATE_ARRAY_BASIC_1.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.mount_ibofos()
        ret = json_parser.get_response_code(out)
        if ret == 0:
            out = cli.unmount_ibofos()
            ret = json_parser.get_response_code(out)
            if ret == 0:
                out = cli.delete_array("")
    return out
コード例 #8
0
def execute():
    out = CREATE_ARRAY_BASIC.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.delete_array(WRONGNAME)
    return out
コード例 #9
0
def execute():
    out = UNMOUNT_ARRAY_BASIC.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.delete_array(ARRAYNAME)
    return out
コード例 #10
0
def execute():
    START_POS_BASIC.execute()
    out = cli.delete_array("POSArray")
    return out
コード例 #11
0
def execute():
    out = DELETE_ARRAY_AFTER_UNMOUNT.execute()
    ret = json_parser.get_response_code(out)
    if ret == 0:
        out = cli.delete_array(ARRAYNAME)
    return out
コード例 #12
0
def execute():
    clear_result()
    ibofos.start_ibofos()
    out = cli.delete_array("")
    return out