Fix share.size meter
Availability zone and name attributes were marked as required while they are not, hence causing errors when Gnocchi tried to create the resource. This patch set removes the requirement over those attributes. Availability zone has been removed, it will be shown only when its present. Name has been replaced with share_id, which is always present. Other attributes has been added as well to keep track of other relevant data. Closes-Bug: #1706440 Change-Id: I191bcfae155278f7688c1148ad7e6994a0322fa6
This commit is contained in:
parent
91e7483ed1
commit
04d77e1d9e
@ -355,5 +355,6 @@ metric:
|
||||
metadata:
|
||||
name: $.payload.name
|
||||
host: $.payload.host
|
||||
availability_zone: $.payload.availability_zone
|
||||
status: $.payload.status
|
||||
availability_zone: $.payload.availability_zone
|
||||
protocol: $.payload.proto
|
||||
|
@ -244,8 +244,9 @@ resources:
|
||||
attributes:
|
||||
name: resource_metadata.name
|
||||
host: resource_metadata.host
|
||||
availability_zone: resource_metadata.availability_zone
|
||||
status: resource_metadata.status
|
||||
availability_zone: resource_metadata.availability_zone
|
||||
protocol: resource_metadata.protocol
|
||||
|
||||
- resource_type: switch
|
||||
metrics:
|
||||
|
@ -132,13 +132,15 @@ resources_update_operations = [
|
||||
"resource_type": "manila_share",
|
||||
"data": [{
|
||||
"attributes": {"name": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True},
|
||||
"max_length": 255, "required": False},
|
||||
"host": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": True},
|
||||
"protocol": {"type": "string", "min_length": 0,
|
||||
"max_length": 255, "required": False},
|
||||
"availability_zone": {"type": "string",
|
||||
"min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": True},
|
||||
"required": False},
|
||||
"status": {"type": "string", "min_length": 0,
|
||||
"max_length": 255,
|
||||
"required": True}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user