Bug 1747826

Summary: Wrong help info for virsh command "net-port-delete"
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: yalzhang <yalzhang>
Component: libvirtAssignee: Jonathon Jongsma <jjongsma>
Status: CLOSED ERRATA QA Contact: Jing Qi <jinqi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: jdenemar, jjongsma, jsuchane, knoel
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-5.9.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-05 09:49:40 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:    
Bug Blocks: 1585087    

Description yalzhang@redhat.com 2019-09-02 00:51:13 UTC
Description of problem:
Wrong help info for virsh command "net-port-delete"

Version-Release number of selected component (if applicable):
libvirt-5.6.0-2.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. 
# virsh net-port-delete --help
  NAME
   ** net-port-delete - network port information in XML **

  SYNOPSIS
    net-port-delete <network> <port>

  DESCRIPTION
  **  Output the network port information as an XML dump to stdout.  **

  OPTIONS
    [--network] <string>  network name or uuid
    [--port] <string>  port UUID


Actual results:
The help info for "net-port-delete" is wrong

Expected results:
NAME
net-port-delete - delete the network port
DESCRIPTION
Delete the network port 

Additional info:

Comment 1 Jonathon Jongsma 2019-09-09 14:27:53 UTC
Fix pushed upstream:

commit 7d5f0fda306f02021dc26e67c2778f44d22465b9
Author: Jonathon Jongsma <jjongsma>
Date:   Tue Sep 3 11:47:29 2019 -0500

    virsh: Fix help for net-port-delete
    
    Apparently a copy/paste error. The net-port-delete help string was in
    fact from net-port-dumpxml.

Comment 3 Jing Qi 2020-01-20 08:44:05 UTC
Verified with libvirt-6.0.0-1.virtcov.el8.x86_64 &
qemu-kvm-4.2.0-6.module+el8.2.0+5453+31b2b136.x86_64

# virsh net-port-delete --help
  NAME
    net-port-delete - delete the specified network port

  SYNOPSIS
    net-port-delete <network> <port>

  DESCRIPTION
    Delete the specified network port.

  OPTIONS
    [--network] <string>  network name or uuid
    [--port] <string>  port UUID

Comment 5 errata-xmlrpc 2020-05-05 09:49:40 UTC
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://access.redhat.com/errata/RHBA-2020:2017