Hide Forgot
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:
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.
* 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
Created attachment 560136 [details] msg