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:
Libvirt should provide more accurate help messages of iface/net/pool-define in man vish and virsh help
Version-Release number of selected component (if applicable):
libvirt-1.2.6-1.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
<1> For iface-define:
[root@localhost network-scripts]# man virsh
iface-define file
Define a host interface from an XML file, the interface is just defined but not started.
[root@localhost network-scripts]# virsh help iface-define
NAME
iface-define - define (but don't start) a physical host interface from an XML file
SYNOPSIS
iface-define <file>
DESCRIPTION
Define a physical host interface.
OPTIONS
[--file] <string> file containing an XML interface description
<2> For pool-define:
[root@localhost ~]# man virsh
pool-define file
Create, but do not start, a pool object from the XML file.
[root@localhost ~]# virsh help pool-define
NAME
pool-define - define (but don't start) a pool from an XML file
SYNOPSIS
pool-define <file>
DESCRIPTION
Define a pool.
OPTIONS
[--file] <string> file containing an XML pool description
<3> For net-define:
[root@localhost ~]# man virsh
net-define file
Define a persistent virtual network from an XML file, the network is just defined but not instantiated (started).
[root@localhost ~]# virsh help net-define
NAME
net-define - define (but don't start) a network from an XML file
SYNOPSIS
net-define <file>
DESCRIPTION
Define a network.
OPTIONS
[--file] <string> file containing an XML network description
Actual results:
As shown above help message, for example:
iface-define have a default function to update an existing physical host interface.
[root@localhost network-scripts]# virsh iface-list --all
Name State MAC Address
--------------------------------------------
enp2s0 active 00:1b:21:27:4e:ce
[root@localhost network-scripts]# virsh iface-dumpxml enp2s0 --inactive
<interface type='ethernet' name='enp2s0'>
<start mode='onboot'/>
<protocol family='ipv4'>
<ip address='10.66.70.108' prefix='23'/>
</protocol>
</interface>
[root@localhost network-scripts]# cat enp2s0.xml
<interface type='ethernet' name='enp2s0'>
<start mode='onboot'/>
<mtu size='1500'/>
<protocol family='ipv4'>
<ip address='10.66.70.108' prefix='23'/>
</protocol>
</interface>
[root@localhost network-scripts]# virsh iface-define enp2s0.xml
Interface enp2s0 defined from enp2s0.xml
[root@localhost network-scripts]# virsh iface-dumpxml enp2s0 --inactive
<interface type='ethernet' name='enp2s0'>
<start mode='onboot'/>
<mtu size='1500'/>
<protocol family='ipv4'>
<ip address='10.66.70.108' prefix='23'/>
</protocol>
</interface>
Aslo, on net and pool, define command can update a net or pool with the same name and UUID exists.
Expected results:
For example on iface-define
In man virsh
iface-define file
Define a host interface from an XML file, the interface is just defined but not started, or update an existing one.
In virsh help
NAME
iface-define - define (but don't start) or update a physical host interface from an XML file
DESCRIPTION
Define a physical host interface or update an existing one.
For net/pool-define should have similar updates.
I can reproduce on build libvirt-1.2.13-1.el7.x86_64
Verify this on build libvirt-1.2.17-6.el7.x86_64
Steps:
# virsh iface-define --help
NAME
iface-define - define an inactive persistent physical host interface or modify an existing persistent one from an XML file
SYNOPSIS
iface-define <file>
DESCRIPTION
Define or modify a persistent physical host interface.
OPTIONS
[--file] <string> file containing an XML interface description
# virsh net-define --help
NAME
net-define - define an inactive persistent virtual network or modify an existing persistent one from an XML file
SYNOPSIS
net-define <file>
DESCRIPTION
Define or modify a persistent virtual network.
OPTIONS
[--file] <string> file containing an XML network description
# virsh pool-define --help
NAME
pool-define - define an inactive persistent storage pool or modify an existing persistent one from an XML file
SYNOPSIS
pool-define <file>
DESCRIPTION
Define or modify a persistent storage pool.
OPTIONS
[--file] <string> file containing an XML pool description
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2202.html
Description of problem: Libvirt should provide more accurate help messages of iface/net/pool-define in man vish and virsh help Version-Release number of selected component (if applicable): libvirt-1.2.6-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: <1> For iface-define: [root@localhost network-scripts]# man virsh iface-define file Define a host interface from an XML file, the interface is just defined but not started. [root@localhost network-scripts]# virsh help iface-define NAME iface-define - define (but don't start) a physical host interface from an XML file SYNOPSIS iface-define <file> DESCRIPTION Define a physical host interface. OPTIONS [--file] <string> file containing an XML interface description <2> For pool-define: [root@localhost ~]# man virsh pool-define file Create, but do not start, a pool object from the XML file. [root@localhost ~]# virsh help pool-define NAME pool-define - define (but don't start) a pool from an XML file SYNOPSIS pool-define <file> DESCRIPTION Define a pool. OPTIONS [--file] <string> file containing an XML pool description <3> For net-define: [root@localhost ~]# man virsh net-define file Define a persistent virtual network from an XML file, the network is just defined but not instantiated (started). [root@localhost ~]# virsh help net-define NAME net-define - define (but don't start) a network from an XML file SYNOPSIS net-define <file> DESCRIPTION Define a network. OPTIONS [--file] <string> file containing an XML network description Actual results: As shown above help message, for example: iface-define have a default function to update an existing physical host interface. [root@localhost network-scripts]# virsh iface-list --all Name State MAC Address -------------------------------------------- enp2s0 active 00:1b:21:27:4e:ce [root@localhost network-scripts]# virsh iface-dumpxml enp2s0 --inactive <interface type='ethernet' name='enp2s0'> <start mode='onboot'/> <protocol family='ipv4'> <ip address='10.66.70.108' prefix='23'/> </protocol> </interface> [root@localhost network-scripts]# cat enp2s0.xml <interface type='ethernet' name='enp2s0'> <start mode='onboot'/> <mtu size='1500'/> <protocol family='ipv4'> <ip address='10.66.70.108' prefix='23'/> </protocol> </interface> [root@localhost network-scripts]# virsh iface-define enp2s0.xml Interface enp2s0 defined from enp2s0.xml [root@localhost network-scripts]# virsh iface-dumpxml enp2s0 --inactive <interface type='ethernet' name='enp2s0'> <start mode='onboot'/> <mtu size='1500'/> <protocol family='ipv4'> <ip address='10.66.70.108' prefix='23'/> </protocol> </interface> Aslo, on net and pool, define command can update a net or pool with the same name and UUID exists. Expected results: For example on iface-define In man virsh iface-define file Define a host interface from an XML file, the interface is just defined but not started, or update an existing one. In virsh help NAME iface-define - define (but don't start) or update a physical host interface from an XML file DESCRIPTION Define a physical host interface or update an existing one. For net/pool-define should have similar updates.