diff options
author | Victoria Martinez de la Cruz <victoria@redhat.com> | 2017-07-21 11:20:57 -0300 |
---|---|---|
committer | Victoria Martinez de la Cruz <victoria@redhat.com> | 2017-07-28 18:12:41 -0300 |
commit | 04d77e1d9ea651b97c8154c8920dbb89442f4a5d (patch) | |
tree | a7d57ab7879d81f05daa2bcd09691b845b816cbb /ceilometer/gnocchi_client.py | |
parent | 91e7483ed1d42b03e4e4a051b7c38bec381b6f0a (diff) | |
download | ceilometer-04d77e1d9ea651b97c8154c8920dbb89442f4a5d.tar.gz |
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
Diffstat (limited to 'ceilometer/gnocchi_client.py')
-rw-r--r-- | ceilometer/gnocchi_client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ceilometer/gnocchi_client.py b/ceilometer/gnocchi_client.py index a698aa15..e35212f8 100644 --- a/ceilometer/gnocchi_client.py +++ b/ceilometer/gnocchi_client.py @@ -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}} |