Bug 1212080
| Summary: | RHOS 5 provider unable to inventory if no public images | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Ramesh A <rananda> |
| Component: | Providers | Assignee: | Ladislav Smola <lsmola> |
| Status: | CLOSED DUPLICATE | QA Contact: | Dave Johnson <dajohnso> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.4.0 | CC: | gblomqui, jfrey, jhardy, obarenbo, psavage |
| Target Milestone: | GA | ||
| Target Release: | 5.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-20 07:59:43 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: | |||
|
Description
Ramesh A
2015-04-15 14:05:58 UTC
Did some further debugging on this looking at the code below
all_images = images.details
last_image = all_images.last
# There is always default pagination in Glance, so we obtain all
# the images in loop, using last image of each page as marker.
while (images = self.images.details('marker', last_image.id)).count > 0
If images is an empty array
last_image.id will be trying to access id on a nil object.
Looking at a tcpdump I saw this
====
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 14
X-Openstack-Request-Id: req-e481537b-e65c-42a0-b1ac-5ee07ffbf8f8
Date: Tue, 14 Apr 2015 07:24:47 GMT
{"images": []}
====
There are images on the system, but none of them were public. As soon as I added a public image, the inventory completed after a refresh.
*** This bug has been marked as a duplicate of bug 1222497 *** |