Gnocchi Metric/ArchivePolicy/ArchivePolicyRule/Resources/ResourceType delete fails if the Accept header is set to application/json

Asked by Arjun G on 2018-04-03

Gnocchi Metric delete fails if the Accept header is set to application/json. Say for example :

curl -H 'X-Auth-Token: gAAAAABaw1o2qdBFaBgoGqFZnz4db5qLbwcU8d4t9iPsvuPvGY--7eiR8VPuBLQmComCzK_1h5q-Ff6i7F6Z4KYTmWSiJUwQIsqgMh2UcMXa1u2Q4wZ4u2xnMqsDDpR6mxJcsuh4MOxf_44Q7qWpbF0GiATNQ01jQNw71ehCHMx_q96jcUSp8P0' -XDELETE http://<Machine_IP>:8041/v1/metric/ac51be3b-63d9-4658-a58d-e15eaf1f6fd1 -H "Accept: application/json"

Gnocchi Metric delete works without Accept header.

Similar issue was seen in different project also.
Reference :
https://bugs.launchpad.net/barbican/+bug/1326481
https://review.openstack.org/#/c/124555/

As Gnocchi does not use Launchpad as its bug tracker. Posting the question in this section.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu gnocchi Edit question
Assignee:
No assignee Edit question
Last query:
2018-04-03
Last reply:
2018-04-19
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.