Project

General

Profile

Bug #18003

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

Added by Marek Hulán over 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Target version:
Difficulty:
Triaged:
Bugzilla link:
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.

Associated revisions

Revision e027e09e (diff)
Added by Marek Hulán over 5 years ago

Fixes #18003 - redirect STDIN

History

#1 Updated by The Foreman Bot over 5 years ago

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

#2 Updated by Marek Hulán over 5 years ago

  • Target version changed from 1.10.2 to 1.11.2

#3 Updated by Marek Hulán over 5 years ago

  • Target version changed from 1.11.2 to 1.11.4

#4 Updated by Marek Hulán over 5 years ago

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

#5 Updated by Ivan Necas over 5 years ago

  • Bugzilla link set to 1429819

Also available in: Atom PDF