Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-434

Route53 list_records() limited to 100 records

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DNS
    • Labels:
      None

      Description

      The Route53 ListResourceRecordSets endpoint returns a maximum of 100 records per request.

        Activity

        Hide
        kami Tomaz Muraus added a comment -

        Changes from the pull request merged into trunk. Thanks!

        Show
        kami Tomaz Muraus added a comment - Changes from the pull request merged into trunk. Thanks!
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit a2e23040d8f98335238ab7b793ac316871e1f0c5 in branch refs/heads/trunk from Chris Clarke
        [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=a2e2304 ]

        LIBCLOUD-434 Implement iterate_* methods in the Route53 driver.

        This way all the records are returned and not just the ones which fit onto the
        first page.

        Signed-off-by: Tomaz Muraus <tomaz@apache.org>

        Show
        jira-bot ASF subversion and git services added a comment - Commit a2e23040d8f98335238ab7b793ac316871e1f0c5 in branch refs/heads/trunk from Chris Clarke [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=a2e2304 ] LIBCLOUD-434 Implement iterate_* methods in the Route53 driver. This way all the records are returned and not just the ones which fit onto the first page. Signed-off-by: Tomaz Muraus <tomaz@apache.org>
        Hide
        xofer Chris Clarke added a comment -
        Show
        xofer Chris Clarke added a comment - New pull request: https://github.com/apache/libcloud/pull/187
        Hide
        kami Tomaz Muraus added a comment -

        Thanks

        This is a known limitation of the Route53 driver - currently it doesn't support paging through multiple pages of results for "list zones" and "list records" calls.

        Other drives implement pagination by using generator approach. You can find an example of this approach here - https://github.com/apache/libcloud/blob/trunk/libcloud/dns/drivers/zerigo.py#L149

        Show
        kami Tomaz Muraus added a comment - Thanks This is a known limitation of the Route53 driver - currently it doesn't support paging through multiple pages of results for "list zones" and "list records" calls. Other drives implement pagination by using generator approach. You can find an example of this approach here - https://github.com/apache/libcloud/blob/trunk/libcloud/dns/drivers/zerigo.py#L149
        Hide
        xofer Chris Clarke added a comment -
        Show
        xofer Chris Clarke added a comment - Pull request: https://github.com/apache/libcloud/pull/175

          People

          • Assignee:
            Unassigned
            Reporter:
            xofer Chris Clarke
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development