Description of problem: CloudForms inventory does not get all the instances from OpenStack. Seems it doesn't support pagination. Our OSP has exceeded 1000 instances. To confirm and workaround we have adjusted the osapi_max_limit to 2000. We need a permanent fix as we expect we will have 10,000 or so instances and cannot tolerate the response times from nova and cinder when we adjust osapi_max_limit upwards. We expect to return this osapi_max_limit setting back to 1000 as soon as we can. Version-Release number of selected component (if applicable): 5.3.2 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Looking at the openstack source, I'm seeing "limit" and "marker" API parameters in nova's API for getting servers[1] and flavors[2]. We should fix both while we're at it. I'll look through the rest of the service APIs to find other pageable API calls. We'll need to fix this once and do it right. [1] https://github.com/openstack/nova/blob/0fce05b27c8fc80042c0afd65aa38ebe3334f72e/nova/api/openstack/compute/servers.py#L217 [2] https://github.com/openstack/nova/blob/0fce05b27c8fc80042c0afd65aa38ebe3334f72e/nova/api/openstack/compute/flavors.py#L75
https://github.com/ManageIQ/manageiq/pull/2967
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/44ce2f935cf94022fc92d502e21e3c8c5e539ad9 commit 44ce2f935cf94022fc92d502e21e3c8c5e539ad9 Author: Ladislav Smola <lsmola> AuthorDate: Wed Jun 3 11:06:54 2015 +0200 Commit: Ladislav Smola <lsmola> CommitDate: Wed Jun 3 13:04:01 2015 +0200 Fix Openstack servers pagination issue Fix Openstack servers pagination issue similar to how we do it for images. This is small patch for backport. Followup PRs needs to unify this in Fog, then in ManageIQ https://bugzilla.redhat.com/show_bug.cgi?id=1223536 lib/openstack/openstack_handle/compute_delegate.rb | 18 +- lib/openstack/openstack_handle/image_delegate.rb | 8 +- .../openstack_refresher_rhos_havana_spec.rb | 30 +- .../openstack_infra_refresher_rhos_juno.yml | 1097 ++++---- .../openstack_refresher_rhos_grizzly.yml | 33 + .../refreshers/openstack_refresher_rhos_havana.yml | 2954 +++++++++++++++----- 6 files changed, 2866 insertions(+), 1274 deletions(-)
New commit detected on cfme/5.4.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=53ac99295c7073c0b9f1c1afc4a0d5478ecf6418 commit 53ac99295c7073c0b9f1c1afc4a0d5478ecf6418 Author: Ladislav Smola <lsmola> AuthorDate: Wed Jun 3 11:06:54 2015 +0200 Commit: Joe VLcek <jvlcek> CommitDate: Fri Jun 5 13:59:57 2015 -0400 Fix Openstack servers pagination issue Fix Openstack servers pagination issue similar to how we do it for images. This is small patch for backport. Followup PRs needs to unify this in Fog, then in ManageIQ https://bugzilla.redhat.com/show_bug.cgi?id=1223536 lib/openstack/openstack_handle/compute_delegate.rb | 18 +- lib/openstack/openstack_handle/image_delegate.rb | 8 +- .../openstack_refresher_rhos_havana_spec.rb | 30 +- .../openstack_infra_refresher_rhos_juno.yml | 1097 ++++---- .../openstack_refresher_rhos_grizzly.yml | 33 + .../refreshers/openstack_refresher_rhos_havana.yml | 2954 +++++++++++++++----- 6 files changed, 2866 insertions(+), 1274 deletions(-)
@psav nevermind, it was my error in Fog, so we should be good with this fix
Verified in 5.5.0.7
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:2551