glanceclient has no support to add type while creating md-property for namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
In Progress
|
Low
|
Cyril Roelandt |
Bug Description
python-glanceclient has no support to add type while creating md-property for namespace using md-property-create command.
glance help md-property-create
usage: glance md-property-create --name <NAME> --title <TITLE> --schema
Create a new metadata definitions property inside a namespace.
Positional arguments:
<NAMESPACE> Name of namespace the property will belong.
Optional arguments:
--name <NAME> Internal name of a property.
--title <TITLE> Property name displayed to the user.
--schema <SCHEMA> Valid JSON schema of a property.
glance md-property-create OS::Admin:
'type' is a required property
Failed validating 'required' in schema:
{'additiona
'definitions': {'positiveInteger': {'minimum': 0, 'type': 'integer'},
'name': 'property',
'properties': {'additionalItems': {'type': 'boolean'},
'required': ['type', 'title', 'name']}
On instance:
{'name': 'testing_property', 'title': 'Testing Property'}
API reference: https:/
Changed in python-glanceclient: | |
importance: | Undecided → Medium |
Changed in python-glanceclient: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
So as I suspect we can use --schema to pass all this information, we need either update the help message in client or else need to add examples in docs about how to create metadefs.
But IMO as it is required option we should make this provision to pass it explicitly and not through the json.