| Summary: | Return "Node execution failure" while reloading an jenkins server | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OKD | Reporter: | bzhao | ||||||
| Component: | Containers | Assignee: | Abhishek Gupta <abhgupta> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 2.x | CC: | bmeng, pruan, rmillner | ||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | cartridge-jenkins-1.4-0.91.5-1+ | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-04-27 20:46:07 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
bzhao
2012-04-17 09:29:55 UTC
Created attachment 577966 [details]
development_log
Created attachment 577967 [details]
jenkins_log
Fixed in commit d793aeb. [rmillner@splat li]$ rhc app reload -p none -a jenkinstest -dContacting https://107.20.73.47 Response from server: DEBUG: Exit Code: 0 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Success Passed verification against devenv 1730 reproduce this issue on devenv_1738 with cartridge-jenkins-1.4-0.91.6-1, reopen this bug.
<-------client log------->DEBUG:
Could not reload Jenkins server 'jenkins' configuration:
/usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/app_ctl.sh: line 101: jenkins_reload: command not found
Cartridge return code: 1
Exit Code: 1
api_c: placeholder
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
API version: 1.1.3
RESULT:
Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.
<-------broker log------->
DEBUG: rpc_exec_direct: rpc_client=#<MCollective::RPC::Client:0x7f115b637158>
DEBUG: rpc_client.custom_request('cartridge_do', {:action=>"reload", :args=>"'jenkins' 'bmengauto1' '86c377dcfb864ac5a8e89ef2174d3ca3'", :cartridge=>"jenkins-1.4"}, @id, {'identity' => @id})
DEBUG: [#<MCollective::RPC::Result:0x7f115b6572f0 @agent="libra", @results={:sender=>"ip-10-117-58-249", :statusmsg=>"cartridge_do_action failed 1. Output Could not reload Jenkins server 'jenkins' configuration:\n /usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/app_ctl.sh: line 101: jenkins_reload: command not found\n", :statuscode=>1, :data=>{:exitcode=>1, :output=>"Could not reload Jenkins server 'jenkins' configuration:\n /usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/app_ctl.sh: line 101: jenkins_reload: command not found\n"}}, @action="cartridge_do">]
DEBUG: server results: Could not reload Jenkins server 'jenkins' configuration:
DEBUG: server results: /usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/app_ctl.sh: line 101: jenkins_reload: command not found
Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.
#<StickShift::NodeException: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.>
.
.
.
Exception rescued in /broker/cartridge:
Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.
/usr/lib/ruby/gems/1.8/gems/gearchanger-m-collective-plugin-0.8.7/lib/gearchanger-m-collective-plugin/gearchanger/mcollective_application_container_proxy.rb:1135:in `run_cartridge_command'
/usr/lib/ruby/gems/1.8/gems/gearchanger-m-collective-plugin-0.8.7/lib/gearchanger-m-collective-plugin/gearchanger/mcollective_application_container_proxy.rb:280:in `reload'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.9.10/lib/stickshift-controller/app/models/gear.rb:96:in `reload'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.9.10/lib/stickshift-controller/app/models/application.rb:644:in `reload'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.9.10/lib/stickshift-controller/app/models/application.rb:1340:in `call'
/usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.9.10/lib/stickshift-controller/app/models/application.rb:1340:in `run_on_gears'
--DEBUG--
Could not reload Jenkins server 'jenkins' configuration:
/usr/libexec/stickshift/cartridges/jenkins-1.4/info/bin/app_ctl.sh: line 101: jenkins_reload: command not found
Cartridge return code: 1
li commit 318d8c83 removed the jenkins_reload command and its still referenced by app_ctl.sh.
$ grep jenkins_reload cartridges/jenkins-1.4/info/bin/app_ctl.sh
if ! out=$(jenkins_reload "${JENKINS_USERNAME}" "${JENKINS_PASSWORD}" "${JENKINS_URL}" 2>&1)
Passing to the commiter to figure out what they want to do.
There are a couple problems with the way we were doing it. #1 that URL failed most of the time and #2 when it succeeds, it reloads EVEYTHING and kills any active build The reload now happens automatically through the jenkins plugin before every build. verified with ami-16964c7f |