Mohamed Lrhazi
2011-Feb-04 15:17 UTC
[Puppet Users] out of pty devices (not puppet not ruby issue)
I have a puppet Exec that launches a python script I wrote, which uses pexpect (a Python Expect module), to run an interactive software installation... This is done in the post install script of kickstart (in chroot environment). the Exec fails because pexpect fails with error: pty.fork failed: out of pty devices After reboot, an extra run of puppet works fine. Any idea how to solve this? Is this inherent limitation of chrooted, post-install, environment, or can one solve it by setting some environment var in the Exec type or something? Thanks a lot. Mohamed. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Trevor Vaughan
2011-Feb-04 17:39 UTC
Re: [Puppet Users] out of pty devices (not puppet not ruby issue)
Post kickstart, you don''t get a PTY if I remember correctly. You''ll just need to do things with a HEREDOC instead. Trevor On Fri, Feb 4, 2011 at 10:17 AM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> I have a puppet Exec that launches a python script I wrote, which uses > pexpect (a Python Expect module), to run an interactive software > installation... This is done in the post install script of kickstart > (in chroot environment). > the Exec fails because pexpect fails with error: pty.fork failed: out > of pty devices > > After reboot, an extra run of puppet works fine. > > Any idea how to solve this? Is this inherent limitation of chrooted, > post-install, environment, or can one solve it by setting some > environment var in the Exec type or something? > > Thanks a lot. > Mohamed. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaughan@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Feb-05 02:43 UTC
Re: [Puppet Users] out of pty devices (not puppet not ruby issue)
Thanks Trevor... I will be trying this: # post install ... cat <<EOF >>/etc/rc.local /opt/ruby-enterprise/bin/puppet agent --no-noop --test sed -ie ''/puppet/d'' /etc/rc.local EOF On Fri, Feb 4, 2011 at 12:39 PM, Trevor Vaughan <tvaughan@onyxpoint.com> wrote:> Post kickstart, you don''t get a PTY if I remember correctly. > > You''ll just need to do things with a HEREDOC instead. > > Trevor > > On Fri, Feb 4, 2011 at 10:17 AM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >> I have a puppet Exec that launches a python script I wrote, which uses >> pexpect (a Python Expect module), to run an interactive software >> installation... This is done in the post install script of kickstart >> (in chroot environment). >> the Exec fails because pexpect fails with error: pty.fork failed: out >> of pty devices >> >> After reboot, an extra run of puppet works fine. >> >> Any idea how to solve this? Is this inherent limitation of chrooted, >> post-install, environment, or can one solve it by setting some >> environment var in the Exec type or something? >> >> Thanks a lot. >> Mohamed. >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> >> > > > > -- > Trevor Vaughan > Vice President, Onyx Point, Inc > (410) 541-6699 > tvaughan@onyxpoint.com > > -- This account not approved for unencrypted proprietary information -- > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.