Bug 850654 - aeolus-image build option --template requires validation if invalid URL is provided.
aeolus-image build option --template requires validation if invalid URL is pr...
Status: CLOSED WONTFIX
Product: CloudForms Cloud Engine
Classification: Red Hat
Component: rubygem-aeolus-cli (Show other bugs)
1.1.0
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Mike Orazi
Rehana
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-22 02:17 EDT by Aziza Karol
Modified: 2013-01-24 13:21 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-01-24 13:21:41 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
err (155.79 KB, image/png)
2012-08-22 02:19 EDT, Aziza Karol
no flags Details

  None (edit)
Description Aziza Karol 2012-08-22 02:17:15 EDT
Description of problem:


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


How reproducible:


Steps to Reproduce:
Try Building an image using invalid url as below:
#aeolus image build --target ec2 --template http://cf-se.gsso.redhat.com/pub/templates/WebServer.xml --environment Hybrid

ERROR:  Unknown Error => 404 Not Found
/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http'
/usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
/usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
/usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
/usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
/usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
/usr/lib/ruby/1.8/open-uri.rb:518:in `open'
/usr/lib/ruby/1.8/open-uri.rb:30:in `open'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/build_command.rb:79:in `read_template'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/build_command.rb:37:in `run'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/config_parser.rb:307:in `build'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/config_parser.rb:45:in `send'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/config_parser.rb:45:in `process'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/cli_parser.rb:68:in `image'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/cli_parser.rb:35:in `send'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/lib/aeolus_cli/command/cli_parser.rb:35:in `process'
/usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.7.0/bin/aeolus:20
/usr/bin/aeolus:19:in `load'
/usr/bin/aeolus:19



Actual results:
Proper error message should be displayed.


Expected results:
rpm -qa | grep aeolus
rubygem-aeolus-cli-0.7.0-0.20120821040026gitd64d64f.fc16.noarch
aeolus-conductor-0.13.0-0.20120821080009git92d81d1.fc16.noarch
aeolus-configure-2.8.0-0.20120821040024gitbdcd549.fc16.noarch
aeolus-conductor-doc-0.13.0-0.20120821080009git92d81d1.fc16.noarch
rubygem-aeolus-image-0.6.0-0.20120821040029git25b7466.fc16.noarch
aeolus-all-0.13.0-0.20120821080009git92d81d1.fc16.noarch
aeolus-conductor-daemons-0.13.0-0.20120821080009git92d81d1.fc16.noarch


Additional info:
Comment 1 Aziza Karol 2012-08-22 02:18:49 EDT
I also tried building and image with invalid url from UI,undefined method `empty?' for nil:NilClass   is displayed.
see attached screenshot.
Comment 2 Aziza Karol 2012-08-22 02:19:22 EDT
Created attachment 606134 [details]
err
Comment 3 Mike Orazi 2013-01-24 13:21:41 EST
This functionality will be replaced when new tim/imgfac integration happens.

Note You need to log in before you can comment on or make changes to this bug.