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
示例#2
0
def execute():
    clear_result()
    MOUNT_VOL_BASIC_1.execute()
    out = cli.array_info(ARRAYNAME)
    used = json_parser.get_used(out)
    cli.unmount_array(MOUNT_VOL_BASIC_1.ARRAYNAME)
    cli.mount_array(MOUNT_VOL_BASIC_1.ARRAYNAME)
    return used
def execute():
    ADD_SPARE_BASIC.execute()
    cli.unmount_array(ADD_SPARE_BASIC.ARRAYNAME)
    pos.exit_pos()
    pos.start_pos()
    cli.scan_device()
    cli.mount_array(ADD_SPARE_BASIC.ARRAYNAME)
    out = cli.array_info(ADD_SPARE_BASIC.ARRAYNAME)
    return out
示例#4
0
def execute():
    clear_result()
    CREATE_VOL_BASIC_1.execute()
    CREATE_VOL_BASIC_2.execute()
    CREATE_VOL_BASIC_3.execute()
    cli.unmount_array(ARRAYNAME)
    pos.exit_pos()
    pos.start_pos()
    cli.scan_device()
    cli.mount_array(ARRAYNAME)
示例#5
0
def execute():
    CREATE_ARRAY_BASIC.execute()
    pos_util.pci_detach(CREATE_ARRAY_BASIC.ANY_DATA)
    time.sleep(1)
    out = cli.mount_array(CREATE_ARRAY_BASIC.ARRAYNAME)
    time.sleep(5)
    print(out)
    return out
def execute():
    CREATE_ARRAY_NO_SPARE.execute()
    pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_1)
    time.sleep(0.1)
    pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_2)
    time.sleep(0.1)
    out = cli.mount_array(CREATE_ARRAY_NO_SPARE.ARRAYNAME)
    return out
示例#7
0
def mount_array(arrayId):
    out = cli.mount_array(get_arrayname(arrayId))
    ret = json_parser.get_response_code(out)
    if ret != 0:
        TEST_LOG.print_err("Failed to mount array{}".format(arrayId))
        TEST_LOG.print_debug(out)
        sys.exit(1)
    TEST_LOG.print_info("* {} mounted".format(get_arrayname(arrayId)))
示例#8
0
def mount_pos():
    out = cli.mount_array(ARRAYNAME)
    code = json_parser.get_response_code(out)
    if code == 0:
        write_log("array mounted successfully")
        return True
    else:
        write_log("array mounting failed code: " + str(code))
        return False
示例#9
0
def execute():
    MOUNT_ARRAY_NO_SPARE.execute()
    pos_util.pci_detach(MOUNT_ARRAY_NO_SPARE.DATA_DEV_1)
    time.sleep(0.1)
    cli.unmount_array(MOUNT_ARRAY_NO_SPARE.ARRAYNAME)
    pos.exit_pos()
    time.sleep(5)
    pos.start_pos()
    cli.scan_device()
    out = cli.mount_array(MOUNT_ARRAY_NO_SPARE.ARRAYNAME)
    return out
示例#10
0
def execute():
    MOUNT_ARRAY_BASIC.execute()
    spare = MOUNT_ARRAY_BASIC.SPARE
    pos_util.pci_detach(spare)
    time.sleep(0.1)
    cli.unmount_array(ARRAYNAME)
    pos.exit_pos()
    time.sleep(5)
    pos.start_pos()
    cli.scan_device()
    out = cli.mount_array(ARRAYNAME)
    return out
示例#11
0
def execute():
    SCAN_DEV_BASIC.execute()
    out = cli.mount_array("POSArray")
    return out
示例#12
0
def execute():
    CREATE_ARRAY_NO_SPARE.execute()
    out = cli.mount_array(ARRAYNAME)
    return out
示例#13
0
def execute():
    DELETE_ARRAY_WITH_VOL.execute()
    cli.create_array("uram0", DATA, SPARE, ARRAYNAME, "")
    cli.mount_array(ARRAYNAME)
    out = cli.array_info(ARRAYNAME)
    return out
示例#14
0
def execute():
    MOUNT_ARRAY_BASIC.execute()
    out = cli.mount_array(MOUNT_ARRAY_BASIC.ARRAYNAME)
    return out