POSTing a counter to /v2/meters/something responds 200 on success should be 201

Bug #1428202 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Lena Novokshonova

Bug Description

When making a POST to add a sample to a meter at /v2/meters/something the response is 200. It should be 201.

    - name: post counter to meter
      url: /v2/meters/apples
      method: POST
      request_headers:
          content-type: application/json
      data:
          - counter_name: apples
            counter_type: gauge
            counter_unit: instance
            counter_volume: 1
            resource_id: bd9431c1-8d69-4ad3-803a-8d4a6b89fd36
      status: 201 # gets 200, but should be 201

Changed in ceilometer:
assignee: nobody → Lena Novokshonova (enovokshonova)
Changed in ceilometer:
status: New → In Progress
Changed in ceilometer:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/162076
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=6023a2233e8b13e672a1409b5c96bc4a53d5d114
Submitter: Jenkins
Branch: master

commit 6023a2233e8b13e672a1409b5c96bc4a53d5d114
Author: Lena Novokshonova <email address hidden>
Date: Fri Mar 6 13:14:52 2015 +0400

    Fix response POST /v2/meters/(meter_name) to 201 status

    When making a POST to add a sample to a meter at /v2/meters/something
    the response is 200. It should be 201. This patchset fixes it.

    Closes-bug: #1428202

    Change-Id: I0a938f023c3bc0267d0b1566ab689786ea0e41b0

Changed in ceilometer:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
Changed in ceilometer:
milestone: none → kilo-3
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: kilo-3 → 2015.1.0
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.