Gnocchi Metric/ArchivePolicy/ArchivePolicyRule/Resources/ResourceTypes delete fails with 406 response if the Accept header is set to application/json

Bug #1760837 reported by Arjun G
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnocchi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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. Using this module to file this bug.

Arjun G (arjunsurya)
summary: - Gnocchi Metric delete fails if the Accept header is set to
- application/json
+ Gnocchi Metric/Archive Policy/Archive Policy Rule delete fails if the
+ Accept header is set to application/json
Arjun G (arjunsurya)
summary: - Gnocchi Metric/Archive Policy/Archive Policy Rule delete fails if the
- Accept header is set to application/json
+ Gnocchi Metric/ArchivePolicy/ArchivePolicyRule/Resources/ResourceTypes
+ delete fails if the Accept header is set to application/json
summary: Gnocchi Metric/ArchivePolicy/ArchivePolicyRule/Resources/ResourceTypes
- delete fails if the Accept header is set to application/json
+ delete fails with 406 response if the Accept header is set to
+ application/json
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnocchi (Ubuntu):
status: New → Confirmed
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.