Puppet: System Administration Automated

Support

Ticket #969 (closed defect: duplicate)

Opened 1 year ago

Last modified 1 year ago

puppetd dies instead of daemonzing on debian etch i386

Reported by: marthag Assigned to: community
Priority: normal Milestone:
Component: client Version: 0.24.0
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

puppetd dies instead of daemonzing on debian etch i386. It works correctly on debian etch amd64, and running puppetd --test works fine. Stack track attached

Attachments

strace.out.gz (92.2 kB) - added by marthag on 12/19/07 21:23:26.
strace output

Change History

12/19/07 21:23:26 changed by marthag

  • attachment strace.out.gz added.

strace output

(follow-up: ↓ 2 ) 12/19/07 22:29:03 changed by Fujin

I'm unable to reproduce on (server) Ubuntu 7.04 with Thom's packages backported http://people.debian.org/~thom/puppet/ and (client) Ubuntu 7.04 with Thom's packages backported also.

server

root@puppet:/var/lib# facter lsbdistdescription
Ubuntu 7.04
root@puppet:/var/lib# dpkg -l puppetmaster
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name             Version          Description
+++-================-================-================================================
ii  puppetmaster     0.24.0-1~7.04pre centralised configuration management control dae

client

root@test:~# facter lsbdistdescription
Ubuntu 7.04
root@test:~# dpkg -l puppet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name             Version          Description
+++-================-================-================================================
ii  puppet           0.24.0-1~7.04pre centralised configuration management for network
root@test:~# puppetd
root@test:~# ps -ef |grep puppet
root      9416     1 14 10:19 ?        00:00:00 ruby /usr/sbin/puppetd

(in reply to: ↑ 1 ) 12/19/07 23:32:15 changed by Fujin

We'll have to find some people with debian etch i386 to test this - my testing is obviously not sufficicent, nor exactly the same, yet it does show that the

12/28/07 04:08:43 changed by Fujin

*does show that the files provided by the packages are fine

(follow-up: ↓ 7 ) 12/28/07 11:35:39 changed by marthag

This appears to only happen when listen=true. If I set it to false puppetd will start correctly. Can you re-test with this?

12/28/07 16:09:00 changed by luke

listen=true works fine for me on the platforms I've tested it on, so this must be a problem specifically with etch, but we can't find an etch i386 to reproduce.

12/28/07 17:06:03 changed by jamtur01

I have an etch 386 to test this on. I will do so in the next week or so.

(in reply to: ↑ 4 ) 12/29/07 22:40:58 changed by Fujin

Replying to marthag:

This appears to only happen when listen=true. If I set it to false puppetd will start correctly. Can you re-test with this?

Sure, works fine on Ubuntu (same details as my earlier post). Perhaps it's a Ruby issue? Sorry, this is pretty much the limit of my knowledge. Does this happen on a brand-spanking-new etch install, like out of the box?

12/30/07 11:44:58 changed by jamtur01

I've tried this on a fresh etch install and I can't replicate the issue.

12/31/07 22:18:29 changed by marthag

This happens on clean etch install for me. The packages for facter and puppet were taken from unstable and put in a local repository.

debiantest:~# aptitude -y -o aptitude::Cmdline::ignore-trust-violations=true install puppet Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done The following NEW packages will be automatically installed:

facter irb1.8 libopenssl-ruby libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 libshadow-ruby1.8 libxmlrpc-ruby rdoc rdoc1.8 ruby ruby1.8

The following packages have been kept back:

debconf debconf-i18n e2fslibs e2fsprogs findutils initramfs-tools klibc-utils libblkid1 libc6 libc6-i686 libcomerr2 libklibc libpam-modules libpam-runtime libpam0g libss2 libuuid1 linux-image-2.6-686 linux-image-2.6.18-4-686 locales tar tzdata

The following NEW packages will be installed:

facter irb1.8 libopenssl-ruby libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 libshadow-ruby1.8 libxmlrpc-ruby puppet rdoc rdoc1.8 ruby ruby1.8

0 packages upgraded, 13 newly installed, 0 to remove and 22 not upgraded. Need to get 3249kB/3279kB of archives. After unpacking 11.6MB will be used. WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do.

puppet facter

*** WARNING *** Ignoring these trust violations because

aptitude::CmdLine::Ignore-Trust-Violations is 'true'!

Writing extended state information... Done Get:1 http://debian.thenationtraffic.com etch/main facter 1.3.8-1 [20.1kB] Get:2 http://debian.thenationtraffic.com etch/main puppet 0.24.1-1 [434kB] Get:3 http://mirror.inter.net.il etch/main libruby1.8 1.8.5-4etch1 [1532kB] Get:4 http://mirror.inter.net.il etch/main ruby1.8 1.8.5-4etch1 [219kB] Get:5 http://mirror.inter.net.il etch/main libreadline-ruby1.8 1.8.5-4etch1 [197kB] Get:6 http://mirror.inter.net.il etch/main irb1.8 1.8.5-4etch1 [235kB] Get:7 http://mirror.inter.net.il etch/main libopenssl-ruby1.8 1.8.5-4etch1 [293kB] Get:8 http://mirror.inter.net.il etch/main libshadow-ruby1.8 1.4.1-7 [8432B] Get:9 http://mirror.inter.net.il etch/main rdoc1.8 1.8.5-4etch1 [310kB] Fetched 3249kB in 11s (282kB/s) Selecting previously deselected package libruby1.8. (Reading database ... 18430 files and directories currently installed.) Unpacking libruby1.8 (from .../libruby1.8_1.8.5-4etch1_i386.deb) ... Selecting previously deselected package ruby1.8. Unpacking ruby1.8 (from .../ruby1.8_1.8.5-4etch1_i386.deb) ... Selecting previously deselected package ruby. Unpacking ruby (from .../archives/ruby_1.8.2-1_all.deb) ... Selecting previously deselected package facter. Unpacking facter (from .../facter_1.3.8-1_all.deb) ... Selecting previously deselected package libreadline-ruby1.8. Unpacking libreadline-ruby1.8 (from .../libreadline-ruby1.8_1.8.5-4etch1_i386.deb) ... Selecting previously deselected package irb1.8. Unpacking irb1.8 (from .../irb1.8_1.8.5-4etch1_all.deb) ... Selecting previously deselected package libopenssl-ruby1.8. Unpacking libopenssl-ruby1.8 (from .../libopenssl-ruby1.8_1.8.5-4etch1_i386.deb) ... Selecting previously deselected package libopenssl-ruby. Unpacking libopenssl-ruby (from .../libopenssl-ruby_1.0.0+ruby1.8.2-1_all.deb) ... Selecting previously deselected package libshadow-ruby1.8. Unpacking libshadow-ruby1.8 (from .../libshadow-ruby1.8_1.4.1-7_i386.deb) ... Selecting previously deselected package libxmlrpc-ruby. Unpacking libxmlrpc-ruby (from .../libxmlrpc-ruby_1.8.2-1_all.deb) ... Selecting previously deselected package puppet. Unpacking puppet (from .../puppet_0.24.1-1_all.deb) ... Selecting previously deselected package rdoc1.8. Unpacking rdoc1.8 (from .../rdoc1.8_1.8.5-4etch1_all.deb) ... Selecting previously deselected package rdoc. Unpacking rdoc (from .../archives/rdoc_1.8.2-1_all.deb) ... Setting up libruby1.8 (1.8.5-4etch1) ...

Setting up ruby1.8 (1.8.5-4etch1) ... Setting up ruby (1.8.2-1) ... Setting up facter (1.3.8-1) ... Setting up libreadline-ruby1.8 (1.8.5-4etch1) ... Setting up irb1.8 (1.8.5-4etch1) ...

Setting up libopenssl-ruby1.8 (1.8.5-4etch1) ... Setting up libopenssl-ruby (1.0.0+ruby1.8.2-1) ... Setting up libshadow-ruby1.8 (1.4.1-7) ... Setting up libxmlrpc-ruby (1.8.2-1) ... Setting up puppet (0.24.1-1) ... Starting puppet configuration management toolwarning: peer certificate won't be verified in this SSL session .

Setting up rdoc1.8 (1.8.5-4etch1) ... Setting up rdoc (1.8.2-1) ... debiantest:~# cat /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl

[puppetmasterd] templatedir=/var/lib/puppet/templates debiantest:~# puppetd [[Awarning: peer certificate won't be verified in this SSL session debiantest:~# ps auxww |grep puppet root 4192 52.0 7.1 28940 18316 ? Ss 22:27 0:01 ruby /usr/sbin/puppetd root 4212 0.0 0.2 2848 700 pts/0 S+ 22:27 0:00 grep puppet debiantest:~# cat /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl

[puppetmasterd] templatedir=/var/lib/puppet/templates debiantest:~# kill 4192 debiantest:~# ps auxww |grep puppet root 4224 0.0 0.2 2848 696 pts/0 S+ 22:28 0:00 grep puppet debiantest:~# puppetd --listen debiantest:~# ps auxww |grep puppetd root 4373 0.0 0.2 2852 704 pts/0 S+ 22:36 0:00 grep puppetd

01/01/08 04:24:29 changed by Fujin

Are you able to replicate this with Thom's new 0.24.1-1 packages? (ftp://ftp.debian.org/debian/pool/main/p/puppet)

01/01/08 04:47:11 changed by jamtur01

Another thought is - I let etch also update the additional packages and it works fine for me. Perhaps there is something in those that is upsetting Puppet?

(follow-up: ↓ 13 ) 01/02/08 08:49:40 changed by Fujin

When I return to work on Monday, I'm going to put up a etch i386 install inside our ESX platform. On another note, what clean etch install automatically holds back packages[1]? Is this mirror.inter.net.il fully up to date? It's quite odd that James is unable to reproduce it, with the exact same distro. Perhaps try ftp.debian.org as your apt source?

[1]

The following packages have been kept back:
   debconf debconf-i18n e2fslibs e2fsprogs findutils initramfs-tools
   klibc-utils libblkid1 libc6 libc6-i686 libcomerr2 libklibc libpam-
 modules
   libpam-runtime libpam0g libss2 libuuid1 linux-image-2.6-686
   linux-image-2.6.18-4-686 locales tar tzdata

(in reply to: ↑ 12 ) 01/05/08 10:04:36 changed by Fujin

marthag - could please try this patch http://reductivelabs.com/trac/puppet/ticket/989 locally, and see if it fixes your issue? thanks

(follow-up: ↓ 15 ) 01/06/08 18:19:01 changed by marthag

That fixes it for me!

(in reply to: ↑ 14 ) 01/06/08 21:35:20 changed by Fujin

Replying to marthag:

That fixes it for me!

That's super. I'll see if I can get the two bugs merged.

01/06/08 22:04:58 changed by jamtur01

  • status changed from new to closed.
  • resolution set to duplicate.

Patch in ticket [989] fixes this issue. Closed as duplicate.