Bug 1223536
| Summary: | CF ems refresh doesn't find all instances in OSP !>1000 | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Josh Carter <jocarter> | |
| Component: | Providers | Assignee: | Ladislav Smola <lsmola> | |
| Status: | CLOSED ERRATA | QA Contact: | Pete Savage <psavage> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.3.0 | CC: | cpelland, gblomqui, jfrey, jhardy, mfeifer, nachandr, obarenbo, psavage, snansi, spurrier | |
| Target Milestone: | GA | Keywords: | ZStream | |
| Target Release: | 5.5.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix | |
| Doc Text: |
The previous version of CloudForms Management Engine had a bug in the OpenStack inventory gathering code, which limited its ability to find OpenStack server instances to a maximum of 1000 instances. The bug was a result of the inventory code not supporting paginated queries for OpenStack server instances. This bug was fixed by adding pagination support to the query for OpenStack server instances. The new version of CloudForms Management Engine is able to list all OpenStack server instances for an OpenStack provider.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1227909 1227917 (view as bug list) | Environment: | ||
| Last Closed: | 2015-12-08 13:11:01 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1227909, 1227917, 1232423 | |||
|
Description
Josh Carter
2015-05-20 19:32:06 UTC
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 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 |