Bug 1757880 - Support syntax validation on '--hint' parameters in 'nova boot'
Summary: Support syntax validation on '--hint' parameters in 'nova boot'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z4
: 14.0 (Rocky)
Assignee: Stephen Finucane
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On: 1756392
Blocks: 1757881
TreeView+ depends on / blocked
 
Reported: 2019-10-02 15:53 UTC by Stephen Finucane
Modified: 2023-03-21 19:23 UTC (History)
18 users (show)

Fixed In Version: python-novaclient-11.0.0-0.20180809174651.f1005ce.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1756392
: 1757881 (view as bug list)
Environment:
Last Closed: 2019-11-06 16:51:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23475 0 None None None 2023-03-21 19:23:52 UTC
Red Hat Product Errata RHBA-2019:3746 0 None None None 2019-11-06 16:51:55 UTC

Description Stephen Finucane 2019-10-02 15:53:44 UTC
+++ This bug was initially created as a clone of Bug #1756392 +++

This is the novaclient clone of the openstackclient bug. Both CLIs are affected by the same bug.

+++ This bug was initially created as a clone of Bug #1541239 +++

1. Description

Support for adding validation check while using openstack server create ... --hint command

2. Use case

An error in "openstack server create" filters specifcation (used uuid of group instead of "group=<uuid>"/ "key=value") format led to openstack accepting the value and not reporting any error.

However, it did not carry out the expected action.

A syntax check on the filter format could have helped user avoid several hours of troubleshooting

~~~
"openstack server create" command accepts hints in the format "key=value".
However no syntax validation is done leading to accepting values in incorrect format without reporting any error and user assuming filter got applied

Following works fine without error:

openstack server create ...  --hint 245e1dfe-2d0e-4139-80a9-fce124948896 --wait

It should actually be:
openstack server create ... --hint group=245e1dfe-2d0e-4139-80a9-fce124948896 --wait

Suggest adding validation check to the command so that hints are not accepted without key=value format

~~~

3. Upstream reference
        Bugzillas? No
        Blueprints? No
        Specs? No

4. RH bugzilla dependencies?
   No

5. Primary Red Hat contact:
   a. Name:  MD Sufiyan
   b. Email:   msufiyan

--- Additional comment from RHEL Product and Program Management on 2019-10-02 16:50:44 IST ---

This bugzilla has been removed from the release since it  does not have an acked release flag. For details, see https://mojo.redhat.com/docs/DOC-1144661#jive_content_id_OSP_Release_Planning.'

--- Additional comment from RHEL Product and Program Management on 2019-10-02 16:51:19 IST ---

This bugzilla has been removed from the release since it  does not have an acked release flag. For details, see https://mojo.redhat.com/docs/DOC-1144661#jive_content_id_OSP_Release_Planning.'

--- Additional comment from RHEL Product and Program Management on 2019-10-02 16:51:58 IST ---

This item has been properly Triaged and planned for the release, and Target Release is now set to match the release flag. For details, see https://mojo.redhat.com/docs/DOC-1144661#jive_content_id_OSP_Release_Planning

Comment 6 errata-xmlrpc 2019-11-06 16:51:22 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:3746


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