Bug 782503

Summary: Wrong flash message when user try to create a new deployable from built & pushed image without any hardware profile.
Product: [Retired] CloudForms Cloud Engine Reporter: Jozef Zigmund <jzigmund>
Component: aeolus-conductorAssignee: Jozef Zigmund <jzigmund>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-30 17:12:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
msg none

Description Jozef Zigmund 2012-01-17 15:43:06 UTC
Description of problem:

User gets confusing message(flash notice ?) when he try to create a new deployable from image list in Conductor UI(Administer->)


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


How reproducible:
Build an image (through aeolus-image tool, in time when I found this bug I wasn't able to build image via UI).


Steps to Reproduce:
1. User doesn't have defined any hardware profiles.
2. Build an image(via aeolus-image command-line tool)
3. In UI (Administer->Enviroment->tab Images->click on the recent built image)
4. Click on "New Deployable from Image"
5. Fill the form(name of deployable, choose an catalog, select box of hardware profile is empty!!!)
6. Save it
  
Actual results:
It shows flash message ("The record you tried to access does not exist, it may have been deleted") of type 'notice'. 

Expected results:
On deployable#new action user should see flash message(Couldn't find any hardware profile, please create one) of type 'error' and Save button should be disabled.


Additional info:

Comment 1 Jozef Zigmund 2012-02-07 14:18:42 UTC
Bugfix was pushed into staging branch with commit # 3f387e9647b08a347f081b342f6310651fac09c3, please verify it.

Bugfix solution:
When user click on "New Deployable from Image" and he doesnt have any hardware profile or catalog, he will get flash error message about it and 'Save' button is disabled.

Comment 2 Aziza Karol 2012-02-08 05:30:58 UTC
    * No catalog exists! Please create one.
    * No hardware profile exists! Please create one. is displayed when user click on "New Deployable from Image" and he doesnt have any hardware profile or catalog.

Save button is disabled

verified on:
rpm -qa | grep aeolus
aeolus-conductor-0.8.0-23.el6.noarch
rubygem-aeolus-cli-0.3.0-8.el6.noarch
aeolus-configure-2.5.0-12.el6.noarch
rubygem-aeolus-image-0.3.0-7.el6.noarch
aeolus-all-0.8.0-23.el6.noarch
aeolus-conductor-doc-0.8.0-23.el6.noarch
aeolus-conductor-daemons-0.8.0-23.el6.noarch

Comment 3 Aziza Karol 2012-02-08 05:31:51 UTC
Created attachment 560136 [details]
msg