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.
Description of problem:
GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid machine name
Version-Release number of selected component (if applicable):
dbus-1.12.20-3.el9.x86_64
libvirt-client-7.0.0-4.el9.x86_64
libvirt-daemon-7.0.0-4.el9.x86_64
qemu-kvm-5.2.0-11.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
# virt-v2v -i libvirt -ic vpx://xxx -o libvirt -of raw -os default 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\-m' -it vddk -io vddk-libdir=/root/vddk_libdir/latest -io vddk-thumbprint=xxx -on 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE' -ip /root/v2v_vpx_passwd
[ 0.0] Opening the source -i libvirt -ic vpx://xxx Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\-m -it vddk -io vddk-libdir=/root/vddk_libdir/latest -io vddk-thumbprint=xxx
[ 1.7] Creating an overlay to protect the source from being modified
[ 2.5] Opening the overlay
[ 7.0] Inspecting the overlay
[ 23.2] Checking for sufficient free disk space in the guest
[ 23.2] Estimating space required on target for each disk
[ 23.2] Converting Red Hat Enterprise Linux Server 7.9 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 107.7] Mapping filesystem data to avoid copying unused and blank areas
[ 108.2] Closing the overlay
[ 108.5] Assigning disks to buses
[ 108.5] Checking if the guest needs BIOS or UEFI to boot
[ 108.5] Initializing the target -o libvirt -os default
[ 108.5] Copying disk 1/1 to /var/lib/libvirt/images/Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE-sda (raw)
(100.00/100%)
[ 383.3] Creating output metadata
[ 383.4] Finishing off
[root@ibm-x3250m6-10 ~]# virsh list --all
Id Name State
-------------------------------------------------------------------------------------------
- Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE shut off
[root@ibm-x3250m6-10 ~]# virsh dumpxml 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE'
<domain type='kvm'>
<name>Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE</name>
<uuid>401570ea-1bd1-4f46-907d-38dc8ed6bd3c</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://redhat.com/rhel/7.9"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-rhel8.4.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='custom' match='exact' check='none'>
<model fallback='forbid'>qemu64</model>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='volume' device='disk'>
<driver name='qemu' type='raw'/>
<source pool='default' volume='Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE-sda'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</disk>
......
</devices>
</domain>
# virsh start 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE'
error: Failed to start domain 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE'
error: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid machine name
Actual results:
GDbus error happens and vm starts failure.
Expected results:
VM should start successfully.
Additional info:
1) The same VM name can be started successfully on rhel8.
2) The bug can be reproduced by a simpler name '|.-m'.
Description of problem: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid machine name Version-Release number of selected component (if applicable): dbus-1.12.20-3.el9.x86_64 libvirt-client-7.0.0-4.el9.x86_64 libvirt-daemon-7.0.0-4.el9.x86_64 qemu-kvm-5.2.0-11.el9.x86_64 How reproducible: 100% Steps to Reproduce: # virt-v2v -i libvirt -ic vpx://xxx -o libvirt -of raw -os default 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\-m' -it vddk -io vddk-libdir=/root/vddk_libdir/latest -io vddk-thumbprint=xxx -on 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE' -ip /root/v2v_vpx_passwd [ 0.0] Opening the source -i libvirt -ic vpx://xxx Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\-m -it vddk -io vddk-libdir=/root/vddk_libdir/latest -io vddk-thumbprint=xxx [ 1.7] Creating an overlay to protect the source from being modified [ 2.5] Opening the overlay [ 7.0] Inspecting the overlay [ 23.2] Checking for sufficient free disk space in the guest [ 23.2] Estimating space required on target for each disk [ 23.2] Converting Red Hat Enterprise Linux Server 7.9 (Maipo) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 107.7] Mapping filesystem data to avoid copying unused and blank areas [ 108.2] Closing the overlay [ 108.5] Assigning disks to buses [ 108.5] Checking if the guest needs BIOS or UEFI to boot [ 108.5] Initializing the target -o libvirt -os default [ 108.5] Copying disk 1/1 to /var/lib/libvirt/images/Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE-sda (raw) (100.00/100%) [ 383.3] Creating output metadata [ 383.4] Finishing off [root@ibm-x3250m6-10 ~]# virsh list --all Id Name State ------------------------------------------------------------------------------------------- - Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE shut off [root@ibm-x3250m6-10 ~]# virsh dumpxml 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE' <domain type='kvm'> <name>Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE</name> <uuid>401570ea-1bd1-4f46-907d-38dc8ed6bd3c</uuid> <metadata> <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> <libosinfo:os id="http://redhat.com/rhel/7.9"/> </libosinfo:libosinfo> </metadata> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='pc-q35-rhel8.4.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='custom' match='exact' check='none'> <model fallback='forbid'>qemu64</model> </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='volume' device='disk'> <driver name='qemu' type='raw'/> <source pool='default' volume='Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE-sda'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </disk> ...... </devices> </domain> # virsh start 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE' error: Failed to start domain 'Auto-esx7.0-rhel7.9-special-characters~!@#$%^&*_=+,?><:;|."[]()`\\-mpJWE' error: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid machine name Actual results: GDbus error happens and vm starts failure. Expected results: VM should start successfully. Additional info: 1) The same VM name can be started successfully on rhel8. 2) The bug can be reproduced by a simpler name '|.-m'.