Bug 859503 - If launch is selected when an application named the same as blueprint already exists an error is thrown
Summary: If launch is selected when an application named the same as blueprint already...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta3
Assignee: Imre Farkas
QA Contact: Rehana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 17:12 UTC by james labocki
Modified: 2016-09-20 05:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If an application was launched from a previously used blueprint, an error occured stating: "Name has already been taken" This fixed set the name and checks for duplicates only after clicking the "Next" button. The system now redirects to a form where the name of the deployment can be set.
Clone Of:
Environment:
Last Closed: 2012-12-04 15:20:50 UTC
Embargoed:


Attachments (Terms of Use)
screen1 (53.22 KB, image/png)
2012-09-21 17:13 UTC, james labocki
no flags Details
screen2 (68.55 KB, image/png)
2012-09-21 17:13 UTC, james labocki
no flags Details
duplicate check (85.47 KB, image/png)
2012-09-28 12:00 UTC, pushpesh sharma
no flags Details
application Blueprint name error (88.18 KB, image/png)
2012-09-28 12:04 UTC, pushpesh sharma
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 james labocki 2012-09-21 17:12:41 UTC
Description of problem:

If a user launches an application from a blueprint using the blueprint's name and then returns to the catalog and selects "launch" again on the same application blueprint an error will appear stating  "Name has already been taken" . This seems like a logic problem, because the user did not set the name, but it is already filled in. It would appear that we could:

1. Not set the application name and only check for a duplicate name when "next" is selected.
2. Generate a Unique Identifier (still user friendly like the way Amazon names each AMI)

Either way, we should not alarm that the name is already taken when the blueprint is only selected.

See screenshots for more.

Comment 1 james labocki 2012-09-21 17:13:06 UTC
Created attachment 615527 [details]
screen1

Comment 2 james labocki 2012-09-21 17:13:37 UTC
Created attachment 615528 [details]
screen2

Comment 4 Imre Farkas 2012-09-24 11:45:36 UTC
For me the first approach is user-friendlier, so fixed in that way. The pull request sent:
https://github.com/aeolusproject/conductor/pull/74

Comment 5 Tzu-Mainn Chen 2012-09-24 15:03:37 UTC
ACK'd and pushed to master/1.1:

commit 689c15931538a9d794191a645b89105b41922e89
Author: Imre Farkas <ifarkas>
Date:   Mon Sep 24 13:39:54 2012 +0200

    BZ #859503: laucn new deployment button on deployables#show redirects to deployments#launch_new instead of deploy
    (cherry picked from commit 081f3d2e188a6b4e3b53d9e313a6ab8c0f9cee73)

Comment 7 Imre Farkas 2012-09-24 16:05:11 UTC
Just for clarification, the user is now redirected to the form where the name of the deployment can be set. So the error message without any user interaction is gone but the name remains the same even if there's an existing one.

Comment 8 pushpesh sharma 2012-09-28 12:00:01 UTC
1.Try to launch a application with Blueprint name--->Success
2.Tried again the above and got the message "Name already taken" before pressing the next button. 

"Not set the application name and only check for a duplicate name when "next" is selected." recommendation is applied. 

Verified on :

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

Comment 9 pushpesh sharma 2012-09-28 12:00:51 UTC
Created attachment 618534 [details]
duplicate check

Comment 10 pushpesh sharma 2012-09-28 12:04:38 UTC
Created attachment 618535 [details]
application Blueprint name error

Comment 12 errata-xmlrpc 2012-12-04 15:20:50 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.