def execute(): clear_result() UNMOUNT_VOL_BASIC_1.execute() cli.delete_volume(UNMOUNT_VOL_BASIC_1.VOL_NAME, "") out = cli.update_volume_qos(UNMOUNT_VOL_BASIC_1.VOL_NAME, str(IOPS), str(BW), "") return out
def delete_volume(volumeId): out = cli.delete_volume("vol" + str(volumeId), "") ret = json_parser.get_response_code(out) if ret != 0: TEST_LOG.print_err("Failed to delete volume") TEST_LOG.print_debug(out) sys.exit(1) out = spdk_rpc.send_request("nvmf_delete_subsystem " + TEST.NQN + str(volumeId)) if out != 0: TEST_LOG.print_err("Failed to delete volume") TEST_LOG.print_debug(out) sys.exit(1) TEST_LOG.print_info("* Volume {} deleted".format(volumeId))
def delete_volume(arrayId, volumeId): out = cli.delete_volume(get_volname(volumeId), get_arrayname(arrayId)) ret = json_parser.get_response_code(out) if ret != 0: TEST_LOG.print_err("Failed to delete volume") TEST_LOG.print_debug(out) sys.exit(1) subsystemId = TEST_LIB.get_subsystem_id(arrayId, volumeId) out = spdk_rpc.send_request("nvmf_delete_subsystem " + TEST.NQN + str(subsystemId)) if out != 0: TEST_LOG.print_err("Failed to delete volume") TEST_LOG.print_debug(out) sys.exit(1) TEST_LOG.print_info("* Volume {} deleted".format(volumeId))
def execute(): clear_result() CREATE_VOL_BASIC_1.execute() out = cli.delete_volume(CREATE_VOL_BASIC_1.VOL_NAME, "wrong_array_name") return out
def execute(): clear_result() UNMOUNT_VOL_BASIC_1.execute() out = cli.delete_volume(UNMOUNT_VOL_BASIC_1.VOL_NAME, "") return out
def execute(): clear_result() MOUNT_VOL_BASIC_1.execute() out = cli.delete_volume(VOL_NAME, ARRAYNAME) return out
def execute(): clear_result() CREATE_VOL_BASIC_1.execute() wrong_name = "wrong_vol" out = cli.delete_volume(wrong_name, "") return out