Gnocchi Metric creation along with resource-id is not working in Gnocchi 3.3.1 version

Bug #1763304 reported by Arjun G
6
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.

Revision history for this message
Rajat Dhasmana (whoami-rajat) wrote :

I tried to reproduce the bug on latest release (Rocky) using the following command,

snippet :
stack@ubuntu-xenial:~/cinder$ curl -g -i -X POST http://127.0.0.1/metric/v1/resource/generic/7a4a6220-32a3-43fa-86a9-85ed5eaa6ea1/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: gAAAAABa2bTVOm6SY_QwGmP5JX7kfGKk4viVQ0259-LUdXdeScxqh3JCmi5QV9Sf7xS02EqzNmdZCbOgT4D2k1qNVOg8n1r0djYYKaAPjWAPkUZpajz4eUUTMopBlRNsv_pgvR5gR8G3z4M5K-eBkFXGP9su7mzi9sdaeLRcZlEKg_Jzko3WCQk" -d '{"new_metric12345":{"name":"new_metric12345"}}'

The command executed successfully and the following metric was created.

+--------------------------------------+---------------------+--------------------------------------------+-----------+--------------------------------------+
| id | archive_policy/name | name | unit | resource_id |
+--------------------------------------+---------------------+--------------------------------------------+-----------+--------------------------------------+
| f1896996-60b5-4e40-b0c0-1dcef334c811 | low | new_metric12345 | None | 7a4a6220-32a3-43fa-86a9-85ed5eaa6ea1 |

Please guide me on reproducing this bug

Changed in gnocchi (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnocchi (Ubuntu) because there has been no activity for 60 days.]

Changed in gnocchi (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.