Gnocchi Metric creation along with resource-id is not working in Gnocchi 3.3.1 version
Bug #1763304 reported by
Arjun G
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnocchi (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
During Gnocchi metric creation through REST api calls, resource-id is not allowed. Request fails.
Can we get update by when or which version of Gnocchi supports this.
Gnocchi version used for testing is 3.3.1.
Changed in gnocchi (Ubuntu): | |
status: | New → Incomplete |
To post a comment you must log in.
I tried to reproduce the bug on latest release (Rocky) using the following command,
snippet : xenial: ~/cinder$ curl -g -i -X POST http:// 127.0.0. 1/metric/ v1/resource/ generic/ 7a4a6220- 32a3-43fa- 86a9-85ed5eaa6e a1/metric/ -H "User-Agent: osc-lib/1.10.0 keystoneauth1/3.4.0 python- requests/ 2.18.4 CPython/2.7.12" -H "Content-Type: application/json" -H "Accept: application/json, */*" -H "X-Auth-Token: gAAAAABa2bTVOm6 SY_QwGmP5JX7kfG Kk4viVQ0259- LUdXdeScxqh3JCm i5QV9Sf7xS02Eqz NmdZCbOgT4D2k1q NVOg8n1r0djYYKa APjWAPkUZpajz4e UUTMopBlRNsv_ pgvR5gR8G3z4M5K -eBkFXGP9su7mzi 9sdaeLRcZlEKg_ Jzko3WCQk" -d '{"new_ metric12345" :{"name" :"new_metric123 45"}}'
stack@ubuntu-
The command executed successfully and the following metric was created.
+------ ------- ------- ------- ------- ----+-- ------- ------- -----+- ------- ------- ------- ------- ------- ------- -+----- ------+ ------- ------- ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- -----+- ------- ------- ------- ------- ------- ------- -+----- ------+ ------- ------- ------- ------- ------- ---+ 60b5-4e40- b0c0-1dcef334c8 11 | low | new_metric12345 | None | 7a4a6220- 32a3-43fa- 86a9-85ed5eaa6e a1 |
| id | archive_policy/name | name | unit | resource_id |
+------
| f1896996-
Please guide me on reproducing this bug