def execute(): clear_result() out = CREATE_ARRAY_BASIC_1.execute() cli.load_array("") cli.create_array("uram0", DATA, SPARE, "", "") cli.load_array("") out = cli.mount_ibofos() return out
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
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() 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
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
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() out = DELETE_ARRAY_BASIC_1.execute() ret = json_parser.get_response_code(out) if ret == 0: out = cli.load_array("") return out
def load_array(): out = cli.load_array("") ret = json_parser.get_response_code(out) if ret != 0: TEST_LOG.print_err("Failed to load array") TEST_LOG.print_debug(out) sys.exit(1) TEST_LOG.print_info("* Array loaded")
def load_array(): out = cli.load_array("") code = json_parser.get_response_code(out) cli.list_device() cli.list_volume("") if code == 0: write_log("array loaded successfully") return True else: write_log("array loading failed, code: " + str(code)) return False
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
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() RESTART_IBOFOS_BASIC_1.execute() out = cli.load_array("wrong_array_name") return out