Bug 1101156 - [new relic] undefined method `run_in_container_context' for nil:NilClass on INT nodes
Summary: [new relic] undefined method `run_in_container_context' for nil:NilClass on I...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.x
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1102399
TreeView+ depends on / blocked
 
Reported: 2014-05-26 10:21 UTC by Meng Bo
Modified: 2015-05-14 23:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1102399 (view as bug list)
Environment:
Last Closed: 2014-07-15 10:29:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2014-05-26 10:21:29 UTC
Description of problem:
MCollective::Agent::Openshift#status_cron-1.4 raised NoMethodError

Error message

NoMethodError: undefined method `run_in_container_context' for nil:NilClass 

…b/openshift-origin-node/model/
application_container.rb: 796:in `run_in_container_context'
…e/model/application_container_ext/
cartridge_actions.rb:1276:in `status'
…usr/libexec/mcollective/mcollective/agent/
openshift.rb:1010:in `block in oo_status'
…usr/libexec/mcollective/mcollective/agent/
openshift.rb: 340:in `with_container_from_args'
…usr/libexec/mcollective/mcollective/agent/
openshift.rb:1009:in `oo_status'
…usr/libexec/mcollective/mcollective/agent/
openshift.rb: 174:in `execute_action'
(eval):3:in `block in execute_action_with_newrelic_transaction_trace'
(eval):2:in `execute_action_with_newrelic_transaction_trace'
…usr/libexec/mcollective/mcollective/agent/
openshift.rb: 142:in `cartridge_do_action'
…h/ruby193/root/usr/share/ruby/mcollective/rpc/
agent.rb:  86:in `handlemsg'
…t/rh/ruby193/root/usr/share/ruby/mcollective/
agents.rb: 126:in `block (2 levels) in dispatch'
         /opt/rh/ruby193/root/usr/share/ruby/
timeout.rb:  69:in `timeout'
…t/rh/ruby193/root/usr/share/ruby/mcollective/
agents.rb: 125:in `block in dispatch'


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

How reproducible:
hardly, just found such errors in new reflic

Steps to Reproduce:
1. Check the node errors in new relic
2.
3.

Actual results:
There are many undefined method errors found during check cartridge status action.

Expected results:
Should not have such errors.

Additional info:

Comment 2 Jhon Honce 2014-05-28 20:35:49 UTC
Fixed in https://github.com/openshift/origin-server/pull/5457

Comment 3 openshift-github-bot 2014-05-28 21:48:44 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/50a516f8f7329b2d5082dcbfc51279d1bcd7aa7d
Bug 1101156 - Always initialize container_plugin

Comment 4 Meng Bo 2014-05-29 11:23:12 UTC
No such error found after automation testing on INT today.

Move bug to verified.


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