WSMAN enumerate fails to return all entries

Bug #1659052 reported by Christopher Dearborn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-dracclient
Fix Released
High
Christopher Dearborn

Bug Description

When querying an enumeration using the WSMAN enumerate method, not all
entries are returned if there are more than max_elems (default of 100)
in the enumeration.

When querying an enumeration, the first response returns <wsman:Items>
in the body. Successive pulls, however, contain <wsen:Items>.

The current code always queries for <wsen:Items>, which causes the first
batch of attributes to be dropped only when the number of entries in
the enumeration exceeds max_elems.

Changed in python-dracclient:
assignee: nobody → Christopher Dearborn (cdearbor)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-dracclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/424754

Changed in python-dracclient:
status: New → In Progress
Dmitry Tantsur (divius)
Changed in python-dracclient:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-dracclient (master)

Reviewed: https://review.openstack.org/424754
Committed: https://git.openstack.org/cgit/openstack/python-dracclient/commit/?id=0c1d56dde527a5fe7852b502e94f4490dc3614aa
Submitter: Jenkins
Branch: master

commit 0c1d56dde527a5fe7852b502e94f4490dc3614aa
Author: Christopher Dearborn <email address hidden>
Date: Wed Jan 25 10:47:59 2017 -0500

    WSMAN enumerate fails to return all entries

    When querying an enumeration using the WSMAN enumerate method, not all
    entries are returned if there are more than max_elems (default of 100)
    in the enumeration.

    When querying an enumeration, the first response returns <wsman:Items>
    in the body. Successive pulls, however, contain <wsen:Items>.

    The old code always queried for <wsen:Items>, which caused the first
    batch of attributes to be dropped only when the number of entries in
    the enumeration exceeded max_elems.

    This patch queries for <wsman:Items> in the first response, and for
    <wsen:Items> in successive responses.

    Change-Id: I2e9036b562c7d7ba5af188dd552b6c67388bb02c
    Closes-Bug: #1659052

Changed in python-dracclient:
status: In Progress → 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.