Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1138580[details]
undefined method `full_messages' for []:Array when creating container with invalid image
Description of problem: I was trying to reproduce one bz where we need to check if raised error contains link to 'Satellite6 ticketing system' instead of foreman ticketing system. So to reproduce that, I created a container with incorrect image name, when I submitted the new container wizard, I got following error:
2016-03-21 08:10:51 [app] [I] Started PUT "/wizard_states/8/steps/environment" for 10.65.193.200 at 2016-03-21 08:10:51 -0400
2016-03-21 08:10:51 [app] [I] Processing by Containers::StepsController#update as HTML
2016-03-21 08:10:51 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"rUKv4ZleB4al8fjWv2U5LbDbL4mJB1NK6yFXvOKelk4=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "button"=>"", "wizard_state_id"=>"8", "id"=>"environment"}
2016-03-21 08:10:53 [app] [W] Action failed
| NoMethodError: undefined method `full_messages' for []:Array
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:61:in `create_container'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:22:in `update'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'
Version-Release number of selected component (if applicable):
sat6.2 snap4
How reproducible:
always
Steps to Reproduce:
1. create a new container with invalid image.
2.
3.
Actual results:
16-03-21 08:10:53 [app] [W] Action failed
| NoMethodError: undefined method `full_messages' for []:Array
Expected results:
user should get proper error message instead of :
Oops, we're sorry but something went wrong undefined method `full_messages' for []:Array
Additional info:
Created attachment 1138580 [details] undefined method `full_messages' for []:Array when creating container with invalid image Description of problem: I was trying to reproduce one bz where we need to check if raised error contains link to 'Satellite6 ticketing system' instead of foreman ticketing system. So to reproduce that, I created a container with incorrect image name, when I submitted the new container wizard, I got following error: 2016-03-21 08:10:51 [app] [I] Started PUT "/wizard_states/8/steps/environment" for 10.65.193.200 at 2016-03-21 08:10:51 -0400 2016-03-21 08:10:51 [app] [I] Processing by Containers::StepsController#update as HTML 2016-03-21 08:10:51 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"rUKv4ZleB4al8fjWv2U5LbDbL4mJB1NK6yFXvOKelk4=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "button"=>"", "wizard_state_id"=>"8", "id"=>"environment"} 2016-03-21 08:10:53 [app] [W] Action failed | NoMethodError: undefined method `full_messages' for []:Array | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:61:in `create_container' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:22:in `update' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call' Version-Release number of selected component (if applicable): sat6.2 snap4 How reproducible: always Steps to Reproduce: 1. create a new container with invalid image. 2. 3. Actual results: 16-03-21 08:10:53 [app] [W] Action failed | NoMethodError: undefined method `full_messages' for []:Array Expected results: user should get proper error message instead of : Oops, we're sorry but something went wrong undefined method `full_messages' for []:Array Additional info: