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 1540287

Summary: RFE: Provide bash completion for vdo command
Product: Red Hat Enterprise Linux 8 Reporter: Miroslav Suchý <msuchy>
Component: vdoAssignee: Achilles Gaikwad <agaikwad>
Status: CLOSED ERRATA QA Contact: vdo-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: agaikwad, awalsh, bgurney, bjohnsto, jwiele, limershe
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 6.2.1.57 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:12:24 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:

Description Miroslav Suchý 2018-01-30 17:19:27 UTC
Description of problem:
vdo is missing bash completion. Presence of bash completion hints always easy the life of sysadmin.

Version-Release number of selected component (if applicable):
vdo-6.1.0.124-14.x86_64

How reproducible:
always

Steps to Reproduce:
1. vdo c<tab><tab>


Actual results:
no result

Expected results:
print all vdo commands starting with "c"

Comment 2 Louis Imershein 2018-01-30 17:26:57 UTC
I suspect this is actually a dupe of BZ 1511987 which uses the same underlying mechanisms?  If it is a dupe, please mark it as such, otherwise I will ack the bug.

Comment 3 Bryan Gurney 2018-01-30 18:11:03 UTC
BZ 1511987 only covers an RFE to add bracket / brace / "*" expansion for multiple volume names.  This seems to only cover tab completion of subcommands.

Comment 4 Louis Imershein 2018-01-30 19:49:27 UTC
Got it.  1511967 will only solve the problem for the device names, not the internal command options. They are related but not the same.

Comment 14 Andy Walsh 2019-04-11 18:45:55 UTC
Moving to RHEL-8, as we do not currently plan on implementing this in RHEL-7.

Comment 16 Jakub Krysl 2019-07-03 16:11:47 UTC
Tested with vdo-6.2.1.102-11.el8.x86_64:

# vdo <tab><tab> 
activate              deactivate            enableCompression     growPhysical          printConfigFile       status                
changeWritePolicy     disableCompression    enableDeduplication   list                  remove                stop                  
create                disableDeduplication  growLogical           modify                start                 
# vdo activate <tab><tab>--<tab><tab>
--all       --confFile  --help      --logfile   --name      --verbose   

Using <tab><tab> lists both available commands and options later.

Comment 17 Jakub Krysl 2019-07-03 16:12:57 UTC
Forgot to add: bash-completion package installation and restarting the session is required to make this work.

Comment 20 errata-xmlrpc 2019-11-05 22:12:24 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-2019:3548