Resource list filters by wrong attributes

Bug #1520439 reported by Sam Morrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Medium
Julien Danjou
1.3
Fix Released
Medium
Julien Danjou

Bug Description

As a normal user I can do a resource show on a resource (if I know the ID) but doing a resource list returns an empty list.

This is because the rest api is filtering based on created_by(project|user) values as opposed to project_id and user_id values.

The resources in this case were created by ceilometer dispatcher using a different project and user id.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Triaged
importance: Undecided → Medium
milestone: none → next
heha (zhanghanqun)
Changed in gnocchi:
assignee: nobody → heha (zhanghanqun)
Revision history for this message
Sam Morrison (sorrison) wrote :

This is also the case for metrics and probably other things too

heha (zhanghanqun)
Changed in gnocchi:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on gnocchi (master)

Change abandoned by zhanghanqun (<email address hidden>) on branch: master
Review: https://review.openstack.org/253857
Reason: recode

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to gnocchi (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/259765

Changed in gnocchi:
assignee: heha (zhanghanqun) → Julien Danjou (jdanjou)
Changed in gnocchi:
assignee: Julien Danjou (jdanjou) → heha (zhanghanqun)
Changed in gnocchi:
assignee: heha (zhanghanqun) → Julien Danjou (jdanjou)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/259765
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=396a93e7bdf246e5bbf19d43a49f21132969d8d8
Submitter: Jenkins
Branch: master

commit 396a93e7bdf246e5bbf19d43a49f21132969d8d8
Author: heha <email address hidden>
Date: Sun Dec 20 07:40:28 2015 -0500

    Resource list filtered by project_id or created_by user_id and project_id

    List some resources filtered by the project_id that you provide, and
    the resources that you have created.

    Change-Id: I30f473ea720835447da3282647d803305390941a
    Closes-Bug: #1520439
    Closes-Bug: #1521895

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (stable/1.3)

Fix proposed to branch: stable/1.3
Review: https://review.openstack.org/272434

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (stable/1.3)

Reviewed: https://review.openstack.org/272434
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=577b403e41c101f84b8916a28cb8d58e8950786a
Submitter: Jenkins
Branch: stable/1.3

commit 577b403e41c101f84b8916a28cb8d58e8950786a
Author: heha <email address hidden>
Date: Sun Dec 20 07:40:28 2015 -0500

    Resource list filtered by project_id or created_by user_id and project_id

    List some resources filtered by the project_id that you provide, and
    the resources that you have created.

    Change-Id: I30f473ea720835447da3282647d803305390941a
    Closes-Bug: #1520439
    Closes-Bug: #1521895
    (cherry picked from commit 396a93e7bdf246e5bbf19d43a49f21132969d8d8)

Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: next → 2.0.0
status: Fix Committed → Fix Released
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.