Bug 2171972

Summary: virtiofsd started by libvirtd uses the deprecated option format
Product: Red Hat Enterprise Linux 9 Reporter: yafu <yafu>
Component: libvirtAssignee: Ján Tomko <jtomko>
libvirt sub component: General QA Contact: Lili Zhu <lizhu>
Status: CLOSED MIGRATED Docs Contact:
Severity: low    
Priority: low CC: jtomko, lizhu, lmen, virt-maint
Version: 9.2Keywords: MigratedToJIRA, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-22 13:26:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2172073    
Bug Blocks:    

Description yafu 2023-02-21 03:08:30 UTC
Description of problem:
virtiofsd started by libvirtd uses the deprecated option foramt

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

How reproducible:
100%

Steps to Reproduce:
1.Start a guest with virtiofs device:
#virsh start test2

#virsh dumpxml test2 --xpath //filesystem
<filesystem type="mount" accessmode="passthrough">
  <driver type="virtiofs" queue="512"/>
  <binary path="/usr/libexec/virtiofsd" xattr="on">
    <cache mode="none"/>
    <lock posix="off" flock="off"/>
  </binary>
  <source dir="/var/tmp/mount_tag0"/>
  <target dir="mount_tag3"/>
  <alias name="ua-8d50d10c-719d-11ed-91f4-3a40aa736603"/>
  <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
</filesystem>

3.Check the virtiofsd.log in /var/log/libvirt/qemu:
# vim /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...

4.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]***


Actual results:
virtiofsd started by libvirtd uses the deprecated option foramt

Expected results:
Modify the virtiofsd's option foramt with the suggestion mode in libvirt. 

Additional info:

Comment 1 RHEL Program Management 2023-09-22 13:23:44 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 2 RHEL Program Management 2023-09-22 13:26:22 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.