Failed to specify attribute of 'number' type for custom resource type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-gnocchiclient |
Fix Released
|
Undecided
|
Mehdi Abaakouk |
Bug Description
Attempt to create a resource with specified attribute fails:
gnocchi --debug resource create --type rhbz --attribute 'my_name:rhbz-test' --attribute my_age:33 37ad7aad-
Starting new HTTPS connection (1): 2620:52:
/usr/
` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https:/
SubjectAl
"GET /v2.0 HTTP/1.1" 200 247
RESP: [200] Date: Mon, 12 Dec 2016 12:27:39 GMT Server: Apache Vary: X-Auth-
nt-Type: application/json
RESP BODY: {"version": {"status": "deprecated", "updated": "2016-08-
"href": "https://[2620:52:
Making authentication request to https://[2620:52:
"POST /v2.0/tokens HTTP/1.1" 200 1130
REQ: curl -g -i -X POST https://[2620:52:
ccept: application/json, */*" -H "X-Auth-Token: {SHA1}31fa32feb
Starting new HTTPS connection (1): 2620:52:
/usr/
` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https:/
SubjectAl
"POST /v1/resource/rhbz HTTP/1.1" 400 123
RESP: [400] Date: Mon, 12 Dec 2016 12:27:39 GMT Server: Apache Content-Length: 123 Content-Type: application/json; charset=UTF-8
RESP BODY: {"code": 400, "description": "Invalid input: expected Real for dictionary value @ data[u'my_age']", "title": "Bad Request"}
Invalid input: expected Real for dictionary value @ data[u'my_age'] (HTTP 400)
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
return self.client.
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
BadRequest: Invalid input: expected Real for dictionary value @ data[u'my_age'] (HTTP 400)
Traceback (most recent call last):
File "/bin/gnocchi", line 10, in <module>
File "/usr/lib/
return GnocchiShell(
File "/usr/lib/
result = self.run_
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
return self.client.
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
gnocchiclie
Package:
--------
python-
---
Yurii
Changed in python-gnocchiclient: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.8.0 |
Fix proposed to branch: master /review. openstack. org/416581
Review: https:/