The Glance image count reported is inaccurate

Bug #1557455 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Committed
Medium
Swann Croiset

Bug Description

The collectd plugin use the resource "v1/images/detail?is_public=None" to retrieve images list but the result seems to be limited by default to 25 images.

This plugin must use the v2 api [0] and leverage the pagination feature by using parameters "limit"/" marker" and performing several API call if necessary.

Ideally, the plugin should maintain a local cache and use the "updated_at" parameter to reduce the number of request.

This is related to the bug on nova https://bugs.launchpad.net/lma-toolchain/+bug/1554502

[0] http://developer.openstack.org/api-ref-image-v2.html#listImages-v2

Swann Croiset (swann-w)
Changed in lma-toolchain:
importance: Undecided → Medium
Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: none → 1.0.0
Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: 1.0.0 → none
Changed in lma-toolchain:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → Swann Croiset (swann-w)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-collector (master)

Reviewed: https://review.openstack.org/427678
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-collector/commit/?id=88d7bb28b31f6807172969522a2a1dedd80e0c53
Submitter: Jenkins
Branch: master

commit 88d7bb28b31f6807172969522a2a1dedd80e0c53
Author: Swann Croiset <email address hidden>
Date: Tue Jan 31 14:11:40 2017 +0100

    Support pagination for OpenStack services

    This concerns:
    - Nova server list
    - Neutron
    - Glance
    - Cinder

    Closes-bug: #1554502
    Closes-bug: #1557455

    Change-Id: Ia8b029080c8a18161441ab9bc13799f26e0941f3

Changed in lma-toolchain:
status: In Progress → Fix Committed
Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: none → 1.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-lma-collector (stable/1.0)

Fix proposed to branch: stable/1.0
Review: https://review.openstack.org/434732

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-collector (stable/1.0)

Reviewed: https://review.openstack.org/434732
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-collector/commit/?id=1c66e2a93664ef73877b79ca9ecbace14a6903c0
Submitter: Jenkins
Branch: stable/1.0

commit 1c66e2a93664ef73877b79ca9ecbace14a6903c0
Author: Swann Croiset <email address hidden>
Date: Tue Jan 31 14:11:40 2017 +0100

    Support pagination for OpenStack services

    This concerns:
    - Nova server list
    - Neutron
    - Glance
    - Cinder

    Closes-bug: #1554502
    Closes-bug: #1557455

    Change-Id: Ia8b029080c8a18161441ab9bc13799f26e0941f3
    (cherry picked from commit 88d7bb28b31f6807172969522a2a1dedd80e0c53)

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.