unallowed and read-only parameters in namspace and resouce_type

Bug #1561828 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Cyril Roelandt

Bug Description

now we do "glance help md-namespace-create" and "glance help md-resource-type-associate", we will see some unallowed and read-only parameters, such as "updated_at" and "create_at".

We should not allow users to input these parameters.

wangxiyuan (wangxiyuan)
Changed in python-glanceclient:
assignee: nobody → wangxiyuan (wangxiyuan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/297502

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by wangxiyuan (<email address hidden>) on branch: master
Review: https://review.openstack.org/297502

wangxiyuan (wangxiyuan)
Changed in python-glanceclient:
assignee: wangxiyuan (wangxiyuan) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)
Changed in python-glanceclient:
assignee: nobody → Cyril Roelandt (cyril-roelandt)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-glanceclient/+/858549
Committed: https://opendev.org/openstack/python-glanceclient/commit/74fa43665719ddc830999fa15bb052a87d69dd14
Submitter: "Zuul (22348)"
Branch: master

commit 74fa43665719ddc830999fa15bb052a87d69dd14
Author: Cyril Roelandt <email address hidden>
Date: Tue Sep 20 18:05:33 2022 +0200

    schema_args: Do not generate option for read-only properties

    The schema_args decorator generates command line options based on the
    properties defined in a schema. This commit makes sure read-only
    properties are skipped during this process, since trying to modify their
    value would result in a Glance error.

    Closes-Bug: #1561828
    Change-Id: I7ccc628a23c9ebdaeedcb9e6d43559f497ce9555

Changed in python-glanceclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-glanceclient 4.2.0

This issue was fixed in the openstack/python-glanceclient 4.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.