Ask Your Question
4

Command exceeded timeout

asked 2013-05-14 12:42:30 -0500

phthinh gravatar image

updated 2013-05-14 14:00:21 -0500

ramindk gravatar image

I'm get a file from server, untar then make & make install it. Then it comes an Error

Error: /Stage[main]/Hpl/Exec[install openmpi-1.6.4]: Failed to call refresh: Command exceeded timeout
Error: /Stage[main]/Hpl/Exec[install openmpi-1.6.4]: Command exceeded timeout

Here is my script:

file { "${hpl::params::home}/openmpi-${hpl::params::openmpi_version}.tar.gz":
        mode        => 0644,
        owner       => hpluser,
        group       => hpl,
        source      => "puppet:///modules/hpl/openmpi-${hpl::params::openmpi_version}.tar.gz",
        alias       => "openmpi-source-tgz",
        before      => Exec["untar-openmpi"],
        require     => File["hpl-base"]
    }

    exec { "untar openmpi-${hpl::params::openmpi_version}.tar.gz":
        path        => $execPath,
        command     => "tar -xvzf openmpi-${hpl::params ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2013-05-14 13:58:24 -0500

ramindk gravatar image

updated 2013-05-14 14:12:42 -0500

You'd be better off building a proper package and installing via your internal repo. However the problem you're running into is that the default Exec timeout is 300 seconds. You might try adding a timeout to your Exec as in the following.

exec { "install openmpi-${hpl::params::openmpi_version}":
  cwd         => "${hpl::params::home}/openmpi-${hpl::params::openmpi_version}",
  command     => "${hpl::params::home}/openmpi-${hpl::params::openmpi_version}/configure --prefix=${hpl::params::openmpi_home} && make && make install",
  logoutput   => true,
  refreshonly => true,
  timeout     => 1800,
  alias       => "install-openmpi",
}
edit flag offensive delete link more

Comments

So, interesting thing to note. Timeout=>0, as the docs indicate, does not actually remove the timeout. I have a 6 gb .sql file I am attempting to import (which ...(more)

SgtPooki gravatar imageSgtPooki ( 2014-04-14 18:26:33 -0500 )edit

I just tested it and seemed to work fine, Notice: /Stage[main]/Main/Exec[/bin/sleep 600]/returns: executed successfully, Notice: Finished catalog run in 600.06 seconds using timeout ...(more)

ramindk gravatar imageramindk ( 2014-04-14 19:24:51 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-14 12:42:30 -0500

Seen: 17,415 times

Last updated: May 14 '13