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
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
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
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
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
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)))
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
def execute(): out = CREATE_ARRAY_BASIC.execute() ret = json_parser.get_response_code(out) if ret == 0: out = cli.delete_array(WRONGNAME) return out
def execute(): out = UNMOUNT_ARRAY_BASIC.execute() ret = json_parser.get_response_code(out) if ret == 0: out = cli.delete_array(ARRAYNAME) return out
def execute(): START_POS_BASIC.execute() out = cli.delete_array("POSArray") return out
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
def execute(): clear_result() ibofos.start_ibofos() out = cli.delete_array("") return out