Bug 813152

Summary: "undefined method `name' for nil:NilClass" w/ Cloud Resource Zone corner case
Product: [Retired] CloudForms Cloud Engine Reporter: Aziza Karol <akarol>
Component: aeolus-conductorAssignee: Angus Thomas <athomas>
Status: CLOSED EOL QA Contact: Rehana <aeolus-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.0CC: akarol, aweiteka, deltacloud-maint, ssachdev
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 17:58:57 UTC Type: Bug
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
err
none
rails.log none

Description Aziza Karol 2012-04-17 05:47:48 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.First add a cloud resource zone with a blank name. Proper message that name can't be blank is displayed which is correct.
2.Then give a name  to cloud resource zone and  save. 


Actual results:
"undefined method `name' for nil:NilClass"  is displayed in UI. see attached screenshot.


note: if you directly add CRZ without empty name, CRZ gets added.This happens only when we first try to add CRZ with blank name.


rails.log:
Rendered layouts/_nav_history.html.haml (3.3ms)
Rendered pools/_section_header.html.haml (0.6ms)
Rendered layouts/_error_messages.html.haml (5.9ms)
Rendered pools/_form.html.haml (12.0ms)
Rendered pools/_new.html.haml (13.5ms)
Rendered pools/new.html.haml within layouts/application (191.7ms)
undefined method `name' for nil:NilClass
/usr/share/aeolus-conductor/app/views/pools/_form.html.haml:14:in `_app_views_pools__form_html_haml___159100478_69909707071240_942910'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `call'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers.rb:255:in `with_tabs'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:92:in `capture'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/form_helper.rb:320:in `form_for_without_haml'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:169:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:132:in `form_for'
 /usr/share/aeolus-conductor/app/views/pools/_form.html.haml:1:in `_app_views_pools__form_html_haml___159100478_69909707071240_942910'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `send'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `render'
 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:54:in `instrument'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:127:in `render'

attached  rails.log

Expected results:
No err should be displayed.


Additional info:
rpm -qa | grep aeolus
aeolus-conductor-doc-0.8.9-1.el6.noarch
aeolus-conductor-0.8.9-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-all-0.8.9-1.el6.noarch
aeolus-configure-2.5.3-1.el6.noarch
rubygem-aeolus-cli-0.3.1-1.el6.noarch
aeolus-conductor-daemons-0.8.9-1.el6.noarch

Comment 1 Aziza Karol 2012-04-17 05:48:10 UTC
Created attachment 577880 [details]
err

Comment 2 Aziza Karol 2012-04-17 05:54:41 UTC
Created attachment 577883 [details]
rails.log