Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
libguestfs documentation did not specify that special characters should be surrounded by quotes or otherwise "escaped" when used with the virt-list-filesystems command at the command line. The following has been added to the libguestfs documentation:
Libvirt guest names can contain arbitrary characters, some of which have meaning to the shell such as # and space. You may need to quote or escape these characters on the command line. See the shell manual page sh(1) for details.
DescriptionHumble Chirammal
2010-10-02 13:01:41 UTC
Description of problem:
"virt-list-filesystems" failed to parse command line argument if the domain name is
"#".
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux release 6.0 Beta (Santiago)
Kernel : 2.6.32-44.2.el6.x86_64
Package: libguestfs-tools-1.2.7-1.el6.5.x86_64
Arch : x86_64
How reproducible:
Always
Steps to Reproduce:
1. Start a guest which has name "#"
2. Make sure that guest is running.
[root@dhcp210-84 ~]# virsh list
Id Name State
----------------------------------
4 RHEL6-64 running
6 # running
3. Verify the domain name with the below command
[root@dhcp210-84 ~]# virsh domname 6
#
[root@dhcp210-84 ~]#
4. Run #virt-list-filesystems command as shown below
[root@dhcp210-84 ~]# virt-list-filesystems -l # /root
virt-ls: no image, VM names or directory to list given
Usage:
virt-ls [--options] domname directory
virt-ls [--options] disk.img [disk.img ...] directory
Actual results:
It failed to parse domain name even-though virsh was able to start the guest
with the same name.
Expected results:
There should not be any error.
--Humble
Comment 2Richard W.M. Jones
2010-10-02 14:19:31 UTC
Comment 5Richard W.M. Jones
2010-10-04 10:47:18 UTC
This is actually not a bug. You need to escape
the parameter on the command line, eg:
virt-list-filesystems '#'
However this lead to a very interesting thread on
the upstream mailing list, and there are undoubtedly
other bugs in this area.
Comment 7Richard W.M. Jones
2010-10-13 12:51:43 UTC
Hugh, dev-ack+ (for 6.1) too.
Comment 8Richard W.M. Jones
2011-01-04 14:01:55 UTC
Tested with libguestfs-1.7.17-10.el6:
Have checked all the virt-* tools manual pages, including:
virt-edit
virt-inspector
virt-list-filesystems
virt-list-partitions
virt-make-fs
virt-resize
virt-tar
virt-win-reg
virt-cat
virt-df
virt-filesystems
virt-inspector2
virt-ls
virt-rescue
All the manual pages have the "SHELL QUOTING" content mentioned in bug 639601 comment 7.
According to the result above, move to VERIFIED.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
libguestfs documentation did not specify that special characters should be surrounded by quotes or otherwise "escaped" when used with the virt-list-filesystems command at the command line. The following has been added to the libguestfs documentation:
Libvirt guest names can contain arbitrary characters, some of which have meaning to the shell such as # and space. You may need to quote or escape these characters on the command line. See the shell manual page sh(1) for details.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHSA-2011-0586.html
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHSA-2011-0586.html
Description of problem: "virt-list-filesystems" failed to parse command line argument if the domain name is "#". Version-Release number of selected component (if applicable): Red Hat Enterprise Linux release 6.0 Beta (Santiago) Kernel : 2.6.32-44.2.el6.x86_64 Package: libguestfs-tools-1.2.7-1.el6.5.x86_64 Arch : x86_64 How reproducible: Always Steps to Reproduce: 1. Start a guest which has name "#" 2. Make sure that guest is running. [root@dhcp210-84 ~]# virsh list Id Name State ---------------------------------- 4 RHEL6-64 running 6 # running 3. Verify the domain name with the below command [root@dhcp210-84 ~]# virsh domname 6 # [root@dhcp210-84 ~]# 4. Run #virt-list-filesystems command as shown below [root@dhcp210-84 ~]# virt-list-filesystems -l # /root virt-ls: no image, VM names or directory to list given Usage: virt-ls [--options] domname directory virt-ls [--options] disk.img [disk.img ...] directory Actual results: It failed to parse domain name even-though virsh was able to start the guest with the same name. Expected results: There should not be any error. --Humble