Bug 690153 - Templates: unable to add packages to a template
Summary: Templates: unable to add packages to a template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
Assignee: Jan Provaznik
QA Contact: wes hayutin
URL: http://hp-bl280cg6-01.rhts.eng.bos.re...
Whiteboard:
Depends On:
Blocks: ce-beta
TreeView+ depends on / blocked
 
Reported: 2011-03-23 13:19 UTC by wes hayutin
Modified: 2012-01-26 12:28 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
saving template without adding any package (88.46 KB, image/png)
2011-03-24 12:07 UTC, Shveta
no flags Details

Description wes hayutin 2011-03-23 13:19:35 UTC
Description of problem:


1. create a template
2. try to add packages

Internal Server Error
undefined method `[]' for nil:NilClass

Comment 1 Dave Johnson 2011-03-23 13:37:27 UTC
Processing ImageFactory::TemplatesController#content_selection (for 10.11.231.77 at 2011-03-23 09:35:56) [POST]
  Parameters: {"repository"=>"fedora", "action"=>"content_selection", "controller"=>"image_factory/templates"}

ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #6 of app/views/image_factory/templates/_collections.haml:
3:     %li
4:       /- selected = c[:selected] ? true : false
5:       - selected = false
6:       = check_box_tag 'groups[]', c[:id], selected, {:disabled => selected, :id => "group_#{c[:id]}", :class => "#{selected ? 'selected' : ''}"}
7:       = label_tag "group_#{c[:id]}", c[:name]
8: = render :partial => 'addbuttons'

    app/views/image_factory/templates/_collections.haml:6:in `_run_haml_app47views47image_factory47templates47_collections46haml_locals_collections_object'
    app/views/image_factory/templates/_collections.haml:2:in `each'
    app/views/image_factory/templates/_collections.haml:2:in `_run_haml_app47views47image_factory47templates47_collections46haml_locals_collections_object'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
    haml (3.0.18) lib/haml/helpers.rb:90:in `non_haml'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
    app/views/image_factory/templates/_software_selection.haml:41:in `_run_haml_app47views47image_factory47templates47_software_selection46haml_locals_object_software_selection_view'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:202:in `call'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:202:in `form_tag'
    haml (3.0.18) lib/haml/helpers.rb:588:in `call'
    haml (3.0.18) lib/haml/helpers.rb:588:in `haml_bind_proc'
    haml (3.0.18) lib/haml/helpers.rb:343:in `call'
    haml (3.0.18) lib/haml/helpers.rb:343:in `capture_haml'
    haml (3.0.18) lib/haml/helpers.rb:566:in `with_haml_buffer'
    haml (3.0.18) lib/haml/helpers.rb:339:in `capture_haml'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:88:in `capture'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:208:in `form_tag'
    app/views/image_factory/templates/_software_selection.haml:36:in `_run_haml_app47views47image_factory47templates47_software_selection46haml_locals_object_software_selection_view'
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    app/controllers/image_factory/templates_controller.rb:141:in `content_selection'
    compass (0.10.4) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
    haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
    haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
    thin (1.2.5) lib/thin/connection.rb:76:in `pre_process'
    thin (1.2.5) lib/thin/connection.rb:74:in `catch'
    thin (1.2.5) lib/thin/connection.rb:74:in `pre_process'
    thin (1.2.5) lib/thin/connection.rb:57:in `process'
    thin (1.2.5) lib/thin/connection.rb:42:in `receive_data'
    eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
    eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
    thin (1.2.5) lib/thin/backends/base.rb:57:in `start'
    thin (1.2.5) lib/thin/server.rb:156:in `start'
    thin (1.2.5) lib/thin/controllers/controller.rb:80:in `start'
    thin (1.2.5) lib/thin/runner.rb:177:in `send'
    thin (1.2.5) lib/thin/runner.rb:177:in `run_command'
    thin (1.2.5) lib/thin/runner.rb:143:in `run!'
    thin (1.2.5) bin/thin:6
    /usr/bin/thin:19:in `load'
    /usr/bin/thin:19

Comment 2 Shveta 2011-03-24 12:02:39 UTC
Same issue in 23rd March rpms.

rpm -qa |grep aeolus
aeolus-configure-2.0.0-4.fc1420110323154515gitf695a65.noarch
aeolus-conductor-doc-0.0.3-0.fc1420110323194447gitf9cba39.x86_64
aeolus-conductor-daemons-0.0.3-0.fc1420110323194447gitf9cba39.x86_64
aeolus-conductor-0.0.3-0.fc1420110323194447gitf9cba39.x86_64

Comment 3 Shveta 2011-03-24 12:07:39 UTC
Created attachment 487300 [details]
saving template without adding any package

On saving a template without adding any package get "Connection refused "

Comment 4 wes hayutin 2011-03-30 16:08:11 UTC
this is resolved in the latest builds.. moving to on_qa

Comment 5 Shveta 2011-03-31 10:34:43 UTC
Able to add now.

Comment 6 wes hayutin 2011-08-01 19:54:18 UTC
release pending...

Comment 7 wes hayutin 2011-08-01 19:56:10 UTC
release pending...

Comment 9 wes hayutin 2011-12-08 13:51:41 UTC
closing out old bugs

Comment 10 wes hayutin 2011-12-08 14:05:02 UTC
perm close


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