Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 641366

Summary: [UI]: Trying to build a template with no providers defined gives an ugly error message
Product: [Retired] CloudForms Cloud Engine Reporter: Chris Lalancette <clalance>
Component: aeolus-conductorAssignee: Jan Provaznik <jprovazn>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: 0.3.1CC: cpelland, dajohnso, deltacloud-maint, jguiditt, jprovazn, sseago
Target Milestone: alpha   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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: 642820    
Attachments:
Description Flags
screenshot of fix none

Description Chris Lalancette 2010-10-08 14:27:20 UTC
Description of problem:
If you try to build a template before you have defined any providers, it gives you this ugly error message:

Validation failed: Provider can't be blank 

This should probably be a bit more clear, something like:

You must define a provider before building templates.  Click <here> to define a provider

Comment 1 Scott Seago 2010-10-08 14:41:38 UTC
Also, for ec2 you must have defined a provider account, since this is needed for the bundling/registration.

This will possibly all change once we've separated the notions of building for a specific target and bundling/uploading to one or more providers for each target build, but for now it is sufficient to simply say we must have defined a provider _and_ a provider account to build a template.

Comment 2 Jason Guiditta 2010-10-13 14:56:36 UTC
*** Bug 641370 has been marked as a duplicate of this bug. ***

Comment 3 Jason Guiditta 2010-10-21 20:13:25 UTC
commit 54bdf7c5d09fbb3bd3505ae5d4abad5c83d69e3a
Author: Jan Provaznik <jprovazn>
Date:   Thu Oct 21 21:55:13 2010 +0200

    BZ #641366 - understandable message when there is no provider for a build
    
    https://bugzilla.redhat.com/show_bug.cgi?id=641366
    
    We explicitly check if there is a provider of selected type when building
    template. This patch is temporary and code will be removed when we will support
    multiple providers/builds.

Comment 4 Dave Johnson 2010-11-04 17:20:48 UTC
Created attachment 457888 [details]
screenshot of fix

Attempting to build without a Amazon EC2 provider does produce a better error message.  (attached)

Comment 5 Dave Johnson 2010-11-04 17:22:19 UTC
trying to move to verified state, take 2...

Comment 6 wes hayutin 2010-11-04 18:23:00 UTC
no new build from dev..
moving back to on_qa

Comment 7 wes hayutin 2010-11-04 18:26:34 UTC
err.. wrong bug.. moving back to verified :)

Comment 8 wes hayutin 2011-08-01 19:54:46 UTC
release pending...

Comment 9 wes hayutin 2011-08-01 19:56:37 UTC
release pending...

Comment 11 wes hayutin 2011-12-08 13:52:12 UTC
closing out old bugs

Comment 12 wes hayutin 2011-12-08 14:05:42 UTC
perm close