Project

General

Profile

Actions

Bug #2714

closed

foreman-proxy: I receives Error when initiates Puppet runs via the MCollective

Added by Peter Gustafsson almost 11 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

When i initiates Puppet runs via the MCollective i get ["failed to execute puppetrun: 500 Internal Server Error"] in the foreman webUI and i can see this in the proxy log:

E, [2013-06-26T10:02:15.005985 #19889] ERROR -- : Exception 'can't convert Array into String' when executing '/usr/bin/sudo/usr/bin/mcopuppetrunonce-Itest01.nix.example.com'
E, [2013-06-26T10:02:15.006767 #19889] ERROR -- : Failed puppet run: Check Log files

Br, Peter

Actions #1

Updated by Dominic Cleal almost 11 years ago

  • Project changed from Foreman to Smart Proxy
  • Status changed from New to Assigned
  • Assignee set to Anonymous
Actions #2

Updated by Peter Gustafsson almost 11 years ago

i'm using foreman-proxy 1.2 RC3
  1. rpm -q foreman-proxy
    foreman-proxy-1.2.0-0.3.RC3.el6.noarch
Actions #3

Updated by Dominic Cleal almost 11 years ago

Dmitri, would you mind having a look again? Maybe something wrong with the IO.popen in shell_command? I suspect this might be a Ruby 1.8 issue as the proxy isn't SCL'd.

Actions #4

Updated by Dominic Cleal almost 11 years ago

  • Target version set to 1.2.0
1.9.3p392 :002 > IO.popen(["echo", "test"])
 => #<IO:fd 5> 

1.8.7 :001 > IO.popen(["echo", "test"])
TypeError: can't convert Array into String
    from (irb):1:in `popen'
    from (irb):1

sigh.

Actions #5

Updated by Dominic Cleal almost 11 years ago

  • Category set to Puppet
Actions #6

Updated by Anonymous almost 11 years ago

  • Status changed from Assigned to Ready For Testing

PR:https://github.com/theforeman/smart-proxy/pull/99

Actions #7

Updated by Peter Gustafsson almost 11 years ago

Above PR works for me.

Br, Peter

Actions #8

Updated by Anonymous almost 11 years ago

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

Updated by Greg Sutcliffe almost 6 years ago

  • Target version deleted (1.2.0)
Actions

Also available in: Atom PDF