This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2172073 - virtiofsd quietly deprecates options
Summary: virtiofsd quietly deprecates options
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virtiofsd
Version: 9.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: German Maglione
QA Contact: xiagao
URL:
Whiteboard:
Depends On:
Blocks: 2171972
TreeView+ depends on / blocked
 
Reported: 2023-02-21 11:57 UTC by Ján Tomko
Modified: 2023-09-22 16:55 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-22 16:55:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-7415 0 None Migrated None 2023-09-22 16:55:41 UTC
Red Hat Issue Tracker RHELPLAN-149516 0 None None None 2023-02-21 11:59:09 UTC

Description Ján Tomko 2023-02-21 11:57:10 UTC
Description of problem:
virtiofsd reports a warning when options compatible with the C implementation are used:
# cat /var/log/libvirt/qemu/test2-ua-8d50d10c-719d-11ed-91f4-3a40aa736603-virtiofsd.log
[2023-02-20T02:22:45Z WARN  virtiofsd] Use of deprecated option format '-o': Please specify options without it (e.g., '--cache auto' instead of '-o cache=auto')
[2023-02-20T02:22:45Z INFO  virtiofsd] Waiting for vhost-user socket connection...

2.Check the virtiofsd usage:
#/usr/libexec/virtiofsd --help
..
OPTIONS:
        --cache <cache>
            The caching policy the file system should use (auto, always, never) [default: auto]

    -o <compat-options>...
            Options in a format compatible with the legacy implementation 
 ***[deprecated]***

However, the vhost-user interoperability file still remains identical to the one provided by the C version:
{
  "description": "QEMU virtiofsd vhost-user-fs",
  "type": "fs",
  "binary": "/usr/libexec/virtiofsd"
}

Some sort of hint/flag/capability to let libvirt know it's dealing with an incompatible implementation would be helpful. 

Version-Release number of selected component (if applicable):
virtiofsd-1.5.0-1.el9.x86_64

Comment 1 Vivek Goyal 2023-02-28 12:51:43 UTC
Hi German,

Can you please have a look at this one.

Comment 2 German Maglione 2023-03-01 10:21:38 UTC
Hi Ján,

What would be useful to add to signal the new option format?, something like:
"supported-option-formats": ["old", "new"]  (not sure if "old" and "new" are good names)
Just in case we need to add a new format (someone asked for a qmp style format)

I think we should also update the output of '--print_capabilities', here we can also set "features: []" (after checking) if we support file handles, and migration (when finished)

Comment 3 Ján Tomko 2023-03-02 12:41:39 UTC
Hi,

naming is hard :)

"old" vs. "new" get "old" over time - is there a better way to describe them? "minus-o", "grouped" vs. "individual"?
Is there any other reason for their deprecation than the duplicity? I see they're referred to as "compat" in the code,
but not sure what the "new" ones would be.

Also, libvirt could infer the new ones just from the presence of the field, e.g.:
"features": ["no-compat-options"]

I'm not sure what the constraints are for the interop files from reading:
https://gitlab.com/qemu-project/qemu/blob/master/docs/interop/vhost-user.json
i.e. whether "supported-option-formats" is ok, or it should be "features".

And yes, --print_capabilities should report the same as the .json file.
So far libvirt only looks for the .json files in the usual locations when there
is no binary path specified in the XML, because they only contain the binary path.
But for other feature flags, it will need to start looking at --print_capabilities too
if we did not learn the features from virtiofsd.json

Comment 4 German Maglione 2023-03-07 12:47:11 UTC
(In reply to Ján Tomko from comment #3)
> Hi,
> 
> naming is hard :)
> 
> "old" vs. "new" get "old" over time - is there a better way to describe
> them? "minus-o", "grouped" vs. "individual"?
> Is there any other reason for their deprecation than the duplicity? I see
> they're referred to as "compat" in the code,
> but not sure what the "new" ones would be.
> 
> Also, libvirt could infer the new ones just from the presence of the field,
> e.g.:
> "features": ["no-compat-options"]
> 
> I'm not sure what the constraints are for the interop files from reading:
> https://gitlab.com/qemu-project/qemu/blob/master/docs/interop/vhost-user.json
> i.e. whether "supported-option-formats" is ok, or it should be "features".

It seems you are right we need to use "features", but IIUC we need to update
the schema to use "features". Although, it seems @VHostUserBackendCapabilities
is outdated, because it doesn't define the features for block devices either
(@VHostUserBackendCapabilitiesBlock)

I'm ok with: "features": ["no-compat-options"]

I'll find if we need to update the schema.
 
> And yes, --print_capabilities should report the same as the .json file.
> So far libvirt only looks for the .json files in the usual locations when
> there
> is no binary path specified in the XML, because they only contain the binary
> path.
> But for other feature flags, it will need to start looking at
> --print_capabilities too
> if we did not learn the features from virtiofsd.json

I think my idea of showing if we effectively support file handles will not work.
The docs say "The capabilities can be reported dynamically depending on
the host capabilities", but to report the FH it depends on the
shared dir, so it requires to also pass --shared-dir, and I think that 
is not expected.

Comment 5 RHEL Program Management 2023-09-22 16:54:50 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 6 RHEL Program Management 2023-09-22 16:55:45 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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