Bug 799981

Summary: Push all button visibility conditions
Product: [Retired] CloudForms Cloud Engine Reporter: Petr Blaho <pblaho>
Component: aeolus-conductorAssignee: Imre Farkas <ifarkas>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, asettle, athomas, cpelland, dajohnso, deltacloud-maint, dmacpher, hbrock, ifarkas, juwu, morazi, psharma, slinaber, ssachdev
Target Milestone: 1.0.2Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The 'Push all' button was visible to users even if was no image existed for the push. This bug fix updates Conductor so that the 'Push all' button is not visible unless there is an existing image. The button is also not visible after all images are deleted.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 14:57:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Blaho 2012-03-05 14:38:43 UTC
Description of problem:
Push all button is now visible on Image page if there is latest build even if that latest build have no target images.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create new image
2. build image for provider
3. see push all button
4. delete image for provider
5. still see push all button even if there is no image to push
  
Actual results:
still see push all button even if there is no image to push

Expected results:
push all button should disapear

Additional info:
When displaying push all button one should check not only for latest build for selected image but also if that build has any target images built (ready to  push)

Comment 1 Hugh Brock 2012-03-06 15:00:32 UTC
What happens when you press the button?

Comment 2 Petr Blaho 2012-03-06 15:03:15 UTC
From the user point of view nothing - only page is reloaded.

Comment 3 Imre Farkas 2012-03-07 15:08:54 UTC
Patch has been posted: https://fedorahosted.org/pipermail/aeolus-devel/2012-March/009450.html

Comment 4 Imre Farkas 2012-03-09 10:34:54 UTC
This issue has been fixed. Please verify the commit e562208b3071344971214ec7a72f461f9a198628

Comment 5 Steve Linabery 2012-04-12 21:37:27 UTC
e562208b3071344971214ec7a72f461f9a198628 is only in master branch as of this writing.

Comment 8 pushpesh sharma 2012-09-20 10:16:32 UTC
-Push all button is not visible till atleast a single provider has completed image building process.
-A Provider now has a builed image.Pressing "push all" button after this results in pushing for that provider only. 
-Deletion of image after it is pushed,results in disappeared "Push all" button.
  

Above observation satisfy the expectation from the fix.Marking as verified.

[root@dhcp201-113 ~]# rpm -qa|grep aeolus
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-all-0.13.8-1.el6cf.noarch
aeolus-conductor-0.13.8-1.el6cf.noarch
rubygem-aeolus-cli-0.7.1-1.el6cf.noarch
aeolus-configure-2.8.6-1.el6cf.noarch
aeolus-conductor-daemons-0.13.8-1.el6cf.noarch
aeolus-conductor-doc-0.13.8-1.el6cf.noarch

Comment 11 errata-xmlrpc 2012-12-04 14:57:47 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