Skip to content

Hypervisors list paging is broken #519

@dsanader

Description

@dsanader

Hello,

Hypervisors list is broken for quite a while for lists with more than the default max 1000 items (somewhere after v1.1.0). It is related to the introduction of paging in gophercloud. The exporter sets the micro version to the max supported one reported by the API, which include paging, but gophercloud v1 doesn't support paging. One way to circumvent this is to explicitly set a compute microversion through the dedicated environment variable to one not supporting paging (microVersion < 2.33, eg: OS_COMPUTE_API_VERSION=2.32). The issue with this is that it's sets this lower version for all compute API calls which might cause other problems.

After toying with this, it seems to me the cleanest and easiest way to fix this is to use gophercloud v2, which already contains the paging fix, for the Hypervisors.List function.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions