Bug 865548 - Cloud image list loads all images after 15 seconds
Summary: Cloud image list loads all images after 15 seconds
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.1.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: beta6
Assignee: Imre Farkas
QA Contact: Aziza Karol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-11 18:04 UTC by Aaron Weitekamp
Modified: 2016-09-20 05:03 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The image list for a cloud loads all images from all clouds after 15 seconds. This update fixes auto-updating image list for any given environment and, as a result, the cloud image list loads only images related to that particular cloud after auot-update.
Clone Of:
Environment:
Last Closed: 2012-12-04 15:08:27 UTC
Embargoed:


Attachments (Terms of Use)
Initial image list--correct (114.75 KB, image/jpeg)
2012-10-11 18:04 UTC, Aaron Weitekamp
no flags Details
after 15 seconds, all images listed (180.73 KB, image/jpeg)
2012-10-11 18:05 UTC, Aaron Weitekamp
no flags Details
aeolus-debug logs (12.39 MB, application/x-gzip)
2012-10-11 18:24 UTC, Aaron Weitekamp
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1516 0 normal SHIPPED_LIVE CloudForms Cloud Engine 1.1 update 2012-12-04 19:51:45 UTC

Description Aaron Weitekamp 2012-10-11 18:04:58 UTC
Created attachment 625620 [details]
Initial image list--correct

Description of problem:
I have several images in several clouds. When I select a cloud then list the images, it displays the correct images for the selected cloud. However after about 15 seconds all images for all clouds are displayed.

Version-Release number of selected component (if applicable):
1.1
[root@qeblade40 Dev]# rpm -qa |grep aeolus
aeolus-all-0.13.18-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-conductor-daemons-0.13.18-1.el6cf.noarch
aeolus-conductor-0.13.18-1.el6cf.noarch
rubygem-aeolus-cli-0.7.4-1.el6cf.noarch
aeolus-configure-2.8.9-1.el6cf.noarch
aeolus-conductor-doc-0.13.18-1.el6cf.noarch

How reproducible:
100%

Steps to Reproduce: (I usually have a box setup with reproducer)
1. Create >1 clouds
2. Create 1+ pool(s) within each cloud
3. Create provider accounts
4. Enable at least one provider provider for each cloud
5. Create 1+ image(s) for each cloud
6. Nav to a cloud, select images

Actual results:
Correct image list initially display, then all images are displayed after ~15 seconds. See screencaps.

Expected results:


Additional info:

Comment 1 Aaron Weitekamp 2012-10-11 18:05:23 UTC
Created attachment 625622 [details]
after 15 seconds, all images listed

Comment 3 Aaron Weitekamp 2012-10-11 18:24:05 UTC
Created attachment 625624 [details]
aeolus-debug logs

A new query is being called (see rails.log). It's being polled every 30 seconds. I believe subsequent queries aren't specific enough.

Initial query:
  CACHE (0.0ms)  SELECT COUNT(*) FROM "pools" WHERE ("pools".pool_family_id = 3)
  PoolFamily Load (0.4ms)  SELECT "pool_families".* FROM "pool_families" WHERE "pool_families"."name" = 'Test' LIMIT 1

Comment 4 Imre Farkas 2012-10-17 15:24:52 UTC
Pull request sent: https://github.com/aeolusproject/conductor/pull/131

Comment 5 Matt Wagner 2012-10-19 19:43:05 UTC
On master and 1.1:

commit 4ff352f8f964ebcf7e8ddcef9b11eee59365233e
Author: Imre Farkas <ifarkas>
Date:   Wed Oct 17 17:17:11 2012 +0200

    BZ865548: fix autoupdating image list for given environment
    
    https://bugzilla.redhat.com/show_bug.cgi?id=865548
    (cherry picked from commit b91d233a5583b74992cb5cbeec493e2303192d3c)

Comment 7 Aziza Karol 2012-10-25 11:32:27 UTC
Cloud image list loads only images related to that particular cloud after auotoupdate.

verified:
rpm -qa | grep aeolus
aeolus-conductor-0.13.21-1.el6cf.noarch
aeolus-conductor-daemons-0.13.21-1.el6cf.noarch
aeolus-configure-2.8.9-1.el6cf.noarch
aeolus-all-0.13.21-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-conductor-doc-0.13.21-1.el6cf.noarch
rubygem-aeolus-cli-0.7.6-1.el6cf.noarch

Comment 9 errata-xmlrpc 2012-12-04 15:08:27 UTC
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.

http://rhn.redhat.com/errata/RHEA-2012-1516.html


Note You need to log in before you can comment on or make changes to this bug.