Puppet agent does not start in Solaris zone

188 views
Skip to first unread message

Andreas Dvorak

unread,
Nov 13, 2013, 11:45:58 AM11/13/13
to puppet...@googlegroups.com
Dear all

the puppet agent does not want to start on my first Solaris zone. I have already Puppet on x86 server running.
Can anybody please help me?

I have created a package for Solaris 10 Sparc to use the puppet agent on a Solaris zone.

/opt/csw/bin/pkgutil -a puppet
common               package              catalog                        size
puppet               CSWpuppet            2.7.23,REV=2013.08.15      728.3 KB
puppet3              CSWpuppet3           3.3.1,REV=2013.10.22       980.4 KB
puppetmaster         CSWpuppetmaster      2.7.23,REV=2013.08.15        3.4 KB
puppetmaster3        CSWpuppetmaster3     3.3.1,REV=2013.10.22         2.2 KB

from http://mirror.opencsw.org/opencsw/unstable

Command to create the package:
/opt/csw/bin/pkgutil --stream --target=sparc:5.10 --output CSWpuppet3_agent_sparc_3.3.1.pkg --yes --download CSWpuppet3

But the service cswpuppetd does not want to start:
[ Nov 13 17:28:24 Leaving maintenance because disable requested. ]
[ Nov 13 17:28:24 Disabled. ]
[ Nov 13 17:29:04 Disabled. ]
[ Nov 13 17:29:04 Rereading configuration. ]
[ Nov 13 17:29:04 Enabled. ]
[ Nov 13 17:29:04 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
/var/opt/csw/svc/method/svc-cswpuppetd: /opt/csw/bin/puppet: cannot execute
Starting Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: /opt/csw/bin/puppet: cannot execute
 puppetd
[ Nov 13 17:29:04 Method "start" exited with status 0 ]
[ Nov 13 17:29:05 Stopping because all processes in service exited. ]
[ Nov 13 17:29:05 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
/var/opt/csw/svc/method/svc-cswpuppetd: /opt/csw/bin/puppet: cannot execute
Stopping Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: test: argument expected
[ Nov 13 17:29:05 Method "stop" exited with status 1 ]

The zone has
cat /etc/release
                   Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013



Andreas Dvorak

unread,
Nov 13, 2013, 12:55:26 PM11/13/13
to puppet...@googlegroups.com
Now I have tried the version puppet3              CSWpuppet3           3.1.1,REV=2013.03.15       780.4 KB from testing branch.
but it has the same problem.

Regards,
Andreas

Rich Burroughs

unread,
Nov 14, 2013, 10:43:30 PM11/14/13
to puppet...@googlegroups.com
Hi,

It's starting up through SMF? What happens if you try to run the agent directly? Like:

sudo puppet agent -t 

Or run it as root without sudo.


Rich
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/263d54f6-39af-40bd-945b-09196908618e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andreas Dvorak

unread,
Nov 15, 2013, 7:05:33 AM11/15/13
to puppet...@googlegroups.com
Hi Rich,

I tried
/opt/csw/bin/puppet agent --test
bash: /opt/csw/bin/puppet: /opt/csw/bin/ruby18: bad interpreter: Invalid argument

But unfortunately that does not help me. Have you got any idea?

Regards
Andreas

Rich Burroughs

unread,
Nov 15, 2013, 4:07:10 PM11/15/13
to puppet...@googlegroups.com
I'm not sure. I'd check to see if your Ruby version is supported:



Rich
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

Andreas Dvorak

unread,
Nov 18, 2013, 5:36:42 AM11/18/13
to puppet...@googlegroups.com
Hi Rich,

the package installs CSWruby18 VERSION:  1.8.7p334,REV=2011.03.24 and that is supported.

Andreas

Andreas Dvorak

unread,
Dec 2, 2013, 4:47:38 AM12/2/13
to puppet...@googlegroups.com
Dear all,

I found the problem.
The package needs to be installed in the global zone. It does not work if you install it only in the local zone.

Best regards
Andreas
Reply all
Reply to author
Forward
0 new messages