Bug 2068189 - Mismatch between network qos rule create code and "usage" output
Summary: Mismatch between network qos rule create code and "usage" output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Rodolfo Alonso
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks: 2070032
TreeView+ depends on / blocked
 
Reported: 2022-03-24 15:44 UTC by Francois Palin
Modified: 2022-06-22 16:06 UTC (History)
7 users (show)

Fixed In Version: python-openstackclient-4.0.2-2.20220330134957.54bf2c0.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2070032 (view as bug list)
Environment:
Last Closed: 2022-06-22 16:06:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 454575 0 None MERGED network: Make 'network qos rule create --type' option required 2022-03-30 10:36:12 UTC
Red Hat Issue Tracker OSP-14250 0 None None None 2022-03-24 15:51:57 UTC
Red Hat Product Errata RHBA-2022:4793 0 None None None 2022-06-22 16:06:45 UTC

Description Francois Palin 2022-03-24 15:44:14 UTC
Description of problem:

The "usage" output  provided from the Openstack CLI is inconsistent with the code itself.

$ openstack network qos rule create
usage: openstack network qos rule create [-h]
                                         [-f {json,shell,table,value,yaml}]
                                         [-c COLUMN] [--noindent]
                                         [--prefix PREFIX]
                                         [--max-width <integer>] [--fit-width]
                                         [--print-empty] [--type <type>]           *** "type" is shown here as optional ***
                                         [--max-kbps <max-kbps>]
                                         [--max-burst-kbits <max-burst-kbits>]
                                         [--dscp-mark <dscp-mark>]
                                         [--min-kbps <min-kbps>]
                                         [--ingress | --egress]
                                         <qos-policy>
                                         
But when trying to use that command without the "--type" option, we get:

$ openstack network qos rule create --ingress --max-kbps 1000  c1463a01-ea33-4342-9ef8-bffdfa72a62e
"Create" rule command requires argument "type"

Version-Release number of selected component (if applicable):

OSP 16.2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 8 errata-xmlrpc 2022-06-22 16:06:16 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 (Release of components for Red Hat OpenStack Platform 16.2.3 (Train)), 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-2022:4793


Note You need to log in before you can comment on or make changes to this bug.