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 1679026 - [RFE]Add parameter to specify guest's id, name and uuid in virt-xml
Summary: [RFE]Add parameter to specify guest's id, name and uuid in virt-xml
Keywords:
Status: CLOSED DUPLICATE of bug 1679025
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1679025
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-20 07:10 UTC by zonglin jiang
Modified: 2019-03-21 17:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1679025
Environment:
Last Closed: 2019-03-21 17:53:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zonglin jiang 2019-02-20 07:10:54 UTC
+++ This bug was initially created as a clone of Bug #1679025 +++

Description of problem:
[RFE]Add parameter to specify guest's id, name and uuid in virt-xml

Otherwise guest with pure number as its name will not be found since its name will only be viewed as guest id


Version-Release number of selected component (if applicable):
For rhel 7
kernel-3.10.0-957.el7.x86_64
qemu-kvm-rhev-2.12.0-19.el7_6.2.x86_64
libvirt-python-4.5.0-1.el7.x86_64
libvirt-4.5.0-10.el7_6.4.x86_64
virt-install-1.5.0-1.el7.noarch
virt-manager-1.5.0-1.el7.noarch

For rhel8
kernel-4.18.0-60.el8.x86_64
python3-libvirt-4.5.0-1.module+el8+2529+a9686a4d.x86_64
virt-install-2.0.0-2.el8.noarch
libvirt-4.5.0-18.module+el8+2691+dc742e5d.x86_64
qemu-kvm-2.12.0-57.module+el8+2683+02b3b955.x86_64
virt-manager-2.0.0-2.el8.noarch

How reproducible
100%

Steps to Reproduce
1. Create a guest with name 123
2. virt-xml 123 --edit name=usb_2_1_8 --hostdev rom_bar=off

Actual results:
ERROR    Could not find domain '123': Domain not found: no domain with matching id 123

Expected results:
the guest called 123 can be edited

Additionally info:
some libvirt components can specify parameter's character like
--id, --uuid, --domain-name
In virt-xml, the pure number parameter will only be treated as guest id

Comment 3 Cole Robinson 2019-03-21 17:53:44 UTC
As mentioned in the source bug this is now fixed upstream. However I don't think it's important enough to backport to RHEl7 or track through the RHEL process. So just duping to the closed upstream bug

*** This bug has been marked as a duplicate of bug 1679025 ***


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