Bug 1508918
| Summary: | Some vdo commands do not return missing argument error when run without needed options | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Krysl <jkrysl> |
| Component: | vdo | Assignee: | Joe Shimkus <jshimkus> |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Krysl <jkrysl> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.5 | CC: | awalsh, bjohnsto, limershe |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 6.1.0.75 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 15:47:46 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
Jakub Krysl
2017-11-02 13:58:37 UTC
For searchability: # vdo --name vdo growLogical vdo: ERROR - Can't shrink a VDO volume (old size 5860522584K) Note that the resolution to this issue involves the discussed switch to using python's argparse library and, as such, changes the operation of the vdo command so that the operation to perform must be the first thing specified; e.g., > vdo list --verbose and not: > vdo --verbose list There are some python exceptions raised during option checking that end up resulting in a python stack trace. This has been corrected in a subsequent change and will be included in 6.1.0.95 or later. Now each option checks for required arguments:
# vdo modify --name vdo
usage: vdo modify [-h] (-a | -n <volume>) [--blockMapCacheSize <megabytes>]
[--blockMapPeriod <period>] [--readCache {disabled,enabled}]
[--readCacheSize <megabytes>]
[--vdoAckThreads <threadCount>]
[--vdoBioRotationInterval <ioCount>]
[--vdoBioThreads <threadCount>]
[--vdoCpuThreads <threadCount>]
[--vdoHashZoneThreads <threadCount>]
[--vdoLogicalThreads <threadCount>]
[--vdoPhysicalThreads <threadCount>] [-f <file>]
[--logfile <pathname>] [--verbose]
vdo modify: error: options must be specified from: --blockMapCacheSize, --blockMapPeriod, --readCache, --readCacheSize, --vdoAckThreads, --vdoBioRotationInterval, --vdoBioThreads, --vdoCpuThreads, --vdoHashZoneThreads, --vdoLogicalThreads, --vdoPhysicalThreads
# vdo changeWritePolicy --name vdo
usage: vdo changeWritePolicy [-h] (-a | -n <volume>) --writePolicy
{async,sync} [-f <file>] [--logfile <pathname>]
[--verbose]
vdo changeWritePolicy: error: argument --writePolicy is required
# vdo growLogical --name vdo
usage: vdo growLogical [-h] -n <volume> --vdoLogicalSize <megabytes>
[-f <file>] [--logfile <pathname>] [--verbose]
vdo growLogical: error: argument --vdoLogicalSize is required
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/RHEA-2018:0871 |