Bug #17326
closedRemote execution of a Service Action(start) pending indefinitely
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1392948
Description of problem: Customer using remote command feature to start puppet(or any other service like-goferd tuned, besclient) service on the client. When he is executing remote command job using "Service Action - SSH Default" template, with action "start" and service "puppet to start the service the job/task for the remote command went into pending state however puppet service started on the client without any issue.
On the client server, there is a sleeping process related to this job:
lvmts005:/root > ps ef | grep foreman-ssh | grep -v grep? exit $exit_code?
root 15244 15227 0 16:30 pts/0 00:00:00 bash -c exec 4>&1? exit_code=`((/var/run/satellite/foreman-ssh-cmd-a5190486-66df-4117-a446-6f5012ceb900/script; echo $?>&3 ) | /usr/bin/tee /var/run/satellite/foreman-ssh-cmd-a5190486-66df-4117-a446-6f5012ceb900/output ) 3>&1 >&4`? exec 4>&
How reproducible:
Always
Steps to Reproduce:
1. Stop puppet (or any affected service) on the client
2. Schedule a remote command to start that command
Actual results:
Task generated for that remote command keep pending indefinitely however service started on the client
Expected results:
Task should completed
Additional info:
If customer stop/restart puppet service in the client from the command line after starting it with a remote job, then the foreman-ssh-cmd process sleeping in the client is somehow resumed and the task is completed in Satellite.