Bug 1836323 - fio: enable http I/O engine
Summary: fio: enable http I/O engine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fio
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Eric Sandeen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-15 15:57 UTC by Martin Bukatovic
Modified: 2020-05-24 03:27 UTC (History)
3 users (show)

Fixed In Version: fio-3.19-3.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-24 03:27:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
specfile patch to enable http engine (1.12 KB, patch)
2020-05-15 16:06 UTC, Martin Bukatovic
no flags Details | Diff

Description Martin Bukatovic 2020-05-15 15:57:33 UTC
Description of problem
======================

Fio provides http I/O engine, which:

> supports GET/PUT requests over HTTP(S) with libcurl
> to a WebDAV or S3 endpoint.

See list of I/O engines from upstream docs:

https://fio.readthedocs.io/en/latest/fio_doc.html#i-o-engine

This engine is enabled by default as long as configure script
finds libvurl and openssl libraries.

But since we don't have these libraries among build dependencies,
fio package doesn't have http engine enabled.

I'm proposing to have this engine enabled in fedora package, see 
spec file patch attached to this bug.

Version-Release number of selected component
============================================

fio-3.19-2.fc32.x86_64

Steps to Reproduce
==================

1. Try to use http I/O engine, eg. via example fio job
   files from /usr/share/doc/fio/examples/http-*.fio

Actual results
==============

fio job fails on loading http engine:

```
$ fio /usr/share/doc/fio/examples/http-s3.fio
fio: engine http not loadable
fio: failed to load engine
Bad option <http_verbose=0>
Bad option <https=on>
Did you mean loops?
Bad option <http_mode=s3>
Did you mean zonemode?
Bad option <http_s3_key=${S3_KEY}>
Bad option <http_s3_keyid=${S3_ID}>
Bad option <http_host=s3.eu-central-1.amazonaws.com>
Bad option <http_s3_region=eu-central-1>
fio: job global dropped
```

Expected results
================

fio job doesn't fail because of missing http engine

Comment 1 Martin Bukatovic 2020-05-15 16:06:27 UTC
Created attachment 1688999 [details]
specfile patch to enable http engine

Comment 2 Martin Bukatovic 2020-05-15 16:42:51 UTC
I tested proposed fix via mock build on x86_64 arch only, and it seems to work,
fio no longer complains about missing http module:

```
$ fio /usr/share/doc/fio/examples/http-s3.fio
fio: failed parsing http_s3_key
fio: failed parsing http_s3_keyid
fio: job global dropped
```

Comment 3 Eric Sandeen 2020-05-15 17:05:39 UTC
Fine by me, I'll get this pushed & built, thanks.

Comment 4 Fedora Update System 2020-05-15 19:21:15 UTC
FEDORA-2020-3456c22626 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3456c22626

Comment 5 Fedora Update System 2020-05-16 05:07:10 UTC
FEDORA-2020-3456c22626 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3456c22626`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3456c22626

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-05-24 03:27:43 UTC
FEDORA-2020-3456c22626 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.