Bug 1326211 - NoMethodError: undefined method `full_messages' for []:Array on creating a container using CV on atomic-host
Summary: NoMethodError: undefined method `full_messages' for []:Array on creating a co...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management - Runtime
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Daniel Lobato Garcia
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1321771
TreeView+ depends on / blocked
 
Reported: 2016-04-12 07:33 UTC by Sachin Ghai
Modified: 2018-08-02 20:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-02 20:58:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error on creating container on atomic-host Compute-resource by using content-view (16.03 KB, image/png)
2016-04-12 07:33 UTC, Sachin Ghai
no flags Details
created centos container by selecting image from docker-hub tab (48.11 KB, image/png)
2016-04-12 07:38 UTC, Sachin Ghai
no flags Details
status of all created containers is 'off' (39.61 KB, image/png)
2016-04-12 08:04 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2016-04-12 07:33:43 UTC
Created attachment 1146250 [details]
error on creating container on atomic-host Compute-resource by using content-view

Description of problem: I provisioned atomic host via satellite and later added that as docker compute-resource. The test connection to atomic compute resource was successful.

Later, I synced centos docker contents and published in CV. I used same CV along with 'latest' tag to create a centos container and it was failed with below exception:


	2016-04-12 03:21:24 [app] [W] Action failed
 | NoMethodError: undefined method `full_messages' for []:Array
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1.3/app/controllers/containers/steps_controller.rb:61:in `create_container'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1.3/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'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `block in halting'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in `block in halting'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:299:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:299:in `block (2 levels) in halting'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in `around'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:447:in `public_send'


Version-Release number of selected component (if applicable):
Sat 6.2 beta snap7.1

How reproducible:


Steps to Reproduce:
1. sync centos doscker contents
2. publish it in CV
3. use same CV to create new container 

Actual results:
2016-04-12 03:21:24 [app] [W] Action failed
 | NoMethodError: undefined method `full_messages' for []:Array


Expected results:
user should be able to create container

Additional info:

Test connection to atomic-host CR was successful. I know we already have generic bz1243140 for improving error messages. However I would like to keep this open and track it only for atomic-host.

I commented here too but this bug is closed:
https://bugzilla.redhat.com/show_bug.cgi?id=1318641#c10

Comment 1 Sachin Ghai 2016-04-12 07:37:28 UTC
Please note that if I create container by pulling image from docker hub then I was able to create container. So issue is only if I select image from published CV.

Comment 2 Sachin Ghai 2016-04-12 07:38:25 UTC
Created attachment 1146263 [details]
created centos container by selecting image from docker-hub tab

Comment 4 Sachin Ghai 2016-04-12 08:03:56 UTC
Please note that I selected the Run? checkbox on 'Environment' tab while creating the container. 

Also, I tried to create other containers of centos/ubuntu images, these are created successfully but couldn't power-on.  On explicitly 'Power on' them, UI raises success notification like: 'Success centos is now running'. However, the container status remains 'off'.

Comment 5 Sachin Ghai 2016-04-12 08:04:41 UTC
Created attachment 1146268 [details]
status of all created containers is 'off'

Comment 6 Lukas Pramuk 2016-04-12 11:28:39 UTC
As I said in https://bugzilla.redhat.com/show_bug.cgi?id=1318641#c16 :

Atomic host similarly as docker host requires bootstrap cert to be installed.
No rpm on atomic host? On Atomic host simply run katello-rhsm-consumer script
(bootstrap rpm has it as %postinstall script)

# wget http://<SAT>/pub/katello-rhsm-consumer
# chmod +x katello-rhsm-consumer
# ./katello-rhsm-consumer

Sachin can you test if this resolves your issue?

Comment 7 Sachin Ghai 2016-04-13 06:30:37 UTC
@Lukas: I didn't notice your comment in the bz pointed in comment6. I'm using  katello-rhsm-consumer script for atomic host. 

As I mentioned in comment4, I'm facing this issue only if I use content-view. I can create container If I select images from docker-hub.

Comment 8 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 9 Bryan Kearney 2016-07-26 15:30:42 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 12 Bryan Kearney 2018-08-02 20:58:01 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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