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.

Bug 1100528

Summary: These APIs also need to add to `guestfish -h` command list
Product: Red Hat Enterprise Linux 7 Reporter: Lingfei Kong <lkong>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.0CC: leiwang, mbooth, ptoscano, wshi, yuliu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.28.1-1.1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1103877 (view as bug list) Environment:
Last Closed: 2015-03-05 13:43:45 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: 1103877    
Bug Blocks:    

Description Lingfei Kong 2014-05-23 03:12:05 UTC
Description of problem:
I can get 558 APIs by pressing <TAB> in guestfish interactive model, but only 511 APIs can find in `guestfish -h` command list.

The losting 47 APIs:
 add
 add-drive-opts
 add-ro
 allocate
 append
 attach-method
 autosync
 backend
 cachedir
 direct
 domain
 emacs
 exit
 grep-opts
 is-blockdev-opts
 is-chardev-opts
 is-dir-opts
 is-fifo-opts
 is-file-opts
 is-socket-opts
 less
 manual
 memsize
 mkfs-opts
 mkswap-opts
 network
 ntfsresize-opts
 path
 pgroup
 pid
 program
 q
 qemu
 recovery-proc
 run
 scratch
 selinux
 smp
 tar-in-opts
 tar-out-opts
 tmpdir
 trace
 umount-opts
 unmount
 unmount-all
 verbose
 vi


Version-Release number of selected component (if applicable):
libguestfs-1.22.6-22.el7

How reproducible:
100%

Steps to Reproduce:
1. Get all APIs by run command `guestfish -h`
2. Enter into guestfish interactive model
3. Get all the APIs by pressing <TAB> in guestfish command
4. diff the APIs you get at step 1 and step 3


Actual results:
47 APIs appear in step 3 command list and not appear in step 1 command list


Expected results:
The command list of step 1 and step 3 are the same

Additional info:

Comment 2 Richard W.M. Jones 2014-05-23 08:48:55 UTC
(In reply to Lingfei Kong from comment #0)
> Description of problem:
> I can get 558 APIs by pressing <TAB> in guestfish interactive model, but
> only 511 APIs can find in `guestfish -h` command list.
> 
> The losting 47 APIs:

The *-opts APIs should not be documented in -h output, since they
are provided for backwards compatibility only.

The others (list provided below) I believe are all aliases, so we
could document them as:

  $ guestfish -h
      Command      Description
  add          alias for 'add-drive'
  add-ro       alias for 'add-drive-ro'
  [etc]

>  add
>  add-ro
>  allocate
>  append
>  attach-method
>  autosync
>  backend
>  cachedir
>  direct
>  domain
>  emacs
>  exit
>  less
>  manual
>  memsize
>  network
>  path
>  pgroup
>  pid
>  program
>  q
>  qemu
>  recovery-proc
>  run
>  scratch
>  selinux
>  smp
>  tmpdir
>  trace
>  unmount
>  unmount-all
>  verbose
>  vi

Comment 4 Richard W.M. Jones 2014-10-20 09:42:38 UTC
This is fixed in 1.28.  I'm not sure what precise version we
fixed it in.

Comment 6 yuliu 2014-11-18 06:23:34 UTC
Version: libguestfs-1.28.1-1.11.el7.x86_64

All the APIS except the opts added.

Verified.

Comment 8 errata-xmlrpc 2015-03-05 13:43:45 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://rhn.redhat.com/errata/RHBA-2015-0303.html