Project

General

Profile

Actions

Bug #18003

closed

If some command in the job template reads from STDIN the job never finishes

Added by Marek Hulán almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Target version:
Fixed in Releases:
Found in Releases:

Description

It's easy to write a template that would read from STDIN, e.g. following snippet hidden in a longer template

grep something

would cause indefinite job. The job can be cancelled but the eats resources by sending live updates while it does nothing. We should redirect STDIN to /dev/null when we run the script so such calls would end up with error.

Actions #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/219 added
Actions #2

Updated by Marek Hulán almost 8 years ago

  • Target version changed from 1.10.2 to 1.11.2
Actions #3

Updated by Marek Hulán almost 8 years ago

  • Target version changed from 1.11.2 to 1.11.4
Actions #4

Updated by Marek Hulán almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Ivan Necas over 7 years ago

  • Bugzilla link set to 1429819
Actions

Also available in: Atom PDF