Remote execution of a Service Action(start) pending indefinitely
|Assigned To:||Adam Ruzicka|
|Target version:||Foreman - Team Ivan Iteration 6|
|Velocity based estimate||-|
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>&
Steps to Reproduce:
1. Stop puppet (or any affected service) on the client
2. Schedule a remote command to start that command
Task generated for that remote command keep pending indefinitely however service started on the client
Task should completed
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.
#3 Updated by Adam Ruzicka 8 months ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|a3a39f08e0e755e61b342c398fe88c7e6813360d.